git-history-ui 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ All notable changes to this project are documented in this file.
4
4
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
5
5
  this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.0.1] - 2026-04-28
8
+
9
+ ### Fixed
10
+
11
+ - Diff viewer now scrolls correctly in both unified and split modes. The
12
+ surrounding grid containers were missing `min-height: 0` and explicit
13
+ `grid-template-rows: minmax(0, 1fr)`, which let the inner `<pre>` panes
14
+ expand to their content height instead of clipping and scrolling.
15
+
7
16
  ## [2.0.0] - 2026-04-27
8
17
 
9
18
  A full-stack rewrite focused on extreme performance, correctness, and a polished UI.
@@ -12,5 +12,5 @@
12
12
  <style>*,:before,:after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}:root{color-scheme:light;--bg-app:#f7f8fa;--bg-surface:#ffffff;--bg-surface-2:#f3f4f6;--bg-elevated:#ffffff;--bg-hover:#eef2ff;--bg-selected:#e0e7ff;--bg-overlay:rgba(15, 23, 42, .45);--fg-primary:#0f172a;--fg-secondary:#475569;--fg-muted:#64748b;--fg-subtle:#94a3b8;--fg-inverted:#ffffff;--border-soft:#e2e8f0;--border-strong:#cbd5e1;--border-focus:#6366f1;--accent:#4f46e5;--accent-hover:#4338ca;--accent-soft:#eef2ff;--accent-fg:#ffffff;--success:#16a34a;--warning:#d97706;--danger:#dc2626;--diff-add-bg:#dcfce7;--diff-add-fg:#14532d;--diff-add-gutter:#86efac;--diff-del-bg:#fee2e2;--diff-del-fg:#7f1d1d;--diff-del-gutter:#fca5a5;--diff-hunk-bg:#f1f5f9;--diff-hunk-fg:#475569;--shadow-sm:0 1px 2px rgba(15, 23, 42, .06);--shadow-md:0 4px 12px rgba(15, 23, 42, .08);--shadow-lg:0 12px 32px rgba(15, 23, 42, .12);--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--font-sans:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Mono", "Liberation Mono", "Courier New", monospace}*,*:before,*:after{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:var(--font-sans);font-size:14px;line-height:1.5;color:var(--fg-primary);background:var(--bg-app);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}</style><link rel="stylesheet" href="styles-YQ73RJ2V.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-YQ73RJ2V.css"></noscript></head>
13
13
  <body>
14
14
  <app-root></app-root>
15
- <script src="polyfills-5CFQRCPP.js" type="module"></script><script src="main-7AXSFTJM.js" type="module"></script></body>
15
+ <script src="polyfills-5CFQRCPP.js" type="module"></script><script src="main-YTFHD36T.js" type="module"></script></body>
16
16
  </html>
@@ -7,5 +7,5 @@ ${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
7
7
  `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Ur(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Te=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 o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(W(r))try{r()}catch(o){t=o instanceof Fa?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{nm(o)}catch(s){t=t??[],s instanceof Fa?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Fa(t)}}add(t){var n;if(t&&t!==this)if(this.closed)nm(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)&&Ur(n,t)}remove(t){let{_finalizers:n}=this;n&&Ur(n,t),t instanceof e&&t._removeParent(this)}};Te.EMPTY=(()=>{let e=new Te;return e.closed=!0,e})();var id=Te.EMPTY;function La(e){return e instanceof Te||e&&"closed"in e&&W(e.remove)&&W(e.add)&&W(e.unsubscribe)}function nm(e){W(e)?e():e.unsubscribe()}var tn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ai={setTimeout(e,t,...n){let{delegate:r}=Ai;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ai;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Va(e){Ai.setTimeout(()=>{let{onUnhandledError:t}=tn;if(t)t(e);else throw e})}function qo(){}var rm=od("C",void 0,void 0);function im(e){return od("E",void 0,e)}function om(e){return od("N",e,void 0)}function od(e,t,n){return{kind:e,value:t,error:n}}var jr=null;function Ri(e){if(tn.useDeprecatedSynchronousErrorHandling){let t=!jr;if(t&&(jr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=jr;if(jr=null,n)throw r}}else e()}function sm(e){tn.useDeprecatedSynchronousErrorHandling&&jr&&(jr.errorThrown=!0,jr.error=e)}var $r=class extends Te{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,La(t)&&t.add(this)):this.destination=qw}static create(t,n,r){return new Fn(t,n,r)}next(t){this.isStopped?ad(om(t),this):this._next(t)}error(t){this.isStopped?ad(im(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ad(rm,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()}}},zw=Function.prototype.bind;function sd(e,t){return zw.call(e,t)}var cd=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ba(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ba(r)}else Ba(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ba(n)}}},Fn=class extends $r{constructor(t,n,r){super();let i;if(W(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&tn.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&sd(t.next,o),error:t.error&&sd(t.error,o),complete:t.complete&&sd(t.complete,o)}):i=t}this.destination=new cd(i)}};function Ba(e){tn.useDeprecatedSynchronousErrorHandling?sm(e):Va(e)}function Gw(e){throw e}function ad(e,t){let{onStoppedNotification:n}=tn;n&&Ai.setTimeout(()=>n(e,t))}var qw={closed:!0,next:qo,error:Gw,complete:qo};var Oi=typeof Symbol=="function"&&Symbol.observable||"@@observable";function vt(e){return e}function ld(...e){return ud(e)}function ud(e){return e.length===0?vt:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var z=(()=>{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,i){let o=Kw(n)?n:new Fn(n,r,i);return Ri(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=am(r),new r((i,o)=>{let s=new Fn({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Oi](){return this}pipe(...n){return ud(n)(this)}toPromise(n){return n=am(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function am(e){var t;return(t=e??tn.Promise)!==null&&t!==void 0?t:Promise}function Ww(e){return e&&W(e.next)&&W(e.error)&&W(e.complete)}function Kw(e){return e&&e instanceof $r||Ww(e)&&La(e)}function dd(e){return W(e?.lift)}function G(e){return t=>{if(dd(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 H(e,t,n,r,i){return new fd(e,t,n,r,i)}var fd=class extends $r{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(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 ki(){return G((e,t)=>{let n=null;e._refCount++;let r=H(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var rr=class extends z{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,dd(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Te;let n=this.getSubject();t.add(this.source.subscribe(H(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Te.EMPTY)}return t}refCount(){return ki()(this)}};var Pi={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Pi;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let i=t(o=>{n=void 0,e(o)});return new Te(()=>n?.(i))},requestAnimationFrame(...e){let{delegate:t}=Pi;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=Pi;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var cm=xi(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var se=(()=>{class e extends z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ua(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new cm}next(n){Ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ri(()=>{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(){Ri(()=>{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:i,observers:o}=this;return r||i?id:(this.currentObservers=null,o.push(n),new Te(()=>{this.currentObservers=null,Ur(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new z;return n.source=this,n}}return e.create=(t,n)=>new Ua(t,n),e})(),Ua=class extends se{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:id}};var nt=class extends se{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 Wo={now(){return(Wo.delegate||Date).now()},delegate:void 0};var Hr=class extends se{constructor(t=1/0,n=1/0,r=Wo){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(t),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!t.closed;s+=r?1:2)t.next(o[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var ja=class extends Te{constructor(t,n){super()}schedule(t,n=0){return this}};var Ko={setInterval(e,t,...n){let{delegate:r}=Ko;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Ko;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var ir=class extends ja{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return Ko.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Ko.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,i;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,Ur(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Zw=1,pd,hd={};function lm(e){return e in hd?(delete hd[e],!0):!1}var um={setImmediate(e){let t=Zw++;return hd[t]=!0,pd||(pd=Promise.resolve()),pd.then(()=>lm(t)&&e()),t},clearImmediate(e){lm(e)}};var{setImmediate:Yw,clearImmediate:Qw}=um,Zo={setImmediate(...e){let{delegate:t}=Zo;return(t?.setImmediate||Yw)(...e)},clearImmediate(e){let{delegate:t}=Zo;return(t?.clearImmediate||Qw)(e)},delegate:void 0};var $a=class extends ir{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Zo.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var i;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:o}=t;n!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==n&&(Zo.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var Fi=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Fi.now=Wo.now;var or=class extends Fi{constructor(t,n=Fi.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Ha=class extends or{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,i;t=t||r.shift();do if(i=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,i){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw i}}};var gd=new Ha($a);var Yo=new or(ir),dm=Yo;var za=class extends ir{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Pi.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var i;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:o}=t;n!=null&&n===t._scheduled&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==n&&(Pi.cancelAnimationFrame(n),t._scheduled=void 0)}};var Ga=class extends or{flush(t){this._active=!0;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,i;t=t||r.shift();do if(i=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,i){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw i}}};var md=new Ga(za);var St=new z(e=>e.complete());function qa(e){return e&&W(e.schedule)}function fm(e){return e[e.length-1]}function Wa(e){return W(fm(e))?e.pop():void 0}function sr(e){return qa(fm(e))?e.pop():void 0}function hm(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):i(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function pm(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 zr(e){return this instanceof zr?(this.v=e,this):new zr(e)}function gm(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(i[f]=function(m){return new Promise(function(v,y){o.push([f,m,v,y])>1||c(f,m)})},g&&(i[f]=g(i[f])))}function c(f,g){try{l(r[f](g))}catch(m){p(o[0][3],m)}}function l(f){f.value instanceof zr?Promise.resolve(f.value.v).then(u,d):p(o[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,g){f(g),o.shift(),o.length&&c(o[0][0],o[0][1])}}function mm(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 pm=="function"?pm(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){s=e[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var Ka=e=>e&&typeof e.length=="number"&&typeof e!="function";function Za(e){return W(e?.then)}function Ya(e){return W(e[Oi])}function Qa(e){return Symbol.asyncIterator&&W(e?.[Symbol.asyncIterator])}function Xa(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 Xw(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ja=Xw();function ec(e){return W(e?.[Ja])}function tc(e){return gm(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield zr(n.read());if(i)return yield zr(void 0);yield yield zr(r)}}finally{n.releaseLock()}})}function nc(e){return W(e?.getReader)}function Ne(e){if(e instanceof z)return e;if(e!=null){if(Ya(e))return Jw(e);if(Ka(e))return e0(e);if(Za(e))return t0(e);if(Qa(e))return vm(e);if(ec(e))return n0(e);if(nc(e))return r0(e)}throw Xa(e)}function Jw(e){return new z(t=>{let n=e[Oi]();if(W(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function e0(e){return new z(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function t0(e){return new z(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Va)})}function n0(e){return new z(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function vm(e){return new z(t=>{i0(e,t).catch(n=>t.error(n))})}function r0(e){return vm(tc(e))}function i0(e,t){var n,r,i,o;return hm(this,void 0,void 0,function*(){try{for(n=mm(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function Tt(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function rc(e,t=0){return G((n,r)=>{n.subscribe(H(r,i=>Tt(r,e,()=>r.next(i),t),()=>Tt(r,e,()=>r.complete(),t),i=>Tt(r,e,()=>r.error(i),t)))})}function ic(e,t=0){return G((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ym(e,t){return Ne(e).pipe(ic(t),rc(t))}function _m(e,t){return Ne(e).pipe(ic(t),rc(t))}function bm(e,t){return new z(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Em(e,t){return new z(n=>{let r;return Tt(n,t,()=>{r=e[Ja](),Tt(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>W(r?.return)&&r.return()})}function oc(e,t){if(!e)throw new Error("Iterable cannot be null");return new z(n=>{Tt(n,t,()=>{let r=e[Symbol.asyncIterator]();Tt(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Dm(e,t){return oc(tc(e),t)}function Cm(e,t){if(e!=null){if(Ya(e))return ym(e,t);if(Ka(e))return bm(e,t);if(Za(e))return _m(e,t);if(Qa(e))return oc(e,t);if(ec(e))return Em(e,t);if(nc(e))return Dm(e,t)}throw Xa(e)}function ke(e,t){return t?Cm(e,t):Ne(e)}function O(...e){let t=sr(e);return ke(e,t)}function Li(e,t){let n=W(e)?e:()=>e,r=i=>i.error(n());return new z(t?i=>t.schedule(r,0,i):r)}function Gr(e){return!!e&&(e instanceof z||W(e.lift)&&W(e.subscribe))}var Ln=xi(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function wm(e){return e instanceof Date&&!isNaN(e)}function X(e,t){return G((n,r)=>{let i=0;n.subscribe(H(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:o0}=Array;function s0(e,t){return o0(t)?e(...t):e(t)}function sc(e){return X(t=>s0(e,t))}var{isArray:a0}=Array,{getPrototypeOf:c0,prototype:l0,keys:u0}=Object;function ac(e){if(e.length===1){let t=e[0];if(a0(t))return{args:t,keys:null};if(d0(t)){let n=u0(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function d0(e){return e&&typeof e=="object"&&c0(e)===l0}function cc(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function lc(...e){let t=sr(e),n=Wa(e),{args:r,keys:i}=ac(e);if(r.length===0)return ke([],t);let o=new z(f0(r,t,i?s=>cc(i,s):vt));return n?o.pipe(sc(n)):o}function f0(e,t,n=vt){return r=>{Im(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let c=0;c<i;c++)Im(t,()=>{let l=ke(e[c],t),u=!1;l.subscribe(H(r,d=>{o[c]=d,u||(u=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Im(e,t,n){e?Tt(n,e,t):t()}function Sm(e,t,n,r,i,o,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=m=>l<r?g(m):c.push(m),g=m=>{o&&t.next(m),l++;let v=!1;Ne(n(m,u++)).subscribe(H(t,y=>{i?.(y),o?f(y):t.next(y)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&l<r;){let y=c.shift();s?Tt(t,s,()=>g(y)):g(y)}p()}catch(y){t.error(y)}}))};return e.subscribe(H(t,f,()=>{d=!0,p()})),()=>{a?.()}}function We(e,t,n=1/0){return W(t)?We((r,i)=>X((o,s)=>t(r,o,i,s))(Ne(e(r,i))),n):(typeof t=="number"&&(n=t),G((r,i)=>Sm(r,i,e,n)))}function Tm(e=1/0){return We(vt,e)}function Mm(){return Tm(1)}function Vi(...e){return Mm()(ke(e,sr(e)))}function Qo(e){return new z(t=>{Ne(e()).subscribe(t)})}function vd(...e){let t=Wa(e),{args:n,keys:r}=ac(e),i=new z(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;Ne(n[u]).subscribe(H(o,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||o.next(r?cc(r,a):a),o.complete())}))}});return t?i.pipe(sc(t)):i}function Nm(e=0,t,n=dm){let r=-1;return t!=null&&(qa(t)?n=t:r=t),new z(i=>{let o=wm(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function ct(e,t){return G((n,r)=>{let i=0;n.subscribe(H(r,o=>e.call(t,o,i++)&&r.next(o)))})}function xm(e){return G((t,n)=>{let r=!1,i=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,r){r=!1;let l=i;i=null,n.next(l)}s&&n.complete()},c=()=>{o=null,s&&n.complete()};t.subscribe(H(n,l=>{r=!0,i=l,o||Ne(e(l)).subscribe(o=H(n,a,c))},()=>{s=!0,(!r||!o||o.closed)&&n.complete()}))})}function Xo(e,t=Yo){return xm(()=>Nm(e,t))}function kt(e){return G((t,n)=>{let r=null,i=!1,o;r=t.subscribe(H(n,void 0,void 0,s=>{o=Ne(e(s,kt(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function Am(e,t,n,r,i){return(o,s)=>{let a=n,c=t,l=0;o.subscribe(H(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function ar(e,t){return W(t)?We(e,t,1):We(e,1)}function yd(e,t=Yo){return G((n,r)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let l=o;o=null,r.next(l)}};function c(){let l=s+e,u=t.now();if(u<l){i=this.schedule(void 0,l-u),r.add(i);return}a()}n.subscribe(H(r,l=>{o=l,s=t.now(),i||(i=t.schedule(c,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function cr(e){return G((t,n)=>{let r=!1;t.subscribe(H(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function Vn(e){return e<=0?()=>St:G((t,n)=>{let r=0;t.subscribe(H(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function _d(e,t=vt){return e=e??p0,G((n,r)=>{let i,o=!0;n.subscribe(H(r,s=>{let a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function p0(e,t){return e===t}function uc(e=h0){return G((t,n)=>{let r=!1;t.subscribe(H(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function h0(){return new Ln}function qr(e){return G((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Bn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ct((i,o)=>e(i,o,r)):vt,Vn(1),n?cr(t):uc(()=>new Ln))}function Bi(e){return e<=0?()=>St:G((t,n)=>{let r=[];t.subscribe(H(n,i=>{r.push(i),e<r.length&&r.shift()},()=>{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function bd(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ct((i,o)=>e(i,o,r)):vt,Bi(1),n?cr(t):uc(()=>new Ln))}function Ed(){return G((e,t)=>{let n,r=!1;e.subscribe(H(t,i=>{let o=n;n=i,r&&t.next([o,i]),r=!0}))})}function Dd(e,t){return G(Am(e,t,arguments.length>=2,!0))}function Rm(e={}){let{connector:t=()=>new se,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,l=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,u=d=!1},g=()=>{let m=s;f(),m?.unsubscribe()};return G((m,v)=>{l++,!d&&!u&&p();let y=c=c??t();v.add(()=>{l--,l===0&&!d&&!u&&(a=Cd(g,i))}),y.subscribe(v),!s&&l>0&&(s=new Fn({next:R=>y.next(R),error:R=>{d=!0,p(),a=Cd(f,n,R),y.error(R)},complete:()=>{u=!0,p(),a=Cd(f,r),y.complete()}}),Ne(m).subscribe(s))})(o)}}function Cd(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Fn({next:()=>{r.unsubscribe(),e()}});return Ne(t(...n)).subscribe(r)}function wd(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e??1/0,Rm({connector:()=>new Hr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Ui(...e){let t=sr(e);return G((n,r)=>{(t?Vi(e,n,t):Vi(e,n)).subscribe(r)})}function Re(e,t){return G((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(H(r,c=>{i?.unsubscribe();let l=0,u=o++;Ne(e(c,u)).subscribe(i=H(r,d=>r.next(t?t(c,d,u,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function lr(e){return G((t,n)=>{Ne(e).subscribe(H(n,()=>n.complete(),qo)),!n.closed&&t.subscribe(n)})}function Qe(e,t,n){let r=W(e)||t||n?{next:e,error:t,complete:n}:e;return r?G((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(H(o,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),o.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),o.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):vt}function Om(e){let t=q(null);try{return e()}finally{q(t)}}var gc="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",I=class extends Error{code;constructor(t,n){super(Qr(t,n)),this.code=t}};function g0(e){return`NG0${Math.abs(e)}`}function Qr(e,t){return`${g0(e)}${t?": "+t:""}`}var rn=globalThis;function fe(e){for(let t in e)if(e[t]===fe)return t;throw Error("")}function Fm(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function jn(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(jn).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(`
8
8
  `);return r>=0?n.slice(0,r):n}function Fd(e,t){return e?t?`${e} ${t}`:e:t||""}var m0=fe({__forward_ref__:fe});function on(e){return e.__forward_ref__=on,e.toString=function(){return jn(this())},e}function rt(e){return Ld(e)?e():e}function Ld(e){return typeof e=="function"&&e.hasOwnProperty(m0)&&e.__forward_ref__===on}function Lm(e,t){e==null&&Vd(t,e,null,"!=")}function Vd(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function M(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function _t(e){return{providers:e.providers||[],imports:e.imports||[]}}function is(e){return v0(e,mc)}function Bd(e){return is(e)!==null}function v0(e,t){return e.hasOwnProperty(t)&&e[t]||null}function y0(e){let t=e?.[mc]??null;return t||null}function Sd(e){return e&&e.hasOwnProperty(fc)?e[fc]:null}var mc=fe({\u0275prov:fe}),fc=fe({\u0275inj:fe}),T=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=M({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ud(e){return e&&!!e.\u0275providers}var jd=fe({\u0275cmp:fe}),$d=fe({\u0275dir:fe}),Hd=fe({\u0275pipe:fe}),zd=fe({\u0275mod:fe}),ts=fe({\u0275fac:fe}),Xr=fe({__NG_ELEMENT_ID__:fe}),km=fe({__NG_ENV_ID__:fe});function Jr(e){return typeof e=="string"?e:e==null?"":String(e)}function pc(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Jr(e)}var Gd=fe({ngErrorCode:fe}),Vm=fe({ngErrorMessage:fe}),es=fe({ngTokenPath:fe});function qd(e,t){return Bm("",-200,t)}function vc(e,t){throw new I(-201,!1)}function _0(e,t){e[es]??=[];let n=e[es],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(Lm(t.provide,"Token with multi: true should have a provide property"),r=pc(t.provide)):r=pc(t),n[0]!==r&&e[es].unshift(r)}function b0(e,t){let n=e[es],r=e[Gd],i=e[Vm]||e.message;return e.message=D0(i,r,n,t),e}function Bm(e,t,n){let r=new I(t,e);return r[Gd]=t,r[Vm]=e,n&&(r[es]=n),r}function E0(e){return e[Gd]}function D0(e,t,n=[],r=null){let i="";n&&n.length>1&&(i=` Path: ${n.join(" -> ")}.`);let o=r?` Source: ${r}.`:"";return Qr(t,`${e}${o}${i}`)}var Td;function Um(){return Td}function yt(e){let t=Td;return Td=e,t}function Wd(e,t,n){let r=is(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;vc(e,"Injector")}var C0={},Wr=C0,Md="__NG_DI_FLAG__",Nd=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Kr(n)||0;try{return this.injector.get(t,r&8?null:Wr,r)}catch(i){if(Ii(i))return i;throw i}}};function w0(e,t=0){let n=Ia();if(n===void 0)throw new I(-203,!1);if(n===null)return Wd(e,void 0,t);{let r=I0(t),i=n.retrieve(e,r);if(Ii(i)){if(r.optional)return null;throw i}return i}}function F(e,t=0){return(Um()||w0)(rt(e),t)}function h(e,t){return F(e,Kr(t))}function Kr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function I0(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function xd(e){let t=[];for(let n=0;n<e.length;n++){let r=rt(e[n]);if(Array.isArray(r)){if(r.length===0)throw new I(900,!1);let i,o=0;for(let s=0;s<r.length;s++){let a=r[s],c=S0(a);typeof c=="number"?c===-1?i=a.token:o|=c:i=a}t.push(F(i,o))}else t.push(F(r))}return t}function yc(e,t){return e[Md]=t,e.prototype[Md]=t,e}function S0(e){return e[Md]}function ur(e,t){let n=e.hasOwnProperty(ts);return n?e[ts]:null}function jm(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function $m(e){return e.flat(Number.POSITIVE_INFINITY)}function _c(e,t){e.forEach(n=>Array.isArray(n)?_c(n,t):t(n))}function Kd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function os(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Hm(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function zm(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function Gm(e,t,n){let r=$i(e,t);return r>=0?e[r|1]=n:(r=~r,zm(e,r,t,n)),r}function bc(e,t){let n=$i(e,t);if(n>=0)return e[n|1]}function $i(e,t){return T0(e,t,1)}function T0(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var fr={},Pt=[],pr=new T(""),Zd=new T("",-1),Yd=new T(""),ns=class{get(t,n=Wr){if(n===Wr){let i=Bm("",-201);throw i.name="\u0275NotFound",i}return n}};function Qd(e){return e[zd]||null}function hr(e){return e[jd]||null}function Xd(e){return e[$d]||null}function qm(e){return e[Hd]||null}function ei(e){return{\u0275providers:e}}function Wm(...e){return{\u0275providers:Jd(!0,e),\u0275fromNgModule:!0}}function Jd(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return _c(t,s=>{let a=s;hc(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Km(i,o),n}function Km(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];ef(i,o=>{t(o,r)})}}function hc(e,t,n,r){if(e=rt(e),!e)return!1;let i=null,o=Sd(e),s=!o&&hr(e);if(!o&&!s){let c=e.ngModule;if(o=Sd(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)hc(l,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{_c(o.imports,u=>{hc(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Km(l,t)}if(!a){let l=ur(i)||(()=>new i);t({provide:i,useFactory:l,deps:Pt},i),t({provide:Yd,useValue:i,multi:!0},i),t({provide:pr,useValue:()=>F(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let l=e;ef(c,u=>{t(u,l)})}}else return!1;return i!==e&&e.providers!==void 0}function ef(e,t){for(let n of e)Ud(n)&&(n=n.\u0275providers),Array.isArray(n)?ef(n,t):t(n)}var M0=fe({provide:String,useValue:fe});function Zm(e){return e!==null&&typeof e=="object"&&M0 in e}function N0(e){return!!(e&&e.useExisting)}function x0(e){return!!(e&&e.useFactory)}function Zr(e){return typeof e=="function"}function Ym(e){return!!e.useClass}var ss=new T(""),dc={},Pm={},Id;function as(){return Id===void 0&&(Id=new ns),Id}var Ke=class{},Yr=class extends Ke{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,Rd(t,s=>this.processProvider(s)),this.records.set(Zd,ji(void 0,this)),i.has("environment")&&this.records.set(Ke,ji(void 0,this));let o=this.records.get(ss);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Yd,Pt,{self:!0}))}retrieve(t,n){let r=Kr(n)||0;try{return this.get(t,Wr,r)}catch(i){if(Ii(i))return i;throw i}}destroy(){Jo(this),this._destroyed=!0;let t=q(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(),q(t)}}onDestroy(t){return Jo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Jo(this);let n=yn(this),r=yt(void 0),i;try{return t()}finally{yn(n),yt(r)}}get(t,n=Wr,r){if(Jo(this),t.hasOwnProperty(km))return t[km](this);let i=Kr(r),o,s=yn(this),a=yt(void 0);try{if(!(i&4)){let l=this.records.get(t);if(l===void 0){let u=P0(t)&&is(t);u&&this.injectableDefInScope(u)?l=ji(Ad(t),dc):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,i)}let c=i&2?as():this.parent;return n=i&8&&n===Wr?null:n,c.get(t,n)}catch(c){let l=E0(c);throw l===-200||l===-201?new I(l,null):c}finally{yt(a),yn(s)}}resolveInjectorInitializers(){let t=q(null),n=yn(this),r=yt(void 0),i;try{let o=this.get(pr,Pt,{self:!0});for(let s of o)s()}finally{yn(n),yt(r),q(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(jn(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=rt(t);let n=Zr(t)?t:rt(t&&t.provide),r=R0(t);if(!Zr(t)&&t.multi===!0){let i=this.records.get(n);i||(i=ji(void 0,dc,!0),i.factory=()=>xd(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let i=q(null);try{if(n.value===Pm)throw qd(jn(t));return n.value===dc&&(n.value=Pm,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&k0(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{q(i)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=rt(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 Ad(e){let t=is(e),n=t!==null?t.factory:ur(e);if(n!==null)return n;if(e instanceof T)throw new I(204,!1);if(e instanceof Function)return A0(e);throw new I(204,!1)}function A0(e){if(e.length>0)throw new I(204,!1);let n=y0(e);return n!==null?()=>n.factory(e):()=>new e}function R0(e){if(Zm(e))return ji(void 0,e.useValue);{let t=tf(e);return ji(t,dc)}}function tf(e,t,n){let r;if(Zr(e)){let i=rt(e);return ur(i)||Ad(i)}else if(Zm(e))r=()=>rt(e.useValue);else if(x0(e))r=()=>e.useFactory(...xd(e.deps||[]));else if(N0(e))r=(i,o)=>F(rt(e.useExisting),o!==void 0&&o&8?8:void 0);else{let i=rt(e&&(e.useClass||e.provide));if(O0(e))r=()=>new i(...xd(e.deps));else return ur(i)||Ad(i)}return r}function Jo(e){if(e.destroyed)throw new I(205,!1)}function ji(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function O0(e){return!!e.deps}function k0(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function P0(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Rd(e,t){for(let n of e)Array.isArray(n)?Rd(n,t):n&&Ud(n)?Rd(n.\u0275providers,t):t(n)}function it(e,t){let n;e instanceof Yr?(Jo(e),n=e):n=new Nd(e);let r,i=yn(n),o=yt(void 0);try{return t()}finally{yn(i),yt(o)}}function Qm(){return Um()!==void 0||Ia()!=null}var sn=0,B=1,j=2,Xe=3,zt=4,bt=5,Hi=6,zi=7,lt=8,ti=9,_n=10,Pe=11,Gi=12,nf=13,ni=14,Mt=15,gr=16,ri=17,bn=18,cs=19,rf=20,Un=21,Ec=22,$n=23,Ft=24,ii=25,Le=26,Xm=1;var mr=7,ls=8,oi=9,Et=10;function En(e){return Array.isArray(e)&&typeof e[Xm]=="object"}function an(e){return Array.isArray(e)&&e[Xm]===!0}function of(e){return(e.flags&4)!==0}function vr(e){return e.componentOffset>-1}function qi(e){return(e.flags&1)===1}function Dn(e){return!!e.template}function Wi(e){return(e[j]&512)!==0}function si(e){return(e[j]&256)===256}var sf="svg",Jm="math";function Gt(e){for(;Array.isArray(e);)e=e[sn];return e}function af(e,t){return Gt(t[e])}function cn(e,t){return Gt(t[e.index])}function Dc(e,t){return e.data[t]}function cf(e,t){return e[t]}function lf(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function qt(e,t){let n=t[e];return En(n)?n:n[sn]}function ev(e){return(e[j]&4)===4}function Cc(e){return(e[j]&128)===128}function tv(e){return an(e[Xe])}function yr(e,t){return t==null?null:e[t]}function uf(e){e[ri]=0}function df(e){e[j]&1024||(e[j]|=1024,Cc(e)&&_r(e))}function nv(e,t){for(;e>0;)t=t[ni],e--;return t}function us(e){return!!(e[j]&9216||e[Ft]?.dirty)}function wc(e){e[_n].changeDetectionScheduler?.notify(8),e[j]&64&&(e[j]|=1024),us(e)&&_r(e)}function _r(e){e[_n].changeDetectionScheduler?.notify(0);let t=dr(e);for(;t!==null&&!(t[j]&8192||(t[j]|=8192,!Cc(t)));)t=dr(t)}function ff(e,t){if(si(e))throw new I(911,!1);e[Un]===null&&(e[Un]=[]),e[Un].push(t)}function rv(e,t){if(e[Un]===null)return;let n=e[Un].indexOf(t);n!==-1&&e[Un].splice(n,1)}function dr(e){let t=e[Xe];return an(t)?t[Xe]:t}function pf(e){return e[zi]??=[]}function hf(e){return e.cleanup??=[]}function iv(e,t,n,r){let i=pf(t);i.push(n),e.firstCreatePass&&hf(e).push(r,i.length-1)}var Q={lFrame:vv(null),bindingsEnabled:!0,skipHydrationRootTNode:null},ds=(function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e})(ds||{}),F0=0,Od=!1;function ov(){return Q.lFrame.elementDepthCount}function sv(){Q.lFrame.elementDepthCount++}function gf(){Q.lFrame.elementDepthCount--}function Ic(){return Q.bindingsEnabled}function mf(){return Q.skipHydrationRootTNode!==null}function vf(e){return Q.skipHydrationRootTNode===e}function yf(){Q.skipHydrationRootTNode=null}function ae(){return Q.lFrame.lView}function ut(){return Q.lFrame.tView}function be(e){return Q.lFrame.contextLView=e,e[lt]}function Ee(e){return Q.lFrame.contextLView=null,e}function dt(){let e=_f();for(;e!==null&&e.type===64;)e=e.parent;return e}function _f(){return Q.lFrame.currentTNode}function av(){let e=Q.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ki(e,t){let n=Q.lFrame;n.currentTNode=e,n.isParent=t}function bf(){return Q.lFrame.isParent}function Ef(){Q.lFrame.isParent=!1}function cv(){return Q.lFrame.contextLView}function Df(e){Vd("Must never be called in production mode"),F0=e}function Cf(){return Od}function Zi(e){let t=Od;return Od=e,t}function lv(){let e=Q.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function uv(){return Q.lFrame.bindingIndex}function dv(e){return Q.lFrame.bindingIndex=e}function Sc(){return Q.lFrame.bindingIndex++}function wf(e){let t=Q.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function fv(){return Q.lFrame.inI18n}function pv(e,t){let n=Q.lFrame;n.bindingIndex=n.bindingRootIndex=e,Tc(t)}function hv(){return Q.lFrame.currentDirectiveIndex}function Tc(e){Q.lFrame.currentDirectiveIndex=e}function gv(e){let t=Q.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function If(){return Q.lFrame.currentQueryIndex}function Mc(e){Q.lFrame.currentQueryIndex=e}function L0(e){let t=e[B];return t.type===2?t.declTNode:t.type===1?e[bt]:null}function Sf(e,t,n){if(n&4){let i=t,o=e;for(;i=i.parent,i===null&&!(n&1);)if(i=L0(o),i===null||(o=o[ni],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=Q.lFrame=mv();return r.currentTNode=t,r.lView=e,!0}function Nc(e){let t=mv(),n=e[B];Q.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function mv(){let e=Q.lFrame,t=e===null?null:e.child;return t===null?vv(e):t}function vv(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 yv(){let e=Q.lFrame;return Q.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Tf=yv;function xc(){let e=yv();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 _v(e){return(Q.lFrame.contextLView=nv(e,Q.lFrame.contextLView))[lt]}function br(){return Q.lFrame.selectedIndex}function Er(e){Q.lFrame.selectedIndex=e}function Mf(){let e=Q.lFrame;return Dc(e.tView,e.selectedIndex)}function Dr(){Q.lFrame.currentNamespace=sf}function Yi(){V0()}function V0(){Q.lFrame.currentNamespace=null}function bv(){return Q.lFrame.currentNamespace}var Ev=!0;function Ac(){return Ev}function fs(e){Ev=e}var B0={elements:void 0};function Rc(){return B0}function kd(e,t=null,n=null,r){let i=Nf(e,t,n,r);return i.resolveInjectorInitializers(),i}function Nf(e,t=null,n=null,r,i=new Set){let o=[n||Pt,Wm(e)];return r=r||(typeof e=="object"?void 0:jn(e)),new Yr(o,t||as(),r||null,i)}var Je=class e{static THROW_IF_NOT_FOUND=Wr;static NULL=new ns;static create(t,n){if(Array.isArray(t))return kd({name:""},n,t,"");{let r=t.name??"";return kd({name:r},t.parent,t.providers,r)}}static \u0275prov=M({token:e,providedIn:"any",factory:()=>F(Zd)});static __NG_ELEMENT_ID__=-1},xe=new T(""),Ze=(()=>{class e{static __NG_ELEMENT_ID__=U0;static __NG_ENV_ID__=n=>n}return e})(),rs=class extends Ze{_lView;constructor(t){super(),this._lView=t}get destroyed(){return si(this._lView)}onDestroy(t){let n=this._lView;return ff(n,t),()=>rv(n,t)}};function U0(){return new rs(ae())}var Ht=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Lt=new T("",{providedIn:"root",factory:()=>{let e=h(Ke),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Ht),t.handleError(n))}}}),Dv={provide:pr,useValue:()=>void h(Ht),multi:!0};function L(e,t){let[n,r,i]=nd(e,t?.equal),o=n,s=o[mt];return o.set=r,o.update=i,o.asReadonly=xf.bind(o),o}function xf(){let e=this[mt];if(e.readonlyFn===void 0){let t=()=>this();t[mt]=e,e.readonlyFn=t}return e.readonlyFn}var nn=class{},ps=new T("",{providedIn:"root",factory:()=>!1});var Af=new T(""),Rf=new T("");var Qi=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=j0}return e})();function j0(){return new Qi(ae(),dt())}var Cn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new nt(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new z(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),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(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=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),Xi=(()=>{class e{internalPendingTasks=h(Cn);scheduler=h(nn);errorHandler=h(Lt);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=M({token:e,providedIn:"root",factory:()=>new e})}return e})();function ai(...e){}var hs=(()=>{class e{static \u0275prov=M({token:e,providedIn:"root",factory:()=>new Pd})}return e})(),Pd=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}};function so(e){return{toString:e}.toString()}var Oc="__parameters__";function K0(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function bp(e,t,n){return so(()=>{let r=K0(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Oc)?c[Oc]:Object.defineProperty(c,Oc,{value:[]})[Oc];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var Ep=yc(bp("Inject",e=>({token:e})),-1),sl=yc(bp("Optional"),8);var ty=yc(bp("SkipSelf"),4);function Z0(e){return typeof e=="function"}var $c=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ny(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var wr=(()=>{let e=()=>ry;return e.ngInherit=!0,e})();function ry(e){return e.type.prototype.ngOnChanges&&(e.setInput=Q0),Y0}function Y0(){let e=oy(this),t=e?.current;if(t){let n=e.previous;if(n===fr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Q0(e,t,n,r,i){let o=this.declaredInputs[r],s=oy(e)||X0(e,{previous:fr,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new $c(l&&l.currentValue,n,c===fr),ny(e,t,i,n)}var iy="__ngSimpleChanges__";function oy(e){return e[iy]||null}function X0(e,t){return e[iy]=t}var Cv=[];var ge=function(e,t=null,n){for(let r=0;r<Cv.length;r++){let i=Cv[r];i(e,t,n)}};function J0(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=ry(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function sy(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=o;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Vc(e,t,n){ay(e,t,3,n)}function Bc(e,t,n,r){(e[j]&3)===n&&ay(e,t,n,r)}function Of(e,t){let n=e[j];(n&3)===t&&(n&=16383,n+=1,e[j]=n)}function ay(e,t,n,r){let i=r!==void 0?e[ri]&65535:0,o=r??-1,s=t.length-1,a=0;for(let c=i;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[ri]+=65536),(a<o||o==-1)&&(eI(e,n,t,c),e[ri]=(e[ri]&4294901760)+c+2),c++}function wv(e,t){ge(4,e,t);let n=q(null);try{t.call(e)}finally{q(n),ge(5,e,t)}}function eI(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[j]>>14<e[ri]>>16&&(e[j]&3)===t&&(e[j]+=16384,wv(a,o)):wv(a,o)}var eo=-1,ui=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,i){this.factory=t,this.name=i,this.canSeeViewProviders=n,this.injectImpl=r}};function tI(e){return(e.flags&8)!==0}function nI(e){return(e.flags&16)!==0}function rI(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];oI(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function iI(e){return e===3||e===4||e===6}function oI(e){return e.charCodeAt(0)===64}function to(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 i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?Iv(e,n,i,null,t[++r]):Iv(e,n,i,null,null))}}return e}function Iv(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){i!==null&&(e[o+1]=i);return}o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),i!==null&&e.splice(o++,0,i)}function cy(e){return e!==eo}function Hc(e){return e&32767}function sI(e){return e>>16}function zc(e,t){let n=sI(e),r=t;for(;n>0;)r=r[ni],n--;return r}var zf=!0;function Gc(e){let t=zf;return zf=e,t}var aI=256,ly=aI-1,uy=5,cI=0,wn={};function lI(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Xr)&&(r=n[Xr]),r==null&&(r=n[Xr]=cI++);let i=r&ly,o=1<<i;t.data[e+(i>>uy)]|=o}function qc(e,t){let n=dy(e,t);if(n!==-1)return n;let r=t[B];r.firstCreatePass&&(e.injectorIndex=t.length,kf(r.data,e),kf(t,null),kf(r.blueprint,null));let i=Dp(e,t),o=e.injectorIndex;if(cy(i)){let s=Hc(i),a=zc(i,t),c=a[B].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|c[s+l]}return t[o+8]=i,o}function kf(e,t){e.push(0,0,0,0,0,0,0,0,t)}function dy(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Dp(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=my(i),r===null)return eo;if(n++,i=i[ni],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return eo}function Gf(e,t,n){lI(e,t,n)}function fy(e,t,n){if(n&8||e!==void 0)return e;vc(t,"NodeInjector")}function py(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=e[ti],o=yt(void 0);try{return i?i.get(t,r,n&8):Wd(t,r,n&8)}finally{yt(o)}}return fy(r,t,n)}function hy(e,t,n,r=0,i){if(e!==null){if(t[j]&2048&&!(r&2)){let s=pI(e,t,n,r,wn);if(s!==wn)return s}let o=gy(e,t,n,r,wn);if(o!==wn)return o}return py(t,n,r,i)}function gy(e,t,n,r,i){let o=dI(n);if(typeof o=="function"){if(!Sf(t,e,r))return r&1?fy(i,n,r):py(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&8))vc(n);else return s}finally{Tf()}}else if(typeof o=="number"){let s=null,a=dy(e,t),c=eo,l=r&1?t[Mt][bt]:null;for((a===-1||r&4)&&(c=a===-1?Dp(e,t):t[a+8],c===eo||!Tv(r,!1)?a=-1:(s=t[B],a=Hc(c),t=zc(c,t)));a!==-1;){let u=t[B];if(Sv(o,a,u.data)){let d=uI(a,t,n,s,r,l);if(d!==wn)return d}c=t[a+8],c!==eo&&Tv(r,t[B].data[a+8]===l)&&Sv(o,a,t)?(s=u,a=Hc(c),t=zc(c,t)):a=-1}}return i}function uI(e,t,n,r,i,o){let s=t[B],a=s.data[e+8],c=r==null?vr(a)&&zf:r!=s&&(a.type&3)!==0,l=i&1&&o===a,u=Uc(a,s,n,c,l);return u!==null?vs(t,s,u,a,i):wn}function Uc(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,c=e.directiveStart,l=e.directiveEnd,u=o>>20,d=r?a:a+u,p=i?a+u:l;for(let f=d;f<p;f++){let g=s[f];if(f<c&&n===g||f>=c&&g.type===n)return f}if(i){let f=s[c];if(f&&Dn(f)&&f.type===n)return c}return null}function vs(e,t,n,r,i){let o=e[n],s=t.data;if(o instanceof ui){let a=o;if(a.resolving){let f=pc(s[n]);throw qd(f)}let c=Gc(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?yt(a.injectImpl):null,p=Sf(e,r,0);try{o=e[n]=a.factory(void 0,i,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&J0(n,s[n],t)}finally{d!==null&&yt(d),Gc(c),a.resolving=!1,Tf()}}return o}function dI(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Xr)?e[Xr]:void 0;return typeof t=="number"?t>=0?t&ly:fI:t}function Sv(e,t,n){let r=1<<e;return!!(n[t+(e>>uy)]&r)}function Tv(e,t){return!(e&2)&&!(e&1&&t)}var li=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return hy(this._tNode,this._lView,t,Kr(r),n)}};function fI(){return new li(dt(),ae())}function Ir(e){return so(()=>{let t=e.prototype.constructor,n=t[ts]||qf(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[ts]||qf(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function qf(e){return Ld(e)?()=>{let t=qf(rt(e));return t&&t()}:ur(e)}function pI(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[j]&2048&&!Wi(s);){let a=gy(o,s,n,r|2,wn);if(a!==wn)return a;let c=o.parent;if(!c){let l=s[rf];if(l){let u=l.get(n,wn,r);if(u!==wn)return u}c=my(s),s=s[ni]}o=c}return i}function my(e){let t=e[B],n=t.type;return n===2?t.declTNode:n===1?e[bt]:null}function hI(){return ao(dt(),ae())}function ao(e,t){return new ft(cn(e,t))}var ft=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=hI}return e})();function gI(e){return e instanceof ft?e.nativeElement:e}function mI(){return this._results[Symbol.iterator]()}var Wc=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 se}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=$m(t);(this._changesDetected=!jm(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]=mI};function vy(e){return(e.flags&128)===128}var Cp=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Cp||{}),yy=new Map,vI=0;function yI(){return vI++}function _I(e){yy.set(e[cs],e)}function Wf(e){yy.delete(e[cs])}var Mv="__ngContext__";function no(e,t){En(t)?(e[Mv]=t[cs],_I(t)):e[Mv]=t}function _y(e){return Ey(e[Gi])}function by(e){return Ey(e[zt])}function Ey(e){for(;e!==null&&!an(e);)e=e[zt];return e}var Kf;function wp(e){Kf=e}function Ip(){if(Kf!==void 0)return Kf;if(typeof document<"u")return document;throw new I(210,!1)}var al=new T("",{providedIn:"root",factory:()=>bI}),bI="ng",cl=new T(""),Sr=new T("",{providedIn:"platform",factory:()=>"unknown"});var ll=new T("",{providedIn:"root",factory:()=>Ip().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var EI="h",DI="b";var Dy=!1,Cy=new T("",{providedIn:"root",factory:()=>Dy});var CI=(e,t,n,r)=>{};function wI(e,t,n,r){CI(e,t,n,r)}function ul(e){return(e.flags&32)===32}var II=()=>null;function wy(e,t,n=!1){return II(e,t,n)}function Iy(e,t){let n=e.contentQueries;if(n!==null){let r=q(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];Mc(o),a.contentQueries(2,t[s],s)}}}finally{q(r)}}}function Zf(e,t,n){Mc(0);let r=q(null);try{t(e,n)}finally{q(r)}}function Sp(e,t,n){if(of(t)){let r=q(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{q(r)}}}var Hn=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(Hn||{}),kc;function SI(){if(kc===void 0&&(kc=null,rn.trustedTypes))try{kc=rn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return kc}function dl(e){return SI()?.createHTML(e)||e}var Pc;function TI(){if(Pc===void 0&&(Pc=null,rn.trustedTypes))try{Pc=rn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Pc}function Nv(e){return TI()?.createHTML(e)||e}var Kc=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${gc})`}};function Tp(e){return e instanceof Kc?e.changingThisBreaksApplicationSecurity:e}function Sy(e,t){let n=Ty(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${gc})`)}return n===t}function Ty(e){return e instanceof Kc&&e.getTypeName()||null}function MI(e){let t=new Qf(e);return NI()?new Yf(t):t}var Yf=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(dl(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Qf=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=dl(t),n}};function NI(){try{return!!new window.DOMParser().parseFromString(dl(""),"text/html")}catch{return!1}}var xI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function My(e){return e=String(e),e.match(xI)?e:"unsafe:"+e}function zn(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Es(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Ny=zn("area,br,col,hr,img,wbr"),xy=zn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ay=zn("rp,rt"),AI=Es(Ay,xy),RI=Es(xy,zn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),OI=Es(Ay,zn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),xv=Es(Ny,RI,OI,AI),Ry=zn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),kI=zn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),PI=zn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),FI=Es(Ry,kI,PI),LI=zn("script,style,template"),Xf=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=UI(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=BI(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(t){let n=Av(t).toLowerCase();if(!xv.hasOwnProperty(n))return this.sanitizedSomething=!0,!LI.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let i=0;i<r.length;i++){let o=r.item(i),s=o.name,a=s.toLowerCase();if(!FI.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=o.value;Ry[a]&&(c=My(c)),this.buf.push(" ",s,'="',Rv(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=Av(t).toLowerCase();xv.hasOwnProperty(n)&&!Ny.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Rv(t))}};function VI(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function BI(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Oy(t);return t}function UI(e){let t=e.firstChild;if(t&&VI(e,t))throw Oy(t);return t}function Av(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Oy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var jI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$I=/([^\#-~ |!])/g;function Rv(e){return e.replace(/&/g,"&amp;").replace(jI,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace($I,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Fc;function ky(e,t){let n=null;try{Fc=Fc||MI(e);let r=t?String(t):"";n=Fc.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Fc.getInertBodyElement(r)}while(r!==o);let a=new Xf().sanitizeChildren(Ov(n)||n);return dl(a)}finally{if(n){let r=Ov(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Ov(e){return"content"in e&&HI(e)?e.content:null}function HI(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Mp=(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})(Mp||{});function Ds(e){let t=zI();return t?Nv(t.sanitize(Mp.HTML,e)||""):Sy(e,"HTML")?Nv(Tp(e)):ky(Ip(),Jr(e))}function zI(){let e=ae();return e&&e[_n].sanitizer}var GI=/^>|^->|<!--|-->|--!>|<!-$/g,qI=/(<|>)/g,WI="\u200B$1\u200B";function KI(e){return e.replace(GI,t=>t.replace(qI,WI))}function pi(e){return e.ownerDocument.defaultView}function Cs(e){return e.ownerDocument}function Py(e){return e instanceof Function?e():e}function ZI(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Fy="ng-template";function YI(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&ZI(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Np(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function Np(e){return e.type===4&&e.value!==Fy}function QI(e,t,n){let r=e.type===4&&!n?Fy:e.value;return t===r}function XI(e,t,n){let r=4,i=e.attrs,o=i!==null?tS(i):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!ln(r)&&!ln(c))return!1;if(s&&ln(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!QI(e,c,n)||c===""&&t.length===1){if(ln(r))return!1;s=!0}}else if(r&8){if(i===null||!YI(e,i,c,n)){if(ln(r))return!1;s=!0}}else{let l=t[++a],u=JI(c,i,Np(e),n);if(u===-1){if(ln(r))return!1;s=!0;continue}if(l!==""){let d;if(u>o?d="":d=i[u+1].toLowerCase(),r&2&&l!==d){if(ln(r))return!1;s=!0}}}}return ln(r)||s}function ln(e){return(e&1)===0}function JI(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return nS(t,e)}function Ly(e,t,n=!1){for(let r=0;r<t.length;r++)if(XI(e,t[r],n))return!0;return!1}function eS(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function tS(e){for(let t=0;t<e.length;t++){let n=e[t];if(iI(n))return t}return e.length}function nS(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 rS(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function kv(e,t){return e?":not("+t.trim()+")":t}function iS(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!ln(s)&&(t+=kv(o,i),i=""),r=s,o=o||!ln(r);n++}return i!==""&&(t+=kv(o,i)),t}function oS(e){return e.map(iS).join(",")}function sS(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!ln(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var un={};function aS(e,t){return e.createText(t)}function cS(e,t,n){e.setValue(t,n)}function lS(e,t){return e.createComment(KI(t))}function Vy(e,t,n){return e.createElement(t,n)}function Zc(e,t,n,r,i){e.insertBefore(t,n,r,i)}function By(e,t,n){e.appendChild(t,n)}function Pv(e,t,n,r,i){r!==null?Zc(e,t,n,r,i):By(e,t,n)}function uS(e,t,n){e.removeChild(null,t,n)}function dS(e,t,n){e.setAttribute(t,"style",n)}function fS(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Uy(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&rI(e,t,r),i!==null&&fS(e,t,i),o!==null&&dS(e,t,o)}function xp(e,t,n,r,i,o,s,a,c,l,u){let d=Le+r,p=d+i,f=pS(d,p),g=typeof l=="function"?l():l;return f[B]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,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 o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:g,incompleteFirstPass:!1,ssrId:u}}function pS(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:un);return n}function hS(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=xp(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ap(e,t,n,r,i,o,s,a,c,l,u){let d=t.blueprint.slice();return d[sn]=i,d[j]=r|4|128|8|64|1024,(l!==null||e&&e[j]&2048)&&(d[j]|=2048),uf(d),d[Xe]=d[ni]=e,d[lt]=n,d[_n]=s||e&&e[_n],d[Pe]=a||e&&e[Pe],d[ti]=c||e&&e[ti]||null,d[bt]=o,d[cs]=yI(),d[Hi]=u,d[rf]=l,d[Mt]=t.type==2?e[Mt]:d,d}function gS(e,t,n){let r=cn(t,e),i=hS(n),o=e[_n].rendererFactory,s=Rp(e,Ap(e,i,null,jy(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function jy(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function $y(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Rp(e,t){return e[Gi]?e[nf][zt]=t:e[Gi]=t,e[nf]=t,t}function E(e=1){Hy(ut(),ae(),br()+e,!1)}function Hy(e,t,n,r){if(!r)if((t[j]&3)===3){let o=e.preOrderCheckHooks;o!==null&&Vc(t,o,n)}else{let o=e.preOrderHooks;o!==null&&Bc(t,o,0,n)}Er(n)}var fl=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(fl||{});function Jf(e,t,n,r){let i=q(null);try{let[o,s,a]=e.inputs[n],c=null;(s&fl.SignalBased)!==0&&(c=t[o][mt]),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,o):ny(t,c,o,r)}finally{q(i)}}var In=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(In||{}),mS;function Op(e,t){return mS(e,t)}function Ji(e,t,n,r,i){if(r!=null){let o,s=!1;an(r)?o=r:En(r)&&(s=!0,r=r[sn]);let a=Gt(r);e===0&&n!==null?i==null?By(t,n,a):Zc(t,n,a,i||null,!0):e===1&&n!==null?Zc(t,n,a,i||null,!0):e===2?uS(t,a,s):e===3&&t.destroyNode(a),o!=null&&SS(t,e,o,n,i)}}function vS(e,t){zy(e,t),t[sn]=null,t[bt]=null}function yS(e,t,n,r,i,o){r[sn]=i,r[bt]=t,pl(e,r,n,1,i,o)}function zy(e,t){t[_n].changeDetectionScheduler?.notify(9),pl(e,t,t[Pe],2,null,null)}function _S(e){let t=e[Gi];if(!t)return Pf(e[B],e);for(;t;){let n=null;if(En(t))n=t[Gi];else{let r=t[Et];r&&(n=r)}if(!n){for(;t&&!t[zt]&&t!==e;)En(t)&&Pf(t[B],t),t=t[Xe];t===null&&(t=e),En(t)&&Pf(t[B],t),n=t&&t[zt]}t=n}}function kp(e,t){let n=e[oi],r=n.indexOf(t);n.splice(r,1)}function Gy(e,t){if(si(t))return;let n=t[Pe];n.destroyNode&&pl(e,t,n,3,null,null),_S(t)}function Pf(e,t){if(si(t))return;let n=q(null);try{t[j]&=-129,t[j]|=256,t[Ft]&&Br(t[Ft]),ES(e,t),bS(e,t),t[B].type===1&&t[Pe].destroy();let r=t[gr];if(r!==null&&an(t[Xe])){r!==t[Xe]&&kp(r,t);let i=t[bn];i!==null&&i.detachView(e)}Wf(t)}finally{q(n)}}function bS(e,t){let n=e.cleanup,r=t[zi];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[zi]=null);let i=t[Un];if(i!==null){t[Un]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=t[$n];if(o!==null){t[$n]=null;for(let s of o)s.destroy()}}function ES(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof ui)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],c=o[s+1];ge(4,a,c);try{c.call(a)}finally{ge(5,a,c)}}else{ge(4,i,o);try{o.call(i)}finally{ge(5,i,o)}}}}}function qy(e,t,n){return DS(e,t.parent,n)}function DS(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[sn];if(vr(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Hn.None||i===Hn.Emulated)return null}return cn(r,n)}function Wy(e,t,n){return wS(e,t,n)}function CS(e,t,n){return e.type&40?cn(e,n):null}var wS=CS,Fv;function Pp(e,t,n,r){let i=qy(e,r,t),o=t[Pe],s=r.parent||t[bt],a=Wy(s,r,t);if(i!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Pv(o,i,n[c],a,!1);else Pv(o,i,n,a,!1);Fv!==void 0&&Fv(o,r,t,n,i)}function gs(e,t){if(t!==null){let n=t.type;if(n&3)return cn(t,e);if(n&4)return ep(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return gs(e,r);{let i=e[t.index];return an(i)?ep(-1,i):Gt(i)}}else{if(n&128)return gs(e,t.next);if(n&32)return Op(t,e)()||Gt(e[t.index]);{let r=Ky(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=dr(e[Mt]);return gs(i,r)}else return gs(e,t.next)}}}return null}function Ky(e,t){if(t!==null){let r=e[Mt][bt],i=t.projection;return r.projection[i]}return null}function ep(e,t){let n=Et+e+1;if(n<t.length){let r=t[n],i=r[B].firstChild;if(i!==null)return gs(r,i)}return t[mr]}function Fp(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&no(Gt(a),r),n.flags|=2),!ul(n))if(c&8)Fp(e,t,n.child,r,i,o,!1),Ji(t,e,i,a,o);else if(c&32){let l=Op(n,r),u;for(;u=l();)Ji(t,e,i,u,o);Ji(t,e,i,a,o)}else c&16?Zy(e,t,r,n,i,o):Ji(t,e,i,a,o);n=s?n.projectionNext:n.next}}function pl(e,t,n,r,i,o){Fp(n,r,e.firstChild,t,i,o,!1)}function IS(e,t,n){let r=t[Pe],i=qy(e,n,t),o=n.parent||t[bt],s=Wy(o,n,t);Zy(r,0,t,n,i,s)}function Zy(e,t,n,r,i,o){let s=n[Mt],c=s[bt].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Ji(t,e,i,u,o)}else{let l=c,u=s[Xe];vy(r)&&(l.flags|=128),Fp(e,t,l,u,i,o,!0)}}function SS(e,t,n,r,i){let o=n[mr],s=Gt(n);o!==s&&Ji(t,e,r,o,i);for(let a=Et;a<n.length;a++){let c=n[a];pl(c[B],c,e,t,r,o)}}function TS(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:In.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=In.Important),e.setStyle(n,r,i,o))}}function Yy(e,t,n,r,i){let o=br(),s=r&2;try{Er(-1),s&&t.length>Le&&Hy(e,t,Le,!1),ge(s?2:0,i,n),n(r,i)}finally{Er(o),ge(s?3:1,i,n)}}function hl(e,t,n){PS(e,t,n),(n.flags&64)===64&&FS(e,t,n)}function ws(e,t,n=cn){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function MS(e,t,n,r){let o=r.get(Cy,Dy)||n===Hn.ShadowDom,s=e.selectRootElement(t,o);return NS(s),s}function NS(e){xS(e)}var xS=()=>null;function AS(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function RS(e,t,n,r,i,o){let s=t[B];if(Up(e,s,t,n,r)){vr(e)&&kS(t,e.index);return}e.type&3&&(n=AS(n)),OS(e,t,n,r,i,o)}function OS(e,t,n,r,i,o){if(e.type&3){let s=cn(e,t);r=o!=null?o(r,e.value||"",n):r,i.setProperty(s,n,r)}else e.type&12}function kS(e,t){let n=qt(t,e);n[j]&16||(n[j]|=64)}function PS(e,t,n){let r=n.directiveStart,i=n.directiveEnd;vr(n)&&gS(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||qc(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let a=e.data[s],c=vs(t,e,s,n);if(no(c,t),o!==null&&US(t,s-r,c,a,n,o),Dn(a)){let l=qt(n.index,t);l[lt]=vs(t,e,s,n)}}}function FS(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=hv();try{Er(o);for(let a=r;a<i;a++){let c=e.data[a],l=t[a];Tc(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&LS(c,l)}}finally{Er(-1),Tc(s)}}function LS(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Lp(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];Ly(t,o.selectors,!1)&&(r??=[],Dn(o)?r.unshift(o):r.push(o))}return r}function VS(e,t,n,r,i,o){let s=cn(e,t);BS(t[Pe],s,o,e.value,n,r,i)}function BS(e,t,n,r,i,o,s){if(o==null)e.removeAttribute(t,i,n);else{let a=s==null?Jr(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function US(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Jf(r,n,c,l)}}function Vp(e,t,n,r,i){let o=Le+n,s=t[B],a=i(s,t,e,r,n);t[o]=a,Ki(e,!0);let c=e.type===2;return c?(Uy(t[Pe],a,e),(ov()===0||qi(e))&&no(a,t),sv()):no(a,t),Ac()&&(!c||!ul(e))&&Pp(s,t,a,e),e}function Bp(e){let t=e;return bf()?Ef():(t=t.parent,Ki(t,!1)),t}function jS(e,t){let n=e[ti];if(!n)return;n.get(Lt,null)?.(t)}function Up(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];Jf(d,n[l],u,i),a=!0}if(o)for(let c of o){let l=n[c],u=t.data[c];Jf(u,l,r,i),a=!0}return a}function $S(e,t){let n=qt(t,e),r=n[B];HS(r,n);let i=n[sn];i!==null&&n[Hi]===null&&(n[Hi]=wy(i,n[ti])),ge(18),jp(r,n,n[lt]),ge(19,n[lt])}function HS(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function jp(e,t,n){Nc(t);try{let r=e.viewQuery;r!==null&&Zf(1,r,n);let i=e.template;i!==null&&Yy(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[bn]?.finishViewCreation(e),e.staticContentQueries&&Iy(e,t),e.staticViewQueries&&Zf(2,e.viewQuery,n);let o=e.components;o!==null&&zS(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[j]&=-5,xc()}}function zS(e,t){for(let n=0;n<t.length;n++)$S(e,t[n])}function Qy(e,t,n,r){let i=q(null);try{let o=t.tView,a=e[j]&4096?4096:16,c=Ap(e,o,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[gr]=l;let u=e[bn];return u!==null&&(c[bn]=u.createEmbeddedView(o)),jp(o,c,n),c}finally{q(i)}}function tp(e,t){return!t||t.firstChild===null||vy(e)}var Lv=!1,GS=new T("");function ys(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Gt(o)),an(o)&&Xy(o,r);let s=n.type;if(s&8)ys(e,t,n.child,r);else if(s&32){let a=Op(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Ky(t,n);if(Array.isArray(a))r.push(...a);else{let c=dr(t[Mt]);ys(c[B],c,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function Xy(e,t){for(let n=Et;n<e.length;n++){let r=e[n],i=r[B].firstChild;i!==null&&ys(r[B],r,i,t)}e[mr]!==e[sn]&&t.push(e[mr])}function Jy(e){if(e[ii]!==null){for(let t of e[ii])t.impl.addSequence(t);e[ii].length=0}}var e_=[];function qS(e){return e[Ft]??WS(e)}function WS(e){let t=e_.pop()??Object.create(ZS);return t.lView=e,t}function KS(e){e.lView[Ft]!==e&&(e.lView=null,e_.push(e))}var ZS=Y(C({},tr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{_r(e.lView)},consumerOnSignalRead(){this.lView[Ft]=this}});function YS(e){let t=e[Ft]??Object.create(QS);return t.lView=e,t}var QS=Y(C({},tr),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=dr(e.lView);for(;t&&!t_(t[B]);)t=dr(t);t&&df(t)},consumerOnSignalRead(){this.lView[Ft]=this}});function t_(e){return e.type!==2}function n_(e){if(e[$n]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[$n])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[j]&8192)}}var XS=100;function $p(e,t=0){let r=e[_n].rendererFactory,i=!1;i||r.begin?.();try{JS(e,t)}finally{i||r.end?.()}}function JS(e,t){let n=Cf();try{Zi(!0),np(e,t);let r=0;for(;us(e);){if(r===XS)throw new I(103,!1);r++,np(e,1)}}finally{Zi(n)}}function r_(e,t){Df(t?ds.Exhaustive:ds.OnlyDirtyViews);try{$p(e)}finally{Df(ds.Off)}}function eT(e,t,n,r){if(si(t))return;let i=t[j],o=!1,s=!1;Nc(t);let a=!0,c=null,l=null;o||(t_(e)?(l=qS(t),c=nr(l)):Aa()===null?(a=!1,l=YS(t),c=nr(l)):t[Ft]&&(Br(t[Ft]),t[Ft]=null));try{uf(t),dv(e.bindingStartIndex),n!==null&&Yy(e,t,n,2,r);let u=(i&3)===3;if(!o)if(u){let f=e.preOrderCheckHooks;f!==null&&Vc(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Bc(t,f,0,null),Of(t,0)}if(s||tT(t),n_(t),i_(t,0),e.contentQueries!==null&&Iy(e,t),!o)if(u){let f=e.contentCheckHooks;f!==null&&Vc(t,f)}else{let f=e.contentHooks;f!==null&&Bc(t,f,1),Of(t,1)}rT(e,t);let d=e.components;d!==null&&s_(t,d,0);let p=e.viewQuery;if(p!==null&&Zf(2,p,r),!o)if(u){let f=e.viewCheckHooks;f!==null&&Vc(t,f)}else{let f=e.viewHooks;f!==null&&Bc(t,f,2),Of(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ec]){for(let f of t[Ec])f();t[Ec]=null}o||(Jy(t),t[j]&=-73)}catch(u){throw o||_r(t),u}finally{l!==null&&(Vr(l,c),a&&KS(l)),xc()}}function i_(e,t){for(let n=_y(e);n!==null;n=by(n))for(let r=Et;r<n.length;r++){let i=n[r];o_(i,t)}}function tT(e){for(let t=_y(e);t!==null;t=by(t)){if(!(t[j]&2))continue;let n=t[oi];for(let r=0;r<n.length;r++){let i=n[r];df(i)}}}function nT(e,t,n){ge(18);let r=qt(t,e);o_(r,n),ge(19,r[lt])}function o_(e,t){Cc(e)&&np(e,t)}function np(e,t){let r=e[B],i=e[j],o=e[Ft],s=!!(t===0&&i&16);if(s||=!!(i&64&&t===0),s||=!!(i&1024),s||=!!(o?.dirty&&Ti(o)),s||=!1,o&&(o.dirty=!1),e[j]&=-9217,s)eT(r,e,r.template,e[lt]);else if(i&8192){let a=q(null);try{n_(e),i_(e,1);let c=r.components;c!==null&&s_(e,c,1),Jy(e)}finally{q(a)}}}function s_(e,t,n){for(let r=0;r<t.length;r++)nT(e,t[r],n)}function rT(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Er(~i);else{let o=i,s=n[++r],a=n[++r];pv(s,o);let c=t[o];ge(24,c),a(2,c),ge(25,c)}}}finally{Er(-1)}}function Hp(e,t){let n=Cf()?64:1088;for(e[_n].changeDetectionScheduler?.notify(t);e;){e[j]|=n;let r=dr(e);if(Wi(e)&&!r)return e;e=r}return null}function a_(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function c_(e,t,n,r=!0){let i=t[B];if(iT(i,t,e,n),r){let s=ep(n,e),a=t[Pe],c=a.parentNode(e[mr]);c!==null&&yS(i,e[bt],a,t,c,s)}let o=t[Hi];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function rp(e,t){if(e.length<=Et)return;let n=Et+t,r=e[n];if(r){let i=r[gr];i!==null&&i!==e&&kp(i,r),t>0&&(e[n-1][zt]=r[zt]);let o=os(e,Et+t);vS(r[B],r);let s=o[bn];s!==null&&s.detachView(o[B]),r[Xe]=null,r[zt]=null,r[j]&=-129}return r}function iT(e,t,n,r){let i=Et+r,o=n.length;r>0&&(n[i-1][zt]=t),r<o-Et?(t[zt]=n[i],Kd(n,Et+r,t)):(n.push(t),t[zt]=null),t[Xe]=n;let s=t[gr];s!==null&&n!==s&&l_(s,t);let a=t[bn];a!==null&&a.insertView(e),wc(t),t[j]|=128}function l_(e,t){let n=e[oi],r=t[Xe];if(En(r))e[j]|=2;else{let i=r[Xe][Mt];t[Mt]!==i&&(e[j]|=2)}n===null?e[oi]=[t]:n.push(t)}var Cr=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[B];return ys(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[lt]}set context(t){this._lView[lt]=t}get destroyed(){return si(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Xe];if(an(t)){let n=t[ls],r=n?n.indexOf(this):-1;r>-1&&(rp(t,r),os(n,r))}this._attachedToViewContainer=!1}Gy(this._lView[B],this._lView)}onDestroy(t){ff(this._lView,t)}markForCheck(){Hp(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[j]&=-129}reattach(){wc(this._lView),this._lView[j]|=128}detectChanges(){this._lView[j]|=1024,$p(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Wi(this._lView),n=this._lView[gr];n!==null&&!t&&kp(n,this._lView),zy(this._lView[B],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=t;let n=Wi(this._lView),r=this._lView[gr];r!==null&&!n&&l_(r,this._lView),wc(this._lView)}};var Sn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=oT;constructor(n,r,i){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){let o=Qy(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new Cr(o)}}return e})();function oT(){return gl(dt(),ae())}function gl(e,t){return e.type&4?new Sn(t,e,ao(e,t)):null}function co(e,t,n,r,i){let o=e.data[t];if(o===null)o=sT(e,t,n,r,i),fv()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=av();o.injectorIndex=s===null?-1:s.injectorIndex}return Ki(o,!0),o}function sT(e,t,n,r,i){let o=_f(),s=bf(),a=s?o:o&&o.parent,c=e.data[t]=cT(e,a,n,t,r,i);return aT(e,c,o,s),c}function aT(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 cT(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return mf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,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}}var cH=new RegExp(`^(\\d+)*(${DI}|${EI})*(.*)`);var lT=()=>null;function ip(e,t){return lT(e,t)}var u_=class{},ml=class{},op=class{resolveComponentFactory(t){throw new I(917,!1)}},Is=class{static NULL=new op},Tn=class{},Gn=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>uT()}return e})();function uT(){let e=ae(),t=dt(),n=qt(t.index,e);return(En(n)?n:e)[Pe]}var d_=(()=>{class e{static \u0275prov=M({token:e,providedIn:"root",factory:()=>null})}return e})();var jc={},sp=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let i=this.injector.get(t,jc,r);return i!==jc||n===jc?i:this.parentInjector.get(t,n,r)}};function Yc(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=Fd(i,a);else if(o==2){let c=a,l=t[++s];r=Fd(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function de(e,t=0){let n=ae();if(n===null)return F(e,t);let r=dt();return hy(r,n,rt(e),t)}function f_(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}pT(e,t,n,a,o,c,l)}o!==null&&r!==null&&dT(n,r,o)}function dT(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new I(-301,!1);r.push(t[i],o)}}function fT(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function pT(e,t,n,r,i,o,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let f=r[p];!c&&Dn(f)&&(c=!0,fT(e,n,p)),Gf(qc(n,t),e,f.type)}_T(n,e.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=$y(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=to(n.mergedAttrs,f.hostAttrs),gT(e,n,t,d,f),yT(d,f,i),s!==null&&s.has(f)){let[m,v]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,v+n.directiveStart])}else(o===null||!o.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let g=f.type.prototype;!l&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}hT(e,n,o)}function hT(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Vv(0,t,i,r),Vv(1,t,i,r),Uv(t,r,!1);else{let o=n.get(i);Bv(0,t,o,r),Bv(1,t,o,r),Uv(t,r,!0)}}}function Vv(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),p_(t,o)}}function Bv(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),p_(t,s)}}function p_(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Uv(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||Np(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&&i.hasOwnProperty(c)){let l=i[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&o.hasOwnProperty(c)){let l=o[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function gT(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=ur(i.type,!0)),s=new ui(o,Dn(i),de,null);e.blueprint[r]=s,n[r]=s,mT(e,t,r,$y(e,n,i.hostVars,un),i)}function mT(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;vT(s)!=a&&s.push(a),s.push(n,r,o)}}function vT(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function yT(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Dn(t)&&(n[""]=e)}}function _T(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function zp(e,t,n,r,i,o,s,a){let c=t[B],l=c.consts,u=yr(l,s),d=co(c,e,n,r,u);return o&&f_(c,t,d,yr(l,a),i),d.mergedAttrs=to(d.mergedAttrs,d.attrs),d.attrs!==null&&Yc(d,d.attrs,!1),d.mergedAttrs!==null&&Yc(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Gp(e,t){sy(e,t),of(t)&&e.queries.elementEnd(t)}function bT(e,t,n,r,i,o){let s=t.consts,a=yr(s,i),c=co(t,e,n,r,a);if(c.mergedAttrs=to(c.mergedAttrs,c.attrs),o!=null){let l=yr(s,o);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Yc(c,c.attrs,!1),c.mergedAttrs!==null&&Yc(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function qp(e){return g_(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function h_(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 g_(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function ET(e,t,n){return e[t]=n}function ro(e,t,n){if(n===un)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function m_(e,t,n,r){let i=ro(e,t,n);return ro(e,t+1,r)||i}function Ff(e,t,n){return function r(i){let o=vr(e)?qt(e.index,t):t;Hp(o,5);let s=t[lt],a=jv(t,s,n,i),c=r.__ngNextListenerFn__;for(;c;)a=jv(t,s,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function jv(e,t,n,r){let i=q(null);try{return ge(6,t,n),n(r)!==!1}catch(o){return jS(e,o),!1}finally{ge(7,t,n),q(i)}}function DT(e,t,n,r,i,o,s,a){let c=qi(e),l=!1,u=null;if(!r&&c&&(u=CT(t,n,o,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=cn(e,n),p=r?r(d):d;wI(n,p,o,a);let f=i.listen(p,o,a),g=r?m=>r(Gt(m[e.index])):e.index;v_(g,t,n,o,a,f,!1)}return l}function CT(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=t[zi],c=i[o+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(o+=2)}return null}function v_(e,t,n,r,i,o,s){let a=t.firstCreatePass?hf(t):null,c=pf(n),l=c.length;c.push(i,o),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function $v(e,t,n,r,i,o){let s=t[n],a=t[B],l=a.data[n].outputs[r],d=s[l].subscribe(o);v_(e.index,a,t,i,o,d,!0)}var ap=Symbol("BINDING");var Qc=class extends Is{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=hr(t);return new io(n,this.ngModule)}};function wT(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&fl.SignalBased)!==0};return i&&(o.transform=i),o})}function IT(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ST(e,t,n){let r=t instanceof Ke?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new sp(n,r):n}function TT(e){let t=e.get(Tn,null);if(t===null)throw new I(407,!1);let n=e.get(d_,null),r=e.get(nn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function MT(e,t){let n=y_(e);return Vy(t,n,n==="svg"?sf:n==="math"?Jm:null)}function y_(e){return(e.selectors[0][0]||"div").toLowerCase()}var io=class extends ml{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=wT(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=IT(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=oS(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,i,o,s){ge(22);let a=q(null);try{let c=this.componentDef,l=NT(r,c,s,o),u=ST(c,i||this.ngModule,t),d=TT(u),p=d.rendererFactory.createRenderer(null,c),f=r?MS(p,r,c.encapsulation,u):MT(c,p),g=s?.some(Hv)||o?.some(y=>typeof y!="function"&&y.bindings.some(Hv)),m=Ap(null,l,null,512|jy(c),null,null,d,p,u,null,wy(f,u,!0));m[Le]=f,Nc(m);let v=null;try{let y=zp(Le,m,2,"#host",()=>l.directiveRegistry,!0,0);f&&(Uy(p,f,y),no(f,m)),hl(l,m,y),Sp(l,y,m),Gp(l,y),n!==void 0&&AT(y,this.ngContentSelectors,n),v=qt(y.index,m),m[lt]=v[lt],jp(l,m,null)}catch(y){throw v!==null&&Wf(v),Wf(m),y}finally{ge(23),xc()}return new Xc(this.componentType,m,!!g)}finally{q(a)}}};function NT(e,t,n,r){let i=e?["ng-version","20.2.1"]:sS(t.selectors[0]),o=null,s=null,a=0;if(n)for(let u of n)a+=u[ap].requiredVars,u.create&&(u.targetIdx=0,(o??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[ap].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(o??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=Xd(d);c.push(p)}return xp(0,null,xT(o,s),1,a,c,null,null,null,[i],null)}function xT(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 Hv(e){let t=e[ap].kind;return t==="input"||t==="twoWay"}var Xc=class extends u_{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Dc(n[B],Le),this.location=ao(this._tNode,n),this.instance=qt(this._tNode.index,n)[lt],this.hostView=this.changeDetectorRef=new Cr(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 i=this._rootLView,o=Up(r,i[B],i,t,n);this.previousInputValues.set(t,n);let s=qt(r.index,i);Hp(s,1)}get injector(){return new li(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function AT(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var dn=(()=>{class e{static __NG_ELEMENT_ID__=RT}return e})();function RT(){let e=dt();return b_(e,ae())}var OT=dn,__=class extends OT{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ao(this._hostTNode,this._hostLView)}get injector(){return new li(this._hostTNode,this._hostLView)}get parentInjector(){let t=Dp(this._hostTNode,this._hostLView);if(cy(t)){let n=zc(t,this._hostLView),r=Hc(t),i=n[B].data[r+8];return new li(i,n)}else return new li(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=zv(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Et}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=ip(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,tp(this._hostTNode,s)),a}createComponent(t,n,r,i,o,s,a){let c=t&&!Z0(t),l;if(c)l=n;else{let v=n||{};l=v.index,r=v.injector,i=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef,s=v.directives,a=v.bindings}let u=c?t:new io(hr(t)),d=r||this.parentInjector;if(!o&&u.ngModule==null){let y=(c?d:this.parentInjector).get(Ke,null);y&&(o=y)}let p=hr(u.componentType??{}),f=ip(this._lContainer,p?.id??null),g=f?.firstChild??null,m=u.create(d,i,g,o,s,a);return this.insertImpl(m.hostView,l,tp(this._hostTNode,f)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(tv(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=i[Xe],l=new __(c,c[bt],c[Xe]);l.detach(l.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return c_(s,i,o,r),t.attachToViewContainerRef(),Kd(Lf(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=zv(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=rp(this._lContainer,n);r&&(os(Lf(this._lContainer),n),Gy(r[B],r))}detach(t){let n=this._adjustIndex(t,-1),r=rp(this._lContainer,n);return r&&os(Lf(this._lContainer),n)!=null?new Cr(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zv(e){return e[ls]}function Lf(e){return e[ls]||(e[ls]=[])}function b_(e,t){let n,r=t[e.index];return an(r)?n=r:(n=a_(r,t,null,e),t[e.index]=n,Rp(t,n)),PT(n,t,e,r),new __(n,e,t)}function kT(e,t){let n=e[Pe],r=n.createComment(""),i=cn(t,e),o=n.parentNode(i);return Zc(n,o,r,n.nextSibling(i),!1),r}var PT=VT,FT=()=>!1;function LT(e,t,n){return FT(e,t,n)}function VT(e,t,n,r){if(e[mr])return;let i;n.type&8?i=Gt(r):i=kT(t,n),e[mr]=i}var cp=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},lp=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,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new e(i)}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++)Wp(t,n).matches!==null&&this.queries[n].setDirty()}},up=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=qT(t):this.predicate=t}},dp=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 i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}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)}},fp=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 i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,BT(n,o)),this.matchTNodeWithReadOption(t,n,Uc(n,t,o,!1,!1))}else r===Sn?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Uc(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===ft||i===dn||i===Sn&&n.type&4)this.addMatch(n.index,-2);else{let o=Uc(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function BT(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 UT(e,t){return e.type&11?ao(e,t):e.type&4?gl(e,t):null}function jT(e,t,n,r){return n===-1?UT(t,e):n===-2?$T(e,t,r):vs(e,e[B],n,t)}function $T(e,t,n){if(n===ft)return ao(t,e);if(n===Sn)return gl(t,e);if(n===dn)return b_(t,e)}function E_(e,t,n,r){let i=t[bn].queries[r];if(i.matches===null){let o=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=o[l];a.push(jT(t,u,s[c+1],n.metadata.read))}}i.matches=a}return i.matches}function pp(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let s=E_(e,t,i,n);for(let a=0;a<o.length;a+=2){let c=o[a];if(c>0)r.push(s[a/2]);else{let l=o[a+1],u=t[-c];for(let d=Et;d<u.length;d++){let p=u[d];p[gr]===p[Xe]&&pp(p[B],p,l,r)}if(u[oi]!==null){let d=u[oi];for(let p=0;p<d.length;p++){let f=d[p];pp(f[B],f,l,r)}}}}}return r}function HT(e,t){return e[bn].queries[t].queryList}function zT(e,t,n){let r=new Wc((n&4)===4);return iv(e,t,r,r.destroy),(t[bn]??=new lp).queries.push(new cp(r))-1}function GT(e,t,n){let r=ut();return r.firstCreatePass&&(WT(r,new up(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),zT(r,ae(),t)}function qT(e){return e.split(",").map(t=>t.trim())}function WT(e,t,n){e.queries===null&&(e.queries=new dp),e.queries.track(new fp(t,n))}function Wp(e,t){return e.queries.getByIndex(t)}function KT(e,t){let n=e[B],r=Wp(n,t);return r.crossesNgTemplate?pp(n,e,t,[]):E_(n,e,r,t)}var Gv=new Set;function Ss(e){Gv.has(e)||(Gv.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var di=class{},vl=class{};var Jc=class extends di{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Qc(this);constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n;let o=Qd(t);this._bootstrapComponents=Py(o.bootstrap),this._r3Injector=Nf(t,n,[{provide:di,useValue:this},{provide:Is,useValue:this.componentFactoryResolver},...r],jn(t),new Set(["environment"])),i&&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)}},el=class extends vl{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Jc(this.moduleType,t,[])}};var _s=class extends di{injector;componentFactoryResolver=new Qc(this);instance=null;constructor(t){super();let n=new Yr([...t.providers,{provide:di,useValue:this},{provide:Is,useValue:this.componentFactoryResolver}],t.parent||as(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ts(e,t,n=null){return new _s({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var ZT=(()=>{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=Jd(!1,n.type),i=r.length>0?Ts([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=M({token:e,providedIn:"environment",factory:()=>new e(F(Ke))})}return e})();function Be(e){return so(()=>{let t=D_(e),n=Y(C({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Cp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(ZT).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Hn.Emulated,styles:e.styles||Pt,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ss("NgStandalone"),C_(n);let r=e.dependencies;return n.directiveDefs=qv(r,YT),n.pipeDefs=qv(r,qm),n.id=JT(n),n})}function YT(e){return hr(e)||Xd(e)}function Nt(e){return so(()=>({type:e.type,bootstrap:e.bootstrap||Pt,declarations:e.declarations||Pt,imports:e.imports||Pt,exports:e.exports||Pt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function QT(e,t){if(e==null)return fr;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a,c;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,c=i[3]||null):(o=i,s=i,a=fl.None,c=null),n[o]=[r,a,c],t[o]=s}return n}function XT(e){if(e==null)return fr;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Fe(e){return so(()=>{let t=D_(e);return C_(t),t})}function Kp(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 D_(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||fr,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Pt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:QT(e.inputs,t),outputs:XT(e.outputs),debugInfo:null}}function C_(e){e.features?.forEach(t=>t(e))}function qv(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let i of n){let o=t(i);o!==null&&r.push(o)}return r}:null}function JT(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 o of r.join("|"))t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function eM(e){return Object.getPrototypeOf(e.prototype).constructor}function Wt(e){let t=eM(e.type),n=!0,r=[e];for(;t;){let i;if(Dn(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new I(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Vf(e.inputs),s.declaredInputs=Vf(e.declaredInputs),s.outputs=Vf(e.outputs);let a=i.hostBindings;a&&oM(e,a);let c=i.viewQuery,l=i.contentQueries;if(c&&rM(e,c),l&&iM(e,l),tM(e,i),Fm(e.outputs,i.outputs),Dn(i)&&i.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(e),a===Wt&&(n=!1)}}t=Object.getPrototypeOf(t)}nM(r)}function tM(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 nM(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=to(i.hostAttrs,n=to(n,i.hostAttrs))}}function Vf(e){return e===fr?{}:e===Pt?[]:e}function rM(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function iM(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function oM(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function w_(e,t,n,r,i,o,s,a){if(n.firstCreatePass){e.mergedAttrs=to(e.mergedAttrs,e.attrs);let u=e.tView=xp(2,e,i,o,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Ki(e,!1);let c=cM(n,t,e,r);Ac()&&Pp(n,t,c,e),no(c,t);let l=a_(c,t,c,e);t[r+Le]=l,Rp(t,l),LT(l,e,t)}function sM(e,t,n,r,i,o,s,a,c,l,u){let d=n+Le,p;return t.firstCreatePass?(p=co(t,d,4,s||null,a||null),Ic()&&f_(t,e,p,yr(t.consts,l),Lp),sy(t,p)):p=t.data[d],w_(p,e,t,n,r,i,o,c),qi(p)&&hl(t,e,p),l!=null&&ws(e,p,u),p}function aM(e,t,n,r,i,o,s,a,c,l,u){let d=n+Le,p;if(t.firstCreatePass){if(p=co(t,d,4,s||null,a||null),l!=null){let f=yr(t.consts,l);p.localNames=[];for(let g=0;g<f.length;g+=2)p.localNames.push(f[g],-1)}}else p=t.data[d];return w_(p,e,t,n,r,i,o,c),l!=null&&ws(e,p,u),p}function re(e,t,n,r,i,o,s,a){let c=ae(),l=ut(),u=yr(l.consts,o);return sM(c,l,e,t,n,r,i,u,void 0,s,a),re}var cM=lM;function lM(e,t,n,r){return fs(!0),t[Pe].createComment("")}var yl=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(yl||{}),hi=new T(""),I_=!1,hp=class extends se{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Qm()&&(this.destroyRef=h(Ze,{optional:!0})??void 0,this.pendingTasks=h(Cn,{optional:!0})??void 0)}emit(t){let n=q(null);try{super.next(t)}finally{q(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof Te&&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)}})}}},Ve=hp;function S_(e){let t,n;function r(){e=ai;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Wv(e){return queueMicrotask(()=>e()),()=>{e=ai}}var Zp="isAngularZone",tl=Zp+"_ID",uM=0,De=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ve(!1);onMicrotaskEmpty=new Ve(!1);onStable=new Ve(!1);onError=new Ve(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=I_}=t;if(typeof Zone>"u")throw new I(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=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,pM(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Zp)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new I(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,dM,ai,ai);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},dM={};function Yp(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 fM(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){S_(()=>{e.callbackScheduled=!1,gp(e),e.isCheckStableRunning=!0,Yp(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),gp(e)}function pM(e){let t=()=>{fM(e)},n=uM++;e._inner=e._inner.fork({name:"angular",properties:{[Zp]:!0,[tl]:n,[tl+n]:!0},onInvokeTask:(r,i,o,s,a,c)=>{if(hM(c))return r.invokeTask(o,s,a,c);try{return Kv(e),r.invokeTask(o,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Zv(e)}},onInvoke:(r,i,o,s,a,c,l)=>{try{return Kv(e),r.invoke(o,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!gM(c)&&t(),Zv(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,gp(e),Yp(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function gp(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Kv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Zv(e){e._nesting--,Yp(e)}var nl=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ve;onMicrotaskEmpty=new Ve;onStable=new Ve;onError=new Ve;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,i){return t.apply(n,r)}};function hM(e){return T_(e,"__ignore_ng_zone__")}function gM(e){return T_(e,"__scheduler_tick__")}function T_(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Qp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),M_=[0,1,2,3],N_=(()=>{class e{ngZone=h(De);scheduler=h(nn);errorHandler=h(Ht,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){h(hi,{optional:!0})}execute(){let n=this.sequences.size>0;n&&ge(16),this.executing=!0;for(let r of M_)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}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&&ge(17)}register(n){let{view:r}=n;r!==void 0?((r[ii]??=[]).push(n),_r(r),r[j]|=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(yl.AFTER_NEXT_RENDER,n):n()}static \u0275prov=M({token:e,providedIn:"root",factory:()=>new e})}return e})(),rl=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,i,o,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=i,this.snapshot=s,this.unregisterOnDestroy=o?.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?.[ii];t&&(this.view[ii]=t.filter(n=>n!==this))}};function lo(e,t){let n=t?.injector??h(Je);return Ss("NgAfterNextRender"),vM(e,n,t,!0)}function mM(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function vM(e,t,n,r){let i=t.get(Qp);i.impl??=t.get(N_);let o=t.get(hi,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Ze):null,a=t.get(Qi,null,{optional:!0}),c=new rl(i.impl,mM(e),a?.view,r,s,o?.snapshot(null));return i.impl.register(c),c}var Xp=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Jp=new T("");function Tr(e){return!!e&&typeof e.then=="function"}function eh(e){return!!e&&typeof e.subscribe=="function"}var x_=new T("");var th=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=h(x_,{optional:!0})??[];injector=h(Je);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=it(this.injector,i);if(Tr(o))n.push(o);else if(eh(o)){let s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_l=new T("");function A_(){td(()=>{let e="";throw new I(600,e)})}function R_(e){return e.isBoundToModule}var yM=10;var fn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=h(Lt);afterRenderManager=h(Qp);zonelessEnabled=h(ps);rootEffectScheduler=h(hs);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new se;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=h(Cn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(X(n=>!n))}constructor(){h(hi,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=h(Ke);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=Je.NULL){return this._injector.get(De).run(()=>{ge(10);let s=n instanceof ml;if(!this._injector.get(th).done){let g="";throw new I(405,g)}let c;s?c=n:c=this._injector.get(Is).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=R_(c)?void 0:this._injector.get(di),u=r||c.selector,d=c.create(i,[],u,l),p=d.location.nativeElement,f=d.injector.get(Jp,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),ms(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),ge(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ge(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(yl.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new I(101,!1);let n=q(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,q(n),this.afterTick.next(),ge(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Tn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<yM;)ge(14),this.synchronizeOnce(),ge(15)}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:i}of this.allViews){if(!r&&!us(i))continue;let o=r&&!this.zonelessEnabled?0:1;$p(i,o),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})=>us(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;ms(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(i){this.internalErrorHandler(i)}this.components.push(n),this._injector.get(_l,[]).forEach(i=>i(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),()=>ms(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new I(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=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ms(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Kt(e,t,n,r){let i=ae(),o=Sc();if(ro(i,o,t)){let s=ut(),a=Mf();VS(a,i,e,t,n,r)}return Kt}var nh=new T("",{providedIn:"root",factory:()=>!1}),rh=new T("",{providedIn:"root",factory:()=>_M}),_M=4e3;var gH=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function N(e,t,n){let r=ae(),i=Sc();if(ro(r,i,t)){let o=ut(),s=Mf();RS(s,r,e,t,r[Pe],n)}return N}function Yv(e,t,n,r,i){Up(t,e,n,i?"class":"style",r)}function b(e,t,n,r){let i=ae(),o=i[B],s=e+Le,a=o.firstCreatePass?zp(s,i,2,t,Lp,Ic(),n,r):o.data[s];if(Vp(a,i,e,t,O_),qi(a)){let c=i[B];hl(c,i,a),Sp(c,a,i)}return r!=null&&ws(i,a),b}function _(){let e=ut(),t=dt(),n=Bp(t);return e.firstCreatePass&&Gp(e,n),vf(n)&&yf(),gf(),n.classesWithoutHost!=null&&tI(n)&&Yv(e,n,ae(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&nI(n)&&Yv(e,n,ae(),n.stylesWithoutHost,!1),_}function Ce(e,t,n,r){return b(e,t,n,r),_(),Ce}function qn(e,t,n,r){let i=ae(),o=i[B],s=e+Le,a=o.firstCreatePass?bT(s,o,2,t,n,r):o.data[s];return Vp(a,i,e,t,O_),r!=null&&ws(i,a),qn}function Wn(){let e=dt(),t=Bp(e);return vf(t)&&yf(),gf(),Wn}function uo(e,t,n,r){return qn(e,t,n,r),Wn(),uo}var O_=(e,t,n,r,i)=>(fs(!0),Vy(t[Pe],r,bv()));function Mr(e,t,n){let r=ae(),i=r[B],o=e+Le,s=i.firstCreatePass?zp(o,r,8,"ng-container",Lp,Ic(),t,n):i.data[o];if(Vp(s,r,e,"ng-container",bM),qi(s)){let a=r[B];hl(a,r,s),Sp(a,s,r)}return n!=null&&ws(r,s),Mr}function Nr(){let e=ut(),t=dt(),n=Bp(t);return e.firstCreatePass&&Gp(e,n),Nr}var bM=(e,t,n,r,i)=>(fs(!0),lS(t[Pe],""));function Dt(){return ae()}var ci=void 0;function EM(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var DM=["en",[["a","p"],["AM","PM"],ci],[["AM","PM"],ci,ci],[["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"]],ci,[["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"]],ci,[["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 a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ci,"{1} 'at' {0}",ci],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",EM],Bf={};function Vt(e){let t=CM(e),n=Qv(t);if(n)return n;let r=t.split("-")[0];if(n=Qv(r),n)return n;if(r==="en")return DM;throw new I(701,!1)}function Qv(e){return e in Bf||(Bf[e]=rn.ng&&rn.ng.common&&rn.ng.common.locales&&rn.ng.common.locales[e]),Bf[e]}var Ue=(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})(Ue||{});function CM(e){return e.toLowerCase().replace(/_/g,"-")}var Ms="en-US";var wM=Ms;function k_(e){typeof e=="string"&&(wM=e.toLowerCase().replace(/_/g,"-"))}function ce(e,t,n){let r=ae(),i=ut(),o=dt();return IM(i,r,r[Pe],o,e,t,n),ce}function IM(e,t,n,r,i,o,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Ff(r,t,o),DT(r,e,t,s,n,i,o,c)&&(a=!1)),a){let l=r.outputs?.[i],u=r.hostDirectiveOutputs?.[i];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=Ff(r,t,o),$v(r,t,p,f,i,c)}if(l&&l.length)for(let d of l)c??=Ff(r,t,o),$v(r,t,d,i,i,c)}}function oe(e=1){return _v(e)}function SM(e,t){let n=null,r=eS(e);for(let i=0;i<t.length;i++){let o=t[i];if(o==="*"){n=i;continue}if(r===null?Ly(e,o,!0):rS(r,o))return i}return n}function ih(e){let t=ae()[Mt][bt];if(!t.projection){let n=e?e.length:1,r=t.projection=Hm(n,null),i=r.slice(),o=t.child;for(;o!==null;){if(o.type!==128){let s=e?SM(o,e):0;s!==null&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o)}o=o.next}}}function oh(e,t=0,n,r,i,o){let s=ae(),a=ut(),c=r?e+1:null;c!==null&&aM(s,a,c,r,i,o,null,n);let l=co(a,Le+e,16,null,n||null);l.projection===null&&(l.projection=t),Ef();let d=!s[Hi]||mf();s[Mt][bt].projection[l.projection]===null&&c!==null?TM(s,a,c):d&&!ul(l)&&IS(a,s,l)}function TM(e,t,n){let r=Le+n,i=t.data[r],o=e[r],s=ip(o,i.tView.ssrId),a=Qy(e,i,void 0,{dehydratedView:s});c_(o,a,0,tp(i,s))}function Mn(e,t,n){GT(e,t,n)}function Nn(e){let t=ae(),n=ut(),r=If();Mc(r+1);let i=Wp(n,r);if(e.dirty&&ev(t)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=KT(t,r);e.reset(o,gI),e.notifyOnChanges()}return!0}return!1}function xn(){return HT(ae(),If())}function sh(e){let t=cv();return cf(t,Le+e)}function Lc(e,t){return e<<17|t<<2}function fi(e){return e>>17&32767}function MM(e){return(e&2)==2}function NM(e,t){return e&131071|t<<17}function mp(e){return e|2}function oo(e){return(e&131068)>>2}function Uf(e,t){return e&-131069|t<<2}function xM(e){return(e&1)===1}function vp(e){return e|1}function AM(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=fi(s),c=oo(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||$i(d,u)>0)&&(l=!0)}else u=n;if(i)if(c!==0){let p=fi(e[a+1]);e[r+1]=Lc(p,a),p!==0&&(e[p+1]=Uf(e[p+1],r)),e[a+1]=NM(e[a+1],r)}else e[r+1]=Lc(a,0),a!==0&&(e[a+1]=Uf(e[a+1],r)),a=r;else e[r+1]=Lc(c,0),a===0?a=r:e[c+1]=Uf(e[c+1],r),c=r;l&&(e[r+1]=mp(e[r+1])),Xv(e,u,r,!0),Xv(e,u,r,!1),RM(t,u,e,r,o),s=Lc(a,c),o?t.classBindings=s:t.styleBindings=s}function RM(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&$i(o,t)>=0&&(n[r+1]=vp(n[r+1]))}function Xv(e,t,n,r){let i=e[n+1],o=t===null,s=r?fi(i):oo(i),a=!1;for(;s!==0&&(a===!1||o);){let c=e[s],l=e[s+1];OM(c,t)&&(a=!0,e[s+1]=r?vp(l):mp(l)),s=r?fi(l):oo(l)}a&&(e[n+1]=r?mp(i):vp(i))}function OM(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?$i(e,t)>=0:!1}function fo(e,t,n){return P_(e,t,n,!1),fo}function Ye(e,t){return P_(e,t,null,!0),Ye}function P_(e,t,n,r){let i=ae(),o=ut(),s=wf(2);if(o.firstUpdatePass&&PM(o,e,s,r),t!==un&&ro(i,s,t)){let a=o.data[br()];UM(o,a,i,i[Pe],e,i[s+1]=jM(t,n),r,s)}}function kM(e,t){return t>=e.expandoStartIndex}function PM(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[br()],s=kM(e,n);$M(o,r)&&t===null&&!s&&(t=!1),t=FM(i,o,t,r),AM(i,o,t,n,s,r)}}function FM(e,t,n,r){let i=gv(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=jf(null,e,t,n,r),n=bs(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=jf(i,e,t,n,r),o===null){let c=LM(e,t,r);c!==void 0&&Array.isArray(c)&&(c=jf(null,e,t,c[1],r),c=bs(c,t.attrs,r),VM(e,t,r,c))}else o=BM(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function LM(e,t,n){let r=n?t.classBindings:t.styleBindings;if(oo(r)!==0)return e[fi(r)]}function VM(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[fi(i)]=r}function BM(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=bs(r,s,n)}return bs(r,t.attrs,n)}function jf(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=bs(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function bs(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Gm(e,s,n?!0:t[++o]))}return e===void 0?null:e}function UM(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=xM(l)?Jv(c,t,n,i,oo(l),s):void 0;if(!il(u)){il(o)||MM(l)&&(o=Jv(c,null,n,i,a,s));let d=af(br(),n);TS(r,s,d,i,o)}}function Jv(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let c=e[i],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[i+1];p===un&&(p=d?Pt:void 0);let f=d?bc(p,r):u===r?p:void 0;if(l&&!il(f)&&(f=bc(c,r)),il(f)&&(a=f,s))return a;let g=e[i+1];i=s?fi(g):oo(g)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=bc(c,r))}return a}function il(e){return e!==void 0}function jM(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=jn(Tp(e)))),e}function $M(e,t){return(e.flags&(t?8:16))!==0}function w(e,t=""){let n=ae(),r=ut(),i=e+Le,o=r.firstCreatePass?co(r,i,1,t,null):r.data[i],s=HM(r,n,o,t,e);n[i]=s,Ac()&&Pp(r,n,s,o),Ki(o,!1)}var HM=(e,t,n,r,i)=>(fs(!0),aS(t[Pe],r));function zM(e,t,n,r=""){return ro(e,Sc(),n)?t+Jr(n)+r:un}function GM(e,t,n,r,i,o=""){let s=uv(),a=m_(e,s,n,i);return wf(2),a?t+Jr(n)+r+Jr(i)+o:un}function ie(e){return Zt("",e),ie}function Zt(e,t,n){let r=ae(),i=zM(r,e,t,n);return i!==un&&F_(r,br(),i),Zt}function po(e,t,n,r,i){let o=ae(),s=GM(o,e,t,n,r,i);return s!==un&&F_(o,br(),s),po}function F_(e,t,n){let r=af(t,e);cS(e[Pe],r,n)}function qM(e,t,n){let r=ut();if(r.firstCreatePass){let i=Dn(e);yp(n,r.data,r.blueprint,i,!0),yp(t,r.data,r.blueprint,i,!1)}}function yp(e,t,n,r,i){if(e=rt(e),Array.isArray(e))for(let o=0;o<e.length;o++)yp(e[o],t,n,r,i);else{let o=ut(),s=ae(),a=dt(),c=Zr(e)?e:rt(e.provide),l=tf(e),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Zr(e)||!e.multi){let f=new ui(l,i,de,null),g=Hf(c,t,i?u:u+p,d);g===-1?(Gf(qc(a,s),o,c),$f(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=Hf(c,t,u+p,d),g=Hf(c,t,u,u+p),m=f>=0&&n[f],v=g>=0&&n[g];if(i&&!v||!i&&!m){Gf(qc(a,s),o,c);let y=ZM(i?KM:WM,n.length,i,r,l,e);!i&&v&&(n[g].providerFactory=y),$f(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(y),s.push(y)}else{let y=L_(n[i?g:f],l,!i&&r);$f(o,e,f>-1?f:g,y)}!i&&r&&v&&n[g].componentProviders++}}}function $f(e,t,n,r){let i=Zr(t),o=Ym(t);if(i||o){let c=(o?rt(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function L_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Hf(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function WM(e,t,n,r,i){return _p(this.multi,[])}function KM(e,t,n,r,i){let o=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=vs(r,r[B],this.providerFactory.index,i);s=c.slice(0,a),_p(o,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],_p(o,s);return s}function _p(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function ZM(e,t,n,r,i,o){let s=new ui(e,n,de,null);return s.multi=[],s.index=t,s.componentProviders=0,L_(s,i,r&&!n),s}function pn(e,t=[]){return n=>{n.providersResolver=(r,i)=>qM(r,i?i(e):e,t)}}function YM(e,t){let n=e[t];return n===un?void 0:n}function QM(e,t,n,r,i,o,s){let a=t+n;return m_(e,a,i,o)?ET(e,a+2,s?r.call(s,i,o):r(i,o)):YM(e,a+2)}function Ns(e,t){let n=ut(),r,i=e+Le;n.firstCreatePass?(r=XM(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=ur(r.type,!0)),s,a=yt(de);try{let c=Gc(!1),l=o();return Gc(c),lf(n,ae(),i,l),l}finally{yt(a)}}function XM(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function xs(e,t,n,r){let i=e+Le,o=ae(),s=cf(o,i);return JM(o,i)?QM(o,lv(),t,s.transform,n,r,s):s.transform(n,r)}function JM(e,t){return e[B].data[t].pure}function ah(e,t){return gl(e,t)}var ol=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},ch=(()=>{class e{compileModuleSync(n){return new el(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=Qd(n),o=Py(i.declarations).reduce((s,a)=>{let c=hr(a);return c&&s.push(new io(c)),s},[]);return new ol(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var eN=(()=>{class e{zone=h(De);changeDetectionScheduler=h(nn);applicationRef=h(fn);applicationErrorHandler=h(Lt);_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=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),V_=new T("",{factory:()=>!1});function lh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new De(Y(C({},dh()),{scheduleInRootZone:n})),[{provide:De,useFactory:e},{provide:pr,multi:!0,useFactory:()=>{let r=h(eN,{optional:!0});return()=>r.initialize()}},{provide:pr,multi:!0,useFactory:()=>{let r=h(tN);return()=>{r.initialize()}}},t===!0?{provide:Af,useValue:!0}:[],{provide:Rf,useValue:n??I_},{provide:Lt,useFactory:()=>{let r=h(De),i=h(Ke),o;return s=>{r.runOutsideAngular(()=>{i.destroyed&&!o?setTimeout(()=>{throw s}):(o??=i.get(Ht),o.handleError(s))})}}}]}function uh(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=lh({ngZoneFactory:()=>{let i=dh(e);return i.scheduleInRootZone=n,i.shouldCoalesceEventChangeDetection&&Ss("NgZone_CoalesceEvent"),new De(i)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return ei([{provide:V_,useValue:!0},{provide:ps,useValue:!1},r])}function dh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var tN=(()=>{class e{subscription=new Te;initialized=!1;zone=h(De);pendingTasks=h(Cn);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(()=>{De.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{De.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var B_=(()=>{class e{applicationErrorHandler=h(Lt);appRef=h(fn);taskService=h(Cn);ngZone=h(De);zonelessEnabled=h(ps);tracing=h(hi,{optional:!0});disableScheduling=h(Af,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Te;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(tl):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(h(Rf,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof nl||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;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,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?Wv:S_;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(tl+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.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Wv(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}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=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function nN(){return typeof $localize<"u"&&$localize.locale||Ms}var As=new T("",{providedIn:"root",factory:()=>h(As,{optional:!0,skipSelf:!0})||nN()});function je(e){return Om(e)}function He(e,t){return ka(e,t?.equal)}var fh=class{[mt];constructor(t){this[mt]=t}destroy(){this[mt].destroy()}};function ze(e,t){let n=t?.injector??h(Je),r=t?.manualCleanup!==!0?n.get(Ze):null,i,o=n.get(Qi,null,{optional:!0}),s=n.get(nn);return o!==null?(i=oN(o.view,s,e),r instanceof rs&&r._lView===o.view&&(r=null)):i=sN(e,n.get(hs),s),i.injector=n,r!==null&&(i.onDestroyFn=r.onDestroy(()=>i.destroy())),new fh(i)}var U_=Y(C({},tr),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:ai,run(){if(this.dirty=!1,this.hasRun&&!Ti(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=nr(this),n=Zi(!1);try{this.maybeCleanup(),this.fn(e)}finally{Zi(n),Vr(this,t)}},maybeCleanup(){if(!this.cleanupFns?.length)return;let e=q(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],q(e)}}}),rN=Y(C({},U_),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Br(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),iN=Y(C({},U_),{consumerMarkedDirty(){this.view[j]|=8192,_r(this.view),this.notifier.notify(13)},destroy(){Br(this),this.onDestroyFn(),this.maybeCleanup(),this.view[$n]?.delete(this)}});function oN(e,t,n){let r=Object.create(iN);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[$n]??=new Set,e[$n].add(r),r.consumerMarkedDirty(r),r}function sN(e,t,n){let r=Object.create(rN);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}var z_=Symbol("InputSignalNode#UNSET"),CN=Y(C({},Pa),{transformFn:void 0,applyValueToInputSignal(e,t){Ni(e,t)}});function G_(e,t){let n=Object.create(CN);n.value=e,n.transformFn=t?.transform;function r(){if(Si(n),n.value===z_){let i=null;throw new I(-950,i)}return n.value}return r[mt]=n,r}var wN=new T("");wN.__NG_ELEMENT_ID__=e=>{let t=dt();if(t===null)throw new I(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new I(204,!1)};function j_(e,t){return G_(e,t)}function IN(e){return G_(z_,e)}var q_=(j_.required=IN,j_);var ph=new T(""),SN=new T("");function Rs(e){return!e.moduleRef}function TN(e){let t=Rs(e)?e.r3Injector:e.moduleRef.injector,n=t.get(De);return n.run(()=>{Rs(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Lt),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),Rs(e)){let o=()=>t.destroy(),s=e.platformInjector.get(ph);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ph);s.add(o),e.moduleRef.onDestroy(()=>{ms(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return NN(r,n,()=>{let o=t.get(Cn),s=o.add(),a=t.get(th);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(As,Ms);if(k_(c||Ms),!t.get(SN,!0))return Rs(e)?t.get(fn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Rs(e)){let u=t.get(fn);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return MN?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void o.remove(s))})})}var MN;function NN(e,t,n){try{let r=n();return Tr(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var bl=null;function xN(e=[],t){return Je.create({name:t,providers:[{provide:ss,useValue:"platform"},{provide:ph,useValue:new Set([()=>bl=null])},...e]})}function AN(e=[]){if(bl)return bl;let t=xN(e);return bl=t,A_(),RN(t),t}function RN(e){let t=e.get(cl,null);it(e,()=>{t?.forEach(n=>n())})}var Ar=(()=>{class e{static __NG_ELEMENT_ID__=ON}return e})();function ON(e){return kN(dt(),ae(),(e&16)===16)}function kN(e,t,n){if(vr(e)&&!n){let r=qt(e.index,t);return new Cr(r,r)}else if(e.type&175){let r=t[Mt];return new Cr(r,t)}return null}var hh=class{constructor(){}supports(t){return qp(t)}create(t){return new gh(t)}},PN=(e,t)=>t,gh=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||PN}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex<$_(r,i,o)?n:r,a=$_(s,i,o),c=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)i++;else{o||(o=[]);let l=a-i,u=c-i;if(l!=u){for(let p=0;p<l;p++){let f=p<o.length?o[p]:o[p]=0,g=f+p;u<=g&&g<l&&(o[p]=f+1)}let d=s.previousIndex;o[d]=u-l}}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=[]),!qp(t))throw new I(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,i,o,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)o=t[a],s=this._trackByFn(a,o),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,o,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,o,s,a)),Object.is(n.item,o)||this._addIdentityChange(n,o)),n=n._next}else i=0,h_(t,a=>{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;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,i){let o;return t===null?o=this._itTail:(o=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,o,i)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,i),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new mh(n,r),o,i)),t}_verifyReinsertion(t,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),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 i=t._prevRemoved,o=t._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,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 i=n===null?this._itHead:n._next;return t._next=i,t._prev=n,i===null?this._itTail=t:i._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new El),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 El),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}},mh=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}},vh=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}},El=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new vh,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,i=this.map.get(r);return i?i.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 $_(e,t,n){let r=e.previousIndex;if(r===null)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}function H_(){return new Os([new hh])}var Os=(()=>{class e{factories;static \u0275prov=M({token:e,providedIn:"root",factory:H_});constructor(n){this.factories=n}static create(n,r){if(r!=null){let i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||H_()),deps:[[e,new ty,new sl]]}}find(n){let r=this.factories.find(i=>i.supports(n));if(r!=null)return r;throw new I(901,!1)}}return e})();function W_(e){ge(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=AN(r),o=[lh({}),{provide:nn,useExisting:B_},Dv,...n||[]],s=new _s({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return TN({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{ge(9)}}function ks(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Y_=null;function Yt(){return Y_}function yh(e){Y_??=e}var Ps=class{},_h=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(Q_),providedIn:"platform"})}return e})();var Q_=(()=>{class e extends _h{_location;_history;_doc=h(xe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Yt().getBaseHref(this._doc)}onPopState(n){let r=Yt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Yt().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,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}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=M({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function X_(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function K_(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Rr(e){return e&&e[0]!=="?"?`?${e}`:e}var Dl=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(eb),providedIn:"root"})}return e})(),J_=new T(""),eb=(()=>{class e extends Dl{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??h(xe).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 X_(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Rr(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+Rr(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+Rr(o));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)(F(_h),F(J_,8))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ho=(()=>{class e{_subject=new se;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=VN(K_(Z_(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.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+Rr(r))}normalize(n){return e.stripTrailingSlash(LN(this._basePath,Z_(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Rr(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Rr(r)),i)}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(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=Rr;static joinWithSlash=X_;static stripTrailingSlash=K_;static \u0275fac=function(r){return new(r||e)(F(Dl))};static \u0275prov=M({token:e,factory:()=>FN(),providedIn:"root"})}return e})();function FN(){return new ho(F(Dl))}function LN(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Z_(e){return e.replace(/\/index.html$/,"")}function VN(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var pt=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(pt||{}),ve=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(ve||{}),xt=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(xt||{}),Zn={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 ib(e){return Vt(e)[Ue.LocaleId]}function ob(e,t,n){let r=Vt(e),i=[r[Ue.DayPeriodsFormat],r[Ue.DayPeriodsStandalone]],o=Qt(i,t);return Qt(o,n)}function sb(e,t,n){let r=Vt(e),i=[r[Ue.DaysFormat],r[Ue.DaysStandalone]],o=Qt(i,t);return Qt(o,n)}function ab(e,t,n){let r=Vt(e),i=[r[Ue.MonthsFormat],r[Ue.MonthsStandalone]],o=Qt(i,t);return Qt(o,n)}function cb(e,t){let r=Vt(e)[Ue.Eras];return Qt(r,t)}function Fs(e,t){let n=Vt(e);return Qt(n[Ue.DateFormat],t)}function Ls(e,t){let n=Vt(e);return Qt(n[Ue.TimeFormat],t)}function Vs(e,t){let r=Vt(e)[Ue.DateTimeFormat];return Qt(r,t)}function Bs(e,t){let n=Vt(e),r=n[Ue.NumberSymbols][t];if(typeof r>"u"){if(t===Zn.CurrencyDecimal)return n[Ue.NumberSymbols][Zn.Decimal];if(t===Zn.CurrencyGroup)return n[Ue.NumberSymbols][Zn.Group]}return r}function lb(e){if(!e[Ue.ExtraData])throw new I(2303,!1)}function ub(e){let t=Vt(e);return lb(t),(t[Ue.ExtraData][2]||[]).map(r=>typeof r=="string"?bh(r):[bh(r[0]),bh(r[1])])}function db(e,t,n){let r=Vt(e);lb(r);let i=[r[Ue.ExtraData][0],r[Ue.ExtraData][1]],o=Qt(i,t)||[];return Qt(o,n)||[]}function Qt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new I(2304,!1)}function bh(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var BN=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Cl={},UN=/((?:[^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]*)/;function fb(e,t,n,r){let i=ZN(e);t=Kn(n,t)||t;let s=[],a;for(;t;)if(a=UN.exec(t),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let c=i.getTimezoneOffset();r&&(c=hb(r,c),i=KN(i,r));let l="";return s.forEach(u=>{let d=qN(u);l+=d?d(i,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Ml(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Kn(e,t){let n=ib(e);if(Cl[n]??={},Cl[n][t])return Cl[n][t];let r="";switch(t){case"shortDate":r=Fs(e,xt.Short);break;case"mediumDate":r=Fs(e,xt.Medium);break;case"longDate":r=Fs(e,xt.Long);break;case"fullDate":r=Fs(e,xt.Full);break;case"shortTime":r=Ls(e,xt.Short);break;case"mediumTime":r=Ls(e,xt.Medium);break;case"longTime":r=Ls(e,xt.Long);break;case"fullTime":r=Ls(e,xt.Full);break;case"short":let i=Kn(e,"shortTime"),o=Kn(e,"shortDate");r=wl(Vs(e,xt.Short),[i,o]);break;case"medium":let s=Kn(e,"mediumTime"),a=Kn(e,"mediumDate");r=wl(Vs(e,xt.Medium),[s,a]);break;case"long":let c=Kn(e,"longTime"),l=Kn(e,"longDate");r=wl(Vs(e,xt.Long),[c,l]);break;case"full":let u=Kn(e,"fullTime"),d=Kn(e,"fullDate");r=wl(Vs(e,xt.Full),[u,d]);break}return r&&(Cl[n][t]=r),r}function wl(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function hn(e,t,n="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,o=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),o+s}function jN(e,t){return hn(e,3).substring(0,t)}function Ge(e,t,n=0,r=!1,i=!1){return function(o,s){let a=$N(e,o);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return jN(a,t);let c=Bs(s,Zn.MinusSign);return hn(a,t,c,r,i)}}function $N(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 I(2301,!1)}}function Me(e,t,n=pt.Format,r=!1){return function(i,o){return HN(i,o,e,t,n,r)}}function HN(e,t,n,r,i,o){switch(n){case 2:return ab(t,i,r)[e.getMonth()];case 1:return sb(t,i,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(o){let l=ub(t),u=db(t,i,r),d=l.findIndex(p=>{if(Array.isArray(p)){let[f,g]=p,m=s>=f.hours&&a>=f.minutes,v=s<g.hours||s===g.hours&&a<g.minutes;if(f.hours<g.hours){if(m&&v)return!0}else if(m||v)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return ob(t,i,r)[s<12?0:1];case 3:return cb(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new I(2302,!1)}}function Il(e){return function(t,n,r){let i=-1*r,o=Bs(n,Zn.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+hn(s,2,o)+hn(Math.abs(i%60),2,o);case 1:return"GMT"+(i>=0?"+":"")+hn(s,1,o);case 2:return"GMT"+(i>=0?"+":"")+hn(s,2,o)+":"+hn(Math.abs(i%60),2,o);case 3:return r===0?"Z":(i>=0?"+":"")+hn(s,2,o)+":"+hn(Math.abs(i%60),2,o);default:throw new I(2302,!1)}}}var zN=0,Tl=4;function GN(e){let t=Ml(e,zN,1).getDay();return Ml(e,0,1+(t<=Tl?Tl:Tl+7)-t)}function pb(e){let t=e.getDay(),n=t===0?-3:Tl-t;return Ml(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Eh(e,t=!1){return function(n,r){let i;if(t){let o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();i=1+Math.floor((s+o)/7)}else{let o=pb(n),s=GN(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return hn(i,e,Bs(r,Zn.MinusSign))}}function Sl(e,t=!1){return function(n,r){let o=pb(n).getFullYear();return hn(o,e,Bs(r,Zn.MinusSign),t)}}var Dh={};function qN(e){if(Dh[e])return Dh[e];let t;switch(e){case"G":case"GG":case"GGG":t=Me(3,ve.Abbreviated);break;case"GGGG":t=Me(3,ve.Wide);break;case"GGGGG":t=Me(3,ve.Narrow);break;case"y":t=Ge(0,1,0,!1,!0);break;case"yy":t=Ge(0,2,0,!0,!0);break;case"yyy":t=Ge(0,3,0,!1,!0);break;case"yyyy":t=Ge(0,4,0,!1,!0);break;case"Y":t=Sl(1);break;case"YY":t=Sl(2,!0);break;case"YYY":t=Sl(3);break;case"YYYY":t=Sl(4);break;case"M":case"L":t=Ge(1,1,1);break;case"MM":case"LL":t=Ge(1,2,1);break;case"MMM":t=Me(2,ve.Abbreviated);break;case"MMMM":t=Me(2,ve.Wide);break;case"MMMMM":t=Me(2,ve.Narrow);break;case"LLL":t=Me(2,ve.Abbreviated,pt.Standalone);break;case"LLLL":t=Me(2,ve.Wide,pt.Standalone);break;case"LLLLL":t=Me(2,ve.Narrow,pt.Standalone);break;case"w":t=Eh(1);break;case"ww":t=Eh(2);break;case"W":t=Eh(1,!0);break;case"d":t=Ge(2,1);break;case"dd":t=Ge(2,2);break;case"c":case"cc":t=Ge(7,1);break;case"ccc":t=Me(1,ve.Abbreviated,pt.Standalone);break;case"cccc":t=Me(1,ve.Wide,pt.Standalone);break;case"ccccc":t=Me(1,ve.Narrow,pt.Standalone);break;case"cccccc":t=Me(1,ve.Short,pt.Standalone);break;case"E":case"EE":case"EEE":t=Me(1,ve.Abbreviated);break;case"EEEE":t=Me(1,ve.Wide);break;case"EEEEE":t=Me(1,ve.Narrow);break;case"EEEEEE":t=Me(1,ve.Short);break;case"a":case"aa":case"aaa":t=Me(0,ve.Abbreviated);break;case"aaaa":t=Me(0,ve.Wide);break;case"aaaaa":t=Me(0,ve.Narrow);break;case"b":case"bb":case"bbb":t=Me(0,ve.Abbreviated,pt.Standalone,!0);break;case"bbbb":t=Me(0,ve.Wide,pt.Standalone,!0);break;case"bbbbb":t=Me(0,ve.Narrow,pt.Standalone,!0);break;case"B":case"BB":case"BBB":t=Me(0,ve.Abbreviated,pt.Format,!0);break;case"BBBB":t=Me(0,ve.Wide,pt.Format,!0);break;case"BBBBB":t=Me(0,ve.Narrow,pt.Format,!0);break;case"h":t=Ge(3,1,-12);break;case"hh":t=Ge(3,2,-12);break;case"H":t=Ge(3,1);break;case"HH":t=Ge(3,2);break;case"m":t=Ge(4,1);break;case"mm":t=Ge(4,2);break;case"s":t=Ge(5,1);break;case"ss":t=Ge(5,2);break;case"S":t=Ge(6,1);break;case"SS":t=Ge(6,2);break;case"SSS":t=Ge(6,3);break;case"Z":case"ZZ":case"ZZZ":t=Il(0);break;case"ZZZZZ":t=Il(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Il(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=Il(2);break;default:return null}return Dh[e]=t,t}function hb(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function WN(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function KN(e,t,n){let i=e.getTimezoneOffset(),o=hb(t,i);return WN(e,-1*(o-i))}function ZN(e){if(tb(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[i,o=1,s=1]=e.split("-").map(a=>+a);return Ml(i,o-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(BN))return YN(r)}let t=new Date(e);if(!tb(t))throw new I(2302,!1);return t}function YN(e){let t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.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),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return o.call(t,s,a,c,l),t}function tb(e){return e instanceof Date&&!isNaN(e.valueOf())}var Nl=class{$implicit;ngForOf;index;count;constructor(t,n,r,i){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}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}},At=(()=>{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,i){this._viewContainer=n,this._template=r,this._differs=i}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((i,o,s)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new Nl(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(o===null?void 0:o);else if(o!==null){let a=r.get(o);r.move(a,s),nb(a,i)}});for(let i=0,o=r.length;i<o;i++){let a=r.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}n.forEachIdentityChange(i=>{let o=r.get(i.currentIndex);nb(o,i)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(de(dn),de(Sn),de(Os))};static \u0275dir=Fe({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function nb(e,t){e.context.$implicit=t.item}var Ct=(()=>{class e{_viewContainer;_context=new xl;_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){rb(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){rb(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)(de(dn),de(Sn))};static \u0275dir=Fe({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),xl=class{$implicit=null;ngIf=null};function rb(e,t){if(e&&!e.createEmbeddedView)throw new I(2020,!1)}function QN(e,t){return new I(2100,!1)}var XN="mediumDate",gb=new T(""),mb=new T(""),Us=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,i){this.locale=n,this.defaultTimezone=r,this.defaultOptions=i}transform(n,r,i,o){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??XN,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return fb(n,s,o||this.locale,a)}catch(s){throw QN(e,s.message)}}static \u0275fac=function(r){return new(r||e)(de(As,16),de(gb,24),de(mb,24))};static \u0275pipe=Kp({name:"date",type:e,pure:!0})}return e})();var et=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({})}return e})();function js(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var gi=class{};var Ch="browser";function vb(e){return e===Ch}var Rl=new T(""),Mh=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new I(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(F(Rl),F(De))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),$s=class{_doc;constructor(t){this._doc=t}manager},wh="ng-app-id";function yb(e){for(let t of e)t.remove()}function _b(e,t){let n=t.createElement("style");return n.textContent=e,n}function JN(e,t,n,r){let i=e.head?.querySelectorAll(`style[${wh}="${t}"],link[${wh}="${t}"]`);if(i)for(let o of i)o.removeAttribute(wh),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function Sh(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Nh=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,JN(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,_b);r?.forEach(i=>this.addUsage(i,this.external,Sh))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(yb(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])yb(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,_b(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Sh(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)(F(xe),F(al),F(ll,8),F(Sr))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Ih={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"},xh=/%COMP%/g;var Eb="%COMP%",ex=`_nghost-${Eb}`,tx=`_ngcontent-${Eb}`,nx=!0,rx=new T("",{providedIn:"root",factory:()=>nx});function ix(e){return tx.replace(xh,e)}function ox(e){return ex.replace(xh,e)}function Db(e,t){return t.map(n=>n.replace(xh,e))}var Ah=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;animationDisabled;maxAnimationTimeout;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;registry;constructor(n,r,i,o,s,a,c,l=null,u,d,p=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.animationDisabled=u,this.maxAnimationTimeout=d,this.tracingService=p,this.platformIsServer=!1,this.defaultRenderer=new Hs(n,s,c,this.platformIsServer,this.tracingService,this.registry=Rc(),this.maxAnimationTimeout)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(n,r);return i instanceof Al?i.applyToHost(n):i instanceof zs&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case Hn.Emulated:o=new Al(c,l,r,this.appId,u,s,a,d,p,this.registry,this.animationDisabled,this.maxAnimationTimeout);break;case Hn.ShadowDom:return new Th(c,l,n,r,s,a,this.nonce,d,p,this.registry,this.maxAnimationTimeout);default:o=new zs(c,l,r,u,s,a,d,p,this.registry,this.animationDisabled,this.maxAnimationTimeout);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(F(Mh),F(Nh),F(al),F(rx),F(xe),F(Sr),F(De),F(ll),F(nh),F(rh),F(hi,8))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Hs=class{eventManager;doc;ngZone;platformIsServer;tracingService;registry;maxAnimationTimeout;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,i,o,s,a){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.tracingService=o,this.registry=s,this.maxAnimationTimeout=a}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Ih[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(bb(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(bb(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){let{elements:r}=this.registry;if(r){r.animate(n,()=>n.remove(),this.maxAnimationTimeout);return}n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new I(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=Ih[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Ih[r];i?t.removeAttributeNS(i,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,i){i&(In.DashCase|In.Important)?t.style.setProperty(n,r,i&In.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&In.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,i){if(typeof t=="string"&&(t=Yt().getGlobalEventTarget(this.doc,t),!t))throw new I(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(t,n,o)),this.eventManager.addEventListener(t,n,o,i)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function bb(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Th=class extends Hs{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,i,o,s,a,c,l,u,d){super(t,o,s,c,l,u,d),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let p=i.styles;p=Db(i.id,p);for(let g of p){let m=document.createElement("style");a&&m.setAttribute("nonce",a),m.textContent=g,this.shadowRoot.appendChild(m)}let f=i.getExternalStyles?.();if(f)for(let g of f){let m=Sh(g,o);a&&m.setAttribute("nonce",a),this.shadowRoot.appendChild(m)}}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.removeHost(this.shadowRoot)}},zs=class extends Hs{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;_animationDisabled;constructor(t,n,r,i,o,s,a,c,l,u,d,p){super(t,o,s,a,c,l,d),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this._animationDisabled=u;let f=r.styles;this.styles=p?Db(p,f):f,this.styleUrls=r.getExternalStyles?.(p)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){if(this.removeStylesOnCompDestroy){if(!this._animationDisabled&&this.registry.elements){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)},this.maxAnimationTimeout)});return}this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}},Al=class extends zs{contentAttr;hostAttr;constructor(t,n,r,i,o,s,a,c,l,u,d,p){let f=i+"-"+r.id;super(t,n,r,o,s,a,c,l,u,d,p,f),this.contentAttr=ix(f),this.hostAttr=ox(f)}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 Ol=class e extends Ps{supportsDOMEvents=!0;static makeCurrent(){yh(new e)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}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=sx();return n==null?null:ax(n)}resetBaseElement(){Gs=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return js(document.cookie,t)}},Gs=null;function sx(){return Gs=Gs||document.head.querySelector("base"),Gs?Gs.getAttribute("href"):null}function ax(e){return new URL(e,document.baseURI).pathname}var cx=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),wb=(()=>{class e extends $s{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||e)(F(xe))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Cb=["alt","control","meta","shift"],lx={"\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"},ux={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Ib=(()=>{class e extends $s{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Yt().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Cb.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let i=lx[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Cb.forEach(s=>{if(s!==i){let a=ux[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(F(xe))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})();function Rh(e,t){let n=C({rootComponent:e},dx(t));return W_(n)}function dx(e){return{appProviders:[...mx,...e?.providers??[]],platformProviders:gx}}function fx(){Ol.makeCurrent()}function px(){return new Ht}function hx(){return wp(document),document}var gx=[{provide:Sr,useValue:Ch},{provide:cl,useValue:fx,multi:!0},{provide:xe,useFactory:hx}];var mx=[{provide:ss,useValue:"root"},{provide:Ht,useFactory:px},{provide:Rl,useClass:wb,multi:!0,deps:[xe]},{provide:Rl,useClass:Ib,multi:!0,deps:[xe]},Ah,Nh,Mh,{provide:Tn,useExisting:Ah},{provide:gi,useClass:cx},[]];var mo=class{},vo=class{},Rn=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
9
9
  `).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=n.slice(r+1).trim();this.addHeaderEntry(i,o)}})}: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 i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.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(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Fl=class{encodeKey(t){return Sb(t)}encodeValue(t){return Sb(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function vx(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var yx=/%(\d[a-f0-9])/gi,_x={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Sb(e){return encodeURIComponent(e).replace(yx,(t,n)=>_x[n]??t)}function kl(e){return`${e}`}var Xt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Fl,t.fromString){if(t.fromObject)throw new I(2805,!1);this.map=vx(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(kl):[kl(r)];this.map.set(n,i)})):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 i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,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(kl(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(kl(t.value));i!==-1&&r.splice(i,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)}};var Ll=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()}};function bx(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Tb(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Mb(e){return typeof Blob<"u"&&e instanceof Blob}function Nb(e){return typeof FormData<"u"&&e instanceof FormData}function Ex(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var qs="Content-Type",Vl="Accept",Lh="X-Request-URL",Ab="text/plain",Rb="application/json",Ob=`${Rb}, ${Ab}, */*`,go=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,i){this.url=n,this.method=t.toUpperCase();let o;if(bx(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new I(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new Rn,this.context??=new Ll,!this.params)this.params=new Xt,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"||Tb(this.body)||Mb(this.body)||Nb(this.body)||Ex(this.body)?this.body:this.body instanceof Xt?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||Nb(this.body)?null:Mb(this.body)?this.body.type||null:Tb(this.body)?null:typeof this.body=="string"?Ab:this.body instanceof Xt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Rb:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer||this.referrer,p=t.integrity||this.integrity,f=t.transferCache??this.transferCache,g=t.timeout??this.timeout,m=t.body!==void 0?t.body:this.body,v=t.withCredentials??this.withCredentials,y=t.reportProgress??this.reportProgress,R=t.headers||this.headers,U=t.params||this.params,P=t.context??this.context;return t.setHeaders!==void 0&&(R=Object.keys(t.setHeaders).reduce((K,$)=>K.set($,t.setHeaders[$]),R)),t.setParams&&(U=Object.keys(t.setParams).reduce((K,$)=>K.set($,t.setParams[$]),U)),new e(n,r,m,{params:U,headers:R,context:P,reportProgress:y,responseType:i,withCredentials:v,transferCache:f,keepalive:o,cache:a,priority:s,timeout:g,mode:c,redirect:l,credentials:u,referrer:d,integrity:p})}},Yn=(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})(Yn||{}),yo=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new Rn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},Ws=class e extends yo{constructor(t={}){super(t)}type=Yn.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})}},_o=class e extends yo{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Yn.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})}},An=class extends yo{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}},kb=200,Dx=204;function Oh(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}}var Ul=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof go)o=n;else{let c;i.headers instanceof Rn?c=i.headers:c=new Rn(i.headers);let l;i.params&&(i.params instanceof Xt?l=i.params:l=new Xt({fromObject:i.params})),o=new go(n,r,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let s=O(o).pipe(ar(c=>this.handler.handle(c)));if(n instanceof go||i.observe==="events")return s;let a=s.pipe(ct(c=>c instanceof _o));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(X(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new I(2806,!1);return c.body}));case"blob":return a.pipe(X(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new I(2807,!1);return c.body}));case"text":return a.pipe(X(c=>{if(c.body!==null&&typeof c.body!="string")throw new I(2808,!1);return c.body}));case"json":default:return a.pipe(X(c=>c.body))}case"response":return a;default:throw new I(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 Xt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,Oh(i,r))}post(n,r,i={}){return this.request("POST",n,Oh(i,r))}put(n,r,i={}){return this.request("PUT",n,Oh(i,r))}static \u0275fac=function(r){return new(r||e)(F(mo))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Cx=/^\)\]\}',?\n/;function xb(e){if(e.url)return e.url;let t=Lh.toLocaleLowerCase();return e.headers.get(t)}var Pb=new T(""),Pl=(()=>{class e{fetchImpl=h(kh,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=h(De);destroyRef=h(Ze);destroyed=!1;constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0})}handle(n){return new z(r=>{let i=new AbortController;this.doRequest(n,i.signal,r).then(Ph,s=>r.error(new An({error:s})));let o;return n.timeout&&(o=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{i.signal.aborted||i.abort(new DOMException("signal timed out","TimeoutError"))},n.timeout))),()=>{o!==void 0&&clearTimeout(o),i.abort()}})}doRequest(n,r,i){return Lr(this,null,function*(){let o=this.createRequestInit(n),s;try{let g=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,C({signal:r},o)));wx(g),i.next({type:Yn.Sent}),s=yield g}catch(g){i.error(new An({error:g,status:g.status??0,statusText:g.statusText,url:n.urlWithParams,headers:g.headers}));return}let a=new Rn(s.headers),c=s.statusText,l=xb(s)??n.urlWithParams,u=s.status,d=null;if(n.reportProgress&&i.next(new Ws({headers:a,status:u,statusText:c,url:l})),s.body){let g=s.headers.get("content-length"),m=[],v=s.body.getReader(),y=0,R,U,P=typeof Zone<"u"&&Zone.current,K=!1;if(yield this.ngZone.runOutsideAngular(()=>Lr(this,null,function*(){for(;;){if(this.destroyed){yield v.cancel(),K=!0;break}let{done:we,value:le}=yield v.read();if(we)break;if(m.push(le),y+=le.length,n.reportProgress){U=n.responseType==="text"?(U??"")+(R??=new TextDecoder).decode(le,{stream:!0}):void 0;let _e=()=>i.next({type:Yn.DownloadProgress,total:g?+g:void 0,loaded:y,partialText:U});P?P.run(_e):_e()}}})),K){i.complete();return}let $=this.concatChunks(m,y);try{let we=s.headers.get(qs)??"";d=this.parseBody(n,$,we,u)}catch(we){i.error(new An({error:we,headers:new Rn(s.headers),status:s.status,statusText:s.statusText,url:xb(s)??n.urlWithParams}));return}}u===0&&(u=d?kb:0);let p=u>=200&&u<300,f=s.redirected;p?(i.next(new _o({body:d,headers:a,status:u,statusText:c,url:l,redirected:f})),i.complete()):i.error(new An({error:d,headers:a,status:u,statusText:c,url:l,redirected:f}))})}parseBody(n,r,i,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(Cx,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(o<200||o>=300)return s;throw a}case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},i;if(i=n.credentials,n.withCredentials&&(i="include"),n.headers.forEach((o,s)=>r[o]=s.join(",")),n.headers.has(Vl)||(r[Vl]=Ob),!n.headers.has(qs)){let o=n.detectContentTypeHeader();o!==null&&(r[qs]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:i,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity}}concatChunks(n,r){let i=new Uint8Array(r),o=0;for(let s of n)i.set(s,o),o+=s.length;return i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),kh=class{};function Ph(){}function wx(e){e.then(Ph,Ph)}function Ix(e,t){return t(e)}function Sx(e,t,n){return(r,i)=>it(n,()=>t(r,o=>e(o,i)))}var Fb=new T(""),Lb=new T(""),Vb=new T("",{providedIn:"root",factory:()=>!0});var Bl=(()=>{class e extends mo{backend;injector;chain=null;pendingTasks=h(Xi);contributeToStability=h(Vb);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Fb),...this.injector.get(Lb,[])]));this.chain=r.reduceRight((i,o)=>Sx(i,o,this.injector),Ix)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(qr(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(F(vo),F(Ke))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})();var Tx=/^\)\]\}',?\n/,Mx=RegExp(`^${Lh}:`,"m");function Nx(e){return"responseURL"in e&&e.responseURL?e.responseURL:Mx.test(e.getAllResponseHeaders())?e.getResponseHeader(Lh):null}var Fh=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new I(-2800,!1);let r=this.xhrFactory;return O(null).pipe(Re(()=>new z(o=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((v,y)=>s.setRequestHeader(v,y.join(","))),n.headers.has(Vl)||s.setRequestHeader(Vl,Ob),!n.headers.has(qs)){let v=n.detectContentTypeHeader();v!==null&&s.setRequestHeader(qs,v)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let v=n.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let v=s.statusText||"OK",y=new Rn(s.getAllResponseHeaders()),R=Nx(s)||n.url;return c=new Ws({headers:y,status:s.status,statusText:v,url:R}),c},u=()=>{let{headers:v,status:y,statusText:R,url:U}=l(),P=null;y!==Dx&&(P=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=P?kb:0);let K=y>=200&&y<300;if(n.responseType==="json"&&typeof P=="string"){let $=P;P=P.replace(Tx,"");try{P=P!==""?JSON.parse(P):null}catch(we){P=$,K&&(K=!1,P={error:we,text:P})}}K?(o.next(new _o({body:P,headers:v,status:y,statusText:R,url:U||void 0})),o.complete()):o.error(new An({error:P,headers:v,status:y,statusText:R,url:U||void 0}))},d=v=>{let{url:y}=l(),R=new An({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});o.error(R)},p=d;n.timeout&&(p=v=>{let{url:y}=l(),R=new An({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:y||void 0});o.error(R)});let f=!1,g=v=>{f||(o.next(l()),f=!0);let y={type:Yn.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),o.next(y)},m=v=>{let y={type:Yn.UploadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),o.next(y)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",p),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",g),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),o.next({type:Yn.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",p),n.reportProgress&&(s.removeEventListener("progress",g),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(F(gi))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})(),Bb=new T(""),xx="XSRF-TOKEN",Ax=new T("",{providedIn:"root",factory:()=>xx}),Rx="X-XSRF-TOKEN",Ox=new T("",{providedIn:"root",factory:()=>Rx}),Ks=class{},kx=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=js(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(F(xe),F(Ax))};static \u0275prov=M({token:e,factory:e.\u0275fac})}return e})();function Px(e,t){let n=e.url.toLowerCase();if(!h(Bb)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=h(Ks).getToken(),i=h(Ox);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var Vh=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(Vh||{});function Fx(e,t){return{\u0275kind:e,\u0275providers:t}}function Bh(...e){let t=[Ul,Fh,Bl,{provide:mo,useExisting:Bl},{provide:vo,useFactory:()=>h(Pb,{optional:!0})??h(Fh)},{provide:Fb,useValue:Px,multi:!0},{provide:Bb,useValue:!0},{provide:Ks,useClass:kx}];for(let n of e)t.push(...n.\u0275providers);return ei(t)}function Uh(){return Fx(Vh.Fetch,[Pl,{provide:Pb,useExisting:Pl},{provide:vo,useExisting:Pl}])}var Ub=(()=>{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)(F(xe))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var J="primary",aa=Symbol("RouteTitle"),Gh=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 Io(e){return new Gh(e)}function Vx(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=e[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function Bx(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!On(e[n],t[n]))return!1;return!0}function On(e,t){let n=e?qh(e):void 0,r=t?qh(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!Kb(e[i],t[i]))return!1;return!0}function qh(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Kb(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((i,o)=>r[o]===i)}else return e===t}function Zb(e){return e.length>0?e[e.length-1]:null}function Jn(e){return Gr(e)?e:Tr(e)?ke(Promise.resolve(e)):O(e)}var Ux={exact:Qb,subset:Xb},Yb={exact:jx,subset:$x,ignored:()=>!0};function jb(e,t,n){return Ux[n.paths](e.root,t.root,n.matrixParams)&&Yb[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function jx(e,t){return On(e,t)}function Qb(e,t,n){if(!yi(e.segments,t.segments)||!Hl(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Qb(e.children[r],t.children[r],n))return!1;return!0}function $x(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Kb(e[n],t[n]))}function Xb(e,t,n){return Jb(e,t,t.segments,n)}function Jb(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!yi(i,n)||t.hasChildren()||!Hl(i,n,r))}else if(e.segments.length===n.length){if(!yi(e.segments,n)||!Hl(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Xb(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!yi(e.segments,i)||!Hl(e.segments,i,r)||!e.children[J]?!1:Jb(e.children[J],t,o,r)}}function Hl(e,t,n){return t.every((r,i)=>Yb[n](e[i].parameters,r.parameters))}var Xn=class{root;queryParams;fragment;_queryParamMap;constructor(t=new pe([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Io(this.queryParams),this._queryParamMap}toString(){return Gx.serialize(this)}},pe=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 zl(this)}},vi=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Io(this.parameters),this._parameterMap}toString(){return tE(this)}};function Hx(e,t){return yi(e,t)&&e.every((n,r)=>On(n.parameters,t[r].parameters))}function yi(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function zx(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===J&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==J&&(n=n.concat(t(i,r)))}),n}var nu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>new So,providedIn:"root"})}return e})(),So=class{parse(t){let n=new Kh(t);return new Xn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Zs(t.root,!0)}`,r=Kx(t.queryParams),i=typeof t.fragment=="string"?`#${qx(t.fragment)}`:"";return`${n}${r}${i}`}},Gx=new So;function zl(e){return e.segments.map(t=>tE(t)).join("/")}function Zs(e,t){if(!e.hasChildren())return zl(e);if(t){let n=e.children[J]?Zs(e.children[J],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==J&&r.push(`${i}:${Zs(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=zx(e,(r,i)=>i===J?[Zs(e.children[J],!1)]:[`${i}:${Zs(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[J]!=null?`${zl(e)}/${n[0]}`:`${zl(e)}/(${n.join("//")})`}}function eE(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jl(e){return eE(e).replace(/%3B/gi,";")}function qx(e){return encodeURI(e)}function Wh(e){return eE(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Gl(e){return decodeURIComponent(e)}function $b(e){return Gl(e.replace(/\+/g,"%20"))}function tE(e){return`${Wh(e.path)}${Wx(e.parameters)}`}function Wx(e){return Object.entries(e).map(([t,n])=>`;${Wh(t)}=${Wh(n)}`).join("")}function Kx(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${jl(n)}=${jl(i)}`).join("&"):`${jl(n)}=${jl(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var Zx=/^[^\/()?;#]+/;function jh(e){let t=e.match(Zx);return t?t[0]:""}var Yx=/^[^\/()?;=#]+/;function Qx(e){let t=e.match(Yx);return t?t[0]:""}var Xx=/^[^=?&#]+/;function Jx(e){let t=e.match(Xx);return t?t[0]:""}var eA=/^[^&#]+/;function tA(e){let t=e.match(eA);return t?t[0]:""}var Kh=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new pe([],{}):new pe([],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(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[J]=new pe(t,n)),r}parseSegment(){let t=jh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new vi(Gl(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=Qx(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=jh(this.remaining);i&&(r=i,this.capture(r))}t[Gl(n)]=Gl(r)}parseQueryParam(t){let n=Jx(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=tA(this.remaining);s&&(r=s,this.capture(r))}let i=$b(n),o=$b(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=jh(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new I(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=J);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[J]:new pe([],s),this.consumeOptional("//")}return n}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 I(4011,!1)}};function nE(e){return e.segments.length>0?new pe([],{[J]:e}):e}function rE(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=rE(i);if(r===J&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new pe(e.segments,t);return nA(n)}function nA(e){if(e.numberOfChildren===1&&e.children[J]){let t=e.children[J];return new pe(e.segments.concat(t.segments),t.children)}return e}function To(e){return e instanceof Xn}function rA(e,t,n=null,r=null){let i=iE(e);return oE(i,t,n,r)}function iE(e){let t;function n(o){let s={};for(let c of o.children){let l=n(c);s[c.outlet]=l}let a=new pe(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=nE(r);return t??i}function oE(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return $h(i,i,i,n,r);let o=iA(t);if(o.toRoot())return $h(i,i,new pe([],{}),n,r);let s=oA(o,i,e),a=s.processChildren?Qs(s.segmentGroup,s.index,o.commands):aE(s.segmentGroup,s.index,o.commands);return $h(i,s.segmentGroup,a,n,r)}function ql(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ea(e){return typeof e=="object"&&e!=null&&e.outlets}function $h(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;e===t?s=n:s=sE(e,t,n);let a=nE(rE(s));return new Xn(a,o,i)}function sE(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=sE(o,t,n)}),new pe(e.segments,r)}var Wl=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ql(r[0]))throw new I(4003,!1);let i=r.find(ea);if(i&&i!==Zb(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function iA(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Wl(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Wl(n,t,r)}var Do=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function oA(e,t,n){if(e.isAbsolute)return new Do(t,!0,0);if(!n)return new Do(t,!1,NaN);if(n.parent===null)return new Do(n,!0,0);let r=ql(e.commands[0])?0:1,i=n.segments.length-1+r;return sA(n,i,e.numberOfDoubleDots)}function sA(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new I(4005,!1);i=r.segments.length}return new Do(r,!1,i-o)}function aA(e){return ea(e[0])?e[0].outlets:{[J]:e}}function aE(e,t,n){if(e??=new pe([],{}),e.segments.length===0&&e.hasChildren())return Qs(e,t,n);let r=cA(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new pe(e.segments.slice(0,r.pathIndex),{});return o.children[J]=new pe(e.segments.slice(r.pathIndex),e.children),Qs(o,0,i)}else return r.match&&i.length===0?new pe(e.segments,{}):r.match&&!e.hasChildren()?Zh(e,t,n):r.match?Qs(e,0,i):Zh(e,t,n)}function Qs(e,t,n){if(n.length===0)return new pe(e.segments,{});{let r=aA(n),i={};if(Object.keys(r).some(o=>o!==J)&&e.children[J]&&e.numberOfChildren===1&&e.children[J].segments.length===0){let o=Qs(e.children[J],t,n);return new pe(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=aE(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new pe(e.segments,i)}}function cA(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;let s=e.segments[i],a=n[r];if(ea(a))break;let c=`${a}`,l=r<n.length-1?n[r+1]:null;if(i>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!zb(c,l,s))return o;r+=2}else{if(!zb(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Zh(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i<n.length;){let o=n[i];if(ea(o)){let c=lA(o.outlets);return new pe(r,c)}if(i===0&&ql(n[0])){let c=e.segments[t];r.push(new vi(c.path,Hb(n[0]))),i++;continue}let s=ea(o)?o.outlets[J]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&ql(a)?(r.push(new vi(s,Hb(a))),i+=2):(r.push(new vi(s,{})),i++)}return new pe(r,{})}function lA(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Zh(new pe([],{}),0,r))}),t}function Hb(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function zb(e,t,n){return e==n.path&&On(t,n.parameters)}var Xs="imperative",ot=(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})(ot||{}),Jt=class{id;url;constructor(t,n){this.id=t,this.url=n}},Mo=class extends Jt{type=ot.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",i=null){super(t,n),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Or=class extends Jt{urlAfterRedirects;type=ot.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Rt=(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})(Rt||{}),Kl=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Kl||{}),Qn=class extends Jt{reason;code;type=ot.NavigationCancel;constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},kr=class extends Jt{reason;code;type=ot.NavigationSkipped;constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i}},ta=class extends Jt{error;target;type=ot.NavigationError;constructor(t,n,r,i){super(t,n),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Zl=class extends Jt{urlAfterRedirects;state;type=ot.RoutesRecognized;constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yh=class extends Jt{urlAfterRedirects;state;type=ot.GuardsCheckStart;constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qh=class extends Jt{urlAfterRedirects;state;shouldActivate;type=ot.GuardsCheckEnd;constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Xh=class extends Jt{urlAfterRedirects;state;type=ot.ResolveStart;constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jh=class extends Jt{urlAfterRedirects;state;type=ot.ResolveEnd;constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},eg=class{route;type=ot.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},tg=class{route;type=ot.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ng=class{snapshot;type=ot.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rg=class{snapshot;type=ot.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ig=class{snapshot;type=ot.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},og=class{snapshot;type=ot.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var na=class{},No=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function uA(e){return!(e instanceof na)&&!(e instanceof No)}function dA(e,t){return e.providers&&!e._injector&&(e._injector=Ts(e.providers,t,`Route: ${e.path}`)),e._injector??t}function gn(e){return e.outlet||J}function fA(e,t){let n=e.filter(r=>gn(r)===t);return n.push(...e.filter(r=>gn(r)!==t)),n}function Ao(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var sg=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ao(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new ca(this.rootInjector)}},ca=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}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 sg(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(F(Ke))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Yl=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=ag(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=ag(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=cg(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return cg(t,this._root).map(n=>n.value)}};function ag(e,t){if(e===t.value)return t;for(let n of t.children){let r=ag(e,n);if(r)return r}return null}function cg(e,t){if(e===t.value)return[t];for(let n of t.children){let r=cg(e,n);if(r.length)return r.unshift(t),r}return[]}var Bt=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Eo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Ql=class extends Yl{snapshot;constructor(t,n){super(t),this.snapshot=n,vg(this,t)}toString(){return this.snapshot.toString()}};function cE(e){let t=pA(e),n=new nt([new vi("",{})]),r=new nt({}),i=new nt({}),o=new nt({}),s=new nt(""),a=new _i(n,r,o,s,i,J,e,t.root);return a.snapshot=t.root,new Ql(new Bt(a,[]),t)}function pA(e){let t={},n={},r={},o=new Co([],t,r,"",n,J,e,null,{});return new Jl("",new Bt(o,[]))}var _i=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,i,o,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(X(l=>l[aa]))??O(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(X(t=>Io(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(X(t=>Io(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Xl(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:C(C({},t.params),e.params),data:C(C({},t.data),e.data),resolve:C(C(C(C({},e.data),t.data),i?.data),e._resolvedData)}:r={params:C({},e.params),data:C({},e.data),resolve:C(C({},e.data),e._resolvedData??{})},i&&uE(i)&&(r.resolve[aa]=i.title),r}var Co=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[aa]}constructor(t,n,r,i,o,s,a,c,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=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??=Io(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Io(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}')`}},Jl=class extends Yl{url;constructor(t,n){super(n),this.url=t,vg(this,n)}toString(){return lE(this._root)}};function vg(e,t){t.value._routerState=e,t.children.forEach(n=>vg(e,n))}function lE(e){let t=e.children.length>0?` { ${e.children.map(lE).join(", ")} } `:"";return`${e.value}${t}`}function Hh(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,On(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),On(t.params,n.params)||e.paramsSubject.next(n.params),Bx(t.url,n.url)||e.urlSubject.next(n.url),On(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function lg(e,t){let n=On(e.params,t.params)&&Hx(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||lg(e.parent,t.parent))}function uE(e){return typeof e.title=="string"||e.title===null}var hA=new T(""),dE=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=J;activateEvents=new Ve;deactivateEvents=new Ve;attachEvents=new Ve;detachEvents=new Ve;routerOutletData=q_(void 0);parentContexts=h(ca);location=h(dn);changeDetector=h(Ar);inputBinder=h(ru,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(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 I(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new ug(n,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.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=Fe({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[wr]})}return e})(),ug=class{route;childContexts;parent;outletData;constructor(t,n,r,i){this.route=t,this.childContexts=n,this.parent=r,this.outletData=i}get(t,n){return t===_i?this.route:t===ca?this.childContexts:t===hA?this.outletData:this.parent.get(t,n)}},ru=new T("");var fE=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Be({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Ce(0,"router-outlet")},dependencies:[dE],encapsulation:2})}return e})();function yg(e){let t=e.children&&e.children.map(yg),n=t?Y(C({},e),{children:t}):C({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==J&&(n.component=fE),n}function gA(e,t,n){let r=ra(e,t._root,n?n._root:void 0);return new Ql(r,t)}function ra(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=mA(e,t,n);return new Bt(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ra(e,a)),s}}let r=vA(t.value),i=t.children.map(o=>ra(e,o));return new Bt(r,i)}}function mA(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return ra(e,r,i);return ra(e,r)})}function vA(e){return new _i(new nt(e.url),new nt(e.params),new nt(e.queryParams),new nt(e.fragment),new nt(e.data),e.outlet,e.component,e)}var ia=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},pE="ngNavigationCancelingError";function eu(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=To(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=hE(!1,Rt.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function hE(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[pE]=!0,n.cancellationCode=t,n}function yA(e){return gE(e)&&To(e.url)}function gE(e){return!!e&&e[pE]}var _A=(e,t,n,r)=>X(i=>(new dg(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),dg=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Hh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=Eo(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&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),i=r&&t.value.component?r.children:n,o=Eo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);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),i=r&&t.value.component?r.children:n,o=Eo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=Eo(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new og(o.value.snapshot))}),t.children.length&&this.forwardEvent(new rg(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(Hh(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Hh(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},tu=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},wo=class{component;route;constructor(t,n){this.component=t,this.route=n}};function bA(e,t,n){let r=e._root,i=t?t._root:null;return Ys(r,i,n,[r.value])}function EA(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Ro(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Bd(e)?e:t.get(e):r}function Ys(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Eo(t);return e.children.forEach(s=>{DA(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Js(a,n.getContext(s),i)),i}function DA(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=CA(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new tu(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ys(e,t,a?a.children:null,r,i):Ys(e,t,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new wo(a.outlet.component,s))}else s&&Js(t,a,i),i.canActivateChecks.push(new tu(r)),o.component?Ys(e,null,a?a.children:null,r,i):Ys(e,null,n,r,i);return i}function CA(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!yi(e.url,t.url);case"pathParamsOrQueryParamsChange":return!yi(e.url,t.url)||!On(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lg(e,t)||!On(e.queryParams,t.queryParams);case"paramsChange":default:return!lg(e,t)}}function Js(e,t,n){let r=Eo(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?Js(s,t.children.getContext(o),n):Js(s,null,n):Js(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new wo(t.outlet.component,i)):n.canDeactivateChecks.push(new wo(null,i)):n.canDeactivateChecks.push(new wo(null,i))}function la(e){return typeof e=="function"}function wA(e){return typeof e=="boolean"}function IA(e){return e&&la(e.canLoad)}function SA(e){return e&&la(e.canActivate)}function TA(e){return e&&la(e.canActivateChild)}function MA(e){return e&&la(e.canDeactivate)}function NA(e){return e&&la(e.canMatch)}function mE(e){return e instanceof Ln||e?.name==="EmptyError"}var $l=Symbol("INITIAL_VALUE");function xo(){return Re(e=>lc(e.map(t=>t.pipe(Vn(1),Ui($l)))).pipe(X(t=>{for(let n of t)if(n!==!0){if(n===$l)return $l;if(n===!1||xA(n))return n}return!0}),ct(t=>t!==$l),Vn(1)))}function xA(e){return To(e)||e instanceof ia}function AA(e,t){return We(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?O(Y(C({},n),{guardsResult:!0})):RA(s,r,i,e).pipe(We(a=>a&&wA(a)?OA(r,o,e,t):O(a)),X(a=>Y(C({},n),{guardsResult:a})))})}function RA(e,t,n,r){return ke(e).pipe(We(i=>VA(i.component,i.route,n,t,r)),Bn(i=>i!==!0,!0))}function OA(e,t,n,r){return ke(t).pipe(ar(i=>Vi(PA(i.route.parent,r),kA(i.route,r),LA(e,i.path,n),FA(e,i.route,n))),Bn(i=>i!==!0,!0))}function kA(e,t){return e!==null&&t&&t(new ig(e)),O(!0)}function PA(e,t){return e!==null&&t&&t(new ng(e)),O(!0)}function FA(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return O(!0);let i=r.map(o=>Qo(()=>{let s=Ao(t)??n,a=Ro(o,s),c=SA(a)?a.canActivate(t,e):it(s,()=>a(t,e));return Jn(c).pipe(Bn())}));return O(i).pipe(xo())}function LA(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>EA(s)).filter(s=>s!==null).map(s=>Qo(()=>{let a=s.guards.map(c=>{let l=Ao(s.node)??n,u=Ro(c,l),d=TA(u)?u.canActivateChild(r,e):it(l,()=>u(r,e));return Jn(d).pipe(Bn())});return O(a).pipe(xo())}));return O(o).pipe(xo())}function VA(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return O(!0);let s=o.map(a=>{let c=Ao(t)??i,l=Ro(a,c),u=MA(l)?l.canDeactivate(e,t,n,r):it(c,()=>l(e,t,n,r));return Jn(u).pipe(Bn())});return O(s).pipe(xo())}function BA(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return O(!0);let o=i.map(s=>{let a=Ro(s,e),c=IA(a)?a.canLoad(t,n):it(e,()=>a(t,n));return Jn(c)});return O(o).pipe(xo(),vE(r))}function vE(e){return ld(Qe(t=>{if(typeof t!="boolean")throw eu(e,t)}),X(t=>t===!0))}function UA(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return O(!0);let o=i.map(s=>{let a=Ro(s,e),c=NA(a)?a.canMatch(t,n):it(e,()=>a(t,n));return Jn(c)});return O(o).pipe(xo(),vE(r))}var oa=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},sa=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function bo(e){return Li(new oa(e))}function jA(e){return Li(new I(4e3,!1))}function $A(e){return Li(hE(!1,Rt.GuardRejected))}var fg=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return O(r);if(i.numberOfChildren>1||!i.children[J])return jA(`${t.redirectTo}`);i=i.children[J]}}applyRedirectCommands(t,n,r,i,o){return HA(n,i,o).pipe(X(s=>{if(s instanceof Xn)throw new sa(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new sa(a);return a}))}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new Xn(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,i)}),new pe(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new I(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}};function HA(e,t,n){if(typeof e=="string")return O(e);let r=e,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:l,data:u,title:d}=t;return Jn(it(n,()=>r({params:l,data:u,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:d})))}var pg={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zA(e,t,n,r,i){let o=yE(e,t,n);return o.matched?(r=dA(t,r),UA(r,t,n,i).pipe(X(s=>s===!0?o:C({},pg)))):O(o)}function yE(e,t,n){if(t.path==="**")return GA(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?C({},pg):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||Vx)(n,e,t);if(!i)return C({},pg);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?C(C({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function GA(e){return{matched:!0,parameters:e.length>0?Zb(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Gb(e,t,n,r){return n.length>0&&KA(e,n,r)?{segmentGroup:new pe(t,WA(r,new pe(n,e.children))),slicedSegments:[]}:n.length===0&&ZA(e,n,r)?{segmentGroup:new pe(e.segments,qA(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new pe(e.segments,e.children),slicedSegments:n}}function qA(e,t,n,r){let i={};for(let o of n)if(iu(e,t,o)&&!r[gn(o)]){let s=new pe([],{});i[gn(o)]=s}return C(C({},r),i)}function WA(e,t){let n={};n[J]=t;for(let r of e)if(r.path===""&&gn(r)!==J){let i=new pe([],{});n[gn(r)]=i}return n}function KA(e,t,n){return n.some(r=>iu(e,t,r)&&gn(r)!==J)}function ZA(e,t,n){return n.some(r=>iu(e,t,r))}function iu(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function YA(e,t,n){return t.length===0&&!e.children[n]}var hg=class{};function QA(e,t,n,r,i,o,s="emptyOnly"){return new gg(e,t,n,r,i,s,o).recognize()}var XA=31,gg=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new fg(this.urlSerializer,this.urlTree)}noMatchError(t){return new I(4002,`'${t.segmentGroup}'`)}recognize(){let t=Gb(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(X(({children:n,rootSnapshot:r})=>{let i=new Bt(r,n),o=new Jl("",i),s=rA(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new Co([],Object.freeze({}),Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),J,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,J,n).pipe(X(r=>({children:r,rootSnapshot:n})),kt(r=>{if(r instanceof sa)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof oa?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(X(s=>s instanceof Bt?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return ke(o).pipe(ar(s=>{let a=r.children[s],c=fA(n,s);return this.processSegmentGroup(t,c,a,s,i)}),Dd((s,a)=>(s.push(...a),s)),cr(null),bd(),We(s=>{if(s===null)return bo(r);let a=_E(s);return JA(a),O(a)}))}processSegment(t,n,r,i,o,s,a){return ke(n).pipe(ar(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,i,o,s,a).pipe(kt(l=>{if(l instanceof oa)return O(null);throw l}))),Bn(c=>!!c),kt(c=>{if(mE(c))return YA(r,i,o)?O(new hg):bo(r);throw c}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,c){return gn(r)!==s&&(s===J||!iu(i,o,r))?bo(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,c):bo(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:p}=yE(n,i,o);if(!c)return bo(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>XA&&(this.allowRedirects=!1));let f=new Co(o,l,Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,qb(i),gn(i),i.component??i._loadedComponent??null,i,Wb(i)),g=Xl(f,a,this.paramsInheritanceStrategy);return f.params=Object.freeze(g.params),f.data=Object.freeze(g.data),this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,f,t).pipe(Re(v=>this.applyRedirects.lineralizeSegments(i,v)),We(v=>this.processSegment(t,r,n,v.concat(p),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=zA(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(Re(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(Re(({routes:l})=>{let u=r._loadedInjector??t,{parameters:d,consumedSegments:p,remainingSegments:f}=c,g=new Co(p,d,Object.freeze(C({},this.urlTree.queryParams)),this.urlTree.fragment,qb(r),gn(r),r.component??r._loadedComponent??null,r,Wb(r)),m=Xl(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(m.params),g.data=Object.freeze(m.data);let{segmentGroup:v,slicedSegments:y}=Gb(n,p,f,l);if(y.length===0&&v.hasChildren())return this.processChildren(u,l,v,g).pipe(X(U=>new Bt(g,U)));if(l.length===0&&y.length===0)return O(new Bt(g,[]));let R=gn(r)===o;return this.processSegment(u,l,v,y,R?J:o,!0,g).pipe(X(U=>new Bt(g,U instanceof Bt?[U]:[])))}))):bo(n)))}getChildConfig(t,n,r){return n.children?O({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?O({routes:n._loadedRoutes,injector:n._loadedInjector}):BA(t,n,r,this.urlSerializer).pipe(We(i=>i?this.configLoader.loadChildren(t,n).pipe(Qe(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):$A(n))):O({routes:[],injector:t})}};function JA(e){e.sort((t,n)=>t.value.outlet===J?-1:n.value.outlet===J?1:t.value.outlet.localeCompare(n.value.outlet))}function eR(e){let t=e.value.routeConfig;return t&&t.path===""}function _E(e){let t=[],n=new Set;for(let r of e){if(!eR(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=_E(r.children);t.push(new Bt(r.value,i))}return t.filter(r=>!n.has(r))}function qb(e){return e.data||{}}function Wb(e){return e.resolve||{}}function tR(e,t,n,r,i,o){return We(s=>QA(e,t,n,r,s.extractedUrl,i,o).pipe(X(({state:a,tree:c})=>Y(C({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function nR(e,t){return We(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return O(n);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of bE(c))s.add(l);let a=0;return ke(s).pipe(ar(c=>o.has(c)?rR(c,r,e,t):(c.data=Xl(c,c.parent,e).resolve,O(void 0))),Qe(()=>a++),Bi(1),We(c=>a===s.size?O(n):St))})}function bE(e){let t=e.children.map(n=>bE(n)).flat();return[e,...t]}function rR(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!uE(i)&&(o[aa]=i.title),Qo(()=>(e.data=Xl(e,e.parent,n).resolve,iR(o,e,t,r).pipe(X(s=>(e._resolvedData=s,e.data=C(C({},e.data),s),null)))))}function iR(e,t,n,r){let i=qh(e);if(i.length===0)return O({});let o={};return ke(i).pipe(We(s=>oR(e[s],t,n,r).pipe(Bn(),Qe(a=>{if(a instanceof ia)throw eu(new So,a);o[s]=a}))),Bi(1),X(()=>o),kt(s=>mE(s)?St:Li(s)))}function oR(e,t,n,r){let i=Ao(t)??r,o=Ro(e,i),s=o.resolve?o.resolve(t,n):it(i,()=>o(t,n));return Jn(s)}function zh(e){return Re(t=>{let n=e(t);return n?ke(n).pipe(X(()=>t)):O(t)})}var EE=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===J);return r}getResolvedTitleForRoute(n){return n.data[aa]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(sR),providedIn:"root"})}return e})(),sR=(()=>{class e extends EE{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)(F(Ub))};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ou=new T("",{providedIn:"root",factory:()=>({})}),su=new T(""),DE=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=h(ch);loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return O(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=Jn(it(n,()=>r.loadComponent())).pipe(X(CE),Re(wE),Qe(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),qr(()=>{this.componentLoaders.delete(r)})),o=new rr(i,()=>new se).pipe(ki());return this.componentLoaders.set(r,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return O({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=aR(r,this.compiler,n,this.onLoadEndListener).pipe(qr(()=>{this.childrenLoaders.delete(r)})),s=new rr(o,()=>new se).pipe(ki());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function aR(e,t,n,r){return Jn(it(n,()=>e.loadChildren())).pipe(X(CE),Re(wE),We(i=>i instanceof vl||Array.isArray(i)?O(i):ke(t.compileModuleAsync(i))),X(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(su,[],{optional:!0,self:!0}).flat()),{routes:s.map(yg),injector:o}}))}function cR(e){return e&&typeof e=="object"&&"default"in e}function CE(e){return cR(e)?e.default:e}function wE(e){return O(e)}var _g=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(lR),providedIn:"root"})}return e})(),lR=(()=>{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=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),IE=new T("");var SE=new T(""),TE=(()=>{class e{currentNavigation=L(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new se;transitionAbortWithErrorSubject=new se;configLoader=h(DE);environmentInjector=h(Ke);destroyRef=h(Ze);urlSerializer=h(nu);rootContexts=h(ca);location=h(ho);inputBindingEnabled=h(ru,{optional:!0})!==null;titleStrategy=h(EE);options=h(ou,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=h(_g);createViewTransition=h(IE,{optional:!0});navigationErrorHandler=h(SE,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>O(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=i=>this.events.next(new eg(i)),r=i=>this.events.next(new tg(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;je(()=>{this.transitions?.next(Y(C({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(n){return this.transitions=new nt(null),this.transitions.pipe(ct(r=>r!==null),Re(r=>{let i=!1;return O(r).pipe(Re(o=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Rt.SupersededByNewNavigation),St;this.currentTransition=r,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Y(C({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new kr(o.id,this.urlSerializer.serialize(o.rawUrl),"",Kl.IgnoredSameUrlNavigation)),o.resolve(!1),St;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return O(o).pipe(Re(c=>(this.events.next(new Mo(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?St:Promise.resolve(c))),tR(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Qe(c=>{r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(u=>(u.finalUrl=c.urlAfterRedirects,u));let l=new Zl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:c,extractedUrl:l,source:u,restoredState:d,extras:p}=o,f=new Mo(c,this.urlSerializer.serialize(l),u,d);this.events.next(f);let g=cE(this.rootComponentType).snapshot;return this.currentTransition=r=Y(C({},o),{targetSnapshot:g,urlAfterRedirects:l,extras:Y(C({},p),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(m=>(m.finalUrl=l,m)),O(r)}else return this.events.next(new kr(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Kl.IgnoredByUrlHandlingStrategy)),o.resolve(!1),St}),Qe(o=>{let s=new Yh(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),X(o=>(this.currentTransition=r=Y(C({},o),{guards:bA(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),AA(this.environmentInjector,o=>this.events.next(o)),Qe(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw eu(this.urlSerializer,o.guardsResult);let s=new Qh(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),ct(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Rt.GuardRejected),!1)),zh(o=>{if(o.guards.canActivateChecks.length!==0)return O(o).pipe(Qe(s=>{let a=new Xh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),Re(s=>{let a=!1;return O(s).pipe(nR(this.paramsInheritanceStrategy,this.environmentInjector),Qe({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",Rt.NoDataFromResolver)}}))}),Qe(s=>{let a=new Jh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),zh(o=>{let s=a=>{let c=[];if(a.routeConfig?.loadComponent){let l=Ao(a)??this.environmentInjector;c.push(this.configLoader.loadComponent(l,a.routeConfig).pipe(Qe(u=>{a.component=u}),X(()=>{})))}for(let l of a.children)c.push(...s(l));return c};return lc(s(o.targetSnapshot.root)).pipe(cr(null),Vn(1))}),zh(()=>this.afterPreactivation()),Re(()=>{let{currentSnapshot:o,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?ke(a).pipe(X(()=>r)):O(r)}),X(o=>{let s=gA(n.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=Y(C({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),Qe(()=>{this.events.next(new na)}),_A(this.rootContexts,n.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),Vn(1),lr(new z(o=>{let s=r.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(ct(()=>!i&&!r.targetRouterState),Qe(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",Rt.Aborted)}))),Qe({next:o=>{i=!0,this.lastSuccessfulNavigation=je(this.currentNavigation),this.events.next(new Or(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),lr(this.transitionAbortWithErrorSubject.pipe(Qe(o=>{throw o}))),qr(()=>{i||this.cancelNavigationTransition(r,"",Rt.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),kt(o=>{if(this.destroyed)return r.resolve(!1),St;if(i=!0,gE(o))this.events.next(new Qn(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),yA(o)?this.events.next(new No(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let s=new ta(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);try{let a=it(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof ia){let{message:c,cancellationCode:l}=eu(this.urlSerializer,a);this.events.next(new Qn(r.id,this.urlSerializer.serialize(r.extractedUrl),c,l)),this.events.next(new No(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return St}))}))}cancelNavigationTransition(n,r,i){let o=new Qn(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),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=je(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function uR(e){return e!==Xs}var dR=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(fR),providedIn:"root"})}return e})(),mg=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},fR=(()=>{class e extends mg{static \u0275fac=(()=>{let n;return function(i){return(n||(n=Ir(e)))(i||e)}})();static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ME=(()=>{class e{urlSerializer=h(nu);options=h(ou,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=h(ho);urlHandlingStrategy=h(_g);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Xn;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:i}){let o=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=i??o;return s instanceof Xn?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:i}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=n):this.rawUrlTree=i}routerState=cE(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:()=>h(pR),providedIn:"root"})}return e})(),pR=(()=>{class e extends ME{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}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")})})}handleRouterEvent(n,r){n instanceof Mo?this.updateStateMemento():n instanceof kr?this.commitTransition(r):n instanceof Zl?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof na?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Qn&&n.code!==Rt.SupersededByNewNavigation&&n.code!==Rt.Redirect?this.restoreHistory(r):n instanceof ta?this.restoreHistory(r,!0):n instanceof Or&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||o){let a=this.browserPageId,c=C(C({},s),this.generateNgRouterState(i,a));this.location.replaceState(n,"",c)}else{let a=C(C({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===n.finalUrl&&o===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(i){return(n||(n=Ir(e)))(i||e)}})();static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function NE(e,t){e.events.pipe(ct(n=>n instanceof Or||n instanceof Qn||n instanceof ta||n instanceof kr),X(n=>n instanceof Or||n instanceof kr?0:(n instanceof Qn?n.code===Rt.Redirect||n.code===Rt.SupersededByNewNavigation:!1)?2:1),ct(n=>n!==2),Vn(1)).subscribe(()=>{t()})}var hR={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gR={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},bg=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=h(Xp);stateManager=h(ME);options=h(ou,{optional:!0})||{};pendingTasks=h(Cn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=h(TE);urlSerializer=h(nu);location=h(ho);urlHandlingStrategy=h(_g);injector=h(Ke);_events=new se;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=h(dR);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=h(su,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!h(ru,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Te;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=je(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof Qn&&r.code!==Rt.Redirect&&r.code!==Rt.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Or)this.navigated=!0;else if(r instanceof No){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=C({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||uR(i.source)},s);this.scheduleNavigation(a,Xs,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}uA(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});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),Xs,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,i)=>{this.navigateToSyncWithBrowser(n,i,r)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=C({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(Lt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return je(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(yg),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=C(C({},this.currentUrlTree.queryParams),o);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let p=i?i.snapshot:this.routerState.snapshot.root;d=iE(p)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return oE(d,n,u,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=To(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Xs,null,r)}navigate(n,r={skipLocationChange:!1}){return mR(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let i;if(r===!0?i=C({},hR):r===!1?i=C({},gR):i=r,To(n))return jb(this.currentUrlTree,n,i);let o=this.parseUrl(n);return jb(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,p)=>{a=d,c=p});let u=this.pendingTasks.add();return NE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function mR(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new I(4008,!1)}var vR=new T("");function Eg(e,...t){return ei([{provide:su,multi:!0,useValue:e},[],{provide:_i,useFactory:yR,deps:[bg]},{provide:_l,multi:!0,useFactory:_R},t.map(n=>n.\u0275providers)])}function yR(e){return e.routerState.root}function _R(){let e=h(Je);return t=>{let n=e.get(fn);if(t!==n.components[0])return;let r=e.get(bg),i=e.get(bR);e.get(ER)===1&&r.initialNavigation(),e.get(DR,null,{optional:!0})?.setUpPreloading(),e.get(vR,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var bR=new T("",{factory:()=>new se}),ER=new T("",{providedIn:"root",factory:()=>1});var DR=new T("");var xE=[];var AE={providers:[uh({eventCoalescing:!0}),Eg(xE),Bh(Uh())]};function au(e,t){let n=t?.injector??h(Je),r=new Hr(1),i=ze(()=>{let o;try{o=e()}catch(s){je(()=>r.error(s));return}je(()=>r.next(o))},{injector:n,manualCleanup:!0});return n.get(Ze).onDestroy(()=>{i.destroy(),r.complete()}),r.asObservable()}function cu(e,t){let r=!t?.manualCleanup?t?.injector?.get(Ze)??h(Ze):null,i=wR(t?.equal),o;t?.requireSync?o=L({kind:0},{equal:i}):o=L({kind:1,value:t?.initialValue},{equal:i});let s,a=e.subscribe({next:c=>o.set({kind:1,value:c}),error:c=>{o.set({kind:2,error:c}),s?.()},complete:()=>{s?.()}});if(t?.requireSync&&o().kind===0)throw new I(601,!1);return s=r?.onDestroy(a.unsubscribe.bind(a)),He(()=>{let c=o();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new I(601,!1)}},{equal:t?.equal})}function wR(e=Object.is){return(t,n)=>t.kind===1&&n.kind===1&&e(t.value,n.value)}var Oo=class e{http=h(Ul);base="/api";getCommits(t={}){let n=new Xt;for(let[r,i]of Object.entries(t))i!=null&&i!==""&&(n=n.set(r,String(i)));return this.http.get(`${this.base}/commits`,{params:n})}getCommit(t){return this.http.get(`${this.base}/commit/${t}`)}getDiff(t){return this.http.get(`${this.base}/diff/${t}`)}getBlame(t){let n=new Xt().set("file",t);return this.http.get(`${this.base}/blame`,{params:n})}getTags(){return this.http.get(`${this.base}/tags`)}getBranches(){return this.http.get(`${this.base}/branches`)}getAuthors(){return this.http.get(`${this.base}/authors`)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};var ht=class e{filters=L({page:1,pageSize:100});commits=L([]);total=L(0);page=L(1);pageSize=L(100);loading=L(!1);error=L(null);authors=L([]);branches=L([]);tags=L([]);selectedHash=L(null);selected=He(()=>{let t=this.selectedHash();return t?this.commits().find(n=>n.hash===t)??null:null});paletteOpen=L(!1);shortcutsOpen=L(!1);graphVisible=L(!0);patchFilters(t){this.filters.update(n=>Y(C(C({},n),t),{page:t.page??1}))}selectHash(t){this.selectedHash.set(t)}selectByOffset(t){let n=this.commits();if(n.length===0)return;let r=this.selectedHash(),i=r?n.findIndex(s=>s.hash===r):-1,o=i===-1?t>0?0:n.length-1:i+t;o=Math.max(0,Math.min(n.length-1,o)),this.selectedHash.set(n[o].hash)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};var UC=Fw(BC(),1);var Og=UC.default;function Rk(e,t){if(e&1&&(b(0,"span",13),w(1),_()),e&2){let n=oe(2);E(),Zt(" \u2190 ",n.file.oldFile," ")}}function Ok(e,t){if(e&1){let n=Dt();b(0,"div",3)(1,"div",4)(2,"span",5),w(3),_(),b(4,"span",6),w(5),_(),re(6,Rk,2,1,"span",7),_(),b(7,"div",8)(8,"span",9),w(9),_(),b(10,"span",10),w(11),_(),b(12,"div",11)(13,"button",12),ce("click",function(){be(n);let i=oe();return Ee(i.mode.set("unified"))}),w(14,"Unified"),_(),b(15,"button",12),ce("click",function(){be(n);let i=oe();return Ee(i.mode.set("split"))}),w(16,"Split"),_()()()()}if(e&2){let n=oe();E(2),Kt("data-status",n.file.status),E(),ie(n.file.status),E(2),ie(n.file.file),E(),N("ngIf",n.file.oldFile&&n.file.oldFile!==n.file.file),E(3),Zt("+",n.file.additions),E(2),Zt("\u2212",n.file.deletions),E(2),Ye("active",n.mode()==="unified"),E(2),Ye("active",n.mode()==="split")}}function kk(e,t){e&1&&(b(0,"div",14),w(1,"Select a file to see its diff."),_())}function Pk(e,t){e&1&&(b(0,"div",14),w(1," Binary file \u2014 diff not displayed. "),_())}function Fk(e,t){if(e&1&&(b(0,"div",19)(1,"span",20),w(2),_(),b(3,"span",21),w(4),_(),b(5,"span",22),w(6),_(),Ce(7,"span",23),_()),e&2){let n=t.$implicit,r=oe(3);Ye("add",n.type==="add")("del",n.type==="del")("hunk",n.type==="hunk")("meta",n.type==="meta"),E(2),ie(n.oldNo??""),E(2),ie(n.newNo??""),E(2),ie(r.sign(n)),E(),N("innerHTML",r.render(n.text),Ds)}}function Lk(e,t){if(e&1&&(b(0,"pre",17)(1,"code"),re(2,Fk,8,12,"div",18),_()()),e&2){let n=oe(2);E(2),N("ngForOf",n.unifiedLines())("ngForTrackBy",n.trackByIdx)}}function Vk(e,t){if(e&1&&(b(0,"div",19)(1,"span",28),w(2),_(),Ce(3,"span",23),_()),e&2){let n=t.$implicit,r=oe(3);Ye("del",n.type==="del")("empty",n.type==="empty")("hunk",n.type==="hunk"),E(2),ie(n.no??""),E(),N("innerHTML",r.render(n.text),Ds)}}function Bk(e,t){if(e&1&&(b(0,"div",19)(1,"span",28),w(2),_(),Ce(3,"span",23),_()),e&2){let n=t.$implicit,r=oe(3);Ye("add",n.type==="add")("empty",n.type==="empty")("hunk",n.type==="hunk"),E(2),ie(n.no??""),E(),N("innerHTML",r.render(n.text),Ds)}}function Uk(e,t){if(e&1&&(b(0,"div",24)(1,"pre",25)(2,"code"),re(3,Vk,4,8,"div",26),_()(),b(4,"pre",25)(5,"code"),re(6,Bk,4,8,"div",27),_()()()),e&2){let n=oe(2);E(3),N("ngForOf",n.splitLines().left)("ngForTrackBy",n.trackByIdx),E(3),N("ngForOf",n.splitLines().right)("ngForTrackBy",n.trackByIdx)}}function jk(e,t){if(e&1&&(Mr(0),re(1,Lk,3,2,"pre",15)(2,Uk,7,4,"div",16),Nr()),e&2){let n=oe();E(),N("ngIf",n.mode()==="unified"),E(),N("ngIf",n.mode()==="split")}}var bu=class e{set fileInput(t){this.file=t,this.parsed.set(t?this.parse(t.changes):[])}file=null;mode=L("unified");parsed=L([]);unifiedLines=He(()=>this.parsed());splitLines=He(()=>{let t=this.parsed(),n=[],r=[],i=0;for(;i<t.length;){let o=t[i];if(o.type==="hunk"||o.type==="meta"){n.push({type:"hunk",text:o.text}),r.push({type:"hunk",text:o.text}),i++;continue}if(o.type==="context"){n.push({type:"context",no:o.oldNo,text:o.text}),r.push({type:"context",no:o.newNo,text:o.text}),i++;continue}let s=[],a=[];for(;i<t.length&&t[i].type==="del";)s.push(t[i++]);for(;i<t.length&&t[i].type==="add";)a.push(t[i++]);let c=Math.max(s.length,a.length);for(let l=0;l<c;l++)n.push(s[l]?{type:"del",no:s[l].oldNo,text:s[l].text}:{type:"empty",text:""}),r.push(a[l]?{type:"add",no:a[l].newNo,text:a[l].text}:{type:"empty",text:""})}return{left:n,right:r}});trackByIdx(t){return t}sign(t){return t.type==="add"?"+":t.type==="del"?"-":" "}render(t){if(!t)return"";let n=this.langForFile(this.file?.file);try{return n?Og.highlight(t,{language:n,ignoreIllegals:!0}).value:Og.highlightAuto(t).value}catch{return this.escape(t)}}langForFile(t){if(!t)return null;let n=t.split(".").pop()?.toLowerCase();if(!n)return null;let r={ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",json:"json",yml:"yaml",yaml:"yaml",md:"markdown",html:"xml",xml:"xml",css:"css",scss:"scss",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",kt:"kotlin",swift:"swift",php:"php",sh:"bash",bash:"bash",sql:"sql",cpp:"cpp",cc:"cpp",c:"c",h:"cpp",hpp:"cpp",cs:"csharp",dockerfile:"dockerfile"};return t.toLowerCase().endsWith("dockerfile")?"dockerfile":r[n]??null}escape(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}parse(t){let n=[];if(!t)return n;let r=0,i=0;for(let o of t.split(`
10
- `))if(o.startsWith("@@")){n.push({type:"hunk",text:o});let s=o.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);s&&(r=parseInt(s[1],10),i=parseInt(s[2],10))}else o.startsWith("diff --git")||o.startsWith("index ")||o.startsWith("--- ")||o.startsWith("+++ ")||o.startsWith("new file")||o.startsWith("deleted file")||o.startsWith("rename ")||o.startsWith("copy ")||o.startsWith("similarity ")||o.startsWith("Binary files")?n.push({type:"meta",text:o}):o.startsWith("+")?(n.push({type:"add",newNo:i,text:o.substring(1)}),i++):o.startsWith("-")?(n.push({type:"del",oldNo:r,text:o.substring(1)}),r++):o.startsWith(" ")?(n.push({type:"context",oldNo:r,newNo:i,text:o.substring(1)}),r++,i++):o===""&&n.push({type:"context",oldNo:r,newNo:i,text:""});return n}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-diff-viewer"]],inputs:{fileInput:"fileInput"},decls:4,vars:4,consts:[["class","header",4,"ngIf"],["class","empty",4,"ngIf"],[4,"ngIf"],[1,"header"],[1,"file-info"],[1,"status"],[1,"path"],["class","path old",4,"ngIf"],[1,"stats"],[1,"add"],[1,"del"],[1,"toggle"],[1,"btn","btn-ghost",3,"click"],[1,"path","old"],[1,"empty"],["class","unified",4,"ngIf"],["class","split",4,"ngIf"],[1,"unified"],["class","line",3,"add","del","hunk","meta",4,"ngFor","ngForOf","ngForTrackBy"],[1,"line"],[1,"gutter","old"],[1,"gutter","new"],[1,"sign"],[1,"text",3,"innerHTML"],[1,"split"],[1,"side"],["class","line",3,"del","empty","hunk",4,"ngFor","ngForOf","ngForTrackBy"],["class","line",3,"add","empty","hunk",4,"ngFor","ngForOf","ngForTrackBy"],[1,"gutter"]],template:function(n,r){n&1&&re(0,Ok,17,10,"div",0)(1,kk,2,0,"div",1)(2,Pk,2,0,"div",1)(3,jk,3,2,"ng-container",2),n&2&&(N("ngIf",r.file),E(),N("ngIf",!r.file),E(),N("ngIf",r.file&&r.file.status==="binary"),E(),N("ngIf",r.file&&r.file.status!=="binary"))},dependencies:[et,At,Ct],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg-surface)}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.5rem .85rem;border-bottom:1px solid var(--border-soft);background:var(--bg-surface);gap:.75rem}.file-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;min-width:0}.path[_ngcontent-%COMP%]{font-family:var(--font-mono);font-size:12px;color:var(--fg-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.path.old[_ngcontent-%COMP%]{color:var(--fg-muted)}.status[_ngcontent-%COMP%]{text-transform:uppercase;font-size:10px;font-weight:700;padding:2px 6px;border-radius:999px;letter-spacing:.04em;color:var(--accent-fg)}.status[data-status=added][_ngcontent-%COMP%]{background:var(--success)}.status[data-status=deleted][_ngcontent-%COMP%]{background:var(--danger)}.status[data-status=modified][_ngcontent-%COMP%]{background:var(--accent)}.status[data-status=renamed][_ngcontent-%COMP%], .status[data-status=copied][_ngcontent-%COMP%]{background:var(--warning)}.status[data-status=binary][_ngcontent-%COMP%]{background:var(--fg-muted)}.stats[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;font-family:var(--font-mono);font-size:12px}.stats[_ngcontent-%COMP%] .add[_ngcontent-%COMP%]{color:var(--success)}.stats[_ngcontent-%COMP%] .del[_ngcontent-%COMP%]{color:var(--danger)}.toggle[_ngcontent-%COMP%]{display:flex;gap:2px;padding-left:.5rem}.toggle[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:.25rem .6rem;font-size:12px}.toggle[_ngcontent-%COMP%] .btn.active[_ngcontent-%COMP%]{background:var(--accent-soft);color:var(--accent)}.empty[_ngcontent-%COMP%]{padding:2rem 1rem;text-align:center;color:var(--fg-muted)}pre[_ngcontent-%COMP%]{flex:1;margin:0;overflow:auto;padding:0;font-family:var(--font-mono);font-size:12.5px;line-height:1.55;color:var(--fg-primary);background:var(--bg-surface-2);min-height:0}code[_ngcontent-%COMP%]{display:block;min-width:max-content}.line[_ngcontent-%COMP%]{display:grid;grid-template-columns:48px 48px 14px 1fr;align-items:baseline;padding:0 .5rem;white-space:pre}.split[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{grid-template-columns:48px 1fr}.gutter[_ngcontent-%COMP%]{color:var(--fg-subtle);text-align:right;padding-right:.5rem;-webkit-user-select:none;user-select:none;font-variant-numeric:tabular-nums}.sign[_ngcontent-%COMP%]{width:14px;color:var(--fg-subtle)}.text[_ngcontent-%COMP%]{white-space:pre}.line.add[_ngcontent-%COMP%]{background:var(--diff-add-bg);color:var(--diff-add-fg)}.line.add[_ngcontent-%COMP%] .gutter[_ngcontent-%COMP%]{color:var(--diff-add-gutter)}.line.del[_ngcontent-%COMP%]{background:var(--diff-del-bg);color:var(--diff-del-fg)}.line.del[_ngcontent-%COMP%] .gutter[_ngcontent-%COMP%]{color:var(--diff-del-gutter)}.line.hunk[_ngcontent-%COMP%]{background:var(--diff-hunk-bg);color:var(--diff-hunk-fg);font-style:italic}.line.meta[_ngcontent-%COMP%]{color:var(--fg-muted)}.line.empty[_ngcontent-%COMP%]{background:repeating-linear-gradient(45deg,transparent 0 6px,color-mix(in oklab,var(--fg-subtle) 14%,transparent) 6px 12px)}.split[_ngcontent-%COMP%]{flex:1;display:grid;grid-template-columns:1fr 1px 1fr;min-height:0}.split[_ngcontent-%COMP%]:before{content:"";grid-column:2;background:var(--border-soft)}.split[_ngcontent-%COMP%] .side[_ngcontent-%COMP%]{width:100%}'],changeDetection:0})};function $k(e,t){if(e&1&&(b(0,"span",22),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function Hk(e,t){if(e&1&&(b(0,"span",23),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function zk(e,t){e&1&&(b(0,"span",24),w(1,"merge"),_())}function Gk(e,t){if(e&1&&(b(0,"pre",25),w(1),_()),e&2){let n=oe().ngIf;E(),ie(n.body)}}function qk(e,t){if(e&1&&(b(0,"span",26),w(1),_()),e&2){let n=oe(2);E(),ie(n.files().length)}}function Wk(e,t){if(e&1&&(b(0,"span",33),w(1),_()),e&2){let n=oe().$implicit;E(),Zt("+",n.additions)}}function Kk(e,t){if(e&1&&(b(0,"span",34),w(1),_()),e&2){let n=oe().$implicit;E(),Zt("\u2212",n.deletions)}}function Zk(e,t){if(e&1){let n=Dt();b(0,"button",27),ce("click",function(){let i=be(n).$implicit,o=oe(2);return Ee(o.selectFile(i))}),Ce(1,"span",28),b(2,"span",29),w(3),_(),b(4,"span",30),re(5,Wk,2,1,"span",31)(6,Kk,2,1,"span",32),_()()}if(e&2){let n,r=t.$implicit,i=oe(2);Ye("selected",r.file===((n=i.activeFile())==null?null:n.file)),E(),Kt("data-status",r.status),E(),N("title",r.file),E(),ie(r.file),E(2),N("ngIf",r.additions),E(),N("ngIf",r.deletions)}}function Yk(e,t){e&1&&(b(0,"div",35),w(1," No files changed. "),_())}function Qk(e,t){e&1&&(b(0,"div",35),w(1,"Loading\u2026"),_())}function Xk(e,t){if(e&1&&(Mr(0),b(1,"header",2)(2,"div",3)(3,"span",4),w(4),_(),b(5,"span",5),re(6,$k,2,1,"span",6)(7,Hk,2,1,"span",7)(8,zk,2,0,"span",8),_()(),b(9,"h2",9),w(10),_(),b(11,"div",10)(12,"span"),w(13),_(),b(14,"span",11),w(15,"\u2022"),_(),b(16,"span"),w(17),Ns(18,"date"),_()(),re(19,Gk,2,1,"pre",12),_(),b(20,"div",13)(21,"aside",14)(22,"div",15)(23,"span"),w(24,"Files"),_(),re(25,qk,2,1,"span",16),_(),b(26,"div",17),re(27,Zk,7,7,"button",18)(28,Yk,2,0,"div",19)(29,Qk,2,0,"div",19),_()(),b(30,"section",20),Ce(31,"app-diff-viewer",21),_()(),Nr()),e&2){let n=t.ngIf,r=oe();E(4),ie(n.shortHash),E(2),N("ngForOf",n.tags),E(),N("ngForOf",n.branches),E(),N("ngIf",n.isMerge),E(2),ie(n.subject),E(3),po("",n.author," <",n.authorEmail,">"),E(4),ie(xs(18,15,n.date,"medium")),E(2),N("ngIf",n.body),E(6),N("ngIf",r.files().length),E(2),N("ngForOf",r.files())("ngForTrackBy",r.trackByFile),E(),N("ngIf",!r.files().length&&!r.loading()),E(),N("ngIf",r.loading()),E(2),N("fileInput",r.activeFile())}}function Jk(e,t){e&1&&(b(0,"div",36)(1,"p",37),w(2,"No commit selected"),_(),b(3,"p",38),w(4," Pick a commit from the list, or press "),b(5,"kbd",39),w(6,"\u2318K"),_(),w(7," to open the command palette. "),_()())}var Eu=class e{state=h(ht);git=h(Oo);commit=this.state.selected;loading=L(!1);files=cu(au(this.commit).pipe(Re(t=>t?(this.loading.set(!0),this.git.getDiff(t.hash).pipe(kt(()=>O([])))):(this.loading.set(!1),O([])))),{initialValue:[]});activeFileIndex=L(0);activeFile=He(()=>{let t=this.files();if(!t.length)return null;let n=Math.min(this.activeFileIndex(),t.length-1);return t[n]});constructor(){ze(()=>{this.files(),this.activeFileIndex.set(0),this.loading.set(!1)})}trackByFile(t,n){return n.file}selectFile(t){let n=this.files().findIndex(r=>r.file===t.file);n>=0&&this.activeFileIndex.set(n)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-commit-detail"]],decls:3,vars:2,consts:[["empty",""],[4,"ngIf","ngIfElse"],[1,"head"],[1,"row"],[1,"hash"],[1,"badges"],["class","badge tag",4,"ngFor","ngForOf"],["class","badge branch",4,"ngFor","ngForOf"],["class","badge merge",4,"ngIf"],[1,"subject"],[1,"meta"],[1,"dot"],["class","body",4,"ngIf"],[1,"split"],[1,"files"],[1,"files-header"],["class","count",4,"ngIf"],[1,"files-list"],["class","file",3,"selected","click",4,"ngFor","ngForOf","ngForTrackBy"],["class","files-empty",4,"ngIf"],[1,"diff"],[3,"fileInput"],[1,"badge","tag"],[1,"badge","branch"],[1,"badge","merge"],[1,"body"],[1,"count"],[1,"file",3,"click"],[1,"status-dot"],[1,"path",3,"title"],[1,"counts"],["class","add",4,"ngIf"],["class","del",4,"ngIf"],[1,"add"],[1,"del"],[1,"files-empty"],[1,"placeholder"],[1,"title"],[1,"hint"],[1,"kbd"]],template:function(n,r){if(n&1&&re(0,Xk,32,18,"ng-container",1)(1,Jk,8,0,"ng-template",null,0,ah),n&2){let i=sh(2);N("ngIf",r.commit())("ngIfElse",i)}},dependencies:[et,At,Ct,bu,Us],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg-app)}.head[_ngcontent-%COMP%]{padding:.85rem 1rem;border-bottom:1px solid var(--border-soft);background:var(--bg-surface)}.row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.4rem}.hash[_ngcontent-%COMP%]{font-family:var(--font-mono);font-size:12px;color:var(--fg-muted);padding:2px 6px;background:var(--bg-surface-2);border:1px solid var(--border-soft);border-radius:4px}.badges[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:4px}.badge[_ngcontent-%COMP%]{font-size:10px;font-weight:600;padding:2px 6px;border-radius:999px}.badge.tag[_ngcontent-%COMP%]{background:#d9770626;color:var(--warning)}.badge.branch[_ngcontent-%COMP%]{background:var(--accent-soft);color:var(--accent)}.badge.merge[_ngcontent-%COMP%]{background:#8b5cf62e;color:#8b5cf6}.subject[_ngcontent-%COMP%]{font-size:18px;margin:0 0 4px;font-weight:600}.meta[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--fg-muted)}.meta[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{opacity:.5}.body[_ngcontent-%COMP%]{white-space:pre-wrap;font-family:var(--font-mono);font-size:12px;color:var(--fg-secondary);background:var(--bg-surface-2);border:1px solid var(--border-soft);border-radius:var(--radius-sm);padding:.5rem .75rem;margin-top:.5rem;max-height:160px;overflow:auto}.split[_ngcontent-%COMP%]{flex:1;display:grid;grid-template-columns:280px 1fr;min-height:0}.files[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:0;background:var(--bg-surface);border-right:1px solid var(--border-soft)}.files-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:.5rem .85rem;font-size:12px;color:var(--fg-muted);border-bottom:1px solid var(--border-soft)}.count[_ngcontent-%COMP%]{background:var(--bg-surface-2);padding:0 6px;border-radius:999px;font-size:11px}.files-list[_ngcontent-%COMP%]{overflow:auto;flex:1;min-height:0}.file[_ngcontent-%COMP%]{display:grid;grid-template-columns:10px 1fr auto;gap:.5rem;align-items:center;width:100%;padding:.5rem .85rem;border:0;background:transparent;color:inherit;cursor:pointer;text-align:left;border-bottom:1px solid var(--border-soft);font-size:12px}.file[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.file.selected[_ngcontent-%COMP%]{background:var(--bg-selected)}.file[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{font-family:var(--font-mono);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:left}.status-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background:var(--accent)}.status-dot[data-status=added][_ngcontent-%COMP%]{background:var(--success)}.status-dot[data-status=deleted][_ngcontent-%COMP%]{background:var(--danger)}.status-dot[data-status=renamed][_ngcontent-%COMP%], .status-dot[data-status=copied][_ngcontent-%COMP%]{background:var(--warning)}.status-dot[data-status=binary][_ngcontent-%COMP%]{background:var(--fg-muted)}.counts[_ngcontent-%COMP%]{display:flex;gap:6px;font-family:var(--font-mono);font-size:11px}.counts[_ngcontent-%COMP%] .add[_ngcontent-%COMP%]{color:var(--success)}.counts[_ngcontent-%COMP%] .del[_ngcontent-%COMP%]{color:var(--danger)}.files-empty[_ngcontent-%COMP%]{padding:1rem;color:var(--fg-muted);font-size:12px;text-align:center}.diff[_ngcontent-%COMP%]{min-width:0}.placeholder[_ngcontent-%COMP%]{flex:1;display:grid;place-items:center;text-align:center;color:var(--fg-muted)}.placeholder[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;margin-bottom:4px;color:var(--fg-secondary)}.placeholder[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{font-size:13px}"],changeDetection:0})};var eP=["canvas"],tP=["scroll"],Vo=28,kg=18,jC=5,$C=14,Pg=14,HC=["#4f46e5","#06b6d4","#f59e0b","#ef4444","#10b981","#8b5cf6","#ec4899","#0ea5e9"],Du=class e{state=h(ht);canvasRef;scrollRef;nodes=[];rowByHash=new Map;laneCount=1;constructor(){ze(()=>{this.layout(this.state.commits()),this.draw()}),ze(()=>{this.state.selectedHash(),this.draw()})}ngAfterViewInit(){this.canvasRef.nativeElement.addEventListener("click",t=>this.onClick(t)),this.draw()}onResize(){this.draw()}layout(t){if(this.nodes=[],this.rowByHash.clear(),!t.length){this.laneCount=1;return}let n=[],r=i=>{let o=n.indexOf(i);if(o>=0)return o;let s=n.indexOf(null);return s>=0?(n[s]=i,s):(n.push(i),n.length-1)};for(let i=0;i<t.length;i++){let o=t[i],s=r(o.hash),a={commit:o,row:i,lane:s};this.nodes.push(a),this.rowByHash.set(o.hash,a);let[c,...l]=o.parents;n[s]=c??null;for(let u of l)if(n.indexOf(u)===-1){let d=n.indexOf(null);d>=0?n[d]=u:n.push(u)}for(;n.length&&n[n.length-1]===null;)n.pop()}this.laneCount=Math.max(1,this.nodes.reduce((i,o)=>Math.max(i,o.lane+1),0))}draw(){let t=this.canvasRef?.nativeElement;if(!t)return;let n=window.devicePixelRatio||1,r=$C*2+this.laneCount*kg,i=Pg*2+this.nodes.length*Vo;t.width=Math.floor(r*n),t.height=Math.floor(i*n),t.style.width=`${r}px`,t.style.height=`${i}px`;let o=t.getContext("2d");if(o.setTransform(n,0,0,n,0,0),o.clearRect(0,0,r,i),!this.nodes.length)return;let s=u=>$C+u*kg+kg/2,a=u=>Pg+u*Vo+Vo/2,c=u=>HC[u%HC.length];o.lineWidth=2;for(let u of this.nodes)for(let d of u.commit.parents){let p=this.rowByHash.get(d);if(!p)continue;o.strokeStyle=c(p.lane);let f=s(u.lane),g=a(u.row),m=s(p.lane),v=a(p.row);if(o.beginPath(),f===m)o.moveTo(f,g),o.lineTo(m,v);else{o.moveTo(f,g);let y=g+Vo*.6;o.bezierCurveTo(f,y,m,g+Vo*.4,m,y),o.lineTo(m,v)}o.stroke()}let l=this.state.selectedHash();for(let u of this.nodes){let d=s(u.lane),p=a(u.row),f=c(u.lane),g=u.commit.hash===l,m=g?jC+2:jC;o.beginPath(),o.arc(d,p,m,0,Math.PI*2),o.fillStyle=u.commit.isMerge?"transparent":f,o.fill(),o.lineWidth=u.commit.isMerge||g?2.5:1.5,o.strokeStyle=f,o.stroke(),g&&(o.beginPath(),o.arc(d,p,m+4,0,Math.PI*2),o.strokeStyle=f,o.globalAlpha=.35,o.lineWidth=2,o.stroke(),o.globalAlpha=1)}}onClick(t){let n=this.canvasRef.nativeElement.getBoundingClientRect(),r=t.clientY-n.top,i=Math.floor((r-Pg)/Vo),o=this.nodes[i];o&&this.state.selectHash(o.commit.hash)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-commit-graph"]],viewQuery:function(n,r){if(n&1&&(Mn(eP,7),Mn(tP,7)),n&2){let i;Nn(i=xn())&&(r.canvasRef=i.first),Nn(i=xn())&&(r.scrollRef=i.first)}},hostBindings:function(n,r){n&1&&ce("resize",function(){return r.onResize()},pi)},decls:9,vars:0,consts:[["scroll",""],["canvas",""],[1,"header"],[1,"hint"],[1,"scroll"]],template:function(n,r){n&1&&(qn(0,"div",2)(1,"span"),w(2,"Graph"),Wn(),qn(3,"span",3),w(4,"Swim-lane visualization"),Wn()(),qn(5,"div",4,0),uo(7,"canvas",null,1),Wn())},dependencies:[et],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg-surface);border-right:1px solid var(--border-soft)}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:.5rem .85rem;border-bottom:1px solid var(--border-soft);font-size:12px;color:var(--fg-muted)}.scroll[_ngcontent-%COMP%]{flex:1;overflow:auto;min-height:0}canvas[_ngcontent-%COMP%]{display:block}"],changeDetection:0})};function pa(e,t=0){return nP(e)?Number(e):arguments.length===2?t:0}function nP(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function zC(e){return e instanceof ft?e.nativeElement:e}var Fg;try{Fg=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Fg=!1}var Cu=(()=>{class e{_platformId=h(Sr);isBrowser=this._platformId?vb(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Fg)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var rP=new T("cdk-dir-doc",{providedIn:"root",factory:iP});function iP(){return h(xe)}var oP=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function sP(e){let t=e?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?oP.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var GC=(()=>{class e{get value(){return this.valueSignal()}valueSignal=L("ltr");change=new Ve;constructor(){let n=h(rP,{optional:!0});if(n){let r=n.body?n.body.dir:null,i=n.documentElement?n.documentElement.dir:null;this.valueSignal.set(sP(r||i||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var mn=(function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e})(mn||{}),wu,Di;function qC(){if(Di==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Di=!1,Di;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Di=!0;else{let e=Element.prototype.scrollTo;e?Di=!/\{\s*\[native code\]\s*\}/.test(e.toString()):Di=!1}}return Di}function Bo(){if(typeof document!="object"||!document)return mn.NORMAL;if(wu==null){let e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";let n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",e.appendChild(n),document.body.appendChild(e),wu=mn.NORMAL,e.scrollLeft===0&&(e.scrollLeft=1,wu=e.scrollLeft===0?mn.NEGATED:mn.INVERTED),e.remove()}return wu}var Lg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({})}return e})();var Iu=class{};function WC(e){return e&&typeof e.connect=="function"&&!(e instanceof rr)}var Su=class extends Iu{_data;constructor(t){super(),this._data=t}connect(){return Gr(this._data)?this._data:O(this._data)}disconnect(){}},ha=(function(e){return e[e.REPLACED=0]="REPLACED",e[e.INSERTED=1]="INSERTED",e[e.MOVED=2]="MOVED",e[e.REMOVED=3]="REMOVED",e})(ha||{}),Vg=new T("_ViewRepeater"),Tu=class{viewCacheSize=20;_viewCache=[];applyChanges(t,n,r,i,o){t.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=()=>r(s,a,c);l=this._insertView(d,c,n,i(s)),u=l?ha.INSERTED:ha.REPLACED}else c==null?(this._detachAndCacheView(a,n),u=ha.REMOVED):(l=this._moveView(a,c,n,i(s)),u=ha.MOVED);o&&o({context:l?.context,operation:u,record:s})})}detach(){for(let t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,n,r,i){let o=this._insertViewFromCache(n,r);if(o){o.context.$implicit=i;return}let s=t();return r.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,n){let r=n.detach(t);this._maybeCacheView(r,n)}_moveView(t,n,r,i){let o=r.get(t);return r.move(o,n),o.context.$implicit=i,o}_maybeCacheView(t,n){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(t);else{let r=n.indexOf(t);r===-1?t.destroy():n.remove(r)}}_insertViewFromCache(t,n){let r=this._viewCache.pop();return r&&n.insert(r,t),r||null}};var aP=["contentWrapper"],cP=["*"],QC=new T("VIRTUAL_SCROLL_STRATEGY"),Bg=class{_scrolledIndexChange=new se;scrolledIndexChange=this._scrolledIndexChange.pipe(_d());_viewport=null;_itemSize;_minBufferPx;_maxBufferPx;constructor(t,n,r){this._itemSize=t,this._minBufferPx=n,this._maxBufferPx=r}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,n,r){r<n,this._itemSize=t,this._minBufferPx=n,this._maxBufferPx=r,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,n){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,n)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;let t=this._viewport.getRenderedRange(),n={start:t.start,end:t.end},r=this._viewport.getViewportSize(),i=this._viewport.getDataLength(),o=this._viewport.measureScrollOffset(),s=this._itemSize>0?o/this._itemSize:0;if(n.end>i){let c=Math.ceil(r/this._itemSize),l=Math.max(0,Math.min(s,i-c));s!=l&&(s=l,o=l*this._itemSize,n.start=Math.floor(s)),n.end=Math.max(0,Math.min(i,n.start+c))}let a=o-n.start*this._itemSize;if(a<this._minBufferPx&&n.start!=0){let c=Math.ceil((this._maxBufferPx-a)/this._itemSize);n.start=Math.max(0,n.start-c),n.end=Math.min(i,Math.ceil(s+(r+this._minBufferPx)/this._itemSize))}else{let c=n.end*this._itemSize-(o+r);if(c<this._minBufferPx&&n.end!=i){let l=Math.ceil((this._maxBufferPx-c)/this._itemSize);l>0&&(n.end=Math.min(i,n.end+l),n.start=Math.max(0,Math.floor(s-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(n),this._viewport.setRenderedContentOffset(Math.round(this._itemSize*n.start)),this._scrolledIndexChange.next(Math.floor(s))}};function lP(e){return e._scrollStrategy}var XC=(()=>{class e{get itemSize(){return this._itemSize}set itemSize(n){this._itemSize=pa(n)}_itemSize=20;get minBufferPx(){return this._minBufferPx}set minBufferPx(n){this._minBufferPx=pa(n)}_minBufferPx=100;get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(n){this._maxBufferPx=pa(n)}_maxBufferPx=200;_scrollStrategy=new Bg(this.itemSize,this.minBufferPx,this.maxBufferPx);ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[pn([{provide:QC,useFactory:lP,deps:[on(()=>e)]}]),wr]})}return e})(),uP=20,dP=(()=>{class e{_ngZone=h(De);_platform=h(Cu);_renderer=h(Tn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new se;_scrolledCount=0;scrollContainers=new Map;register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=uP){return this._platform.isBrowser?new z(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let i=n>0?this._scrolled.pipe(Xo(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):O()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let i=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(ct(o=>!o||i.indexOf(o)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((i,o)=>{this._scrollableContainsElement(o,n)&&r.push(o)}),r}_scrollableContainsElement(n,r){let i=zC(r),o=n.getElementRef().nativeElement;do if(i==o)return!0;while(i=i.parentElement);return!1}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),JC=(()=>{class e{elementRef=h(ft);scrollDispatcher=h(dP);ngZone=h(De);dir=h(GC,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new se;_renderer=h(Gn);_cleanupScroll;_elementScrolled=new se;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",n=>this._elementScrolled.next(n))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(n){let r=this.elementRef.nativeElement,i=this.dir&&this.dir.value=="rtl";n.left==null&&(n.left=i?n.end:n.start),n.right==null&&(n.right=i?n.start:n.end),n.bottom!=null&&(n.top=r.scrollHeight-r.clientHeight-n.bottom),i&&Bo()!=mn.NORMAL?(n.left!=null&&(n.right=r.scrollWidth-r.clientWidth-n.left),Bo()==mn.INVERTED?n.left=n.right:Bo()==mn.NEGATED&&(n.left=n.right?-n.right:n.right)):n.right!=null&&(n.left=r.scrollWidth-r.clientWidth-n.right),this._applyScrollToOptions(n)}_applyScrollToOptions(n){let r=this.elementRef.nativeElement;qC()?r.scrollTo(n):(n.top!=null&&(r.scrollTop=n.top),n.left!=null&&(r.scrollLeft=n.left))}measureScrollOffset(n){let r="left",i="right",o=this.elementRef.nativeElement;if(n=="top")return o.scrollTop;if(n=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let s=this.dir&&this.dir.value=="rtl";return n=="start"?n=s?i:r:n=="end"&&(n=s?r:i),s&&Bo()==mn.INVERTED?n==r?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&Bo()==mn.NEGATED?n==r?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:n==r?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return e})(),fP=20,pP=(()=>{class e{_platform=h(Cu);_listeners;_viewportSize;_change=new se;_document=h(xe);constructor(){let n=h(De),r=h(Tn).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let i=o=>this._change.next(o);this._listeners=[r.listen("window","resize",i),r.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:i}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+i,right:n.left+r,height:i,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),i=n.documentElement,o=i.getBoundingClientRect(),s=-o.top||n.body.scrollTop||r.scrollY||i.scrollTop||0,a=-o.left||n.body.scrollLeft||r.scrollX||i.scrollLeft||0;return{top:s,left:a}}change(n=fP){return n>0?this._change.pipe(Xo(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),KC=new T("VIRTUAL_SCROLLABLE"),hP=(()=>{class e extends JC{constructor(){super()}measureViewportSize(n){let r=this.elementRef.nativeElement;return n==="horizontal"?r.clientWidth:r.clientHeight}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,features:[Wt]})}return e})();function gP(e,t){return e.start==t.start&&e.end==t.end}var mP=typeof requestAnimationFrame<"u"?md:gd,Ug=(()=>{class e extends hP{elementRef=h(ft);_changeDetectorRef=h(Ar);_scrollStrategy=h(QC,{optional:!0});scrollable=h(KC,{optional:!0});_platform=h(Cu);_detachedSubject=new se;_renderedRangeSubject=new se;get orientation(){return this._orientation}set orientation(n){this._orientation!==n&&(this._orientation=n,this._calculateSpacerSize())}_orientation="vertical";appendOnly=!1;scrolledIndexChange=new z(n=>this._scrollStrategy.scrolledIndexChange.subscribe(r=>Promise.resolve().then(()=>this.ngZone.run(()=>n.next(r)))));_contentWrapper;renderedRangeStream=this._renderedRangeSubject;_totalContentSize=0;_totalContentWidth=L("");_totalContentHeight=L("");_renderedContentTransform;_renderedRange={start:0,end:0};_dataLength=0;_viewportSize=0;_forOf;_renderedContentOffset=0;_renderedContentOffsetNeedsRewrite=!1;_changeDetectionNeeded=L(!1);_runAfterChangeDetection=[];_viewportChanges=Te.EMPTY;_injector=h(Je);_isDestroyed=!1;constructor(){super();let n=h(pP);this._scrollStrategy,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);let r=ze(()=>{this._changeDetectionNeeded()&&this._doChangeDetection()},{injector:h(fn).injector});h(Ze).onDestroy(()=>void r.destroy())}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Ui(null),Xo(0,mP),lr(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(n){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=n,this._forOf.dataStream.pipe(lr(this._detachedSubject)).subscribe(r=>{let i=r.length;i!==this._dataLength&&(this._dataLength=i,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(n){return this.getElementRef().nativeElement.getBoundingClientRect()[n]}setTotalContentSize(n){this._totalContentSize!==n&&(this._totalContentSize=n,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(n){gP(this._renderedRange,n)||(this.appendOnly&&(n={start:0,end:Math.max(this._renderedRange.end,n.end)}),this._renderedRangeSubject.next(this._renderedRange=n),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(n,r="to-start"){n=this.appendOnly&&r==="to-start"?0:n;let i=this.dir&&this.dir.value=="rtl",o=this.orientation=="horizontal",s=o?"X":"Y",c=`translate${s}(${Number((o&&i?-1:1)*n)}px)`;this._renderedContentOffset=n,r==="to-end"&&(c+=` translate${s}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(n,r="auto"){let i={behavior:r};this.orientation==="horizontal"?i.start=n:i.top=n,this.scrollable.scrollTo(i)}scrollToIndex(n,r="auto"){this._scrollStrategy.scrollToIndex(n,r)}measureScrollOffset(n){let r;return this.scrollable==this?r=i=>super.measureScrollOffset(i):r=i=>this.scrollable.measureScrollOffset(i),Math.max(0,r(n??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(n){let r,i="left",o="right",s=this.dir?.value=="rtl";n=="start"?r=s?o:i:n=="end"?r=s?i:o:n?r=n:r=this.orientation==="horizontal"?"left":"top";let a=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-a}measureRenderedContentSize(){let n=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?n.offsetWidth:n.offsetHeight}measureRangeSize(n){return this._forOf?this._forOf.measureRangeSize(n,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(n){n&&this._runAfterChangeDetection.push(n),!je(this._changeDetectionNeeded)&&this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.ngZone.run(()=>{this._changeDetectionNeeded.set(!0)})})})}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,lo(()=>{this._changeDetectionNeeded.set(!1);let n=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let r of n)r()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight.set(this.orientation==="horizontal"?"":`${this._totalContentSize}px`),this._totalContentWidth.set(this.orientation==="horizontal"?`${this._totalContentSize}px`:"")}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Be({type:e,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(r,i){if(r&1&&Mn(aP,7),r&2){let o;Nn(o=xn())&&(i._contentWrapper=o.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(r,i){r&2&&Ye("cdk-virtual-scroll-orientation-horizontal",i.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",i.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",ks]},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[pn([{provide:JC,useFactory:(n,r)=>n||r,deps:[[new sl,new Ep(KC)],e]}]),Wt],ngContentSelectors:cP,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(r,i){r&1&&(ih(),qn(0,"div",1,0),oh(2),Wn(),uo(3,"div",2)),r&2&&(E(3),fo("width",i._totalContentWidth())("height",i._totalContentHeight()))},styles:[`cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}
10
+ `))if(o.startsWith("@@")){n.push({type:"hunk",text:o});let s=o.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);s&&(r=parseInt(s[1],10),i=parseInt(s[2],10))}else o.startsWith("diff --git")||o.startsWith("index ")||o.startsWith("--- ")||o.startsWith("+++ ")||o.startsWith("new file")||o.startsWith("deleted file")||o.startsWith("rename ")||o.startsWith("copy ")||o.startsWith("similarity ")||o.startsWith("Binary files")?n.push({type:"meta",text:o}):o.startsWith("+")?(n.push({type:"add",newNo:i,text:o.substring(1)}),i++):o.startsWith("-")?(n.push({type:"del",oldNo:r,text:o.substring(1)}),r++):o.startsWith(" ")?(n.push({type:"context",oldNo:r,newNo:i,text:o.substring(1)}),r++,i++):o===""&&n.push({type:"context",oldNo:r,newNo:i,text:""});return n}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-diff-viewer"]],inputs:{fileInput:"fileInput"},decls:4,vars:4,consts:[["class","header",4,"ngIf"],["class","empty",4,"ngIf"],[4,"ngIf"],[1,"header"],[1,"file-info"],[1,"status"],[1,"path"],["class","path old",4,"ngIf"],[1,"stats"],[1,"add"],[1,"del"],[1,"toggle"],[1,"btn","btn-ghost",3,"click"],[1,"path","old"],[1,"empty"],["class","unified",4,"ngIf"],["class","split",4,"ngIf"],[1,"unified"],["class","line",3,"add","del","hunk","meta",4,"ngFor","ngForOf","ngForTrackBy"],[1,"line"],[1,"gutter","old"],[1,"gutter","new"],[1,"sign"],[1,"text",3,"innerHTML"],[1,"split"],[1,"side"],["class","line",3,"del","empty","hunk",4,"ngFor","ngForOf","ngForTrackBy"],["class","line",3,"add","empty","hunk",4,"ngFor","ngForOf","ngForTrackBy"],[1,"gutter"]],template:function(n,r){n&1&&re(0,Ok,17,10,"div",0)(1,kk,2,0,"div",1)(2,Pk,2,0,"div",1)(3,jk,3,2,"ng-container",2),n&2&&(N("ngIf",r.file),E(),N("ngIf",!r.file),E(),N("ngIf",r.file&&r.file.status==="binary"),E(),N("ngIf",r.file&&r.file.status!=="binary"))},dependencies:[et,At,Ct],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg-surface)}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.5rem .85rem;border-bottom:1px solid var(--border-soft);background:var(--bg-surface);gap:.75rem}.file-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;min-width:0}.path[_ngcontent-%COMP%]{font-family:var(--font-mono);font-size:12px;color:var(--fg-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.path.old[_ngcontent-%COMP%]{color:var(--fg-muted)}.status[_ngcontent-%COMP%]{text-transform:uppercase;font-size:10px;font-weight:700;padding:2px 6px;border-radius:999px;letter-spacing:.04em;color:var(--accent-fg)}.status[data-status=added][_ngcontent-%COMP%]{background:var(--success)}.status[data-status=deleted][_ngcontent-%COMP%]{background:var(--danger)}.status[data-status=modified][_ngcontent-%COMP%]{background:var(--accent)}.status[data-status=renamed][_ngcontent-%COMP%], .status[data-status=copied][_ngcontent-%COMP%]{background:var(--warning)}.status[data-status=binary][_ngcontent-%COMP%]{background:var(--fg-muted)}.stats[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;font-family:var(--font-mono);font-size:12px}.stats[_ngcontent-%COMP%] .add[_ngcontent-%COMP%]{color:var(--success)}.stats[_ngcontent-%COMP%] .del[_ngcontent-%COMP%]{color:var(--danger)}.toggle[_ngcontent-%COMP%]{display:flex;gap:2px;padding-left:.5rem}.toggle[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:.25rem .6rem;font-size:12px}.toggle[_ngcontent-%COMP%] .btn.active[_ngcontent-%COMP%]{background:var(--accent-soft);color:var(--accent)}.empty[_ngcontent-%COMP%]{padding:2rem 1rem;text-align:center;color:var(--fg-muted)}pre[_ngcontent-%COMP%]{flex:1;margin:0;overflow:auto;padding:0;font-family:var(--font-mono);font-size:12.5px;line-height:1.55;color:var(--fg-primary);background:var(--bg-surface-2);min-height:0}code[_ngcontent-%COMP%]{display:block;min-width:max-content}.line[_ngcontent-%COMP%]{display:grid;grid-template-columns:48px 48px 14px 1fr;align-items:baseline;padding:0 .5rem;white-space:pre}.split[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{grid-template-columns:48px 1fr}.gutter[_ngcontent-%COMP%]{color:var(--fg-subtle);text-align:right;padding-right:.5rem;-webkit-user-select:none;user-select:none;font-variant-numeric:tabular-nums}.sign[_ngcontent-%COMP%]{width:14px;color:var(--fg-subtle)}.text[_ngcontent-%COMP%]{white-space:pre}.line.add[_ngcontent-%COMP%]{background:var(--diff-add-bg);color:var(--diff-add-fg)}.line.add[_ngcontent-%COMP%] .gutter[_ngcontent-%COMP%]{color:var(--diff-add-gutter)}.line.del[_ngcontent-%COMP%]{background:var(--diff-del-bg);color:var(--diff-del-fg)}.line.del[_ngcontent-%COMP%] .gutter[_ngcontent-%COMP%]{color:var(--diff-del-gutter)}.line.hunk[_ngcontent-%COMP%]{background:var(--diff-hunk-bg);color:var(--diff-hunk-fg);font-style:italic}.line.meta[_ngcontent-%COMP%]{color:var(--fg-muted)}.line.empty[_ngcontent-%COMP%]{background:repeating-linear-gradient(45deg,transparent 0 6px,color-mix(in oklab,var(--fg-subtle) 14%,transparent) 6px 12px)}.split[_ngcontent-%COMP%]{flex:1;display:grid;grid-template-columns:1fr 1px 1fr;grid-template-rows:minmax(0,1fr);min-height:0;overflow:hidden}.split[_ngcontent-%COMP%]:before{content:"";grid-column:2;background:var(--border-soft)}.split[_ngcontent-%COMP%] .side[_ngcontent-%COMP%]{width:100%;min-width:0;min-height:0;height:100%;overflow:auto}'],changeDetection:0})};function $k(e,t){if(e&1&&(b(0,"span",22),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function Hk(e,t){if(e&1&&(b(0,"span",23),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function zk(e,t){e&1&&(b(0,"span",24),w(1,"merge"),_())}function Gk(e,t){if(e&1&&(b(0,"pre",25),w(1),_()),e&2){let n=oe().ngIf;E(),ie(n.body)}}function qk(e,t){if(e&1&&(b(0,"span",26),w(1),_()),e&2){let n=oe(2);E(),ie(n.files().length)}}function Wk(e,t){if(e&1&&(b(0,"span",33),w(1),_()),e&2){let n=oe().$implicit;E(),Zt("+",n.additions)}}function Kk(e,t){if(e&1&&(b(0,"span",34),w(1),_()),e&2){let n=oe().$implicit;E(),Zt("\u2212",n.deletions)}}function Zk(e,t){if(e&1){let n=Dt();b(0,"button",27),ce("click",function(){let i=be(n).$implicit,o=oe(2);return Ee(o.selectFile(i))}),Ce(1,"span",28),b(2,"span",29),w(3),_(),b(4,"span",30),re(5,Wk,2,1,"span",31)(6,Kk,2,1,"span",32),_()()}if(e&2){let n,r=t.$implicit,i=oe(2);Ye("selected",r.file===((n=i.activeFile())==null?null:n.file)),E(),Kt("data-status",r.status),E(),N("title",r.file),E(),ie(r.file),E(2),N("ngIf",r.additions),E(),N("ngIf",r.deletions)}}function Yk(e,t){e&1&&(b(0,"div",35),w(1," No files changed. "),_())}function Qk(e,t){e&1&&(b(0,"div",35),w(1,"Loading\u2026"),_())}function Xk(e,t){if(e&1&&(Mr(0),b(1,"header",2)(2,"div",3)(3,"span",4),w(4),_(),b(5,"span",5),re(6,$k,2,1,"span",6)(7,Hk,2,1,"span",7)(8,zk,2,0,"span",8),_()(),b(9,"h2",9),w(10),_(),b(11,"div",10)(12,"span"),w(13),_(),b(14,"span",11),w(15,"\u2022"),_(),b(16,"span"),w(17),Ns(18,"date"),_()(),re(19,Gk,2,1,"pre",12),_(),b(20,"div",13)(21,"aside",14)(22,"div",15)(23,"span"),w(24,"Files"),_(),re(25,qk,2,1,"span",16),_(),b(26,"div",17),re(27,Zk,7,7,"button",18)(28,Yk,2,0,"div",19)(29,Qk,2,0,"div",19),_()(),b(30,"section",20),Ce(31,"app-diff-viewer",21),_()(),Nr()),e&2){let n=t.ngIf,r=oe();E(4),ie(n.shortHash),E(2),N("ngForOf",n.tags),E(),N("ngForOf",n.branches),E(),N("ngIf",n.isMerge),E(2),ie(n.subject),E(3),po("",n.author," <",n.authorEmail,">"),E(4),ie(xs(18,15,n.date,"medium")),E(2),N("ngIf",n.body),E(6),N("ngIf",r.files().length),E(2),N("ngForOf",r.files())("ngForTrackBy",r.trackByFile),E(),N("ngIf",!r.files().length&&!r.loading()),E(),N("ngIf",r.loading()),E(2),N("fileInput",r.activeFile())}}function Jk(e,t){e&1&&(b(0,"div",36)(1,"p",37),w(2,"No commit selected"),_(),b(3,"p",38),w(4," Pick a commit from the list, or press "),b(5,"kbd",39),w(6,"\u2318K"),_(),w(7," to open the command palette. "),_()())}var Eu=class e{state=h(ht);git=h(Oo);commit=this.state.selected;loading=L(!1);files=cu(au(this.commit).pipe(Re(t=>t?(this.loading.set(!0),this.git.getDiff(t.hash).pipe(kt(()=>O([])))):(this.loading.set(!1),O([])))),{initialValue:[]});activeFileIndex=L(0);activeFile=He(()=>{let t=this.files();if(!t.length)return null;let n=Math.min(this.activeFileIndex(),t.length-1);return t[n]});constructor(){ze(()=>{this.files(),this.activeFileIndex.set(0),this.loading.set(!1)})}trackByFile(t,n){return n.file}selectFile(t){let n=this.files().findIndex(r=>r.file===t.file);n>=0&&this.activeFileIndex.set(n)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-commit-detail"]],decls:3,vars:2,consts:[["empty",""],[4,"ngIf","ngIfElse"],[1,"head"],[1,"row"],[1,"hash"],[1,"badges"],["class","badge tag",4,"ngFor","ngForOf"],["class","badge branch",4,"ngFor","ngForOf"],["class","badge merge",4,"ngIf"],[1,"subject"],[1,"meta"],[1,"dot"],["class","body",4,"ngIf"],[1,"split"],[1,"files"],[1,"files-header"],["class","count",4,"ngIf"],[1,"files-list"],["class","file",3,"selected","click",4,"ngFor","ngForOf","ngForTrackBy"],["class","files-empty",4,"ngIf"],[1,"diff"],[3,"fileInput"],[1,"badge","tag"],[1,"badge","branch"],[1,"badge","merge"],[1,"body"],[1,"count"],[1,"file",3,"click"],[1,"status-dot"],[1,"path",3,"title"],[1,"counts"],["class","add",4,"ngIf"],["class","del",4,"ngIf"],[1,"add"],[1,"del"],[1,"files-empty"],[1,"placeholder"],[1,"title"],[1,"hint"],[1,"kbd"]],template:function(n,r){if(n&1&&re(0,Xk,32,18,"ng-container",1)(1,Jk,8,0,"ng-template",null,0,ah),n&2){let i=sh(2);N("ngIf",r.commit())("ngIfElse",i)}},dependencies:[et,At,Ct,bu,Us],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg-app)}.head[_ngcontent-%COMP%]{padding:.85rem 1rem;border-bottom:1px solid var(--border-soft);background:var(--bg-surface)}.row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.4rem}.hash[_ngcontent-%COMP%]{font-family:var(--font-mono);font-size:12px;color:var(--fg-muted);padding:2px 6px;background:var(--bg-surface-2);border:1px solid var(--border-soft);border-radius:4px}.badges[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:4px}.badge[_ngcontent-%COMP%]{font-size:10px;font-weight:600;padding:2px 6px;border-radius:999px}.badge.tag[_ngcontent-%COMP%]{background:#d9770626;color:var(--warning)}.badge.branch[_ngcontent-%COMP%]{background:var(--accent-soft);color:var(--accent)}.badge.merge[_ngcontent-%COMP%]{background:#8b5cf62e;color:#8b5cf6}.subject[_ngcontent-%COMP%]{font-size:18px;margin:0 0 4px;font-weight:600}.meta[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--fg-muted)}.meta[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{opacity:.5}.body[_ngcontent-%COMP%]{white-space:pre-wrap;font-family:var(--font-mono);font-size:12px;color:var(--fg-secondary);background:var(--bg-surface-2);border:1px solid var(--border-soft);border-radius:var(--radius-sm);padding:.5rem .75rem;margin-top:.5rem;max-height:160px;overflow:auto}.split[_ngcontent-%COMP%]{flex:1;display:grid;grid-template-columns:280px 1fr;grid-template-rows:minmax(0,1fr);min-height:0;overflow:hidden}.files[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:0;background:var(--bg-surface);border-right:1px solid var(--border-soft)}.files-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:.5rem .85rem;font-size:12px;color:var(--fg-muted);border-bottom:1px solid var(--border-soft)}.count[_ngcontent-%COMP%]{background:var(--bg-surface-2);padding:0 6px;border-radius:999px;font-size:11px}.files-list[_ngcontent-%COMP%]{overflow:auto;flex:1;min-height:0}.file[_ngcontent-%COMP%]{display:grid;grid-template-columns:10px 1fr auto;gap:.5rem;align-items:center;width:100%;padding:.5rem .85rem;border:0;background:transparent;color:inherit;cursor:pointer;text-align:left;border-bottom:1px solid var(--border-soft);font-size:12px}.file[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.file.selected[_ngcontent-%COMP%]{background:var(--bg-selected)}.file[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{font-family:var(--font-mono);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:left}.status-dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background:var(--accent)}.status-dot[data-status=added][_ngcontent-%COMP%]{background:var(--success)}.status-dot[data-status=deleted][_ngcontent-%COMP%]{background:var(--danger)}.status-dot[data-status=renamed][_ngcontent-%COMP%], .status-dot[data-status=copied][_ngcontent-%COMP%]{background:var(--warning)}.status-dot[data-status=binary][_ngcontent-%COMP%]{background:var(--fg-muted)}.counts[_ngcontent-%COMP%]{display:flex;gap:6px;font-family:var(--font-mono);font-size:11px}.counts[_ngcontent-%COMP%] .add[_ngcontent-%COMP%]{color:var(--success)}.counts[_ngcontent-%COMP%] .del[_ngcontent-%COMP%]{color:var(--danger)}.files-empty[_ngcontent-%COMP%]{padding:1rem;color:var(--fg-muted);font-size:12px;text-align:center}.diff[_ngcontent-%COMP%]{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.placeholder[_ngcontent-%COMP%]{flex:1;display:grid;place-items:center;text-align:center;color:var(--fg-muted)}.placeholder[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;margin-bottom:4px;color:var(--fg-secondary)}.placeholder[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{font-size:13px}"],changeDetection:0})};var eP=["canvas"],tP=["scroll"],Vo=28,kg=18,jC=5,$C=14,Pg=14,HC=["#4f46e5","#06b6d4","#f59e0b","#ef4444","#10b981","#8b5cf6","#ec4899","#0ea5e9"],Du=class e{state=h(ht);canvasRef;scrollRef;nodes=[];rowByHash=new Map;laneCount=1;constructor(){ze(()=>{this.layout(this.state.commits()),this.draw()}),ze(()=>{this.state.selectedHash(),this.draw()})}ngAfterViewInit(){this.canvasRef.nativeElement.addEventListener("click",t=>this.onClick(t)),this.draw()}onResize(){this.draw()}layout(t){if(this.nodes=[],this.rowByHash.clear(),!t.length){this.laneCount=1;return}let n=[],r=i=>{let o=n.indexOf(i);if(o>=0)return o;let s=n.indexOf(null);return s>=0?(n[s]=i,s):(n.push(i),n.length-1)};for(let i=0;i<t.length;i++){let o=t[i],s=r(o.hash),a={commit:o,row:i,lane:s};this.nodes.push(a),this.rowByHash.set(o.hash,a);let[c,...l]=o.parents;n[s]=c??null;for(let u of l)if(n.indexOf(u)===-1){let d=n.indexOf(null);d>=0?n[d]=u:n.push(u)}for(;n.length&&n[n.length-1]===null;)n.pop()}this.laneCount=Math.max(1,this.nodes.reduce((i,o)=>Math.max(i,o.lane+1),0))}draw(){let t=this.canvasRef?.nativeElement;if(!t)return;let n=window.devicePixelRatio||1,r=$C*2+this.laneCount*kg,i=Pg*2+this.nodes.length*Vo;t.width=Math.floor(r*n),t.height=Math.floor(i*n),t.style.width=`${r}px`,t.style.height=`${i}px`;let o=t.getContext("2d");if(o.setTransform(n,0,0,n,0,0),o.clearRect(0,0,r,i),!this.nodes.length)return;let s=u=>$C+u*kg+kg/2,a=u=>Pg+u*Vo+Vo/2,c=u=>HC[u%HC.length];o.lineWidth=2;for(let u of this.nodes)for(let d of u.commit.parents){let p=this.rowByHash.get(d);if(!p)continue;o.strokeStyle=c(p.lane);let f=s(u.lane),g=a(u.row),m=s(p.lane),v=a(p.row);if(o.beginPath(),f===m)o.moveTo(f,g),o.lineTo(m,v);else{o.moveTo(f,g);let y=g+Vo*.6;o.bezierCurveTo(f,y,m,g+Vo*.4,m,y),o.lineTo(m,v)}o.stroke()}let l=this.state.selectedHash();for(let u of this.nodes){let d=s(u.lane),p=a(u.row),f=c(u.lane),g=u.commit.hash===l,m=g?jC+2:jC;o.beginPath(),o.arc(d,p,m,0,Math.PI*2),o.fillStyle=u.commit.isMerge?"transparent":f,o.fill(),o.lineWidth=u.commit.isMerge||g?2.5:1.5,o.strokeStyle=f,o.stroke(),g&&(o.beginPath(),o.arc(d,p,m+4,0,Math.PI*2),o.strokeStyle=f,o.globalAlpha=.35,o.lineWidth=2,o.stroke(),o.globalAlpha=1)}}onClick(t){let n=this.canvasRef.nativeElement.getBoundingClientRect(),r=t.clientY-n.top,i=Math.floor((r-Pg)/Vo),o=this.nodes[i];o&&this.state.selectHash(o.commit.hash)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-commit-graph"]],viewQuery:function(n,r){if(n&1&&(Mn(eP,7),Mn(tP,7)),n&2){let i;Nn(i=xn())&&(r.canvasRef=i.first),Nn(i=xn())&&(r.scrollRef=i.first)}},hostBindings:function(n,r){n&1&&ce("resize",function(){return r.onResize()},pi)},decls:9,vars:0,consts:[["scroll",""],["canvas",""],[1,"header"],[1,"hint"],[1,"scroll"]],template:function(n,r){n&1&&(qn(0,"div",2)(1,"span"),w(2,"Graph"),Wn(),qn(3,"span",3),w(4,"Swim-lane visualization"),Wn()(),qn(5,"div",4,0),uo(7,"canvas",null,1),Wn())},dependencies:[et],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg-surface);border-right:1px solid var(--border-soft)}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:.5rem .85rem;border-bottom:1px solid var(--border-soft);font-size:12px;color:var(--fg-muted)}.scroll[_ngcontent-%COMP%]{flex:1;overflow:auto;min-height:0}canvas[_ngcontent-%COMP%]{display:block}"],changeDetection:0})};function pa(e,t=0){return nP(e)?Number(e):arguments.length===2?t:0}function nP(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function zC(e){return e instanceof ft?e.nativeElement:e}var Fg;try{Fg=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Fg=!1}var Cu=(()=>{class e{_platformId=h(Sr);isBrowser=this._platformId?vb(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Fg)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var rP=new T("cdk-dir-doc",{providedIn:"root",factory:iP});function iP(){return h(xe)}var oP=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function sP(e){let t=e?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?oP.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var GC=(()=>{class e{get value(){return this.valueSignal()}valueSignal=L("ltr");change=new Ve;constructor(){let n=h(rP,{optional:!0});if(n){let r=n.body?n.body.dir:null,i=n.documentElement?n.documentElement.dir:null;this.valueSignal.set(sP(r||i||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var mn=(function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e})(mn||{}),wu,Di;function qC(){if(Di==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Di=!1,Di;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Di=!0;else{let e=Element.prototype.scrollTo;e?Di=!/\{\s*\[native code\]\s*\}/.test(e.toString()):Di=!1}}return Di}function Bo(){if(typeof document!="object"||!document)return mn.NORMAL;if(wu==null){let e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";let n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",e.appendChild(n),document.body.appendChild(e),wu=mn.NORMAL,e.scrollLeft===0&&(e.scrollLeft=1,wu=e.scrollLeft===0?mn.NEGATED:mn.INVERTED),e.remove()}return wu}var Lg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({})}return e})();var Iu=class{};function WC(e){return e&&typeof e.connect=="function"&&!(e instanceof rr)}var Su=class extends Iu{_data;constructor(t){super(),this._data=t}connect(){return Gr(this._data)?this._data:O(this._data)}disconnect(){}},ha=(function(e){return e[e.REPLACED=0]="REPLACED",e[e.INSERTED=1]="INSERTED",e[e.MOVED=2]="MOVED",e[e.REMOVED=3]="REMOVED",e})(ha||{}),Vg=new T("_ViewRepeater"),Tu=class{viewCacheSize=20;_viewCache=[];applyChanges(t,n,r,i,o){t.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=()=>r(s,a,c);l=this._insertView(d,c,n,i(s)),u=l?ha.INSERTED:ha.REPLACED}else c==null?(this._detachAndCacheView(a,n),u=ha.REMOVED):(l=this._moveView(a,c,n,i(s)),u=ha.MOVED);o&&o({context:l?.context,operation:u,record:s})})}detach(){for(let t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,n,r,i){let o=this._insertViewFromCache(n,r);if(o){o.context.$implicit=i;return}let s=t();return r.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,n){let r=n.detach(t);this._maybeCacheView(r,n)}_moveView(t,n,r,i){let o=r.get(t);return r.move(o,n),o.context.$implicit=i,o}_maybeCacheView(t,n){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(t);else{let r=n.indexOf(t);r===-1?t.destroy():n.remove(r)}}_insertViewFromCache(t,n){let r=this._viewCache.pop();return r&&n.insert(r,t),r||null}};var aP=["contentWrapper"],cP=["*"],QC=new T("VIRTUAL_SCROLL_STRATEGY"),Bg=class{_scrolledIndexChange=new se;scrolledIndexChange=this._scrolledIndexChange.pipe(_d());_viewport=null;_itemSize;_minBufferPx;_maxBufferPx;constructor(t,n,r){this._itemSize=t,this._minBufferPx=n,this._maxBufferPx=r}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,n,r){r<n,this._itemSize=t,this._minBufferPx=n,this._maxBufferPx=r,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,n){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,n)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;let t=this._viewport.getRenderedRange(),n={start:t.start,end:t.end},r=this._viewport.getViewportSize(),i=this._viewport.getDataLength(),o=this._viewport.measureScrollOffset(),s=this._itemSize>0?o/this._itemSize:0;if(n.end>i){let c=Math.ceil(r/this._itemSize),l=Math.max(0,Math.min(s,i-c));s!=l&&(s=l,o=l*this._itemSize,n.start=Math.floor(s)),n.end=Math.max(0,Math.min(i,n.start+c))}let a=o-n.start*this._itemSize;if(a<this._minBufferPx&&n.start!=0){let c=Math.ceil((this._maxBufferPx-a)/this._itemSize);n.start=Math.max(0,n.start-c),n.end=Math.min(i,Math.ceil(s+(r+this._minBufferPx)/this._itemSize))}else{let c=n.end*this._itemSize-(o+r);if(c<this._minBufferPx&&n.end!=i){let l=Math.ceil((this._maxBufferPx-c)/this._itemSize);l>0&&(n.end=Math.min(i,n.end+l),n.start=Math.max(0,Math.floor(s-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(n),this._viewport.setRenderedContentOffset(Math.round(this._itemSize*n.start)),this._scrolledIndexChange.next(Math.floor(s))}};function lP(e){return e._scrollStrategy}var XC=(()=>{class e{get itemSize(){return this._itemSize}set itemSize(n){this._itemSize=pa(n)}_itemSize=20;get minBufferPx(){return this._minBufferPx}set minBufferPx(n){this._minBufferPx=pa(n)}_minBufferPx=100;get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(n){this._maxBufferPx=pa(n)}_maxBufferPx=200;_scrollStrategy=new Bg(this.itemSize,this.minBufferPx,this.maxBufferPx);ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[pn([{provide:QC,useFactory:lP,deps:[on(()=>e)]}]),wr]})}return e})(),uP=20,dP=(()=>{class e{_ngZone=h(De);_platform=h(Cu);_renderer=h(Tn).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new se;_scrolledCount=0;scrollContainers=new Map;register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=uP){return this._platform.isBrowser?new z(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let i=n>0?this._scrolled.pipe(Xo(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):O()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let i=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(ct(o=>!o||i.indexOf(o)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((i,o)=>{this._scrollableContainsElement(o,n)&&r.push(o)}),r}_scrollableContainsElement(n,r){let i=zC(r),o=n.getElementRef().nativeElement;do if(i==o)return!0;while(i=i.parentElement);return!1}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),JC=(()=>{class e{elementRef=h(ft);scrollDispatcher=h(dP);ngZone=h(De);dir=h(GC,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new se;_renderer=h(Gn);_cleanupScroll;_elementScrolled=new se;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",n=>this._elementScrolled.next(n))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(n){let r=this.elementRef.nativeElement,i=this.dir&&this.dir.value=="rtl";n.left==null&&(n.left=i?n.end:n.start),n.right==null&&(n.right=i?n.start:n.end),n.bottom!=null&&(n.top=r.scrollHeight-r.clientHeight-n.bottom),i&&Bo()!=mn.NORMAL?(n.left!=null&&(n.right=r.scrollWidth-r.clientWidth-n.left),Bo()==mn.INVERTED?n.left=n.right:Bo()==mn.NEGATED&&(n.left=n.right?-n.right:n.right)):n.right!=null&&(n.left=r.scrollWidth-r.clientWidth-n.right),this._applyScrollToOptions(n)}_applyScrollToOptions(n){let r=this.elementRef.nativeElement;qC()?r.scrollTo(n):(n.top!=null&&(r.scrollTop=n.top),n.left!=null&&(r.scrollLeft=n.left))}measureScrollOffset(n){let r="left",i="right",o=this.elementRef.nativeElement;if(n=="top")return o.scrollTop;if(n=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let s=this.dir&&this.dir.value=="rtl";return n=="start"?n=s?i:r:n=="end"&&(n=s?r:i),s&&Bo()==mn.INVERTED?n==r?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&Bo()==mn.NEGATED?n==r?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:n==r?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return e})(),fP=20,pP=(()=>{class e{_platform=h(Cu);_listeners;_viewportSize;_change=new se;_document=h(xe);constructor(){let n=h(De),r=h(Tn).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let i=o=>this._change.next(o);this._listeners=[r.listen("window","resize",i),r.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(n=>n()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:i}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+i,right:n.left+r,height:i,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),i=n.documentElement,o=i.getBoundingClientRect(),s=-o.top||n.body.scrollTop||r.scrollY||i.scrollTop||0,a=-o.left||n.body.scrollLeft||r.scrollX||i.scrollLeft||0;return{top:s,left:a}}change(n=fP){return n>0?this._change.pipe(Xo(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),KC=new T("VIRTUAL_SCROLLABLE"),hP=(()=>{class e extends JC{constructor(){super()}measureViewportSize(n){let r=this.elementRef.nativeElement;return n==="horizontal"?r.clientWidth:r.clientHeight}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,features:[Wt]})}return e})();function gP(e,t){return e.start==t.start&&e.end==t.end}var mP=typeof requestAnimationFrame<"u"?md:gd,Ug=(()=>{class e extends hP{elementRef=h(ft);_changeDetectorRef=h(Ar);_scrollStrategy=h(QC,{optional:!0});scrollable=h(KC,{optional:!0});_platform=h(Cu);_detachedSubject=new se;_renderedRangeSubject=new se;get orientation(){return this._orientation}set orientation(n){this._orientation!==n&&(this._orientation=n,this._calculateSpacerSize())}_orientation="vertical";appendOnly=!1;scrolledIndexChange=new z(n=>this._scrollStrategy.scrolledIndexChange.subscribe(r=>Promise.resolve().then(()=>this.ngZone.run(()=>n.next(r)))));_contentWrapper;renderedRangeStream=this._renderedRangeSubject;_totalContentSize=0;_totalContentWidth=L("");_totalContentHeight=L("");_renderedContentTransform;_renderedRange={start:0,end:0};_dataLength=0;_viewportSize=0;_forOf;_renderedContentOffset=0;_renderedContentOffsetNeedsRewrite=!1;_changeDetectionNeeded=L(!1);_runAfterChangeDetection=[];_viewportChanges=Te.EMPTY;_injector=h(Je);_isDestroyed=!1;constructor(){super();let n=h(pP);this._scrollStrategy,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);let r=ze(()=>{this._changeDetectionNeeded()&&this._doChangeDetection()},{injector:h(fn).injector});h(Ze).onDestroy(()=>void r.destroy())}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(Ui(null),Xo(0,mP),lr(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(n){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=n,this._forOf.dataStream.pipe(lr(this._detachedSubject)).subscribe(r=>{let i=r.length;i!==this._dataLength&&(this._dataLength=i,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(n){return this.getElementRef().nativeElement.getBoundingClientRect()[n]}setTotalContentSize(n){this._totalContentSize!==n&&(this._totalContentSize=n,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(n){gP(this._renderedRange,n)||(this.appendOnly&&(n={start:0,end:Math.max(this._renderedRange.end,n.end)}),this._renderedRangeSubject.next(this._renderedRange=n),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(n,r="to-start"){n=this.appendOnly&&r==="to-start"?0:n;let i=this.dir&&this.dir.value=="rtl",o=this.orientation=="horizontal",s=o?"X":"Y",c=`translate${s}(${Number((o&&i?-1:1)*n)}px)`;this._renderedContentOffset=n,r==="to-end"&&(c+=` translate${s}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=c&&(this._renderedContentTransform=c,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(n,r="auto"){let i={behavior:r};this.orientation==="horizontal"?i.start=n:i.top=n,this.scrollable.scrollTo(i)}scrollToIndex(n,r="auto"){this._scrollStrategy.scrollToIndex(n,r)}measureScrollOffset(n){let r;return this.scrollable==this?r=i=>super.measureScrollOffset(i):r=i=>this.scrollable.measureScrollOffset(i),Math.max(0,r(n??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(n){let r,i="left",o="right",s=this.dir?.value=="rtl";n=="start"?r=s?o:i:n=="end"?r=s?i:o:n?r=n:r=this.orientation==="horizontal"?"left":"top";let a=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-a}measureRenderedContentSize(){let n=this._contentWrapper.nativeElement;return this.orientation==="horizontal"?n.offsetWidth:n.offsetHeight}measureRangeSize(n){return this._forOf?this._forOf.measureRangeSize(n,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(n){n&&this._runAfterChangeDetection.push(n),!je(this._changeDetectionNeeded)&&this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this.ngZone.run(()=>{this._changeDetectionNeeded.set(!0)})})})}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,lo(()=>{this._changeDetectionNeeded.set(!1);let n=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let r of n)r()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight.set(this.orientation==="horizontal"?"":`${this._totalContentSize}px`),this._totalContentWidth.set(this.orientation==="horizontal"?`${this._totalContentSize}px`:"")}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Be({type:e,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(r,i){if(r&1&&Mn(aP,7),r&2){let o;Nn(o=xn())&&(i._contentWrapper=o.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(r,i){r&2&&Ye("cdk-virtual-scroll-orientation-horizontal",i.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",i.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",ks]},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[pn([{provide:JC,useFactory:(n,r)=>n||r,deps:[[new sl,new Ep(KC)],e]}]),Wt],ngContentSelectors:cP,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(r,i){r&1&&(ih(),qn(0,"div",1,0),oh(2),Wn(),uo(3,"div",2)),r&2&&(E(3),fo("width",i._totalContentWidth())("height",i._totalContentHeight()))},styles:[`cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}
11
11
  `],encapsulation:2,changeDetection:0})}return e})();function ZC(e,t,n){let r=n;if(!r.getBoundingClientRect)return 0;let i=r.getBoundingClientRect();return e==="horizontal"?t==="start"?i.left:i.right:t==="start"?i.top:i.bottom}var ew=(()=>{class e{_viewContainerRef=h(dn);_template=h(Sn);_differs=h(Os);_viewRepeater=h(Vg);_viewport=h(Ug,{skipSelf:!0});viewChange=new se;_dataSourceChanges=new se;get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(n){this._cdkVirtualForOf=n,WC(n)?this._dataSourceChanges.next(n):this._dataSourceChanges.next(new Su(Gr(n)?n:Array.from(n||[])))}_cdkVirtualForOf;get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(n){this._needsUpdate=!0,this._cdkVirtualForTrackBy=n?(r,i)=>n(r+(this._renderedRange?this._renderedRange.start:0),i):void 0}_cdkVirtualForTrackBy;set cdkVirtualForTemplate(n){n&&(this._needsUpdate=!0,this._template=n)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(n){this._viewRepeater.viewCacheSize=pa(n)}dataStream=this._dataSourceChanges.pipe(Ui(null),Ed(),Re(([n,r])=>this._changeDataSource(n,r)),wd(1));_differ=null;_data;_renderedItems;_renderedRange;_needsUpdate=!1;_destroyed=new se;constructor(){let n=h(De);this.dataStream.subscribe(r=>{this._data=r,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(lr(this._destroyed)).subscribe(r=>{this._renderedRange=r,this.viewChange.observers.length&&n.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(n,r){if(n.start>=n.end)return 0;n.start<this._renderedRange.start||n.end>this._renderedRange.end;let i=n.start-this._renderedRange.start,o=n.end-n.start,s,a;for(let c=0;c<o;c++){let l=this._viewContainerRef.get(c+i);if(l&&l.rootNodes.length){s=a=l.rootNodes[0];break}}for(let c=o-1;c>-1;c--){let l=this._viewContainerRef.get(c+i);if(l&&l.rootNodes.length){a=l.rootNodes[l.rootNodes.length-1];break}}return s&&a?ZC(r,"end",a)-ZC(r,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){let n=this._differ.diff(this._renderedItems);n?this._applyChanges(n):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((n,r)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(n,r):r)),this._needsUpdate=!0)}_changeDataSource(n,r){return n&&n.disconnect(this),this._needsUpdate=!0,r?r.connect(this):O()}_updateContext(){let n=this._data.length,r=this._viewContainerRef.length;for(;r--;){let i=this._viewContainerRef.get(r);i.context.index=this._renderedRange.start+r,i.context.count=n,this._updateComputedContextProperties(i.context),i.detectChanges()}}_applyChanges(n){this._viewRepeater.applyChanges(n,this._viewContainerRef,(o,s,a)=>this._getEmbeddedViewArgs(o,a),o=>o.item),n.forEachIdentityChange(o=>{let s=this._viewContainerRef.get(o.currentIndex);s.context.$implicit=o.item});let r=this._data.length,i=this._viewContainerRef.length;for(;i--;){let o=this._viewContainerRef.get(i);o.context.index=this._renderedRange.start+i,o.context.count=r,this._updateComputedContextProperties(o.context)}}_updateComputedContextProperties(n){n.first=n.index===0,n.last=n.index===n.count-1,n.even=n.index%2===0,n.odd=!n.even}_getEmbeddedViewArgs(n,r){return{templateRef:this._template,context:{$implicit:n.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:r}}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Fe({type:e,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[pn([{provide:Vg,useClass:Tu}])]})}return e})();var YC=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({})}return e})(),tw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({imports:[Lg,YC,Lg,YC]})}return e})();function yP(e,t){e&1&&Ce(0,"span",19)}function _P(e,t){if(e&1&&(b(0,"span",23),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function bP(e,t){if(e&1&&(b(0,"span",24),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function EP(e,t){if(e&1&&(b(0,"span",20),re(1,_P,2,1,"span",21)(2,bP,2,1,"span",22),_()),e&2){let n=oe().$implicit;E(),N("ngForOf",n.tags),E(),N("ngForOf",n.branches)}}function DP(e,t){if(e&1){let n=Dt();b(0,"button",7),ce("click",function(){let i=be(n).$implicit,o=oe();return Ee(o.select(i))}),b(1,"span",8),Ce(2,"span",9),re(3,yP,1,0,"span",10),_(),b(4,"span",11)(5,"span",12),w(6),_(),b(7,"span",13)(8,"span",14),w(9),_(),b(10,"span",15),w(11,"\u2022"),_(),b(12,"span",16),w(13),_(),b(14,"span",15),w(15,"\u2022"),_(),b(16,"span",17),w(17),Ns(18,"date"),_()()(),re(19,EP,3,2,"span",18),_()}if(e&2){let n=t.$implicit,r=t.index,i=oe();Ye("selected",n.hash===i.selectedHash()),Kt("aria-current",n.hash===i.selectedHash()?"true":null),E(2),fo("background",i.laneColor(n)),Ye("merge",n.isMerge),E(),N("ngIf",r<i.commits().length-1),E(2),N("title",n.subject),E(),ie(n.subject),E(3),ie(n.shortHash),E(4),ie(n.author),E(4),ie(xs(18,14,n.date,"MMM d, y, h:mm a")),E(2),N("ngIf",n.branches.length||n.tags.length)}}function CP(e,t){e&1&&(b(0,"div",25)(1,"p"),w(2,"No commits match your filters."),_()())}var Mu=class e{state=h(ht);commits=this.state.commits;selectedHash=this.state.selectedHash;trackByHash(t,n){return n.hash}select(t){this.state.selectHash(t.hash)}laneColors=["#4f46e5","#06b6d4","#f59e0b","#ef4444","#10b981","#8b5cf6"];laneColor(t){let n=0,r=t.branches[0]??t.parents[0]??t.hash;for(let i=0;i<r.length;i++)n=n*31+r.charCodeAt(i)>>>0;return this.laneColors[n%this.laneColors.length]}onKey(t){if(!this.isTyping(t.target)){if(t.key==="j")t.preventDefault(),this.state.selectByOffset(1);else if(t.key==="k")t.preventDefault(),this.state.selectByOffset(-1);else if(t.key==="g"){t.preventDefault();let n=this.state.commits();n.length&&this.state.selectHash(n[0].hash)}else if(t.key==="G"){t.preventDefault();let n=this.state.commits();n.length&&this.state.selectHash(n[n.length-1].hash)}}}isTyping(t){return t instanceof HTMLElement?["INPUT","TEXTAREA","SELECT"].includes(t.tagName)||t.isContentEditable:!1}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-commit-list"]],hostBindings:function(n,r){n&1&&ce("keydown",function(o){return r.onKey(o)},pi)},decls:13,vars:6,consts:[[1,"header"],[1,"count"],[1,"hint"],[1,"kbd"],["minBufferPx","640","maxBufferPx","1280",1,"viewport",3,"itemSize"],["class","row",3,"selected","click",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],["class","empty",4,"ngIf"],[1,"row",3,"click"],[1,"lane"],[1,"dot"],["class","line",4,"ngIf"],[1,"content"],[1,"subject",3,"title"],[1,"meta"],[1,"hash"],[1,"dot-sep"],[1,"author"],[1,"date"],["class","badges",4,"ngIf"],[1,"line"],[1,"badges"],["class","badge tag",4,"ngFor","ngForOf"],["class","badge branch",4,"ngFor","ngForOf"],[1,"badge","tag"],[1,"badge","branch"],[1,"empty"]],template:function(n,r){n&1&&(b(0,"div",0)(1,"span",1),w(2),_(),b(3,"span",2)(4,"kbd",3),w(5,"j"),_(),w(6,"/"),b(7,"kbd",3),w(8,"k"),_(),w(9," navigate "),_()(),b(10,"cdk-virtual-scroll-viewport",4),re(11,DP,20,17,"button",5)(12,CP,3,0,"div",6),_()),n&2&&(E(2),po("",r.commits().length," of ",r.state.total()),E(8),N("itemSize",64),E(),N("cdkVirtualForOf",r.commits())("cdkVirtualForTrackBy",r.trackByHash),E(),N("ngIf",!r.commits().length&&!r.state.loading()))},dependencies:[et,At,Ct,tw,XC,ew,Ug,Us],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--bg-surface);border-right:1px solid var(--border-soft)}.header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:.5rem .85rem;border-bottom:1px solid var(--border-soft);font-size:12px;color:var(--fg-muted);background:var(--bg-surface)}.viewport[_ngcontent-%COMP%]{flex:1;min-height:0}.row[_ngcontent-%COMP%]{display:grid;grid-template-columns:24px 1fr auto;gap:.5rem;align-items:center;width:100%;height:64px;padding:.45rem .85rem;background:transparent;border:0;border-bottom:1px solid var(--border-soft);color:inherit;text-align:left;cursor:pointer;transition:background .1s}.row[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.row.selected[_ngcontent-%COMP%]{background:var(--bg-selected)}.row.selected[_ngcontent-%COMP%] .subject[_ngcontent-%COMP%]{color:var(--fg-primary)}.lane[_ngcontent-%COMP%]{position:relative;width:24px;height:100%;display:flex;align-items:center;justify-content:center}.dot[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--bg-surface);z-index:1}.dot.merge[_ngcontent-%COMP%]{background:transparent;border:2px solid var(--accent)}.line[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;width:2px;height:50%;background:var(--border-strong);transform:translate(-50%)}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0;gap:2px}.subject[_ngcontent-%COMP%]{font-weight:500;color:var(--fg-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta[_ngcontent-%COMP%]{display:flex;gap:6px;font-size:11px;color:var(--fg-muted);align-items:center}.hash[_ngcontent-%COMP%]{font-family:var(--font-mono)}.dot-sep[_ngcontent-%COMP%]{opacity:.5}.badges[_ngcontent-%COMP%]{display:flex;gap:4px;flex-wrap:wrap}.badge[_ngcontent-%COMP%]{font-size:10px;font-weight:600;padding:2px 6px;border-radius:999px;letter-spacing:.02em}.badge.tag[_ngcontent-%COMP%]{background:#d9770626;color:var(--warning)}.badge.branch[_ngcontent-%COMP%]{background:var(--accent-soft);color:var(--accent)}.empty[_ngcontent-%COMP%]{padding:2rem 1rem;text-align:center;color:var(--fg-muted)}"],changeDetection:0})};var uw=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(de(Gn),de(ft))};static \u0275dir=Fe({type:e})}return e})(),Gg=(()=>{class e extends uw{static \u0275fac=(()=>{let n;return function(i){return(n||(n=Ir(e)))(i||e)}})();static \u0275dir=Fe({type:e,features:[Wt]})}return e})(),Ou=new T("");var wP={provide:Ou,useExisting:on(()=>Ho),multi:!0};function IP(){let e=Yt()?Yt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var SP=new T(""),Ho=(()=>{class e extends uw{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!IP())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(de(Gn),de(ft),de(SP,8))};static \u0275dir=Fe({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&ce("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[pn([wP]),Wt]})}return e})();var TP=new T(""),MP=new T("");function dw(e){return e!=null}function fw(e){return Tr(e)?ke(e):e}function pw(e){let t={};return e.forEach(n=>{t=n!=null?C(C({},t),n):t}),Object.keys(t).length===0?null:t}function hw(e,t){return t.map(n=>n(e))}function NP(e){return!e.validate}function gw(e){return e.map(t=>NP(t)?t:n=>t.validate(n))}function xP(e){if(!e)return null;let t=e.filter(dw);return t.length==0?null:function(n){return pw(hw(n,t))}}function mw(e){return e!=null?xP(gw(e)):null}function AP(e){if(!e)return null;let t=e.filter(dw);return t.length==0?null:function(n){let r=hw(n,t).map(fw);return vd(r).pipe(X(pw))}}function vw(e){return e!=null?AP(gw(e)):null}function nw(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function RP(e){return e._rawValidators}function OP(e){return e._rawAsyncValidators}function jg(e){return e?Array.isArray(e)?e:[e]:[]}function xu(e,t){return Array.isArray(e)?e.includes(t):e===t}function rw(e,t){let n=jg(t);return jg(e).forEach(i=>{xu(n,i)||n.push(i)}),n}function iw(e,t){return jg(t).filter(n=>!xu(e,n))}var Au=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=mw(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=vw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},$g=class extends Au{name;get formDirective(){return null}get path(){return null}},_a=class extends Au{_parent=null;name=null;valueAccessor=null},Hg=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},kP={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},jZ=Y(C({},kP),{"[class.ng-submitted]":"isSubmitted"}),ku=(()=>{class e extends Hg{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(de(_a,2))};static \u0275dir=Fe({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&Ye("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[Wt]})}return e})();var ga="VALID",Nu="INVALID",Uo="PENDING",ma="DISABLED",$o=class{},Ru=class extends $o{value;source;constructor(t,n){super(),this.value=t,this.source=n}},va=class extends $o{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},ya=class extends $o{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},jo=class extends $o{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function PP(e){return(Pu(e)?e.validators:e)||null}function FP(e){return Array.isArray(e)?mw(e):e||null}function LP(e,t){return(Pu(t)?t.asyncValidators:e)||null}function VP(e){return Array.isArray(e)?vw(e):e||null}function Pu(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var zg=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return je(this.statusReactive)}set status(t){je(()=>this.statusReactive.set(t))}_status=He(()=>this.statusReactive());statusReactive=L(void 0);get valid(){return this.status===ga}get invalid(){return this.status===Nu}get pending(){return this.status==Uo}get disabled(){return this.status===ma}get enabled(){return this.status!==ma}errors;get pristine(){return je(this.pristineReactive)}set pristine(t){je(()=>this.pristineReactive.set(t))}_pristine=He(()=>this.pristineReactive());pristineReactive=L(!0);get dirty(){return!this.pristine}get touched(){return je(this.touchedReactive)}set touched(t){je(()=>this.touchedReactive.set(t))}_touched=He(()=>this.touchedReactive());touchedReactive=L(!1);get untouched(){return!this.touched}_events=new se;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(rw(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(rw(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(iw(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(iw(t,this._rawAsyncValidators))}hasValidator(t){return xu(this._rawValidators,t)}hasAsyncValidator(t){return xu(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(Y(C({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ya(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new ya(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(Y(C({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new va(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new va(!0,r))}markAsPending(t={}){this.status=Uo;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new jo(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(Y(C({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ma,this.errors=null,this._forEachChild(i=>{i.disable(Y(C({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ru(this.value,r)),this._events.next(new jo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Y(C({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ga,this._forEachChild(r=>{r.enable(Y(C({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Y(C({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ga||this.status===Uo)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ru(this.value,n)),this._events.next(new jo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(Y(C({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ma:ga}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Uo,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=fw(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new jo(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Ve,this.statusChanges=new Ve}_calculateStatus(){return this._allControlsDisabled()?ma:this.errors?Nu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Uo)?Uo:this._anyControlsHaveStatus(Nu)?Nu:ga}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),i&&this._events.next(new va(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new ya(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Pu(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=FP(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=VP(this._rawAsyncValidators)}};var yw=new T("",{providedIn:"root",factory:()=>qg}),qg="always";function BP(e,t){return[...t.path,e]}function UP(e,t,n=qg){$P(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),HP(e,t),GP(e,t),zP(e,t),jP(e,t)}function ow(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function jP(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function $P(e,t){let n=RP(e);t.validator!==null?e.setValidators(nw(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=OP(e);t.asyncValidator!==null?e.setAsyncValidators(nw(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();ow(t._rawValidators,i),ow(t._rawAsyncValidators,i)}function HP(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&_w(e,t)})}function zP(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&_w(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function _w(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function GP(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function qP(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function WP(e){return Object.getPrototypeOf(e.constructor)===Gg}function KP(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===Ho?n=o:WP(o)?r=o:i=o}),i||r||n||null}function sw(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function aw(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var ZP=class extends zg{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(PP(n),LP(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Pu(n)&&(n.nonNullable||n.initialValueIsDefault)&&(aw(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){sw(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){sw(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){aw(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var YP={provide:_a,useExisting:on(()=>ba)},cw=Promise.resolve(),ba=(()=>{class e extends _a{_changeDetectorRef;callSetDisabledState;control=new ZP;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Ve;constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=KP(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),qP(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){UP(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){cw.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&ks(r);cw.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?BP(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(de($g,9),de(TP,10),de(MP,10),de(Ou,10),de(Ar,8),de(yw,8))};static \u0275dir=Fe({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[pn([YP]),Wt,wr]})}return e})();var QP={provide:Ou,useExisting:on(()=>Fu),multi:!0};function bw(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function XP(e){return e.split(":")[0]}var Fu=(()=>{class e extends Gg{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=h(fn).injector;destroyRef=h(Ze);cdr=h(Ar);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,lo({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),i=bw(r,n);this.setProperty("value",i)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=XP(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(i){return(n||(n=Ir(e)))(i||e)}})();static \u0275dir=Fe({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,i){r&1&&ce("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[pn([QP]),Wt]})}return e})(),Ew=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,i){this._element=n,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(bw(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select&&this._select._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select._writeValueAfterRender())}static \u0275fac=function(r){return new(r||e)(de(ft),de(Gn),de(Fu,9))};static \u0275dir=Fe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),JP={provide:Ou,useExisting:on(()=>Dw),multi:!0};function lw(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function e1(e){return e.split(":")[0]}var Dw=(()=>{class e extends Gg{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let i=n.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let i=[],o=r.selectedOptions;if(o!==void 0){let s=o;for(let a=0;a<s.length;a++){let c=s[a],l=this._getOptionValue(c.value);i.push(l)}}else{let s=r.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let l=this._getOptionValue(c.value);i.push(l)}}}this.value=i,n(i)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=e1(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(i){return(n||(n=Ir(e)))(i||e)}})();static \u0275dir=Fe({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,i){r&1&&ce("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[pn([JP]),Wt]})}return e})(),Cw=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,i){this._element=n,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(lw(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(lw(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||e)(de(ft),de(Gn),de(Dw,9))};static \u0275dir=Fe({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var t1=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({})}return e})();var Lu=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:yw,useValue:n.callSetDisabledState??qg}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Nt({type:e});static \u0275inj=_t({imports:[t1]})}return e})();var n1=["input"];function r1(e,t){if(e&1){let n=Dt();b(0,"div",3),ce("click",function(){be(n);let i=oe();return Ee(i.close())}),_()}}function i1(e,t){if(e&1){let n=Dt();b(0,"li",11),ce("mouseenter",function(){let i=be(n).index,o=oe(2);return Ee(o.index.set(i))})("click",function(){let i=be(n).$implicit,o=oe(2);return Ee(o.pick(i))}),b(1,"span",12),w(2),_(),b(3,"span",13),w(4),_(),b(5,"span",14),w(6),_()()}if(e&2){let n=t.$implicit,r=t.index,i=oe(2);Ye("active",r===i.index()),Kt("aria-selected",r===i.index()),E(2),ie(n.shortHash),E(2),ie(n.subject),E(2),ie(n.author)}}function o1(e,t){e&1&&(b(0,"li",15),w(1,"No matches."),_())}function s1(e,t){if(e&1){let n=Dt();b(0,"div",4)(1,"input",5,0),ce("ngModelChange",function(i){be(n);let o=oe();return Ee(o.onQuery(i))})("keydown",function(i){be(n);let o=oe();return Ee(o.onKey(i))}),_(),b(3,"ul",6),re(4,i1,7,6,"li",7)(5,o1,2,0,"li",8),_(),b(6,"div",9)(7,"span")(8,"kbd",10),w(9,"\u2191"),_(),b(10,"kbd",10),w(11,"\u2193"),_(),w(12," navigate"),_(),b(13,"span")(14,"kbd",10),w(15,"Enter"),_(),w(16," select"),_(),b(17,"span")(18,"kbd",10),w(19,"Esc"),_(),w(20," close"),_()()()}if(e&2){let n=oe();E(),N("ngModel",n.query()),E(3),N("ngForOf",n.results())("ngForTrackBy",n.trackByHash),E(),N("ngIf",!n.results().length)}}var Vu=class e{state=h(ht);input;query=L("");index=L(0);results=He(()=>{let t=this.query().trim().toLowerCase(),n=this.state.commits();return t?n.filter(r=>r.hash.toLowerCase().startsWith(t)||r.shortHash.toLowerCase().startsWith(t)||r.subject.toLowerCase().includes(t)||r.author.toLowerCase().includes(t)).slice(0,50):n.slice(0,50)});constructor(){ze(()=>{this.state.paletteOpen()&&(this.query.set(""),this.index.set(0),queueMicrotask(()=>this.input?.nativeElement.focus()))}),ze(()=>{let t=this.results().length;this.index()>=t&&this.index.set(Math.max(0,t-1))})}trackByHash(t,n){return n.hash}onQuery(t){this.query.set(t),this.index.set(0)}onKey(t){if(t.key==="ArrowDown")t.preventDefault(),this.index.update(n=>Math.min(this.results().length-1,n+1));else if(t.key==="ArrowUp")t.preventDefault(),this.index.update(n=>Math.max(0,n-1));else if(t.key==="Enter"){t.preventDefault();let n=this.results()[this.index()];n&&this.pick(n)}else t.key==="Escape"&&(t.preventDefault(),this.close())}pick(t){this.state.selectHash(t.hash),this.close()}close(){this.state.paletteOpen.set(!1)}onGlobal(t){(t.metaKey||t.ctrlKey)&&(t.key==="k"||t.key==="K")&&(t.preventDefault(),this.state.paletteOpen.set(!this.state.paletteOpen()))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-command-palette"]],viewQuery:function(n,r){if(n&1&&Mn(n1,5),n&2){let i;Nn(i=xn())&&(r.input=i.first)}},hostBindings:function(n,r){n&1&&ce("keydown",function(o){return r.onGlobal(o)},Cs)},decls:2,vars:2,consts:[["input",""],["class","backdrop",3,"click",4,"ngIf"],["class","palette","role","dialog","aria-modal","true",4,"ngIf"],[1,"backdrop",3,"click"],["role","dialog","aria-modal","true",1,"palette"],["type","text","placeholder","Jump to a commit by hash, subject, or author\u2026",1,"search",3,"ngModelChange","keydown","ngModel"],["role","listbox",1,"results"],["class","result",3,"active","mouseenter","click",4,"ngFor","ngForOf","ngForTrackBy"],["class","result empty",4,"ngIf"],[1,"footer"],[1,"kbd"],[1,"result",3,"mouseenter","click"],[1,"hash"],[1,"subj"],[1,"auth"],[1,"result","empty"]],template:function(n,r){n&1&&re(0,r1,1,0,"div",1)(1,s1,21,4,"div",2),n&2&&(N("ngIf",r.state.paletteOpen()),E(),N("ngIf",r.state.paletteOpen()))},dependencies:[et,At,Ct,Lu,Ho,ku,ba],styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:var(--bg-overlay);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:90}.palette[_ngcontent-%COMP%]{position:fixed;top:12vh;left:50%;transform:translate(-50%);width:min(640px,calc(100vw - 32px));background:var(--bg-elevated);border:1px solid var(--border-soft);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);z-index:100;overflow:hidden}.search[_ngcontent-%COMP%]{width:100%;border:0;outline:0;padding:.85rem 1rem;background:transparent;color:var(--fg-primary);font-size:14px;border-bottom:1px solid var(--border-soft)}.results[_ngcontent-%COMP%]{list-style:none;margin:0;padding:.25rem 0;max-height:50vh;overflow:auto}.result[_ngcontent-%COMP%]{display:grid;grid-template-columns:70px 1fr auto;align-items:center;gap:.6rem;padding:.45rem 1rem;cursor:pointer;font-size:13px}.result.active[_ngcontent-%COMP%]{background:var(--bg-hover)}.result.empty[_ngcontent-%COMP%]{grid-template-columns:1fr;color:var(--fg-muted);cursor:default}.hash[_ngcontent-%COMP%]{font-family:var(--font-mono);color:var(--fg-muted)}.subj[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fg-primary)}.auth[_ngcontent-%COMP%]{color:var(--fg-muted);font-size:11px}.footer[_ngcontent-%COMP%]{display:flex;gap:1rem;padding:.4rem .75rem;background:var(--bg-surface-2);border-top:1px solid var(--border-soft);font-size:11px;color:var(--fg-muted)}"],changeDetection:0})};function a1(e,t){if(e&1&&(b(0,"kbd",11),w(1),_()),e&2){let n=t.$implicit;E(),ie(n)}}function c1(e,t){if(e&1&&(b(0,"li")(1,"span",8),w(2),_(),b(3,"span",9),re(4,a1,2,1,"kbd",10),_()()),e&2){let n=t.$implicit;E(2),ie(n.description),E(2),N("ngForOf",n.keys)}}function l1(e,t){if(e&1&&(b(0,"section")(1,"h3"),w(2),_(),b(3,"ul"),re(4,c1,5,2,"li",7),_()()),e&2){let n=t.$implicit;E(2),ie(n.title),E(2),N("ngForOf",n.bindings)}}function u1(e,t){if(e&1){let n=Dt();Mr(0),b(1,"div",1),ce("click",function(){be(n);let i=oe();return Ee(i.close())}),_(),b(2,"div",2)(3,"div",3)(4,"h2",4),w(5,"Keyboard shortcuts"),_(),b(6,"button",5),ce("click",function(){be(n);let i=oe();return Ee(i.close())}),w(7,"\u2715"),_()(),b(8,"div",6),re(9,l1,5,2,"section",7),_()(),Nr()}if(e&2){let n=oe();E(9),N("ngForOf",n.groups)}}var d1=[{title:"Navigation",bindings:[{keys:["j"],description:"Next commit"},{keys:["k"],description:"Previous commit"},{keys:["g"],description:"Jump to newest commit"},{keys:["G"],description:"Jump to oldest commit"}]},{title:"Search & overlays",bindings:[{keys:["/"],description:"Focus search"},{keys:["\u2318","K"],description:"Open command palette"},{keys:["?"],description:"Show this help"},{keys:["Esc"],description:"Close overlays"}]}],Bu=class e{state=h(ht);groups=d1;close(){this.state.shortcutsOpen.set(!1)}onKey(t){t.key==="?"&&!this.isTyping(t.target)&&(t.preventDefault(),this.state.shortcutsOpen.set(!0)),t.key==="Escape"&&(this.state.shortcutsOpen.set(!1),this.state.paletteOpen.set(!1))}isTyping(t){return t instanceof HTMLElement?["INPUT","TEXTAREA","SELECT"].includes(t.tagName)||t.isContentEditable:!1}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-shortcuts-modal"]],hostBindings:function(n,r){n&1&&ce("keydown",function(o){return r.onKey(o)},Cs)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"backdrop",3,"click"],["role","dialog","aria-modal","true","aria-labelledby","shortcuts-title",1,"modal"],[1,"head"],["id","shortcuts-title"],["aria-label","Close",1,"btn","btn-ghost","btn-icon",3,"click"],[1,"body"],[4,"ngFor","ngForOf"],[1,"desc"],[1,"keys"],["class","kbd",4,"ngFor","ngForOf"],[1,"kbd"]],template:function(n,r){n&1&&re(0,u1,10,1,"ng-container",0),n&2&&N("ngIf",r.state.shortcutsOpen())},dependencies:[et,At,Ct],styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:var(--bg-overlay);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:90}.modal[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(560px,calc(100vw - 32px));max-height:80vh;overflow:auto;background:var(--bg-elevated);border:1px solid var(--border-soft);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);z-index:100}.head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--border-soft)}.head[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:16px}.body[_ngcontent-%COMP%]{padding:.75rem 1rem 1rem}h3[_ngcontent-%COMP%]{margin:1rem 0 .4rem;font-size:12px;color:var(--fg-muted);text-transform:uppercase;letter-spacing:.04em}h3[_ngcontent-%COMP%]:first-child{margin-top:0}ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}li[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.45rem .25rem;border-bottom:1px dashed var(--border-soft)}li[_ngcontent-%COMP%]:last-child{border-bottom:0}.desc[_ngcontent-%COMP%]{color:var(--fg-secondary);font-size:13px}.keys[_ngcontent-%COMP%]{display:flex;gap:4px}"],changeDetection:0})};var Iw="ghui:theme",Uu=class e{doc=h(xe);mediaQuery=null;preference=L(this.read());systemDark=L(!1);resolved=He(()=>{let t=this.preference();return t==="system"?this.systemDark()?"dark":"light":t});constructor(){typeof window<"u"&&window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.systemDark.set(this.mediaQuery.matches),this.mediaQuery.addEventListener("change",t=>this.systemDark.set(t.matches))),ze(()=>{let t=this.resolved(),n=this.doc.documentElement;n.classList.toggle("dark",t==="dark"),n.dataset.theme=t,this.doc.body?.classList?.toggle("dark",t==="dark")})}setPreference(t){this.preference.set(t);try{localStorage.setItem(Iw,t)}catch{}}cycle(){let t=["light","dark","system"],n=t[(t.indexOf(this.preference())+1)%t.length];this.setPreference(n)}read(){try{let t=localStorage.getItem(Iw);if(t==="light"||t==="dark"||t==="system")return t}catch{}return"system"}static \u0275fac=function(n){return new(n||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};var f1=["searchInput"];function p1(e,t){if(e&1&&(b(0,"span",27),w(1),_()),e&2){let n=t.ngIf;E(),ie(n)}}function h1(e,t){e&1&&(b(0,"kbd",28),w(1,"/"),_())}function g1(e,t){if(e&1&&(b(0,"option",29),w(1),_()),e&2){let n=t.$implicit;N("value",n),E(),ie(n)}}function m1(e,t){e&1&&(Dr(),b(0,"svg",21),Ce(1,"path",30),_())}function v1(e,t){e&1&&(Dr(),b(0,"svg",21),Ce(1,"path",31),_())}var ju=class e{state=h(ht);theme=h(Uu);searchEl;searchValue=L("");totalLabel=He(()=>{let t=this.state.total();return t?`${t.toLocaleString()} commits`:""});debounce=null;constructor(){ze(()=>{let t=this.state.filters();this.searchValue.set(t.search??"")})}onKeydown(t){t.key==="/"&&!this.isTyping(t.target)&&(t.preventDefault(),queueMicrotask(()=>this.searchEl?.nativeElement.focus()))}onSearchInput(t){this.searchValue.set(t),this.debounce&&clearTimeout(this.debounce),this.debounce=setTimeout(()=>{this.state.patchFilters({search:t||void 0})},250)}onAuthor(t){this.state.patchFilters({author:t||void 0})}onSince(t){this.state.patchFilters({since:t||void 0})}onUntil(t){this.state.patchFilters({until:t||void 0})}onFile(t){this.state.patchFilters({file:t||void 0})}isTyping(t){return t instanceof HTMLElement?["INPUT","TEXTAREA","SELECT"].includes(t.tagName)||t.isContentEditable:!1}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-toolbar"]],viewQuery:function(n,r){if(n&1&&Mn(f1,5),n&2){let i;Nn(i=xn())&&(r.searchEl=i.first)}},hostBindings:function(n,r){n&1&&ce("keydown",function(o){return r.onKeydown(o)},pi)},decls:32,vars:11,consts:[["searchInput",""],[1,"toolbar"],[1,"brand"],["aria-hidden","true",1,"brand-mark"],[1,"brand-text"],[1,"brand-title"],["class","brand-sub",4,"ngIf"],[1,"filters"],[1,"search"],["viewBox","0 0 20 20","width","16","height","16","aria-hidden","true"],["fill","currentColor","d","M9 2a7 7 0 1 1-4.32 12.5l-3.1 3.09a1 1 0 0 1-1.42-1.42l3.1-3.09A7 7 0 0 1 9 2Zm0 2a5 5 0 1 0 0 10A5 5 0 0 0 9 4Z"],["type","text","placeholder","Search commits\u2026 ( / )","aria-label","Search commits",1,"search-input",3,"ngModelChange","ngModel"],["class","kbd",4,"ngIf"],["aria-label","Filter by author",1,"select",3,"ngModelChange","ngModel"],["value",""],[3,"value",4,"ngFor","ngForOf"],["type","date","aria-label","Since date",1,"input","date",3,"ngModelChange","ngModel"],["type","date","aria-label","Until date",1,"input","date",3,"ngModelChange","ngModel"],["type","text","placeholder","path/to/file","aria-label","Filter by file path",1,"input",3,"ngModelChange","ngModel"],[1,"actions"],["title","Command palette (\u2318K)",1,"btn","btn-ghost","btn-icon",3,"click"],["viewBox","0 0 24 24","width","16","height","16","aria-hidden","true"],["fill","currentColor","d","M3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3Zm3-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1Zm2 4h2v2H8Zm4 0h6v2h-6Zm-4 4h6v2H8Zm8 0h2v2h-2Z"],["title","Keyboard shortcuts (?)",1,"btn","btn-ghost","btn-icon",3,"click"],["fill","currentColor","d","M11 18h2v-2h-2Zm1-16a8 8 0 0 0-8 8h2a6 6 0 1 1 9.6 4.8c-1.06.8-1.6 1.42-1.6 3.2v.5h-2v-.5c0-2.6.94-3.5 2.13-4.39A4 4 0 1 0 8 10H6a6 6 0 0 1 6-8Z"],[1,"btn","btn-ghost","btn-icon",3,"click","title"],["viewBox","0 0 24 24","width","16","height","16","aria-hidden","true",4,"ngIf"],[1,"brand-sub"],[1,"kbd"],[3,"value"],["fill","currentColor","d","M12 4V2m0 20v-2m8-8h2M2 12h2m13.66-6.34 1.42-1.42M4.92 19.08l1.42-1.42m0-11.32L4.92 4.92m14.16 14.16-1.42-1.42M12 7a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z"],["fill","currentColor","d","M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z"]],template:function(n,r){if(n&1){let i=Dt();b(0,"header",1)(1,"div",2)(2,"span",3),w(3,"\u2387"),_(),b(4,"div",4)(5,"span",5),w(6,"Git History"),_(),re(7,p1,2,1,"span",6),_()(),b(8,"div",7)(9,"label",8),Dr(),b(10,"svg",9),Ce(11,"path",10),_(),Yi(),b(12,"input",11,0),ce("ngModelChange",function(s){return be(i),Ee(r.onSearchInput(s))}),_(),re(14,h1,2,0,"kbd",12),_(),b(15,"select",13),ce("ngModelChange",function(s){return be(i),Ee(r.onAuthor(s))}),b(16,"option",14),w(17,"All authors"),_(),re(18,g1,2,2,"option",15),_(),b(19,"input",16),ce("ngModelChange",function(s){return be(i),Ee(r.onSince(s))}),_(),b(20,"input",17),ce("ngModelChange",function(s){return be(i),Ee(r.onUntil(s))}),_(),b(21,"input",18),ce("ngModelChange",function(s){return be(i),Ee(r.onFile(s))}),_()(),b(22,"div",19)(23,"button",20),ce("click",function(){return be(i),Ee(r.state.paletteOpen.set(!0))}),Dr(),b(24,"svg",21),Ce(25,"path",22),_()(),Yi(),b(26,"button",23),ce("click",function(){return be(i),Ee(r.state.shortcutsOpen.set(!0))}),Dr(),b(27,"svg",21),Ce(28,"path",24),_()(),Yi(),b(29,"button",25),ce("click",function(){return be(i),Ee(r.theme.cycle())}),re(30,m1,2,0,"svg",26)(31,v1,2,0,"svg",26),_()()()}n&2&&(E(7),N("ngIf",r.totalLabel()),E(5),N("ngModel",r.searchValue()),E(2),N("ngIf",!r.searchValue()),E(),N("ngModel",r.state.filters().author??""),E(3),N("ngForOf",r.state.authors()),E(),N("ngModel",r.state.filters().since??""),E(),N("ngModel",r.state.filters().until??""),E(),N("ngModel",r.state.filters().file??""),E(8),N("title","Theme: "+r.theme.preference()),E(),N("ngIf",r.theme.resolved()==="light"),E(),N("ngIf",r.theme.resolved()==="dark"))},dependencies:[et,At,Ct,Lu,Ew,Cw,Ho,Fu,ku,ba],styles:["[_nghost-%COMP%]{display:block;position:sticky;top:0;z-index:50;background:color-mix(in oklab,var(--bg-surface) 92%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--border-soft)}.toolbar[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;padding:.6rem 1rem}.brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.6rem;padding-right:.5rem}.brand-mark[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),#06b6d4);color:var(--accent-fg);font-weight:700;font-size:18px}.brand-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;line-height:1.1}.brand-title[_ngcontent-%COMP%]{font-weight:600}.brand-sub[_ngcontent-%COMP%]{font-size:11px;color:var(--fg-muted)}.filters[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;min-width:0}.search[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;gap:.4rem;flex:1 1 240px;min-width:200px;max-width:420px;padding:0 .6rem;background:var(--bg-surface);border:1px solid var(--border-soft);border-radius:var(--radius-sm);color:var(--fg-muted)}.search[_ngcontent-%COMP%]:focus-within{border-color:var(--border-focus);box-shadow:0 0 0 3px #6366f12e}.search-input[_ngcontent-%COMP%]{flex:1;border:0;outline:0;background:transparent;color:var(--fg-primary);font-size:13px;padding:.45rem 0}.search-input[_ngcontent-%COMP%]::placeholder{color:var(--fg-subtle)}.search[_ngcontent-%COMP%] .kbd[_ngcontent-%COMP%]{margin-left:.4rem}.date[_ngcontent-%COMP%]{width:9rem}.actions[_ngcontent-%COMP%]{display:flex;gap:.3rem}"],changeDetection:0})};function y1(e,t){if(e&1&&(b(0,"div",6)(1,"span"),w(2),_()()),e&2){let n=t.ngIf;E(2),Zt("\u26A0\uFE0F ",n)}}function _1(e,t){e&1&&(b(0,"div",7),Ce(1,"span",8),w(2," Loading commits\u2026 "),_())}var $u=class e{state=h(ht);git=h(Oo);commitsResp=cu(au(this.state.filters).pipe(yd(200),Re(t=>(this.state.loading.set(!0),this.state.error.set(null),this.git.getCommits(t).pipe(kt(n=>(this.state.error.set(this.errorMessage(n)),this.state.loading.set(!1),O(null))))))),{initialValue:null});authorsLoaded=L(!1);constructor(){ze(()=>{let t=this.commitsResp();t&&(this.state.commits.set(t.commits),this.state.total.set(t.total),this.state.page.set(t.page),this.state.pageSize.set(t.pageSize),this.state.loading.set(!1),!this.state.selectedHash()&&t.commits.length&&this.state.selectHash(t.commits[0].hash))}),ze(()=>{this.commitsResp()&&!this.authorsLoaded()&&(this.authorsLoaded.set(!0),this.git.getAuthors().subscribe({next:t=>this.state.authors.set(t),error:()=>this.state.authors.set([])}),this.git.getBranches().subscribe({next:t=>this.state.branches.set(t),error:()=>this.state.branches.set([])}),this.git.getTags().subscribe({next:t=>this.state.tags.set(t),error:()=>this.state.tags.set([])}))})}errorMessage(t){if(t&&typeof t=="object"&&"error"in t){let n=t.error;if(n?.error)return n.error}return t instanceof Error?t.message:"Failed to load commits."}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Be({type:e,selectors:[["app-root"]],decls:12,vars:2,consts:[["class","status-bar",4,"ngIf"],[1,"layout"],[1,"pane","graph"],[1,"pane","list"],[1,"pane","detail"],["class","loading","aria-live","polite",4,"ngIf"],[1,"status-bar"],["aria-live","polite",1,"loading"],[1,"spinner"]],template:function(n,r){n&1&&(Ce(0,"app-toolbar"),re(1,y1,3,1,"div",0),b(2,"main",1)(3,"aside",2),Ce(4,"app-commit-graph"),_(),b(5,"section",3),Ce(6,"app-commit-list"),_(),b(7,"section",4),Ce(8,"app-commit-detail"),_()(),re(9,_1,3,0,"div",5),Ce(10,"app-command-palette")(11,"app-shortcuts-modal")),n&2&&(E(),N("ngIf",r.state.error()),E(8),N("ngIf",r.state.loading()))},dependencies:[et,Ct,ju,Du,Mu,Eu,Vu,Bu],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100vh;width:100vw;overflow:hidden;background:var(--bg-app);color:var(--fg-primary)}.layout[_ngcontent-%COMP%]{flex:1;display:grid;grid-template-columns:220px 380px 1fr;min-height:0}.pane[_ngcontent-%COMP%]{min-width:0;min-height:0}.pane.graph[_ngcontent-%COMP%]{border-right:1px solid var(--border-soft)}.status-bar[_ngcontent-%COMP%]{padding:.5rem 1rem;background:#dc26261a;color:var(--danger);border-bottom:1px solid var(--border-soft);font-size:13px}.loading[_ngcontent-%COMP%]{position:fixed;bottom:1rem;right:1rem;display:flex;align-items:center;gap:.5rem;padding:.5rem .85rem;background:var(--bg-elevated);border:1px solid var(--border-soft);border-radius:var(--radius-md);box-shadow:var(--shadow-md);font-size:12px;color:var(--fg-secondary);z-index:80}.spinner[_ngcontent-%COMP%]{width:14px;height:14px;border:2px solid var(--border-strong);border-top-color:var(--accent);border-radius:50%;animation:_ngcontent-%COMP%_spin .7s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media (max-width: 1100px){.layout[_ngcontent-%COMP%]{grid-template-columns:320px 1fr}.pane.graph[_ngcontent-%COMP%]{display:none}}@media (max-width: 720px){.layout[_ngcontent-%COMP%]{grid-template-columns:1fr}.pane.list[_ngcontent-%COMP%]{display:none}}"],changeDetection:0})};Rh($u,AE).catch(e=>console.error(e));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "git-history-ui",
3
- "version": "2.0.0",
4
- "description": "Beautiful, fast git history visualization in your browser \u2014 with deterministic swim-lane graphs, virtualized diffs, and a command palette.",
3
+ "version": "2.0.1",
4
+ "description": "Beautiful, fast git history visualization in your browser with deterministic swim-lane graphs, virtualized diffs, and a command palette.",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {
7
7
  "git-history-ui": "dist/cli.js"