guito 0.6.1 → 0.6.2
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 +26 -0
- package/bin/avatars.js +35 -0
- package/bin/guito-server.js +139 -49
- package/bin/repository-state.js +25 -0
- package/bin/ui/browser/index.html +1 -1
- package/bin/ui/browser/main-JDFRJ57Z.js +6 -0
- package/package.json +1 -1
- package/bin/ui/browser/main-SN64JYAQ.js +0 -6
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var iv=Object.defineProperty,sv=Object.defineProperties;var av=Object.getOwnPropertyDescriptors;var Ed=Object.getOwnPropertySymbols;var cv=Object.prototype.hasOwnProperty,lv=Object.prototype.propertyIsEnumerable;var wd=(t,e,n)=>e in t?iv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,J=(t,e)=>{for(var n in e||={})cv.call(e,n)&&wd(t,n,e[n]);if(Ed)for(var n of Ed(e))lv.call(e,n)&&wd(t,n,e[n]);return t},ue=(t,e)=>sv(t,av(e));var ir=(t,e,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(l){o(l)}},s=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(t,e)).next())});var Ha;function li(){return Ha}function bt(t){let e=Ha;return Ha=t,e}var xd=Symbol("NotFound");function sr(t){return t===xd||t?.name==="\u0275NotFound"}var Oe=null,ui=!1,$a=1,uv=null,Ne=Symbol("SIGNAL");function F(t){let e=Oe;return Oe=t,e}function hi(){return Oe}var fn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function pn(t){if(ui)throw new Error("");if(Oe===null)return;Oe.consumerOnSignalRead(t);let e=Oe.producersTail;if(e!==void 0&&e.producer===t)return;let n,r=Oe.recomputing;if(r&&(n=e!==void 0?e.nextProducer:Oe.producers,n!==void 0&&n.producer===t)){Oe.producersTail=n,n.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===Oe&&(!r||fv(o,Oe)))return;let i=ar(Oe),s={producer:t,consumer:Oe,nextProducer:n,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};Oe.producersTail=s,e!==void 0?e.nextProducer=s:Oe.producers=s,i&&Sd(t,s)}function Id(){$a++}function gi(t){if(!(ar(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===$a)){if(!t.producerMustRecompute(t)&&!gn(t)){pi(t);return}t.producerRecomputeValue(t),pi(t)}}function Ua(t){if(t.consumers===void 0)return;let e=ui;ui=!0;try{for(let n=t.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||dv(r)}}finally{ui=e}}function za(){return Oe?.consumerAllowSignalWrites!==!1}function dv(t){t.dirty=!0,Ua(t),t.consumerMarkedDirty?.(t)}function pi(t){t.dirty=!1,t.lastCleanEpoch=$a}function Gt(t){return t&&Td(t),F(t)}function Td(t){t.producersTail=void 0,t.recomputing=!0}function hn(t,e){F(e),t&&Md(t)}function Md(t){t.recomputing=!1;let e=t.producersTail,n=e!==void 0?e.nextProducer:t.producers;if(n!==void 0){if(ar(t))do n=Ga(n);while(n!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function gn(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let n=e.producer,r=e.lastReadVersion;if(r!==n.version||(gi(n),r!==n.version))return!0}return!1}function Wt(t){if(ar(t)){let e=t.producers;for(;e!==void 0;)e=Ga(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function Sd(t,e){let n=t.consumersTail,r=ar(t);if(n!==void 0?(e.nextConsumer=n.nextConsumer,n.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=n,t.consumersTail=e,!r)for(let o=t.producers;o!==void 0;o=o.nextProducer)Sd(o.producer,o)}function Ga(t){let e=t.producer,n=t.nextProducer,r=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:e.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(e.consumers=r,!ar(e)){let i=e.producers;for(;i!==void 0;)i=Ga(i)}return n}function ar(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function mi(t){uv?.(t)}function fv(t,e){let n=e.producersTail;if(n!==void 0){let r=e.producers;do{if(r===t)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function vi(t,e){return Object.is(t,e)}function Wr(t,e){let n=Object.create(pv);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(gi(n),pn(n),n.value===Gr)throw n.error;return n.value};return r[Ne]=n,mi(n),r}var di=Symbol("UNSET"),fi=Symbol("COMPUTING"),Gr=Symbol("ERRORED"),pv=ue(J({},fn),{value:di,dirty:!0,error:null,equal:vi,kind:"computed",producerMustRecompute(t){return t.value===di||t.value===fi},producerRecomputeValue(t){if(t.value===fi)throw new Error("");let e=t.value;t.value=fi;let n=Gt(t),r,o=!1;try{r=t.computation(),F(null),o=e!==di&&e!==Gr&&r!==Gr&&t.equal(e,r)}catch(i){r=Gr,t.error=i}finally{hn(t,n)}if(o){t.value=e;return}t.value=r,t.version++}});function hv(){throw new Error}var Nd=hv;function kd(t){Nd(t)}function Wa(t){Nd=t}var gv=null;function qa(t,e){let n=Object.create(qr);n.value=t,e!==void 0&&(n.equal=e);let r=()=>Rd(n);return r[Ne]=n,mi(n),[r,s=>cr(n,s),s=>Za(n,s)]}function Rd(t){return pn(t),t.value}function cr(t,e){za()||kd(t),t.equal(t.value,e)||(t.value=e,mv(t))}function Za(t,e){za()||kd(t),cr(t,e(t.value))}var qr=ue(J({},fn),{equal:vi,value:void 0,kind:"signal"});function mv(t){t.version++,Id(),Ua(t),gv?.(t)}function z(t){return typeof t=="function"}function lr(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var yi=lr(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
|
-
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
-
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function mn(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var pe=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(z(r))try{r()}catch(i){e=i instanceof yi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ad(i)}catch(s){e=e??[],s instanceof yi?e=[...e,...s.errors]:e.push(s)}}if(e)throw new yi(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Ad(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&mn(n,e)}remove(e){let{_finalizers:n}=this;n&&mn(n,e),e instanceof t&&e._removeParent(this)}};pe.EMPTY=(()=>{let t=new pe;return t.closed=!0,t})();var Ya=pe.EMPTY;function _i(t){return t instanceof pe||t&&"closed"in t&&z(t.remove)&&z(t.add)&&z(t.unsubscribe)}function Ad(t){z(t)?t():t.unsubscribe()}var lt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ur={setTimeout(t,e,...n){let{delegate:r}=ur;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=ur;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function bi(t){ur.setTimeout(()=>{let{onUnhandledError:e}=lt;if(e)e(t);else throw t})}function Zr(){}var Od=Qa("C",void 0,void 0);function Pd(t){return Qa("E",void 0,t)}function Fd(t){return Qa("N",t,void 0)}function Qa(t,e,n){return{kind:t,value:e,error:n}}var vn=null;function dr(t){if(lt.useDeprecatedSynchronousErrorHandling){let e=!vn;if(e&&(vn={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=vn;if(vn=null,n)throw r}}else t()}function Ld(t){lt.useDeprecatedSynchronousErrorHandling&&vn&&(vn.errorThrown=!0,vn.error=t)}var yn=class extends pe{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,_i(e)&&e.add(this)):this.destination=_v}static create(e,n,r){return new ut(e,n,r)}next(e){this.isStopped?Xa(Fd(e),this):this._next(e)}error(e){this.isStopped?Xa(Pd(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Xa(Od,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},vv=Function.prototype.bind;function Ka(t,e){return vv.call(t,e)}var Ja=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Ci(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Ci(r)}else Ci(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Ci(n)}}},ut=class extends yn{constructor(e,n,r){super();let o;if(z(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&<.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Ka(e.next,i),error:e.error&&Ka(e.error,i),complete:e.complete&&Ka(e.complete,i)}):o=e}this.destination=new Ja(o)}};function Ci(t){lt.useDeprecatedSynchronousErrorHandling?Ld(t):bi(t)}function yv(t){throw t}function Xa(t,e){let{onStoppedNotification:n}=lt;n&&ur.setTimeout(()=>n(t,e))}var _v={closed:!0,next:Zr,error:yv,complete:Zr};var fr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function pr(t){return t}function Vd(t){return t.length===0?pr:t.length===1?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}var W=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Cv(n)?n:new ut(n,r,o);return dr(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=jd(r),new r((o,i)=>{let s=new ut({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[fr](){return this}pipe(...n){return Vd(n)(this)}toPromise(n){return n=jd(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function jd(t){var e;return(e=t??lt.Promise)!==null&&e!==void 0?e:Promise}function bv(t){return t&&z(t.next)&&z(t.error)&&z(t.complete)}function Cv(t){return t&&t instanceof yn||bv(t)&&_i(t)}function ec(t){return z(t?.lift)}function X(t){return e=>{if(ec(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ee(t,e,n,r,o){return new tc(t,e,n,r,o)}var tc=class extends yn{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Bd(){return X((t,e)=>{let n=null;t._refCount++;let r=ee(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){n=null;return}let o=t._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}var Yr=class extends W{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,ec(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new pe;let n=this.getSubject();e.add(this.source.subscribe(ee(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=pe.EMPTY)}return e}refCount(){return Bd()(this)}};var hr={schedule(t){let e=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=hr;r&&(e=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=e(i=>{n=void 0,t(i)});return new pe(()=>n?.(o))},requestAnimationFrame(...t){let{delegate:e}=hr;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=hr;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Hd=lr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ve=(()=>{class t extends W{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Di(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Hd}next(n){dr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){dr(()=>{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(){dr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ya:(this.currentObservers=null,i.push(n),new pe(()=>{this.currentObservers=null,mn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new W;return n.source=this,n}}return t.create=(e,n)=>new Di(e,n),t})(),Di=class extends ve{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:Ya}};var Qr=class extends ve{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var Kr={now(){return(Kr.delegate||Date).now()},delegate:void 0};var _n=class extends ve{constructor(e=1/0,n=1/0,r=Kr){super(),this._bufferSize=e,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,n)}next(e){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(e),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(e),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!e.closed;s+=r?1:2)e.next(i[s]);return this._checkFinalizedStatuses(e),n}_trimBuffer(){let{_bufferSize:e,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){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 Ei=class extends pe{constructor(e,n){super()}schedule(e,n=0){return this}};var Xr={setInterval(t,e,...n){let{delegate:r}=Xr;return r?.setInterval?r.setInterval(t,e,...n):setInterval(t,e,...n)},clearInterval(t){let{delegate:e}=Xr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var qt=class extends Ei{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){var r;if(this.closed)return this;this.state=e;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(e,n,r=0){return Xr.setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Xr.clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(e,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let r=!1,o;try{this.work(e)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,mn(r,this),e!=null&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,super.unsubscribe()}}};var Dv=1,nc,rc={};function $d(t){return t in rc?(delete rc[t],!0):!1}var Ud={setImmediate(t){let e=Dv++;return rc[e]=!0,nc||(nc=Promise.resolve()),nc.then(()=>$d(e)&&t()),e},clearImmediate(t){$d(t)}};var{setImmediate:Ev,clearImmediate:wv}=Ud,Jr={setImmediate(...t){let{delegate:e}=Jr;return(e?.setImmediate||Ev)(...t)},clearImmediate(t){let{delegate:e}=Jr;return(e?.clearImmediate||wv)(t)},delegate:void 0};var wi=class extends qt{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=Jr.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Jr.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))}};var gr=class t{constructor(e,n=t.now){this.schedulerActionCtor=e,this.now=n}schedule(e,n=0,r){return new this.schedulerActionCtor(this,e).schedule(r,n)}};gr.now=Kr.now;var Zt=class extends gr{constructor(e,n=gr.now){super(e,n),this.actions=[],this._active=!1}flush(e){let{actions:n}=this;if(this._active){n.push(e);return}let r;this._active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}};var xi=class extends Zt{flush(e){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}};var oc=new xi(wi);var eo=new Zt(qt),zd=eo;var Ii=class extends qt{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}requestAsyncId(e,n,r=0){return r!==null&&r>0?super.requestAsyncId(e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=hr.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(e,n,r);let{actions:i}=e;n!=null&&n===e._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(hr.cancelAnimationFrame(n),e._scheduled=void 0)}};var Ti=class extends Zt{flush(e){this._active=!0;let n;e?n=e.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;e=e||r.shift();do if(o=e.execute(e.state,e.delay))break;while((e=r[0])&&e.id===n&&r.shift());if(this._active=!1,o){for(;(e=r[0])&&e.id===n&&r.shift();)e.unsubscribe();throw o}}};var ic=new Ti(Ii);function Mi(t){return t&&z(t.schedule)}function Gd(t){return t[t.length-1]}function Wd(t){return z(Gd(t))?t.pop():void 0}function mr(t){return Mi(Gd(t))?t.pop():void 0}function Zd(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(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?i(u.value):o(u.value).then(a,c)}l((r=r.apply(t,e||[])).next())})}function qd(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function bn(t){return this instanceof bn?(this.v=t,this):new bn(t)}function Yd(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(p){return function(E){return Promise.resolve(E).then(p,d)}}function a(p,E){r[p]&&(o[p]=function(N){return new Promise(function(R,I){i.push([p,N,R,I])>1||c(p,N)})},E&&(o[p]=E(o[p])))}function c(p,E){try{l(r[p](E))}catch(N){m(i[0][3],N)}}function l(p){p.value instanceof bn?Promise.resolve(p.value.v).then(u,d):m(i[0][2],p)}function u(p){c("next",p)}function d(p){c("throw",p)}function m(p,E){p(E),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Qd(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof qd=="function"?qd(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Si=t=>t&&typeof t.length=="number"&&typeof t!="function";function Ni(t){return z(t?.then)}function ki(t){return z(t[fr])}function Ri(t){return Symbol.asyncIterator&&z(t?.[Symbol.asyncIterator])}function Ai(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function xv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Oi=xv();function Pi(t){return z(t?.[Oi])}function Fi(t){return Yd(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:o}=yield bn(n.read());if(o)return yield bn(void 0);yield yield bn(r)}}finally{n.releaseLock()}})}function Li(t){return z(t?.getReader)}function de(t){if(t instanceof W)return t;if(t!=null){if(ki(t))return Iv(t);if(Si(t))return Tv(t);if(Ni(t))return Mv(t);if(Ri(t))return Kd(t);if(Pi(t))return Sv(t);if(Li(t))return Nv(t)}throw Ai(t)}function Iv(t){return new W(e=>{let n=t[fr]();if(z(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Tv(t){return new W(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function Mv(t){return new W(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,bi)})}function Sv(t){return new W(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function Kd(t){return new W(e=>{kv(t,e).catch(n=>e.error(n))})}function Nv(t){return Kd(Fi(t))}function kv(t,e){var n,r,o,i;return Zd(this,void 0,void 0,function*(){try{for(n=Qd(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}e.complete()})}function Je(t,e,n,r=0,o=!1){let i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function Vi(t,e=0){return X((n,r)=>{n.subscribe(ee(r,o=>Je(r,t,()=>r.next(o),e),()=>Je(r,t,()=>r.complete(),e),o=>Je(r,t,()=>r.error(o),e)))})}function ji(t,e=0){return X((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Xd(t,e){return de(t).pipe(ji(e),Vi(e))}function Jd(t,e){return de(t).pipe(ji(e),Vi(e))}function ef(t,e){return new W(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function tf(t,e){return new W(n=>{let r;return Je(n,e,()=>{r=t[Oi](),Je(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>z(r?.return)&&r.return()})}function Bi(t,e){if(!t)throw new Error("Iterable cannot be null");return new W(n=>{Je(n,e,()=>{let r=t[Symbol.asyncIterator]();Je(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function nf(t,e){return Bi(Fi(t),e)}function rf(t,e){if(t!=null){if(ki(t))return Xd(t,e);if(Si(t))return ef(t,e);if(Ni(t))return Jd(t,e);if(Ri(t))return Bi(t,e);if(Pi(t))return tf(t,e);if(Li(t))return nf(t,e)}throw Ai(t)}function Hi(t,e){return e?rf(t,e):de(t)}function Ge(...t){let e=mr(t);return Hi(t,e)}function sc(t,e){let n=z(t)?t:()=>t,r=o=>o.error(n());return new W(e?o=>e.schedule(r,0,o):r)}function to(t){return!!t&&(t instanceof W||z(t.lift)&&z(t.subscribe))}var of=lr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function $i(t,e){let n=typeof e=="object";return new Promise((r,o)=>{let i=new ut({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(e.defaultValue):o(new of)}});t.subscribe(i)})}function sf(t){return t instanceof Date&&!isNaN(t)}function Pe(t,e){return X((n,r)=>{let o=0;n.subscribe(ee(r,i=>{r.next(t.call(e,i,o++))}))})}var{isArray:Rv}=Array;function Av(t,e){return Rv(e)?t(...e):t(e)}function af(t){return Pe(e=>Av(t,e))}var{isArray:Ov}=Array,{getPrototypeOf:Pv,prototype:Fv,keys:Lv}=Object;function cf(t){if(t.length===1){let e=t[0];if(Ov(e))return{args:e,keys:null};if(Vv(e)){let n=Lv(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function Vv(t){return t&&typeof t=="object"&&Pv(t)===Fv}function lf(t,e){return t.reduce((n,r,o)=>(n[r]=e[o],n),{})}function uf(t,e,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,m=()=>{d&&!c.length&&!l&&e.complete()},p=N=>l<r?E(N):c.push(N),E=N=>{i&&e.next(N),l++;let R=!1;de(n(N,u++)).subscribe(ee(e,I=>{o?.(I),i?p(I):e.next(I)},()=>{R=!0},void 0,()=>{if(R)try{for(l--;c.length&&l<r;){let I=c.shift();s?Je(e,s,()=>E(I)):E(I)}m()}catch(I){e.error(I)}}))};return t.subscribe(ee(e,p,()=>{d=!0,m()})),()=>{a?.()}}function vr(t,e,n=1/0){return z(e)?vr((r,o)=>Pe((i,s)=>e(r,i,o,s))(de(t(r,o))),n):(typeof e=="number"&&(n=e),X((r,o)=>uf(r,o,t,n)))}function df(t=1/0){return vr(pr,t)}function ff(){return df(1)}function ac(...t){return ff()(Hi(t,mr(t)))}function cc(t){return new W(e=>{de(t()).subscribe(e)})}function lc(...t){let e=Wd(t),{args:n,keys:r}=cf(t),o=new W(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;de(n[u]).subscribe(ee(i,m=>{d||(d=!0,l--),a[u]=m},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?lf(r,a):a),i.complete())}))}});return e?o.pipe(af(e)):o}function pf(t=0,e,n=zd){let r=-1;return e!=null&&(Mi(e)?n=e:r=e),new W(o=>{let i=sf(t)?+t-n.now():t;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function no(t,e){return X((n,r)=>{let o=0;n.subscribe(ee(r,i=>t.call(e,i,o++)&&r.next(i)))})}function hf(t){return X((e,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};e.subscribe(ee(n,l=>{r=!0,o=l,i||de(t(l)).subscribe(i=ee(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function ro(t,e=eo){return hf(()=>pf(t,e))}function oo(t){return X((e,n)=>{let r=null,o=!1,i;r=e.subscribe(ee(n,void 0,void 0,s=>{i=de(t(s,oo(t)(e))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function uc(t,e){return z(e)?vr(t,e,1):vr(t,1)}function Cn(t,e=eo){return X((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+t,u=e.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(ee(r,l=>{i=l,s=e.now(),o||(o=e.schedule(c,t),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Pt(t,e=pr){return t=t??jv,X((n,r)=>{let o,i=!0;n.subscribe(ee(r,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}function jv(t,e){return t===e}function yr(t){return X((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function dc(){return X((t,e)=>{let n,r=!1;t.subscribe(ee(e,o=>{let i=n;n=o,r&&e.next([i,o]),r=!0}))})}function gf(t={}){let{connector:e=()=>new ve,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,c,l=0,u=!1,d=!1,m=()=>{a?.unsubscribe(),a=void 0},p=()=>{m(),s=c=void 0,u=d=!1},E=()=>{let N=s;p(),N?.unsubscribe()};return X((N,R)=>{l++,!d&&!u&&m();let I=c=c??e();R.add(()=>{l--,l===0&&!d&&!u&&(a=fc(E,o))}),I.subscribe(R),!s&&l>0&&(s=new ut({next:me=>I.next(me),error:me=>{d=!0,m(),a=fc(p,n,me),I.error(me)},complete:()=>{u=!0,m(),a=fc(p,r),I.complete()}}),de(N).subscribe(s))})(i)}}function fc(t,e,...n){if(e===!0){t();return}if(e===!1)return;let r=new ut({next:()=>{r.unsubscribe(),t()}});return de(e(...n)).subscribe(r)}function pc(t,e,n){let r,o=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:n}=t:r=t??1/0,gf({connector:()=>new _n(r,e,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ui(...t){let e=mr(t);return X((n,r)=>{(e?ac(t,n,e):ac(t,n)).subscribe(r)})}function io(t,e){return X((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(ee(r,c=>{o?.unsubscribe();let l=0,u=i++;de(t(c,u)).subscribe(o=ee(r,d=>r.next(e?e(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Dn(t){return X((e,n)=>{de(t).subscribe(ee(n,()=>n.complete(),Zr)),!n.closed&&e.subscribe(n)})}function mf(t){let e=F(null);try{return t()}finally{F(e)}}var vf=ue(J({},fn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function yf(t){if(t.dirty=!1,t.version>0&&!gn(t))return;t.version++;let e=Gt(t);try{t.cleanup(),t.fn()}finally{hn(t,e)}}var qi="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",k=class extends Error{code;constructor(e,n){super(Mn(e,n)),this.code=e}};function Bv(t){return`NG0${Math.abs(t)}`}function Mn(t,e){return`${Bv(t)}${e?": "+e:""}`}var Sn=globalThis;function ne(t){for(let e in t)if(t[e]===ne)return e;throw Error("")}function Cf(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Yt(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Yt).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
4
|
-
`);return r>=0?n.slice(0,r):n}function Zi(t,e){return t?e?`${t} ${e}`:t:e||""}var Hv=ne({__forward_ref__:ne});function br(t){return t.__forward_ref__=br,t.toString=function(){return Yt(this())},t}function Fe(t){return Df(t)?t():t}function Df(t){return typeof t=="function"&&t.hasOwnProperty(Hv)&&t.__forward_ref__===br}function B(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Yi(t){return $v(t,Qi)}function $v(t,e){return t.hasOwnProperty(e)&&t[e]||null}function Uv(t){let e=t?.[Qi]??null;return e||null}function gc(t){return t&&t.hasOwnProperty(Gi)?t[Gi]:null}var Qi=ne({\u0275prov:ne}),Gi=ne({\u0275inj:ne}),A=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,n){this._desc=e,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=B({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ic(t){return t&&!!t.\u0275providers}var Tc=ne({\u0275cmp:ne}),Mc=ne({\u0275dir:ne}),Sc=ne({\u0275pipe:ne});var mc=ne({\u0275fac:ne}),Nn=ne({__NG_ELEMENT_ID__:ne}),_f=ne({__NG_ENV_ID__:ne});function kn(t){return typeof t=="string"?t:t==null?"":String(t)}function Ef(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():kn(t)}var wf=ne({ngErrorCode:ne}),zv=ne({ngErrorMessage:ne}),Gv=ne({ngTokenPath:ne});function Nc(t,e){return xf("",-200,e)}function Ki(t,e){throw new k(-201,!1)}function xf(t,e,n){let r=new k(e,t);return r[wf]=e,r[zv]=t,n&&(r[Gv]=n),r}function Wv(t){return t[wf]}var vc;function If(){return vc}function je(t){let e=vc;return vc=t,e}function kc(t,e,n){let r=Yi(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(e!==void 0)return e;Ki(t,"Injector")}var qv={},En=qv,yc="__NG_DI_FLAG__",_c=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=wn(n)||0;try{return this.injector.get(e,r&8?null:En,r)}catch(o){if(sr(o))return o;throw o}}};function Zv(t,e=0){let n=li();if(n===void 0)throw new k(-203,!1);if(n===null)return kc(t,void 0,e);{let r=Yv(e),o=n.retrieve(t,r);if(sr(o)){if(r.optional)return null;throw o}return o}}function Q(t,e=0){return(If()||Zv)(Fe(t),e)}function _(t,e){return Q(t,wn(e))}function wn(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Yv(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function bc(t){let e=[];for(let n=0;n<t.length;n++){let r=Fe(t[n]);if(Array.isArray(r)){if(r.length===0)throw new k(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Qv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}e.push(Q(o,i))}else e.push(Q(r))}return e}function Rc(t,e){return t[yc]=e,t.prototype[yc]=e,t}function Qv(t){return t[yc]}function xn(t,e){let n=t.hasOwnProperty(mc);return n?t[mc]:null}function Tf(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=e[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Mf(t){return t.flat(Number.POSITIVE_INFINITY)}function Xi(t,e){t.forEach(n=>Array.isArray(n)?Xi(n,e):e(n))}function Ac(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function lo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Sf(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function Nf(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(o===1)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=n,t[e+1]=r}}function Ji(t,e,n){let r=Cr(t,e);return r>=0?t[r|1]=n:(r=~r,Nf(t,r,e,n)),r}function es(t,e){let n=Cr(t,e);if(n>=0)return t[n|1]}function Cr(t,e){return Kv(t,e,1)}function Kv(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=t[i<<n];if(e===s)return i<<n;s>e?o=i:r=i+1}return~(o<<n)}var Kt={},et=[],Rn=new A(""),Oc=new A("",-1),Pc=new A(""),ao=class{get(e,n=En){if(n===En){let o=xf("",-201);throw o.name="\u0275NotFound",o}return n}};function An(t){return t[Tc]||null}function Fc(t){return t[Mc]||null}function kf(t){return t[Sc]||null}function uo(t){return{\u0275providers:t}}function Rf(...t){return{\u0275providers:Lc(!0,t),\u0275fromNgModule:!0}}function Lc(t,...e){let n=[],r=new Set,o,i=s=>{n.push(s)};return Xi(e,s=>{let a=s;Wi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Af(o,i),n}function Af(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:o}=t[n];Vc(o,i=>{e(i,r)})}}function Wi(t,e,n,r){if(t=Fe(t),!t)return!1;let o=null,i=gc(t),s=!i&&An(t);if(!i&&!s){let c=t.ngModule;if(i=gc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Wi(l,e,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;Xi(i.imports,u=>{Wi(u,e,n,r)&&(l||=[],l.push(u))}),l!==void 0&&Af(l,e)}if(!a){let l=xn(o)||(()=>new o);e({provide:o,useFactory:l,deps:et},o),e({provide:Pc,useValue:o,multi:!0},o),e({provide:Rn,useValue:()=>Q(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=t;Vc(c,u=>{e(u,l)})}}else return!1;return o!==t&&t.providers!==void 0}function Vc(t,e){for(let n of t)Ic(n)&&(n=n.\u0275providers),Array.isArray(n)?Vc(n,e):e(n)}var Xv=ne({provide:String,useValue:ne});function Of(t){return t!==null&&typeof t=="object"&&Xv in t}function Jv(t){return!!(t&&t.useExisting)}function ey(t){return!!(t&&t.useFactory)}function In(t){return typeof t=="function"}function Pf(t){return!!t.useClass}var fo=new A(""),zi={},bf={},hc;function po(){return hc===void 0&&(hc=new ao),hc}var We=class{},Tn=class extends We{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Dc(e,s=>this.processProvider(s)),this.records.set(Oc,_r(void 0,this)),o.has("environment")&&this.records.set(We,_r(void 0,this));let i=this.records.get(fo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Pc,et,{self:!0}))}retrieve(e,n){let r=wn(n)||0;try{return this.get(e,En,r)}catch(o){if(sr(o))return o;throw o}}destroy(){so(this),this._destroyed=!0;let e=F(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(),F(e)}}onDestroy(e){return so(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){so(this);let n=bt(this),r=je(void 0),o;try{return e()}finally{bt(n),je(r)}}get(e,n=En,r){if(so(this),e.hasOwnProperty(_f))return e[_f](this);let o=wn(r),i,s=bt(this),a=je(void 0);try{if(!(o&4)){let l=this.records.get(e);if(l===void 0){let u=iy(e)&&Yi(e);u&&this.injectableDefInScope(u)?l=_r(Cc(e),zi):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l,o)}let c=o&2?po():this.parent;return n=o&8&&n===En?null:n,c.get(e,n)}catch(c){let l=Wv(c);throw l===-200||l===-201?new k(l,null):c}finally{je(a),bt(s)}}resolveInjectorInitializers(){let e=F(null),n=bt(this),r=je(void 0),o;try{let i=this.get(Rn,et,{self:!0});for(let s of i)s()}finally{bt(n),je(r),F(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(Yt(r));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=Fe(e);let n=In(e)?e:Fe(e&&e.provide),r=ny(e);if(!In(e)&&e.multi===!0){let o=this.records.get(n);o||(o=_r(void 0,zi,!0),o.factory=()=>bc(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n,r){let o=F(null);try{if(n.value===bf)throw Nc(Yt(e));return n.value===zi&&(n.value=bf,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&oy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{F(o)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=Fe(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Cc(t){let e=Yi(t),n=e!==null?e.factory:xn(t);if(n!==null)return n;if(t instanceof A)throw new k(204,!1);if(t instanceof Function)return ty(t);throw new k(204,!1)}function ty(t){if(t.length>0)throw new k(204,!1);let n=Uv(t);return n!==null?()=>n.factory(t):()=>new t}function ny(t){if(Of(t))return _r(void 0,t.useValue);{let e=jc(t);return _r(e,zi)}}function jc(t,e,n){let r;if(In(t)){let o=Fe(t);return xn(o)||Cc(o)}else if(Of(t))r=()=>Fe(t.useValue);else if(ey(t))r=()=>t.useFactory(...bc(t.deps||[]));else if(Jv(t))r=(o,i)=>Q(Fe(t.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Fe(t&&(t.useClass||t.provide));if(ry(t))r=()=>new o(...bc(t.deps));else return xn(o)||Cc(o)}return r}function so(t){if(t.destroyed)throw new k(205,!1)}function _r(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ry(t){return!!t.deps}function oy(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function iy(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function Dc(t,e){for(let n of t)Array.isArray(n)?Dc(n,e):n&&Ic(n)?Dc(n.\u0275providers,e):e(n)}function Dr(t,e){let n;t instanceof Tn?(so(t),n=t):n=new _c(t);let r,o=bt(n),i=je(void 0);try{return e()}finally{bt(o),je(i)}}function Ff(){return If()!==void 0||li()!=null}var dt=0,O=1,L=2,Se=3,nt=4,He=5,On=6,Er=7,Ce=8,Lt=9,Ct=10,fe=11,wr=12,Bc=13,Pn=14,$e=15,Xt=16,Fn=17,Dt=18,ho=19,Hc=20,Ft=21,ts=22,Vt=23,Ke=24,Ln=25,Vn=26,_e=27,Lf=1,$c=6,Jt=7,go=8,jn=9,be=10;function Et(t){return Array.isArray(t)&&typeof t[Lf]=="object"}function ft(t){return Array.isArray(t)&&t[Lf]===!0}function Uc(t){return(t.flags&4)!==0}function en(t){return t.componentOffset>-1}function mo(t){return(t.flags&1)===1}function wt(t){return!!t.template}function xr(t){return(t[L]&512)!==0}function Bn(t){return(t[L]&256)===256}var ns=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(ns||{});var zc="svg",Vf="math";function rt(t){for(;Array.isArray(t);)t=t[dt];return t}function Gc(t,e){return rt(e[t])}function pt(t,e){return rt(e[t.index])}function vo(t,e){return t.data[e]}function jf(t,e){return t[e]}function Wc(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function ot(t,e){let n=e[t];return Et(n)?n:n[dt]}function Bf(t){return(t[L]&4)===4}function rs(t){return(t[L]&128)===128}function Hf(t){return ft(t[Se])}function it(t,e){return e==null?null:t[e]}function qc(t){t[Fn]=0}function Zc(t){t[L]&1024||(t[L]|=1024,rs(t)&&tn(t))}function $f(t,e){for(;t>0;)e=e[Pn],t--;return e}function yo(t){return!!(t[L]&9216||t[Ke]?.dirty)}function os(t){t[Ct].changeDetectionScheduler?.notify(8),t[L]&64&&(t[L]|=1024),yo(t)&&tn(t)}function tn(t){t[Ct].changeDetectionScheduler?.notify(0);let e=Qt(t);for(;e!==null&&!(e[L]&8192||(e[L]|=8192,!rs(e)));)e=Qt(e)}function Yc(t,e){if(Bn(t))throw new k(911,!1);t[Ft]===null&&(t[Ft]=[]),t[Ft].push(e)}function Uf(t,e){if(t[Ft]===null)return;let n=t[Ft].indexOf(e);n!==-1&&t[Ft].splice(n,1)}function Qt(t){let e=t[Se];return ft(e)?e[Se]:e}function Qc(t){return t[Er]??=[]}function Kc(t){return t.cleanup??=[]}function zf(t,e,n,r){let o=Qc(e);o.push(n),t.firstCreatePass&&Kc(t).push(r,o.length-1)}var G={lFrame:np(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ec=!1;function Gf(){return G.lFrame.elementDepthCount}function Wf(){G.lFrame.elementDepthCount++}function Xc(){G.lFrame.elementDepthCount--}function Jc(){return G.bindingsEnabled}function el(){return G.skipHydrationRootTNode!==null}function tl(t){return G.skipHydrationRootTNode===t}function nl(){G.skipHydrationRootTNode=null}function H(){return G.lFrame.lView}function De(){return G.lFrame.tView}function C(t){return G.lFrame.contextLView=t,t[Ce]}function D(t){return G.lFrame.contextLView=null,t}function Le(){let t=rl();for(;t!==null&&t.type===64;)t=t.parent;return t}function rl(){return G.lFrame.currentTNode}function qf(){let t=G.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ir(t,e){let n=G.lFrame;n.currentTNode=t,n.isParent=e}function ol(){return G.lFrame.isParent}function il(){G.lFrame.isParent=!1}function sl(){return Ec}function Tr(t){let e=Ec;return Ec=t,e}function Zf(){let t=G.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Yf(){return G.lFrame.bindingIndex}function Qf(t){return G.lFrame.bindingIndex=t}function Hn(){return G.lFrame.bindingIndex++}function is(t){let e=G.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Kf(){return G.lFrame.inI18n}function Xf(t,e){let n=G.lFrame;n.bindingIndex=n.bindingRootIndex=t,ss(e)}function Jf(){return G.lFrame.currentDirectiveIndex}function ss(t){G.lFrame.currentDirectiveIndex=t}function ep(t){let e=G.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function as(){return G.lFrame.currentQueryIndex}function _o(t){G.lFrame.currentQueryIndex=t}function sy(t){let e=t[O];return e.type===2?e.declTNode:e.type===1?t[He]:null}function al(t,e,n){if(n&4){let o=e,i=t;for(;o=o.parent,o===null&&!(n&1);)if(o=sy(i),o===null||(i=i[Pn],o.type&10))break;if(o===null)return!1;e=o,t=i}let r=G.lFrame=tp();return r.currentTNode=e,r.lView=t,!0}function cs(t){let e=tp(),n=t[O];G.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function tp(){let t=G.lFrame,e=t===null?null:t.child;return e===null?np(t):e}function np(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function rp(){let t=G.lFrame;return G.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var cl=rp;function ls(){let t=rp();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function op(t){return(G.lFrame.contextLView=$f(t,G.lFrame.contextLView))[Ce]}function xt(){return G.lFrame.selectedIndex}function nn(t){G.lFrame.selectedIndex=t}function us(){let t=G.lFrame;return vo(t.tView,t.selectedIndex)}function K(){G.lFrame.currentNamespace=zc}function xe(){ay()}function ay(){G.lFrame.currentNamespace=null}function ll(){return G.lFrame.currentNamespace}var ip=!0;function ds(){return ip}function fs(t){ip=t}function wc(t,e=null,n=null,r){let o=sp(t,e,n,r);return o.resolveInjectorInitializers(),o}function sp(t,e=null,n=null,r,o=new Set){let i=[n||et,Rf(t)];return r=r||(typeof t=="object"?void 0:Yt(t)),new Tn(i,e||po(),r||null,o)}var Be=class t{static THROW_IF_NOT_FOUND=En;static NULL=new ao;static create(e,n){if(Array.isArray(e))return wc({name:""},n,e,"");{let r=e.name??"";return wc({name:r},e.parent,e.providers,r)}}static \u0275prov=B({token:t,providedIn:"any",factory:()=>Q(Oc)});static __NG_ELEMENT_ID__=-1},ke=new A(""),Ue=(()=>{class t{static __NG_ELEMENT_ID__=cy;static __NG_ENV_ID__=n=>n}return t})(),co=class extends Ue{_lView;constructor(e){super(),this._lView=e}get destroyed(){return Bn(this._lView)}onDestroy(e){let n=this._lView;return Yc(n,e),()=>Uf(n,e)}};function cy(){return new co(H())}var Qe=class{_console=console;handleError(e){this._console.error("ERROR",e)}},It=new A("",{providedIn:"root",factory:()=>{let t=_(We),e;return n=>{t.destroyed&&!e?setTimeout(()=>{throw n}):(e??=t.get(Qe),e.handleError(n))}}}),ap={provide:Rn,useValue:()=>{_(Qe)},multi:!0};function b(t,e){let[n,r,o]=qa(t,e?.equal),i=n,s=i[Ne];return i.set=r,i.update=o,i.asReadonly=ul.bind(i),i}function ul(){let t=this[Ne];if(t.readonlyFn===void 0){let e=()=>this();e[Ne]=t,t.readonlyFn=e}return t.readonlyFn}var $n=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=ly}return t})();function ly(){return new $n(H(),Le())}var tt=class{},bo=new A("",{providedIn:"root",factory:()=>!1});var dl=new A(""),fl=new A(""),rn=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Qr(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new W(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=B({token:t,providedIn:"root",factory:()=>new t})}return t})(),Mr=(()=>{class t{internalPendingTasks=_(rn);scheduler=_(tt);errorHandler=_(It);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=B({token:t,providedIn:"root",factory:()=>new t})}return t})();function Un(...t){}var Co=(()=>{class t{static \u0275prov=B({token:t,providedIn:"root",factory:()=>new xc})}return t})(),xc=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let n=e.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||r.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[n,r]of this.queues)n===null?e||=this.flushQueue(r):e||=n.run(()=>this.flushQueue(r));e||(this.dirtyEffectCount=0)}}flushQueue(e){let n=!1;for(let r of e)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};function Ls(t){return{toString:t}.toString()}var ps="__parameters__";function yy(t){return function(...n){if(t){let r=t(...n);for(let o in r)this[o]=r[o]}}}function Fp(t,e,n){return Ls(()=>{let r=yy(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(ps)?c[ps]:Object.defineProperty(c,ps,{value:[]})[ps];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var tu=Rc(Fp("Inject",t=>({token:t})),-1),nu=Rc(Fp("Optional"),8);function _y(t){return typeof t=="function"}var Cs=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Lp(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var Vs=(()=>{let t=()=>Vp;return t.ngInherit=!0,t})();function Vp(t){return t.type.prototype.ngOnChanges&&(t.setInput=Cy),by}function by(){let t=Bp(this),e=t?.current;if(e){let n=t.previous;if(n===Kt)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Cy(t,e,n,r,o){let i=this.declaredInputs[r],s=Bp(t)||Dy(t,{previous:Kt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Cs(l&&l.currentValue,n,c===Kt),Lp(t,e,o,n)}var jp="__ngSimpleChanges__";function Bp(t){return t[jp]||null}function Dy(t,e){return t[jp]=e}var cp=[];var te=function(t,e=null,n){for(let r=0;r<cp.length;r++){let o=cp[r];o(t,e,n)}};function Ey(t,e,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){let s=Vp(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}o&&(n.preOrderHooks??=[]).push(0-t,o),i&&((n.preOrderHooks??=[]).push(t,i),(n.preOrderCheckHooks??=[]).push(t,i))}function Hp(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let i=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),c&&(t.viewHooks??=[]).push(-n,c),l&&((t.viewHooks??=[]).push(n,l),(t.viewCheckHooks??=[]).push(n,l)),u!=null&&(t.destroyHooks??=[]).push(n,u)}}function ms(t,e,n){$p(t,e,3,n)}function vs(t,e,n,r){(t[L]&3)===n&&$p(t,e,n,r)}function pl(t,e){let n=t[L];(n&3)===e&&(n&=16383,n+=1,t[L]=n)}function $p(t,e,n,r){let o=r!==void 0?t[Fn]&65535:0,i=r??-1,s=e.length-1,a=0;for(let c=o;c<s;c++)if(typeof e[c+1]=="number"){if(a=e[c],r!=null&&a>=r)break}else e[c]<0&&(t[Fn]+=65536),(a<i||i==-1)&&(wy(t,n,e,c),t[Fn]=(t[Fn]&4294901760)+c+2),c++}function lp(t,e){te(4,t,e);let n=F(null);try{e.call(t)}finally{F(n),te(5,t,e)}}function wy(t,e,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=t[s];o?t[L]>>14<t[Fn]>>16&&(t[L]&3)===e&&(t[L]+=16384,lp(a,i)):lp(a,i)}var Nr=-1,Gn=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r,o){this.factory=e,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function xy(t){return(t.flags&8)!==0}function Iy(t){return(t.flags&16)!==0}function Ty(t,e,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,i)}else{let i=o,s=n[++r];Sy(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++}}return r}function My(t){return t===3||t===4||t===6}function Sy(t){return t.charCodeAt(0)===64}function kr(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let o=e[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?up(t,n,o,null,e[++r]):up(t,n,o,null,null))}}return t}function up(t,e,n,r,o){let i=0,s=t.length;if(e===-1)s=-1;else for(;i<t.length;){let a=t[i++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=i-1;break}}}for(;i<t.length;){let a=t[i];if(typeof a=="number")break;if(a===n){o!==null&&(t[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),o!==null&&t.splice(i++,0,o)}function Up(t){return t!==Nr}function Ds(t){return t&32767}function Ny(t){return t>>16}function Es(t,e){let n=Ny(t),r=e;for(;n>0;)r=r[Pn],n--;return r}var wl=!0;function ws(t){let e=wl;return wl=t,e}var ky=256,zp=ky-1,Gp=5,Ry=0,Tt={};function Ay(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Nn)&&(r=n[Nn]),r==null&&(r=n[Nn]=Ry++);let o=r&zp,i=1<<o;e.data[t+(o>>Gp)]|=i}function xs(t,e){let n=Wp(t,e);if(n!==-1)return n;let r=e[O];r.firstCreatePass&&(t.injectorIndex=e.length,hl(r.data,t),hl(e,null),hl(r.blueprint,null));let o=ru(t,e),i=t.injectorIndex;if(Up(o)){let s=Ds(o),a=Es(o,e),c=a[O].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|c[s+l]}return e[i+8]=o,i}function hl(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Wp(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function ru(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;o!==null;){if(r=Kp(o),r===null)return Nr;if(n++,o=o[Pn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Nr}function xl(t,e,n){Ay(t,e,n)}function qp(t,e,n){if(n&8||t!==void 0)return t;Ki(e,"NodeInjector")}function Zp(t,e,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=t[Lt],i=je(void 0);try{return o?o.get(e,r,n&8):kc(e,r,n&8)}finally{je(i)}}return qp(r,e,n)}function Yp(t,e,n,r=0,o){if(t!==null){if(e[L]&2048&&!(r&2)){let s=Ly(t,e,n,r,Tt);if(s!==Tt)return s}let i=Qp(t,e,n,r,Tt);if(i!==Tt)return i}return Zp(e,n,r,o)}function Qp(t,e,n,r,o){let i=Py(n);if(typeof i=="function"){if(!al(e,t,r))return r&1?qp(o,n,r):Zp(e,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Ki(n);else return s}finally{cl()}}else if(typeof i=="number"){let s=null,a=Wp(t,e),c=Nr,l=r&1?e[$e][He]:null;for((a===-1||r&4)&&(c=a===-1?ru(t,e):e[a+8],c===Nr||!fp(r,!1)?a=-1:(s=e[O],a=Ds(c),e=Es(c,e)));a!==-1;){let u=e[O];if(dp(i,a,u.data)){let d=Oy(a,e,n,s,r,l);if(d!==Tt)return d}c=e[a+8],c!==Nr&&fp(r,e[O].data[a+8]===l)&&dp(i,a,e)?(s=u,a=Ds(c),e=Es(c,e)):a=-1}}return o}function Oy(t,e,n,r,o,i){let s=e[O],a=s.data[t+8],c=r==null?en(a)&&wl:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=ys(a,s,n,c,l);return u!==null?wo(e,s,u,a,o):Tt}function ys(t,e,n,r,o){let i=t.providerIndexes,s=e.data,a=i&1048575,c=t.directiveStart,l=t.directiveEnd,u=i>>20,d=r?a:a+u,m=o?a+u:l;for(let p=d;p<m;p++){let E=s[p];if(p<c&&n===E||p>=c&&E.type===n)return p}if(o){let p=s[c];if(p&&wt(p)&&p.type===n)return c}return null}function wo(t,e,n,r,o){let i=t[n],s=e.data;if(i instanceof Gn){let a=i;if(a.resolving){let p=Ef(s[n]);throw Nc(p)}let c=ws(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?je(a.injectImpl):null,m=al(t,r,0);try{i=t[n]=a.factory(void 0,o,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&Ey(n,s[n],e)}finally{d!==null&&je(d),ws(c),a.resolving=!1,cl()}}return i}function Py(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Nn)?t[Nn]:void 0;return typeof e=="number"?e>=0?e&zp:Fy:e}function dp(t,e,n){let r=1<<t;return!!(n[e+(t>>Gp)]&r)}function fp(t,e){return!(t&2)&&!(t&1&&e)}var zn=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Yp(this._tNode,this._lView,e,wn(r),n)}};function Fy(){return new zn(Le(),H())}function Ly(t,e,n,r,o){let i=t,s=e;for(;i!==null&&s!==null&&s[L]&2048&&!xr(s);){let a=Qp(i,s,n,r|2,Tt);if(a!==Tt)return a;let c=i.parent;if(!c){let l=s[Hc];if(l){let u=l.get(n,Tt,r);if(u!==Tt)return u}c=Kp(s),s=s[Pn]}i=c}return o}function Kp(t){let e=t[O],n=e.type;return n===2?e.declTNode:n===1?t[He]:null}function Vy(){return Pr(Le(),H())}function Pr(t,e){return new vt(pt(t,e))}var vt=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Vy}return t})();function Xp(t){return t instanceof vt?t.nativeElement:t}function jy(){return this._results[Symbol.iterator]()}var Is=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 ve}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let r=Mf(e);(this._changesDetected=!Tf(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(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=jy};function Jp(t){return(t.flags&128)===128}var ou=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(ou||{}),eh=new Map,By=0;function Hy(){return By++}function $y(t){eh.set(t[ho],t)}function Il(t){eh.delete(t[ho])}var pp="__ngContext__";function Rr(t,e){Et(e)?(t[pp]=e[ho],$y(e)):t[pp]=e}function th(t){return rh(t[wr])}function nh(t){return rh(t[nt])}function rh(t){for(;t!==null&&!ft(t);)t=t[nt];return t}var Tl;function iu(t){Tl=t}function oh(){if(Tl!==void 0)return Tl;if(typeof document<"u")return document;throw new k(210,!1)}var js=new A("",{providedIn:"root",factory:()=>Uy}),Uy="ng",Bs=new A(""),Zn=new A("",{providedIn:"platform",factory:()=>"unknown"});var Hs=new A("",{providedIn:"root",factory:()=>oh().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var zy="h",Gy="b";var ih="r";var sh="di";var ah=!1,ch=new A("",{providedIn:"root",factory:()=>ah});var Wy=(t,e,n,r)=>{};function qy(t,e,n,r){Wy(t,e,n,r)}function $s(t){return(t.flags&32)===32}var Zy=()=>null;function lh(t,e,n=!1){return Zy(t,e,n)}function uh(t,e){let n=t.contentQueries;if(n!==null){let r=F(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=t.data[s];_o(i),a.contentQueries(2,e[s],s)}}}finally{F(r)}}}function Ml(t,e,n){_o(0);let r=F(null);try{e(t,n)}finally{F(r)}}function dh(t,e,n){if(Uc(e)){let r=F(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;s<i;s++){let a=t.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{F(r)}}}var jt=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t})(jt||{});var Ts=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qi})`}};function Us(t){return t instanceof Ts?t.changingThisBreaksApplicationSecurity:t}function fh(t,e){let n=ph(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${qi})`)}return n===e}function ph(t){return t instanceof Ts&&t.getTypeName()||null}var Yy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function hh(t){return t=String(t),t.match(Yy)?t:"unsafe:"+t}function Qy(t,e){return t.createText(e)}function Ky(t,e,n){t.setValue(e,n)}function gh(t,e,n){return t.createElement(e,n)}function Ms(t,e,n,r,o){t.insertBefore(e,n,r,o)}function mh(t,e,n){t.appendChild(e,n)}function hp(t,e,n,r,o){r!==null?Ms(t,e,n,r,o):mh(t,e,n)}function vh(t,e,n,r){t.removeChild(null,e,n,r)}function Xy(t,e,n){t.setAttribute(e,"style",n)}function Jy(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function yh(t,e,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Ty(t,e,r),o!==null&&Jy(t,e,o),i!==null&&Xy(t,e,i)}function su(t){let e=e_();return e?e.sanitize(ns.URL,t)||"":fh(t,"URL")?Us(t):hh(kn(t))}function e_(){let t=H();return t&&t[Ct].sanitizer}function st(t){return t.ownerDocument}function t_(t,e,n){let r=t.length;for(;;){let o=t.indexOf(e,n);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}var _h="ng-template";function n_(t,e,n,r){let o=0;if(r){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&t_(e[o+1].toLowerCase(),n,0)!==-1)return!0}else if(au(t))return!1;if(o=e.indexOf(1,o),o>-1){let i;for(;++o<e.length&&typeof(i=e[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function au(t){return t.type===4&&t.value!==_h}function r_(t,e,n){let r=t.type===4&&!n?_h:t.value;return e===r}function o_(t,e,n){let r=4,o=t.attrs,i=o!==null?a_(o):0,s=!1;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number"){if(!s&&!ht(r)&&!ht(c))return!1;if(s&&ht(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!r_(t,c,n)||c===""&&e.length===1){if(ht(r))return!1;s=!0}}else if(r&8){if(o===null||!n_(t,o,c,n)){if(ht(r))return!1;s=!0}}else{let l=e[++a],u=i_(c,o,au(t),n);if(u===-1){if(ht(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(ht(r))return!1;s=!0}}}}return ht(r)||s}function ht(t){return(t&1)===0}function i_(t,e,n,r){if(e===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=e[++o];for(;typeof a=="string";)a=e[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return c_(e,t)}function bh(t,e,n=!1){for(let r=0;r<e.length;r++)if(o_(t,e[r],n))return!0;return!1}function s_(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if((n&1)===0)return e[n+1]}return null}function a_(t){for(let e=0;e<t.length;e++){let n=t[e];if(My(n))return e}return t.length}function c_(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function l_(t,e){e:for(let n=0;n<e.length;n++){let r=e[n];if(t.length===r.length){for(let o=0;o<t.length;o++)if(t[o]!==r[o])continue e;return!0}}return!1}function gp(t,e){return t?":not("+e.trim()+")":e}function u_(t){let e=t[0],n=1,r=2,o="",i=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ht(s)&&(e+=gp(i,o),o=""),r=s,i=i||!ht(r);n++}return o!==""&&(e+=gp(i,o)),e}function d_(t){return t.map(u_).join(",")}function f_(t){let e=[],n=[],r=1,o=2;for(;r<t.length;){let i=t[r];if(typeof i=="string")o===2?i!==""&&e.push(i,t[++r]):o===8&&n.push(i);else{if(!ht(o))break;o=i}r++}return n.length&&e.push(1,...n),e}var qe={};function cu(t,e,n,r,o,i,s,a,c,l,u){let d=_e+r,m=d+o,p=p_(d,m),E=typeof l=="function"?l():l;return p[O]={type:t,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:e,data:p.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:m,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:E,incompleteFirstPass:!1,ssrId:u}}function p_(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:qe);return n}function h_(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=cu(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function lu(t,e,n,r,o,i,s,a,c,l,u){let d=e.blueprint.slice();return d[dt]=o,d[L]=r|4|128|8|64|1024,(l!==null||t&&t[L]&2048)&&(d[L]|=2048),qc(d),d[Se]=d[Pn]=t,d[Ce]=n,d[Ct]=s||t&&t[Ct],d[fe]=a||t&&t[fe],d[Lt]=c||t&&t[Lt]||null,d[He]=i,d[ho]=Hy(),d[On]=u,d[Hc]=l,d[$e]=e.type==2?t[$e]:d,d}function g_(t,e,n){let r=pt(e,t),o=h_(n),i=t[Ct].rendererFactory,s=uu(t,lu(t,o,null,Ch(n),r,e,null,i.createRenderer(r,n),null,null,null));return t[e.index]=s}function Ch(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function Dh(t,e,n,r){if(n===0)return-1;let o=e.length;for(let i=0;i<n;i++)e.push(r),t.blueprint.push(r),t.data.push(null);return o}function uu(t,e){return t[wr]?t[Bc][nt]=e:t[wr]=e,t[Bc]=e,e}function f(t=1){Eh(De(),H(),xt()+t,!1)}function Eh(t,e,n,r){if(!r)if((e[L]&3)===3){let i=t.preOrderCheckHooks;i!==null&&ms(e,i,n)}else{let i=t.preOrderHooks;i!==null&&vs(e,i,0,n)}nn(n)}var zs=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(zs||{});function Sl(t,e,n,r){let o=F(null);try{let[i,s,a]=t.inputs[n],c=null;(s&zs.SignalBased)!==0&&(c=e[i][Ne]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,c,r,n,i):Lp(e,c,i,r)}finally{F(o)}}var Mt=(function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t})(Mt||{}),m_;function du(t,e){return m_(t,e)}var Wn=new Set,Gs=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(Gs||{}),an=new A(""),mp=new Set;function cn(t){mp.has(t)||(mp.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var wh=!1,Nl=class extends ve{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Ff()&&(this.destroyRef=_(Ue,{optional:!0})??void 0,this.pendingTasks=_(rn,{optional:!0})??void 0)}emit(e){let n=F(null);try{super.next(e)}finally{F(n)}}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&typeof e=="object"){let c=e;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof pe&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{e(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},mt=Nl;function xh(t){let e,n;function r(){t=Un;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function vp(t){return queueMicrotask(()=>t()),()=>{t=Un}}var fu="isAngularZone",Ss=fu+"_ID",v_=0,oe=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new mt(!1);onMicrotaskEmpty=new mt(!1);onStable=new mt(!1);onError=new mt(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=wh}=e;if(typeof Zone>"u")throw new k(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,b_(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(fu)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new k(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new k(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,y_,Un,Un);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},y_={};function pu(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function __(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){xh(()=>{t.callbackScheduled=!1,kl(t),t.isCheckStableRunning=!0,pu(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),kl(t)}function b_(t){let e=()=>{__(t)},n=v_++;t._inner=t._inner.fork({name:"angular",properties:{[fu]:!0,[Ss]:n,[Ss+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(C_(c))return r.invokeTask(i,s,a,c);try{return yp(t),r.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),_p(t)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return yp(t),r.invoke(i,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!D_(c)&&e(),_p(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,kl(t),pu(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function kl(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function yp(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _p(t){t._nesting--,pu(t)}var Ns=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new mt;onMicrotaskEmpty=new mt;onStable=new mt;onError=new mt;run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}};function C_(t){return Ih(t,"__ignore_ng_zone__")}function D_(t){return Ih(t,"__scheduler_tick__")}function Ih(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Ws=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=B({token:t,providedIn:"root",factory:()=>new t})}return t})(),hu=[0,1,2,3],gu=(()=>{class t{ngZone=_(oe);scheduler=_(tt);errorHandler=_(Qe,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){_(an,{optional:!0})}execute(){let n=this.sequences.size>0;n&&te(16),this.executing=!0;for(let r of hu)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&te(17)}register(n){let{view:r}=n;r!==void 0?((r[Ln]??=[]).push(n),tn(r),r[L]|=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(Gs.AFTER_NEXT_RENDER,n):n()}static \u0275prov=B({token:t,providedIn:"root",factory:()=>new t})}return t})(),xo=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,n,r,o,i,s=null){this.impl=e,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[Ln];e&&(this.view[Ln]=e.filter(n=>n!==this))}};function mu(t,e){let n=e?.injector??_(Be);return cn("NgAfterNextRender"),w_(t,n,e,!0)}function E_(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function w_(t,e,n,r){let o=e.get(Ws);o.impl??=e.get(gu);let i=e.get(an,null,{optional:!0}),s=n?.manualCleanup!==!0?e.get(Ue):null,a=e.get($n,null,{optional:!0}),c=new xo(o.impl,E_(t),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Th=new A("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function Mh(t,e,n){let r=t.get(Th);if(Array.isArray(e))for(let o of e)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);r.scheduler&&r.scheduler(t)}function x_(t,e){let n=t.get(Th);if(e.detachedLeaveAnimationFns){for(let r of e.detachedLeaveAnimationFns)n.queue.delete(r);e.detachedLeaveAnimationFns=void 0}}function I_(t,e){for(let[n,r]of e)Mh(t,r.animateFns)}function bp(t,e,n,r){let o=t?.[Vn]?.enter;e!==null&&o&&o.has(n.index)&&I_(r,o)}function Sr(t,e,n,r,o,i,s,a){if(o!=null){let c,l=!1;ft(o)?c=o:Et(o)&&(l=!0,o=o[dt]);let u=rt(o);t===0&&r!==null?(bp(a,r,i,n),s==null?mh(e,r,u):Ms(e,r,u,s||null,!0)):t===1&&r!==null?(bp(a,r,i,n),Ms(e,r,u,s||null,!0)):t===2?Cp(a,i,n,d=>{vh(e,u,l,d)}):t===3&&Cp(a,i,n,()=>{e.destroyNode(u)}),c!=null&&L_(e,t,n,c,i,r,s)}}function T_(t,e){Sh(t,e),e[dt]=null,e[He]=null}function M_(t,e,n,r,o,i){r[dt]=o,r[He]=e,Zs(t,r,n,1,o,i)}function Sh(t,e){e[Ct].changeDetectionScheduler?.notify(9),Zs(t,e,e[fe],2,null,null)}function S_(t){let e=t[wr];if(!e)return gl(t[O],t);for(;e;){let n=null;if(Et(e))n=e[wr];else{let r=e[be];r&&(n=r)}if(!n){for(;e&&!e[nt]&&e!==t;)Et(e)&&gl(e[O],e),e=e[Se];e===null&&(e=t),Et(e)&&gl(e[O],e),n=e&&e[nt]}e=n}}function vu(t,e){let n=t[jn],r=n.indexOf(e);n.splice(r,1)}function qs(t,e){if(Bn(e))return;let n=e[fe];n.destroyNode&&Zs(t,e,n,3,null,null),S_(e)}function gl(t,e){if(Bn(e))return;let n=F(null);try{e[L]&=-129,e[L]|=256,e[Ke]&&Wt(e[Ke]),R_(t,e),k_(t,e),e[O].type===1&&e[fe].destroy();let r=e[Xt];if(r!==null&&ft(e[Se])){r!==e[Se]&&vu(r,e);let o=e[Dt];o!==null&&o.detachView(t)}Il(e)}finally{F(n)}}function Cp(t,e,n,r){let o=t?.[Vn];if(o==null||o.leave==null||!o.leave.has(e.index))return r(!1);t&&Wn.add(t),Mh(n,()=>{if(o.leave&&o.leave.has(e.index)){let s=o.leave.get(e.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let l=s.animateFns[c],{promise:u}=l();a.push(u)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),N_(t,r)}else t&&Wn.delete(t),r(!1)},o)}function N_(t,e){let n=t[Vn]?.running;if(n){n.then(()=>{t[Vn].running=void 0,Wn.delete(t),e(!0)});return}e(!1)}function k_(t,e){let n=t.cleanup,r=e[Er];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&&(e[Er]=null);let o=e[Ft];if(o!==null){e[Ft]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=e[Vt];if(i!==null){e[Vt]=null;for(let s of i)s.destroy()}}function R_(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=e[n[r]];if(!(o instanceof Gn)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];te(4,a,c);try{c.call(a)}finally{te(5,a,c)}}else{te(4,o,i);try{i.call(o)}finally{te(5,o,i)}}}}}function Nh(t,e,n){return A_(t,e.parent,n)}function A_(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[dt];if(en(r)){let{encapsulation:o}=t.data[r.directiveStart+r.componentOffset];if(o===jt.None||o===jt.Emulated)return null}return pt(r,n)}function kh(t,e,n){return P_(t,e,n)}function O_(t,e,n){return t.type&40?pt(t,n):null}var P_=O_,Dp;function yu(t,e,n,r){let o=Nh(t,r,e),i=e[fe],s=r.parent||e[He],a=kh(s,r,e);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)hp(i,o,n[c],a,!1);else hp(i,o,n,a,!1);Dp!==void 0&&Dp(i,r,e,n,o)}function Do(t,e){if(e!==null){let n=e.type;if(n&3)return pt(e,t);if(n&4)return Rl(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Do(t,r);{let o=t[e.index];return ft(o)?Rl(-1,o):rt(o)}}else{if(n&128)return Do(t,e.next);if(n&32)return du(e,t)()||rt(t[e.index]);{let r=Rh(t,e);if(r!==null){if(Array.isArray(r))return r[0];let o=Qt(t[$e]);return Do(o,r)}else return Do(t,e.next)}}}return null}function Rh(t,e){if(e!==null){let r=t[$e][He],o=e.projection;return r.projection[o]}return null}function Rl(t,e){let n=be+t+1;if(n<e.length){let r=e[n],o=r[O].firstChild;if(o!==null)return Do(r,o)}return e[Jt]}function _u(t,e,n,r,o,i,s){for(;n!=null;){let a=r[Lt];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&e===0&&(c&&Rr(rt(c),r),n.flags|=2),!$s(n))if(l&8)_u(t,e,n.child,r,o,i,!1),Sr(e,t,a,o,c,n,i,r);else if(l&32){let u=du(n,r),d;for(;d=u();)Sr(e,t,a,o,d,n,i,r);Sr(e,t,a,o,c,n,i,r)}else l&16?Ah(t,e,r,n,o,i):Sr(e,t,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Zs(t,e,n,r,o,i){_u(n,r,t.firstChild,e,o,i,!1)}function F_(t,e,n){let r=e[fe],o=Nh(t,n,e),i=n.parent||e[He],s=kh(i,n,e);Ah(r,0,e,n,o,s)}function Ah(t,e,n,r,o,i){let s=n[$e],c=s[He].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Sr(e,t,n[Lt],o,u,r,i,n)}else{let l=c,u=s[Se];Jp(r)&&(l.flags|=128),_u(t,e,l,u,o,i,!0)}}function L_(t,e,n,r,o,i,s){let a=r[Jt],c=rt(r);a!==c&&Sr(e,t,n,i,a,o,s);for(let l=be;l<r.length;l++){let u=r[l];Zs(u[O],u,t,e,i,a)}}function V_(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Mt.DashCase;o==null?t.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Mt.Important),t.setStyle(n,r,o,i))}}function Oh(t,e,n,r,o){let i=xt(),s=r&2;try{nn(-1),s&&e.length>_e&&Eh(t,e,_e,!1),te(s?2:0,o,n),n(r,o)}finally{nn(i),te(s?3:1,o,n)}}function bu(t,e,n){G_(t,e,n),(n.flags&64)===64&&W_(t,e,n)}function Ys(t,e,n=pt){let r=e.localNames;if(r!==null){let o=e.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(e,t):t[s];t[o++]=a}}}function j_(t,e,n,r){let i=r.get(ch,ah)||n===jt.ShadowDom,s=t.selectRootElement(e,i);return B_(s),s}function B_(t){H_(t)}var H_=()=>null;function $_(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function U_(t,e,n,r,o,i){let s=e[O];if(Cu(t,s,e,n,r)){en(t)&&z_(e,t.index);return}t.type&3&&(n=$_(n)),Ph(t,e,n,r,o,i)}function Ph(t,e,n,r,o,i){if(t.type&3){let s=pt(t,e);r=i!=null?i(r,t.value||"",n):r,o.setProperty(s,n,r)}else t.type&12}function z_(t,e){let n=ot(e,t);n[L]&16||(n[L]|=64)}function G_(t,e,n){let r=n.directiveStart,o=n.directiveEnd;en(n)&&g_(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||xs(n,e);let i=n.initialInputs;for(let s=r;s<o;s++){let a=t.data[s],c=wo(e,t,s,n);if(Rr(c,e),i!==null&&Q_(e,s-r,c,a,n,i),wt(a)){let l=ot(n.index,e);l[Ce]=wo(e,t,s,n)}}}function W_(t,e,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Jf();try{nn(i);for(let a=r;a<o;a++){let c=t.data[a],l=e[a];ss(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&q_(c,l)}}finally{nn(-1),ss(s)}}function q_(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function Fh(t,e){let n=t.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];bh(e,i.selectors,!1)&&(r??=[],wt(i)?r.unshift(i):r.push(i))}return r}function Z_(t,e,n,r,o,i){let s=pt(t,e);Y_(e[fe],s,i,t.value,n,r,o)}function Y_(t,e,n,r,o,i,s){if(i==null)t.removeAttribute(e,o,n);else{let a=s==null?kn(i):s(i,r||"",o);t.setAttribute(e,o,a,n)}}function Q_(t,e,n,r,o,i){let s=i[e];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Sl(r,n,c,l)}}function Lh(t,e,n,r,o){let i=_e+n,s=e[O],a=o(s,e,t,r,n);e[i]=a,Ir(t,!0);let c=t.type===2;return c?(yh(e[fe],a,t),(Gf()===0||mo(t))&&Rr(a,e),Wf()):Rr(a,e),ds()&&(!c||!$s(t))&&yu(s,e,a,t),t}function Vh(t){let e=t;return ol()?il():(e=e.parent,Ir(e,!1)),e}function K_(t,e){let n=t[Lt];if(!n)return;let r;try{r=n.get(It,null)}catch{r=null}r?.(e)}function Cu(t,e,n,r,o){let i=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=e.data[l];Sl(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=e.data[c];Sl(u,l,r,o),a=!0}return a}function X_(t,e){let n=ot(e,t),r=n[O];J_(r,n);let o=n[dt];o!==null&&n[On]===null&&(n[On]=lh(o,n[Lt])),te(18),Du(r,n,n[Ce]),te(19,n[Ce])}function J_(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function Du(t,e,n){cs(e);try{let r=t.viewQuery;r!==null&&Ml(1,r,n);let o=t.template;o!==null&&Oh(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[Dt]?.finishViewCreation(t),t.staticContentQueries&&uh(t,e),t.staticViewQueries&&Ml(2,t.viewQuery,n);let i=t.components;i!==null&&e0(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[L]&=-5,ls()}}function e0(t,e){for(let n=0;n<e.length;n++)X_(t,e[n])}function Oo(t,e,n,r){let o=F(null);try{let i=e.tView,a=t[L]&4096?4096:16,c=lu(t,i,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=t[e.index];c[Xt]=l;let u=t[Dt];return u!==null&&(c[Dt]=u.createEmbeddedView(i)),Du(i,c,n),c}finally{F(o)}}function Ar(t,e){return!e||e.firstChild===null||Jp(t)}function Io(t,e,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=e[n.index];i!==null&&r.push(rt(i)),ft(i)&&jh(i,r);let s=n.type;if(s&8)Io(t,e,n.child,r);else if(s&32){let a=du(n,e),c;for(;c=a();)r.push(c)}else if(s&16){let a=Rh(e,n);if(Array.isArray(a))r.push(...a);else{let c=Qt(e[$e]);Io(c[O],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function jh(t,e){for(let n=be;n<t.length;n++){let r=t[n],o=r[O].firstChild;o!==null&&Io(r[O],r,o,e)}t[Jt]!==t[dt]&&e.push(t[Jt])}function Bh(t){if(t[Ln]!==null){for(let e of t[Ln])e.impl.addSequence(e);t[Ln].length=0}}var Hh=[];function t0(t){return t[Ke]??n0(t)}function n0(t){let e=Hh.pop()??Object.create(o0);return e.lView=t,e}function r0(t){t.lView[Ke]!==t&&(t.lView=null,Hh.push(t))}var o0=ue(J({},fn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{tn(t.lView)},consumerOnSignalRead(){this.lView[Ke]=this}});function i0(t){let e=t[Ke]??Object.create(s0);return e.lView=t,e}var s0=ue(J({},fn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=Qt(t.lView);for(;e&&!$h(e[O]);)e=Qt(e);e&&Zc(e)},consumerOnSignalRead(){this.lView[Ke]=this}});function $h(t){return t.type!==2}function Uh(t){if(t[Vt]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[Vt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[L]&8192)}}var a0=100;function zh(t,e=0){let r=t[Ct].rendererFactory,o=!1;o||r.begin?.();try{c0(t,e)}finally{o||r.end?.()}}function c0(t,e){let n=sl();try{Tr(!0),Al(t,e);let r=0;for(;yo(t);){if(r===a0)throw new k(103,!1);r++,Al(t,1)}}finally{Tr(n)}}function l0(t,e,n,r){if(Bn(e))return;let o=e[L],i=!1,s=!1;cs(e);let a=!0,c=null,l=null;i||($h(t)?(l=t0(e),c=Gt(l)):hi()===null?(a=!1,l=i0(e),c=Gt(l)):e[Ke]&&(Wt(e[Ke]),e[Ke]=null));try{qc(e),Qf(t.bindingStartIndex),n!==null&&Oh(t,e,n,2,r);let u=(o&3)===3;if(!i)if(u){let p=t.preOrderCheckHooks;p!==null&&ms(e,p,null)}else{let p=t.preOrderHooks;p!==null&&vs(e,p,0,null),pl(e,0)}if(s||u0(e),Uh(e),Gh(e,0),t.contentQueries!==null&&uh(t,e),!i)if(u){let p=t.contentCheckHooks;p!==null&&ms(e,p)}else{let p=t.contentHooks;p!==null&&vs(e,p,1),pl(e,1)}f0(t,e);let d=t.components;d!==null&&qh(e,d,0);let m=t.viewQuery;if(m!==null&&Ml(2,m,r),!i)if(u){let p=t.viewCheckHooks;p!==null&&ms(e,p)}else{let p=t.viewHooks;p!==null&&vs(e,p,2),pl(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ts]){for(let p of e[ts])p();e[ts]=null}i||(Bh(e),e[L]&=-73)}catch(u){throw i||tn(e),u}finally{l!==null&&(hn(l,c),a&&r0(l)),ls()}}function Gh(t,e){for(let n=th(t);n!==null;n=nh(n))for(let r=be;r<n.length;r++){let o=n[r];Wh(o,e)}}function u0(t){for(let e=th(t);e!==null;e=nh(e)){if(!(e[L]&2))continue;let n=e[jn];for(let r=0;r<n.length;r++){let o=n[r];Zc(o)}}}function d0(t,e,n){te(18);let r=ot(e,t);Wh(r,n),te(19,r[Ce])}function Wh(t,e){rs(t)&&Al(t,e)}function Al(t,e){let r=t[O],o=t[L],i=t[Ke],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&gn(i)),s||=!1,i&&(i.dirty=!1),t[L]&=-9217,s)l0(r,t,r.template,t[Ce]);else if(o&8192){let a=F(null);try{Uh(t),Gh(t,1);let c=r.components;c!==null&&qh(t,c,1),Bh(t)}finally{F(a)}}}function qh(t,e,n){for(let r=0;r<e.length;r++)d0(t,e[r],n)}function f0(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)nn(~o);else{let i=o,s=n[++r],a=n[++r];Xf(s,i);let c=e[i];te(24,c),a(2,c),te(25,c)}}}finally{nn(-1)}}function Eu(t,e){let n=sl()?64:1088;for(t[Ct].changeDetectionScheduler?.notify(e);t;){t[L]|=n;let r=Qt(t);if(xr(t)&&!r)return t;t=r}return null}function Zh(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function Yh(t,e){let n=be+e;if(n<t.length)return t[n]}function Po(t,e,n,r=!0){let o=e[O];if(p0(o,e,t,n),r){let s=Rl(n,t),a=e[fe],c=a.parentNode(t[Jt]);c!==null&&M_(o,t[He],a,e,c,s)}let i=e[On];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Qh(t,e){let n=To(t,e);return n!==void 0&&qs(n[O],n),n}function To(t,e){if(t.length<=be)return;let n=be+e,r=t[n];if(r){let o=r[Xt];o!==null&&o!==t&&vu(o,r),e>0&&(t[n-1][nt]=r[nt]);let i=lo(t,be+e);T_(r[O],r);let s=i[Dt];s!==null&&s.detachView(i[O]),r[Se]=null,r[nt]=null,r[L]&=-129}return r}function p0(t,e,n,r){let o=be+r,i=n.length;r>0&&(n[o-1][nt]=e),r<i-be?(e[nt]=n[o],Ac(n,be+r,e)):(n.push(e),e[nt]=null),e[Se]=n;let s=e[Xt];s!==null&&n!==s&&Kh(s,e);let a=e[Dt];a!==null&&a.insertView(t),os(e),e[L]|=128}function Kh(t,e){let n=t[jn],r=e[Se];if(Et(r))t[L]|=2;else{let o=r[Se][$e];e[$e]!==o&&(t[L]|=2)}n===null?t[jn]=[e]:n.push(e)}var on=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,n=e[O];return Io(n,e,n.firstChild,[])}constructor(e,n){this._lView=e,this._cdRefInjectingView=n}get context(){return this._lView[Ce]}set context(e){this._lView[Ce]=e}get destroyed(){return Bn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[Se];if(ft(e)){let n=e[go],r=n?n.indexOf(this):-1;r>-1&&(To(e,r),lo(n,r))}this._attachedToViewContainer=!1}qs(this._lView[O],this._lView)}onDestroy(e){Yc(this._lView,e)}markForCheck(){Eu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){os(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,zh(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=xr(this._lView),n=this._lView[Xt];n!==null&&!e&&vu(n,this._lView),Sh(this._lView[O],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new k(902,!1);this._appRef=e;let n=xr(this._lView),r=this._lView[Xt];r!==null&&!n&&Kh(r,this._lView),os(this._lView)}};var sn=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=h0;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=Oo(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new on(i)}}return t})();function h0(){return wu(Le(),H())}function wu(t,e){return t.type&4?new sn(e,t,Pr(t,e)):null}function Fr(t,e,n,r,o){let i=t.data[e];if(i===null)i=g0(t,e,n,r,o),Kf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=qf();i.injectorIndex=s===null?-1:s.injectorIndex}return Ir(i,!0),i}function g0(t,e,n,r,o){let i=rl(),s=ol(),a=s?i:i&&i.parent,c=t.data[e]=v0(t,a,n,e,r,o);return m0(t,c,i,s),c}function m0(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function v0(t,e,n,r,o,i){let s=e?e.injectorIndex:-1,a=0;return el()&&(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:o,namespace:ll(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var Qk=new RegExp(`^(\\d+)*(${Gy}|${zy})*(.*)`);function y0(t){let e=t[$c]??[],r=t[Se][fe],o=[];for(let i of e)i.data[sh]!==void 0?o.push(i):_0(i,r);t[$c]=o}function _0(t,e){let n=0,r=t.firstChild;if(r){let o=t.data[ih];for(;n<o;){let i=r.nextSibling;vh(e,r,!1),r=i,n++}}}var b0=()=>null,C0=()=>null;function ks(t,e){return b0(t,e)}function Xh(t,e,n){return C0(t,e,n)}var Jh=class{},Qs=class{},Ol=class{resolveComponentFactory(e){throw new k(917,!1)}},Ks=class{static NULL=new Ol},St=class{},Xs=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>D0()}return t})();function D0(){let t=H(),e=Le(),n=ot(e.index,t);return(Et(n)?n:t)[fe]}var eg=(()=>{class t{static \u0275prov=B({token:t,providedIn:"root",factory:()=>null})}return t})();var _s={},Pl=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){let o=this.injector.get(e,_s,r);return o!==_s||n===_s?o:this.parentInjector.get(e,n,r)}};function Rs(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")i=a;else if(i==1)o=Zi(o,a);else if(i==2){let c=a,l=e[++s];r=Zi(r,c+": "+l+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}function Bt(t,e=0){let n=H();if(n===null)return Q(t,e);let r=Le();return Yp(r,n,Fe(t),e)}function tg(t,e,n,r,o){let i=r===null?null:{"":-1},s=o(t,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}x0(t,e,n,a,i,c,l)}i!==null&&r!==null&&E0(n,r,i)}function E0(t,e,n){let r=t.localNames=[];for(let o=0;o<e.length;o+=2){let i=n[e[o+1]];if(i==null)throw new k(-301,!1);r.push(e[o],i)}}function w0(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function x0(t,e,n,r,o,i,s){let a=r.length,c=!1;for(let m=0;m<a;m++){let p=r[m];!c&&wt(p)&&(c=!0,w0(t,n,m)),xl(xs(n,e),t,p.type)}k0(n,t.data.length,a);for(let m=0;m<a;m++){let p=r[m];p.providersResolver&&p.providersResolver(p)}let l=!1,u=!1,d=Dh(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let m=0;m<a;m++){let p=r[m];if(n.mergedAttrs=kr(n.mergedAttrs,p.hostAttrs),T0(t,n,e,d,p),N0(d,p,o),s!==null&&s.has(p)){let[N,R]=s.get(p);n.directiveToIndex.set(p.type,[d,N+n.directiveStart,R+n.directiveStart])}else(i===null||!i.has(p))&&n.directiveToIndex.set(p.type,d);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let E=p.type.prototype;!l&&(E.ngOnChanges||E.ngOnInit||E.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),l=!0),!u&&(E.ngOnChanges||E.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}I0(t,n,i)}function I0(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let o=t.data[r];if(n===null||!n.has(o))Ep(0,e,o,r),Ep(1,e,o,r),xp(e,r,!1);else{let i=n.get(o);wp(0,e,i,r),wp(1,e,i,r),xp(e,r,!0)}}}function Ep(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[i]??=[],s[i].push(r),ng(e,i)}}function wp(t,e,n,r){let o=t===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),ng(e,s)}}function ng(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function xp(t,e,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=t;if(r===null||!n&&o===null||n&&i===null||au(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===e){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===e){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function T0(t,e,n,r,o){t.data[r]=o;let i=o.factory||(o.factory=xn(o.type,!0)),s=new Gn(i,wt(o),Bt,null);t.blueprint[r]=s,n[r]=s,M0(t,e,r,Dh(t,n,o.hostVars,qe),o)}function M0(t,e,n,r,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;S0(s)!=a&&s.push(a),s.push(n,r,i)}}function S0(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function N0(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;wt(e)&&(n[""]=t)}}function k0(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function rg(t,e,n,r,o,i,s,a){let c=e[O],l=c.consts,u=it(l,s),d=Fr(c,t,n,r,u);return i&&tg(c,e,d,it(l,a),o),d.mergedAttrs=kr(d.mergedAttrs,d.attrs),d.attrs!==null&&Rs(d,d.attrs,!1),d.mergedAttrs!==null&&Rs(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function og(t,e){Hp(t,e),Uc(e)&&t.queries.elementEnd(e)}function R0(t,e,n,r,o,i){let s=e.consts,a=it(s,o),c=Fr(e,t,n,r,a);if(c.mergedAttrs=kr(c.mergedAttrs,c.attrs),i!=null){let l=it(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Rs(c,c.attrs,!1),c.mergedAttrs!==null&&Rs(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function xu(t){return sg(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function ig(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{let n=t[Symbol.iterator](),r;for(;!(r=n.next()).done;)e(r.value)}}function sg(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function A0(t,e,n){return t[e]=n}function Nt(t,e,n){if(n===qe)return!1;let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function ag(t,e,n,r){let o=Nt(t,e,n);return Nt(t,e+1,r)||o}function bs(t,e,n){return function r(o){let i=en(t)?ot(t.index,e):e;Eu(i,5);let s=e[Ce],a=Ip(e,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=Ip(e,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Ip(t,e,n,r){let o=F(null);try{return te(6,e,n),n(r)!==!1}catch(i){return K_(t,i),!1}finally{te(7,e,n),F(o)}}function cg(t,e,n,r,o,i,s,a){let c=mo(t),l=!1,u=null;if(!r&&c&&(u=P0(e,n,i,t.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=pt(t,n),m=r?r(d):d;qy(n,m,i,a);let p=o.listen(m,i,a);if(!O0(i)){let E=r?N=>r(rt(N[t.index])):t.index;lg(E,e,n,i,a,p,!1)}}return l}function O0(t){return t.startsWith("animation")||t.startsWith("transition")}function P0(t,e,n,r){let o=t.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=e[Er],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function lg(t,e,n,r,o,i,s){let a=e.firstCreatePass?Kc(e):null,c=Qc(n),l=c.length;c.push(o,i),a&&a.push(r,t,l,(l+1)*(s?-1:1))}function Tp(t,e,n,r,o,i){let s=e[n],a=e[O],l=a.data[n].outputs[r],d=s[l].subscribe(i);lg(t.index,a,e,o,i,d,!0)}var Fl=Symbol("BINDING");var Ll=class extends Ks{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let n=An(e);return new Mo(n,this.ngModule)}};function F0(t){return Object.keys(t).map(e=>{let[n,r,o]=t[e],i={propName:n,templateName:e,isSignal:(r&zs.SignalBased)!==0};return o&&(i.transform=o),i})}function L0(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function V0(t,e,n){let r=e instanceof We?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Pl(n,r):n}function j0(t){let e=t.get(St,null);if(e===null)throw new k(407,!1);let n=t.get(eg,null),r=t.get(tt,null);return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function B0(t,e){let n=ug(t);return gh(e,n,n==="svg"?zc:n==="math"?Vf:null)}function H0(t){if(t?.toLowerCase()==="script")throw new k(905,!1)}function ug(t){return(t.selectors[0][0]||"div").toLowerCase()}var Mo=class extends Qs{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=F0(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=L0(this.componentDef.outputs),this.cachedOutputs}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=d_(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n}create(e,n,r,o,i,s){te(22);let a=F(null);try{let c=this.componentDef,l=$0(r,c,s,i),u=V0(c,o||this.ngModule,e),d=j0(u),m=d.rendererFactory.createRenderer(null,c),p=r?j_(m,r,c.encapsulation,u):B0(c,m);H0(p?.tagName);let E=s?.some(Mp)||i?.some(I=>typeof I!="function"&&I.bindings.some(Mp)),N=lu(null,l,null,512|Ch(c),null,null,d,m,u,null,lh(p,u,!0));N[_e]=p,cs(N);let R=null;try{let I=rg(_e,N,2,"#host",()=>l.directiveRegistry,!0,0);yh(m,p,I),Rr(p,N),bu(l,N,I),dh(l,I,N),og(l,I),n!==void 0&&z0(I,this.ngContentSelectors,n),R=ot(I.index,N),N[Ce]=R[Ce],Du(l,N,null)}catch(I){throw R!==null&&Il(R),Il(N),I}finally{te(23),ls()}return new As(this.componentType,N,!!E)}finally{F(a)}}};function $0(t,e,n,r){let o=t?["ng-version","20.3.29"]:f_(e.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Fl].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).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 m of d.bindings){a+=m[Fl].requiredVars;let p=u+1;m.create&&(m.targetIdx=p,(i??=[]).push(m)),m.update&&(m.targetIdx=p,(s??=[]).push(m))}}let c=[e];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,m=Fc(d);c.push(m)}return cu(0,null,U0(i,s),1,a,c,null,null,null,[o],null)}function U0(t,e){return!t&&!e?null:n=>{if(n&1&&t)for(let r of t)r.create();if(n&2&&e)for(let r of e)r.update()}}function Mp(t){let e=t[Fl].kind;return e==="input"||e==="twoWay"}var As=class extends Jh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=vo(n[O],_e),this.location=Pr(this._tNode,n),this.instance=ot(this._tNode.index,n)[Ce],this.hostView=this.changeDetectorRef=new on(n,void 0),this.componentType=e}setInput(e,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let o=this._rootLView,i=Cu(r,o[O],o,e,n);this.previousInputValues.set(e,n);let s=ot(r.index,o);Eu(s,1)}get injector(){return new zn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function z0(t,e,n){let r=t.projection=[];for(let o=0;o<e.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Yn=(()=>{class t{static __NG_ELEMENT_ID__=G0}return t})();function G0(){let t=Le();return fg(t,H())}var W0=Yn,dg=class extends W0{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Pr(this._hostTNode,this._hostLView)}get injector(){return new zn(this._hostTNode,this._hostLView)}get parentInjector(){let e=ru(this._hostTNode,this._hostLView);if(Up(e)){let n=Es(e,this._hostLView),r=Ds(e),o=n[O].data[r+8];return new zn(o,n)}else return new zn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=Sp(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-be}createEmbeddedView(e,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=ks(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Ar(this._hostTNode,s)),a}createComponent(e,n,r,o,i,s,a){let c=e&&!_y(e),l;if(c)l=n;else{let R=n||{};l=R.index,r=R.injector,o=R.projectableNodes,i=R.environmentInjector||R.ngModuleRef,s=R.directives,a=R.bindings}let u=c?e:new Mo(An(e)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let I=(c?d:this.parentInjector).get(We,null);I&&(i=I)}let m=An(u.componentType??{}),p=ks(this._lContainer,m?.id??null),E=p?.firstChild??null,N=u.create(d,o,E,i,s,a);return this.insertImpl(N.hostView,l,Ar(this._hostTNode,p)),N}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let o=e._lView;if(Hf(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[Se],l=new dg(c,c[He],c[Se]);l.detach(l.indexOf(e))}}let i=this._adjustIndex(n),s=this._lContainer;return Po(s,o,i,r),e.attachToViewContainerRef(),Ac(ml(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=Sp(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=To(this._lContainer,n);r&&(lo(ml(this._lContainer),n),qs(r[O],r))}detach(e){let n=this._adjustIndex(e,-1),r=To(this._lContainer,n);return r&&lo(ml(this._lContainer),n)!=null?new on(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function Sp(t){return t[go]}function ml(t){return t[go]||(t[go]=[])}function fg(t,e){let n,r=e[t.index];return ft(r)?n=r:(n=Zh(r,e,null,t),e[t.index]=n,uu(e,n)),Z0(n,e,t,r),new dg(n,t,e)}function q0(t,e){let n=t[fe],r=n.createComment(""),o=pt(e,t),i=n.parentNode(o);return Ms(n,i,r,n.nextSibling(o),!1),r}var Z0=K0,Y0=()=>!1;function Q0(t,e,n){return Y0(t,e,n)}function K0(t,e,n,r){if(t[Jt])return;let o;n.type&8?o=rt(r):o=q0(e,n),t[Jt]=o}var Vl=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},jl=class t{queries;constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new t(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)Tu(e,n).matches!==null&&this.queries[n].setDirty()}},Bl=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=rb(e):this.predicate=e}},Hl=class t{queries;constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(e,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new t(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},$l=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,n=-1){this.metadata=e,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=e.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(e,n,X0(n,i)),this.matchTNodeWithReadOption(e,n,ys(n,e,i,!1,!1))}else r===sn?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,ys(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===vt||o===Yn||o===sn&&n.type&4)this.addMatch(n.index,-2);else{let i=ys(n,e,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(e,n){this.matches===null?this.matches=[e,n]:this.matches.push(e,n)}};function X0(t,e){let n=t.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1]}return null}function J0(t,e){return t.type&11?Pr(t,e):t.type&4?wu(t,e):null}function eb(t,e,n,r){return n===-1?J0(e,t):n===-2?tb(t,e,r):wo(t,t[O],n,e)}function tb(t,e,n){if(n===vt)return Pr(e,t);if(n===sn)return wu(e,t);if(n===Yn)return fg(e,t)}function pg(t,e,n,r){let o=e[Dt].queries[r];if(o.matches===null){let i=t.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=i[l];a.push(eb(e,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Ul(t,e,n,r){let o=t.queries.getByIndex(n),i=o.matches;if(i!==null){let s=pg(t,e,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=e[-c];for(let d=be;d<u.length;d++){let m=u[d];m[Xt]===m[Se]&&Ul(m[O],m,l,r)}if(u[jn]!==null){let d=u[jn];for(let m=0;m<d.length;m++){let p=d[m];Ul(p[O],p,l,r)}}}}}return r}function Iu(t,e){return t[Dt].queries[e].queryList}function nb(t,e,n){let r=new Is((n&4)===4);return zf(t,e,r,r.destroy),(e[Dt]??=new jl).queries.push(new Vl(r))-1}function hg(t,e,n){let r=De();return r.firstCreatePass&&(ob(r,new Bl(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),nb(r,H(),e)}function rb(t){return t.split(",").map(e=>e.trim())}function ob(t,e,n){t.queries===null&&(t.queries=new Hl),t.queries.track(new $l(e,n))}function Tu(t,e){return t.queries.getByIndex(e)}function gg(t,e){let n=t[O],r=Tu(n,e);return r.crossesNgTemplate?Ul(n,t,e,[]):pg(n,t,r,e)}function mg(t,e,n){let r,o=Wr(()=>{r._dirtyCounter();let i=sb(r,t);if(e&&i===void 0)throw new k(-951,!1);return i});return r=o[Ne],r._dirtyCounter=b(0),r._flatValue=void 0,o}function vg(t){return mg(!0,!1,t)}function yg(t){return mg(!0,!0,t)}function ib(t,e){let n=t[Ne];n._lView=H(),n._queryIndex=e,n._queryList=Iu(n._lView,e),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function sb(t,e){let n=t._lView,r=t._queryIndex;if(n===void 0||r===void 0||n[L]&4)return e?void 0:et;let o=Iu(n,r),i=gg(n,r);return o.reset(i,Xp),e?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var So=class{};var No=class extends So{injector;componentFactoryResolver=new Ll(this);instance=null;constructor(e){super();let n=new Tn([...e.providers,{provide:So,useValue:this},{provide:Ks,useValue:this.componentFactoryResolver}],e.parent||po(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function _g(t,e,n=null){return new No({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var ab=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Lc(!1,n.type),o=r.length>0?_g([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=B({token:t,providedIn:"environment",factory:()=>new t(Q(We))})}return t})();function ye(t){return Ls(()=>{let e=bg(t),n=ue(J({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ou.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:e.standalone?o=>o.get(ab).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||jt.Emulated,styles:t.styles||et,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&cn("NgStandalone"),Cg(n);let r=t.dependencies;return n.directiveDefs=Np(r,cb),n.pipeDefs=Np(r,kf),n.id=db(n),n})}function cb(t){return An(t)||Fc(t)}function lb(t,e){if(t==null)return Kt;let n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=zs.None,c=null),n[i]=[r,a,c],e[i]=s}return n}function ub(t){if(t==null)return Kt;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function Qn(t){return Ls(()=>{let e=bg(t);return Cg(e),e})}function Mu(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function bg(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||Kt,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||et,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:lb(t.inputs,e),outputs:ub(t.outputs),debugInfo:null}}function Cg(t){t.features?.forEach(e=>e(t))}function Np(t,e){return t?()=>{let n=typeof t=="function"?t():t,r=[];for(let o of n){let i=e(o);i!==null&&r.push(i)}return r}:null}function db(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let i of r.join("|"))e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function fb(t){return Object.getPrototypeOf(t.prototype).constructor}function Fo(t){let e=fb(t.type),n=!0,r=[t];for(;e;){let o;if(wt(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new k(903,!1);o=e.\u0275dir}if(o){if(n){r.push(o);let s=t;s.inputs=vl(t.inputs),s.declaredInputs=vl(t.declaredInputs),s.outputs=vl(t.outputs);let a=o.hostBindings;a&&vb(t,a);let c=o.viewQuery,l=o.contentQueries;if(c&&gb(t,c),l&&mb(t,l),pb(t,o),Cf(t.outputs,o.outputs),wt(o)&&o.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(t),a===Fo&&(n=!1)}}e=Object.getPrototypeOf(e)}hb(r)}function pb(t,e){for(let n in e.inputs){if(!e.inputs.hasOwnProperty(n)||t.inputs.hasOwnProperty(n))continue;let r=e.inputs[n];r!==void 0&&(t.inputs[n]=r,t.declaredInputs[n]=e.declaredInputs[n])}}function hb(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){let o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=kr(o.hostAttrs,n=kr(n,o.hostAttrs))}}function vl(t){return t===Kt?{}:t===et?[]:t}function gb(t,e){let n=t.viewQuery;n?t.viewQuery=(r,o)=>{e(r,o),n(r,o)}:t.viewQuery=e}function mb(t,e){let n=t.contentQueries;n?t.contentQueries=(r,o,i)=>{e(r,o,i),n(r,o,i)}:t.contentQueries=e}function vb(t,e){let n=t.hostBindings;n?t.hostBindings=(r,o)=>{e(r,o),n(r,o)}:t.hostBindings=e}function Dg(t,e,n,r,o,i,s,a){if(n.firstCreatePass){t.mergedAttrs=kr(t.mergedAttrs,t.attrs);let u=t.tView=cu(2,t,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,t),u.queries=n.queries.embeddedTView(t))}a&&(t.flags|=a),Ir(t,!1);let c=_b(n,e,t,r);ds()&&yu(n,e,c,t),Rr(c,e);let l=Zh(c,e,c,t);e[r+_e]=l,uu(e,l),Q0(l,t,e)}function yb(t,e,n,r,o,i,s,a,c,l,u){let d=n+_e,m;return e.firstCreatePass?(m=Fr(e,d,4,s||null,a||null),Jc()&&tg(e,t,m,it(e.consts,l),Fh),Hp(e,m)):m=e.data[d],Dg(m,t,e,n,r,o,i,c),mo(m)&&bu(e,t,m),l!=null&&Ys(t,m,u),m}function ko(t,e,n,r,o,i,s,a,c,l,u){let d=n+_e,m;if(e.firstCreatePass){if(m=Fr(e,d,4,s||null,a||null),l!=null){let p=it(e.consts,l);m.localNames=[];for(let E=0;E<p.length;E+=2)m.localNames.push(p[E],-1)}}else m=e.data[d];return Dg(m,t,e,n,r,o,i,c),l!=null&&Ys(t,m,u),m}function Js(t,e,n,r,o,i,s,a){let c=H(),l=De(),u=it(l.consts,i);return yb(c,l,t,e,n,r,o,u,void 0,s,a),Js}var _b=bb;function bb(t,e,n,r){return fs(!0),e[fe].createComment("")}var Su=new A("");function ea(t){return!!t&&typeof t.then=="function"}function Nu(t){return!!t&&typeof t.subscribe=="function"}var Eg=new A("");var ku=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=_(Eg,{optional:!0})??[];injector=_(Be);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Dr(this.injector,o);if(ea(i))n.push(i);else if(Nu(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wg=new A("");function xg(){Wa(()=>{let t="";throw new k(600,t)})}function Ig(t){return t.isBoundToModule}var Cb=10;var Kn=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=_(It);afterRenderManager=_(Ws);zonelessEnabled=_(bo);rootEffectScheduler=_(Co);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ve;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=_(rn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Pe(n=>!n))}constructor(){_(an,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=_(We);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Be.NULL){return this._injector.get(oe).run(()=>{te(10);let s=n instanceof Qs;if(!this._injector.get(ku).done){let E="";throw new k(405,E)}let c;s?c=n:c=this._injector.get(Ks).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=Ig(c)?void 0:this._injector.get(So),u=r||c.selector,d=c.create(o,[],u,l),m=d.location.nativeElement,p=d.injector.get(Su,null);return p?.registerApplication(m),d.onDestroy(()=>{this.detachView(d.hostView),Eo(this.components,d),p?.unregisterApplication(m)}),this._loadComponent(d),te(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){te(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Gs.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new k(101,!1);let n=F(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,F(n),this.afterTick.next(),te(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(St,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Cb;)te(14),this.synchronizeOnce(),te(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:o}of this.allViews){if(!r&&!yo(o))continue;let i=r&&!this.zonelessEnabled?0:1;zh(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>yo(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;Eo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(wg,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Eo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new k(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||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Eo(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function se(t,e,n,r){let o=H(),i=Hn();if(Nt(o,i,e)){let s=De(),a=us();Z_(a,o,t,e,n,r)}return se}var nR=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var zl=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),o=Math.max(e,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(e,n){this.attach(n,this.detach(e))}};function yl(t,e,n,r,o){return t===n&&Object.is(e,r)?1:Object.is(o(t,e),o(n,r))?-1:0}function Db(t,e,n){let r,o,i=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let c=e.length-1;for(;i<=s&&i<=c;){let l=t.at(i),u=e[i],d=yl(i,l,i,u,n);if(d!==0){d<0&&t.updateValue(i,u),i++;continue}let m=t.at(s),p=e[c],E=yl(s,m,c,p,n);if(E!==0){E<0&&t.updateValue(s,p),s--,c--;continue}let N=n(i,l),R=n(s,m),I=n(i,u);if(Object.is(I,R)){let me=n(c,p);Object.is(me,N)?(t.swap(i,s),t.updateValue(s,p),c--,s--):t.move(s,i),t.updateValue(i,u),i++;continue}if(r??=new Os,o??=Rp(t,i,s,n),Gl(t,r,i,I))t.updateValue(i,u),i++,s++;else if(o.has(I))r.set(N,t.detach(i)),s--;else{let me=t.create(i,e[i]);t.attach(i,me),i++,s++}}for(;i<=c;)kp(t,r,n,i,e[i]),i++}else if(e!=null){let c=e[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=t.at(i),d=l.value,m=yl(i,u,i,d,n);if(m!==0)m<0&&t.updateValue(i,d),i++,l=c.next();else{r??=new Os,o??=Rp(t,i,s,n);let p=n(i,d);if(Gl(t,r,i,p))t.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(p))t.attach(i,t.create(i,d)),i++,s++,l=c.next();else{let E=n(i,u);r.set(E,t.detach(i)),s--}}}for(;!l.done;)kp(t,r,n,t.length,l.value),l=c.next()}for(;i<=s;)t.destroy(t.detach(s--));r?.forEach(c=>{t.destroy(c)})}function Gl(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function kp(t,e,n,r,o){if(Gl(t,e,r,n(r,o)))t.updateValue(r,o);else{let i=t.create(r,o);t.attach(r,i)}}function Rp(t,e,n,r){let o=new Set;for(let i=e;i<=n;i++)o.add(r(i,t.at(i)));return o}var Os=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),e(r,n)}}};function T(t,e,n,r,o,i,s,a){cn("NgControlFlow");let c=H(),l=De(),u=it(l.consts,i);return ko(c,l,t,e,n,r,o,u,256,s,a),Ru}function Ru(t,e,n,r,o,i,s,a){cn("NgControlFlow");let c=H(),l=De(),u=it(l.consts,i);return ko(c,l,t,e,n,r,o,u,512,s,a),Ru}function M(t,e){cn("NgControlFlow");let n=H(),r=Hn(),o=n[r]!==qe?n[r]:-1,i=o!==-1?Ps(n,_e+o):void 0,s=0;if(Nt(n,r,t)){let a=F(null);try{if(i!==void 0&&Qh(i,s),t!==-1){let c=_e+t,l=Ps(n,c),u=Yl(n[O],c),d=Xh(l,u,n),m=Oo(n,u,e,{dehydratedView:d});Po(l,m,s,Ar(u,d))}}finally{F(a)}}else if(i!==void 0){let a=Yh(i,s);a!==void 0&&(a[Ce]=e)}}var Wl=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-be}};function Xn(t){return t}function Lo(t,e){return e}var ql=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function ae(t,e,n,r,o,i,s,a,c,l,u,d,m){cn("NgControlFlow");let p=H(),E=De(),N=c!==void 0,R=H(),I=a?s.bind(R[$e][Ce]):s,me=new ql(N,I);R[_e+t]=me,ko(p,E,t+1,e,n,r,o,it(E.consts,i),256),N&&ko(p,E,t+2,c,l,u,d,it(E.consts,m),512)}var Zl=class extends zl{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-be}at(e){return this.getLView(e)[Ce].$implicit}attach(e,n){let r=n[On];this.needsIndexUpdate||=e!==this.length,Po(this.lContainer,n,e,Ar(this.templateTNode,r)),Eb(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,wb(this.lContainer,e),xb(this.lContainer,e)}create(e,n){let r=ks(this.lContainer,this.templateTNode.tView.ssrId),o=Oo(this.hostLView,this.templateTNode,new Wl(this.lContainer,n,e),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(e){qs(e[O],e),this.operationsCounter?.recordDestroy()}updateValue(e,n){this.getLView(e)[Ce].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[Ce].$index=e}getLView(e){return Ib(this.lContainer,e)}};function ce(t){let e=F(null),n=xt();try{let r=H(),o=r[O],i=r[n],s=n+1,a=Ps(r,s);if(i.liveCollection===void 0){let l=Yl(o,s);i.liveCollection=new Zl(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(Db(c,t,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let l=Hn(),u=c.length===0;if(Nt(r,l,u)){let d=n+2,m=Ps(r,d);if(u){let p=Yl(o,d),E=Xh(m,p,r),N=Oo(r,p,void 0,{dehydratedView:E});Po(m,N,0,Ar(p,E))}else o.firstUpdatePass&&y0(m),Qh(m,0)}}}finally{F(e)}}function Ps(t,e){return t[e]}function Eb(t,e){if(t.length<=be)return;let n=be+e,r=t[n],o=r?r[Vn]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Lt];x_(i,o),Wn.delete(r),o.detachedLeaveAnimationFns=void 0}}function wb(t,e){if(t.length<=be)return;let n=be+e,r=t[n],o=r?r[Vn]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function xb(t,e){return To(t,e)}function Ib(t,e){return Yh(t,e)}function Yl(t,e){return vo(t,e)}function P(t,e,n){let r=H(),o=Hn();if(Nt(r,o,e)){let i=De(),s=us();U_(s,r,t,e,r[fe],n)}return P}function Ql(t,e,n,r,o){Cu(e,t,n,o?"class":"style",r)}function g(t,e,n,r){let o=H(),i=o[O],s=t+_e,a=i.firstCreatePass?rg(s,o,2,e,Fh,Jc(),n,r):i.data[s];if(Lh(a,o,t,e,Tg),mo(a)){let c=o[O];bu(c,o,a),dh(c,a,o)}return r!=null&&Ys(o,a),g}function v(){let t=De(),e=Le(),n=Vh(e);return t.firstCreatePass&&og(t,n),tl(n)&&nl(),Xc(),n.classesWithoutHost!=null&&xy(n)&&Ql(t,n,H(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Iy(n)&&Ql(t,n,H(),n.stylesWithoutHost,!1),v}function Ee(t,e,n,r){return g(t,e,n,r),v(),Ee}function w(t,e,n,r){let o=H(),i=o[O],s=t+_e,a=i.firstCreatePass?R0(s,i,2,e,n,r):i.data[s];return Lh(a,o,t,e,Tg),r!=null&&Ys(o,a),w}function x(){let t=Le(),e=Vh(t);return tl(e)&&nl(),Xc(),x}function he(t,e,n,r){return w(t,e,n,r),x(),he}var Tg=(t,e,n,r,o)=>(fs(!0),gh(e[fe],r,ll()));function $(){return H()}function ge(t,e,n){let r=H(),o=Hn();if(Nt(r,o,e)){let i=De(),s=us();Ph(s,r,t,e,r[fe],n)}return ge}var hs=void 0;function Tb(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var Mb=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],hs,[["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"]],hs,[["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}",hs,"{1} 'at' {0}",hs],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Tb],_l={};function Xe(t){let e=Sb(t),n=Ap(e);if(n)return n;let r=e.split("-")[0];if(n=Ap(r),n)return n;if(r==="en")return Mb;throw new k(701,!1)}function Ap(t){if(!(t in _l)){let e=Sn.ng&&Sn.ng.common&&Sn.ng.common.locales&&Sn.ng.common.locales[t];return e!==void 0&&(_l[t]=e),e}return _l[t]}var we=(function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t})(we||{});function Sb(t){return t.toLowerCase().replace(/_/g,"-")}var Vo="en-US";var Nb=Vo;function Mg(t){typeof t=="string"&&(Nb=t.toLowerCase().replace(/_/g,"-"))}function S(t,e,n){let r=H(),o=De(),i=Le();return kb(o,r,r[fe],i,t,e,n),S}function Z(t,e,n){let r=H(),o=De(),i=Le();return(i.type&3||n)&&cg(i,o,r,n,r[fe],t,e,bs(i,r,e)),Z}function kb(t,e,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=bs(r,e,i),cg(r,t,e,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let m=u[d],p=u[d+1];c??=bs(r,e,i),Tp(r,e,m,p,o,c)}if(l&&l.length)for(let d of l)c??=bs(r,e,i),Tp(r,e,d,o,o,c)}}function h(t=1){return op(t)}function Rb(t,e){let n=null,r=s_(t);for(let o=0;o<e.length;o++){let i=e[o];if(i==="*"){n=o;continue}if(r===null?bh(t,i,!0):l_(r,i))return o}return n}function Au(t){let e=H()[$e][He];if(!e.projection){let n=t?t.length:1,r=e.projection=Sf(n,null),o=r.slice(),i=e.child;for(;i!==null;){if(i.type!==128){let s=t?Rb(i,t):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function Ou(t,e=0,n,r,o,i){let s=H(),a=De(),c=r?t+1:null;c!==null&&ko(s,a,c,r,o,i,null,n);let l=Fr(a,_e+t,16,null,n||null);l.projection===null&&(l.projection=e),il();let d=!s[On]||el();s[$e][He].projection[l.projection]===null&&c!==null?Ab(s,a,c):d&&!$s(l)&&F_(a,s,l)}function Ab(t,e,n){let r=_e+n,o=e.data[r],i=t[r],s=ks(i,o.tView.ssrId),a=Oo(t,o,void 0,{dehydratedView:s});Po(i,a,0,Ar(o,s))}function Pu(t,e,n){hg(t,e,n)}function Fu(t){let e=H(),n=De(),r=as();_o(r+1);let o=Tu(n,r);if(t.dirty&&Bf(e)===((o.metadata.flags&2)===2)){if(o.matches===null)t.reset([]);else{let i=gg(e,r);t.reset(i,Xp),t.notifyOnChanges()}return!0}return!1}function Lu(){return Iu(H(),as())}function kt(t,e,n,r){ib(t,hg(e,n,r))}function Ht(t=1){_o(as()+t)}function gs(t,e){return t<<17|e<<2}function qn(t){return t>>17&32767}function Ob(t){return(t&2)==2}function Pb(t,e){return t&131071|e<<17}function Kl(t){return t|2}function Or(t){return(t&131068)>>2}function bl(t,e){return t&-131069|e<<2}function Fb(t){return(t&1)===1}function Xl(t){return t|1}function Lb(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=qn(s),c=Or(s);t[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Cr(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let m=qn(t[a+1]);t[r+1]=gs(m,a),m!==0&&(t[m+1]=bl(t[m+1],r)),t[a+1]=Pb(t[a+1],r)}else t[r+1]=gs(a,0),a!==0&&(t[a+1]=bl(t[a+1],r)),a=r;else t[r+1]=gs(c,0),a===0?a=r:t[c+1]=bl(t[c+1],r),c=r;l&&(t[r+1]=Kl(t[r+1])),Op(t,u,r,!0),Op(t,u,r,!1),Vb(e,u,t,r,i),s=gs(a,c),i?e.classBindings=s:e.styleBindings=s}function Vb(t,e,n,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&Cr(i,e)>=0&&(n[r+1]=Xl(n[r+1]))}function Op(t,e,n,r){let o=t[n+1],i=e===null,s=r?qn(o):Or(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],l=t[s+1];jb(c,e)&&(a=!0,t[s+1]=r?Xl(l):Kl(l)),s=r?qn(l):Or(l)}a&&(t[n+1]=r?Kl(o):Xl(o))}function jb(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Cr(t,e)>=0:!1}var gt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bb(t){return t.substring(gt.key,gt.keyEnd)}function Hb(t){return $b(t),Sg(t,Ng(t,0,gt.textEnd))}function Sg(t,e){let n=gt.textEnd;return n===e?-1:(e=gt.keyEnd=Ub(t,gt.key=e,n),Ng(t,e,n))}function $b(t){gt.key=0,gt.keyEnd=0,gt.value=0,gt.valueEnd=0,gt.textEnd=t.length}function Ng(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Ub(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}function ie(t,e,n){return kg(t,e,n,!1),ie}function Re(t,e){return kg(t,e,null,!0),Re}function Jn(t){Gb(Kb,zb,t,!0)}function zb(t,e){for(let n=Hb(e);n>=0;n=Sg(e,n))Ji(t,Bb(e),!0)}function kg(t,e,n,r){let o=H(),i=De(),s=is(2);if(i.firstUpdatePass&&Ag(i,t,s,r),e!==qe&&Nt(o,s,e)){let a=i.data[xt()];Og(i,a,o,o[fe],t,o[s+1]=Jb(e,n),r,s)}}function Gb(t,e,n,r){let o=De(),i=is(2);o.firstUpdatePass&&Ag(o,null,i,r);let s=H();if(n!==qe&&Nt(s,i,n)){let a=o.data[xt()];if(Pg(a,r)&&!Rg(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Zi(c,n||"")),Ql(o,a,s,n,r)}else Xb(o,a,s,s[fe],s[i+1],s[i+1]=Qb(t,e,n),r,i)}}function Rg(t,e){return e>=t.expandoStartIndex}function Ag(t,e,n,r){let o=t.data;if(o[n+1]===null){let i=o[xt()],s=Rg(t,n);Pg(i,r)&&e===null&&!s&&(e=!1),e=Wb(o,i,e,r),Lb(o,i,e,n,s,r)}}function Wb(t,e,n,r){let o=ep(t),i=r?e.residualClasses:e.residualStyles;if(o===null)(r?e.classBindings:e.styleBindings)===0&&(n=Cl(null,t,e,n,r),n=Ro(n,e.attrs,r),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(n=Cl(o,t,e,n,r),i===null){let c=qb(t,e,r);c!==void 0&&Array.isArray(c)&&(c=Cl(null,t,e,c[1],r),c=Ro(c,e.attrs,r),Zb(t,e,r,c))}else i=Yb(t,e,r)}return i!==void 0&&(r?e.residualClasses=i:e.residualStyles=i),n}function qb(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Or(r)!==0)return t[qn(r)]}function Zb(t,e,n,r){let o=n?e.classBindings:e.styleBindings;t[qn(o)]=r}function Yb(t,e,n){let r,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++){let s=t[i].hostAttrs;r=Ro(r,s,n)}return Ro(r,e.attrs,n)}function Cl(t,e,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=e[a],r=Ro(r,i.hostAttrs,o),i!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function Ro(t,e,n){let r=n?1:2,o=-1;if(e!==null)for(let i=0;i<e.length;i++){let s=e[i];typeof s=="number"?o=s:o===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Ji(t,s,n?!0:e[++i]))}return t===void 0?null:t}function Qb(t,e,n){if(n==null||n==="")return et;let r=[],o=Us(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)t(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&t(r,i,o[i]);else typeof o=="string"&&e(r,o);return r}function Kb(t,e,n){let r=String(e);r!==""&&!r.includes(" ")&&Ji(t,r,n)}function Xb(t,e,n,r,o,i,s,a){o===qe&&(o=et);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let m=c<o.length?o[c+1]:void 0,p=l<i.length?i[l+1]:void 0,E=null,N;u===d?(c+=2,l+=2,m!==p&&(E=d,N=p)):d===null||u!==null&&u<d?(c+=2,E=u):(l+=2,E=d,N=p),E!==null&&Og(t,e,n,r,E,N,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function Og(t,e,n,r,o,i,s,a){if(!(e.type&3))return;let c=t.data,l=c[a+1],u=Fb(l)?Pp(c,e,n,o,Or(l),s):void 0;if(!Fs(u)){Fs(i)||Ob(l)&&(i=Pp(c,null,n,o,a,s));let d=Gc(xt(),n);V_(r,s,d,o,i)}}function Pp(t,e,n,r,o,i){let s=e===null,a;for(;o>0;){let c=t[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,m=n[o+1];m===qe&&(m=d?et:void 0);let p=d?es(m,r):u===r?m:void 0;if(l&&!Fs(p)&&(p=es(c,r)),Fs(p)&&(a=p,s))return a;let E=t[o+1];o=s?qn(E):Or(E)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=es(c,r))}return a}function Fs(t){return t!==void 0}function Jb(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Yt(Us(t)))),t}function Pg(t,e){return(t.flags&(e?8:16))!==0}function y(t,e=""){let n=H(),r=De(),o=t+_e,i=r.firstCreatePass?Fr(r,o,1,e,null):r.data[o],s=eC(r,n,i,e,t);n[o]=s,ds()&&yu(r,n,s,i),Ir(i,!1)}var eC=(t,e,n,r,o)=>(fs(!0),Qy(e[fe],r));function tC(t,e,n,r=""){return Nt(t,Hn(),n)?e+kn(n)+r:qe}function nC(t,e,n,r,o,i=""){let s=Yf(),a=ag(t,s,n,o);return is(2),a?e+kn(n)+r+kn(o)+i:qe}function U(t){return q("",t),U}function q(t,e,n){let r=H(),o=tC(r,t,e,n);return o!==qe&&Fg(r,xt(),o),q}function Lr(t,e,n,r,o){let i=H(),s=nC(i,t,e,n,r,o);return s!==qe&&Fg(i,xt(),s),Lr}function Fg(t,e,n){let r=Gc(e,t);Ky(t[fe],r,n)}function rC(t,e,n){let r=De();if(r.firstCreatePass){let o=wt(t);Jl(n,r.data,r.blueprint,o,!0),Jl(e,r.data,r.blueprint,o,!1)}}function Jl(t,e,n,r,o){if(t=Fe(t),Array.isArray(t))for(let i=0;i<t.length;i++)Jl(t[i],e,n,r,o);else{let i=De(),s=H(),a=Le(),c=In(t)?t:Fe(t.provide),l=jc(t),u=a.providerIndexes&1048575,d=a.directiveStart,m=a.providerIndexes>>20;if(In(t)||!t.multi){let p=new Gn(l,o,Bt,null),E=El(c,e,o?u:u+m,d);E===-1?(xl(xs(a,s),i,c),Dl(i,t,e.length),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[E]=p,s[E]=p)}else{let p=El(c,e,u+m,d),E=El(c,e,u,u+m),N=p>=0&&n[p],R=E>=0&&n[E];if(o&&!R||!o&&!N){xl(xs(a,s),i,c);let I=sC(o?iC:oC,n.length,o,r,l,t);!o&&R&&(n[E].providerFactory=I),Dl(i,t,e.length,0),e.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(I),s.push(I)}else{let I=Lg(n[o?E:p],l,!o&&r);Dl(i,t,p>-1?p:E,I)}!o&&r&&R&&n[E].componentProviders++}}}function Dl(t,e,n,r){let o=In(e),i=Pf(e);if(o||i){let c=(i?Fe(e.useClass):e).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.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 Lg(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function El(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function oC(t,e,n,r,o){return eu(this.multi,[])}function iC(t,e,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=wo(r,r[O],this.providerFactory.index,o);s=c.slice(0,a),eu(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],eu(i,s);return s}function eu(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function sC(t,e,n,r,o,i){let s=new Gn(t,n,Bt,null);return s.multi=[],s.index=e,s.componentProviders=0,Lg(s,o,r&&!n),s}function jo(t,e=[]){return n=>{n.providersResolver=(r,o)=>rC(r,o?o(t):t,e)}}function aC(t,e){let n=t[e];return n===qe?void 0:n}function cC(t,e,n,r,o,i,s){let a=e+n;return ag(t,a,o,i)?A0(t,a+2,s?r.call(s,o,i):r(o,i)):aC(t,a+2)}function Bo(t,e){let n=De(),r,o=t+_e;n.firstCreatePass?(r=lC(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=xn(r.type,!0)),s,a=je(Bt);try{let c=ws(!1),l=i();return ws(c),Wc(n,H(),o,l),l}finally{je(a)}}function lC(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function Ho(t,e,n,r){let o=t+_e,i=H(),s=jf(i,o);return uC(i,o)?cC(i,Zf(),e,s.transform,n,r,s):s.transform(n,r)}function uC(t,e){return t[O].data[e].pure}var dC=(()=>{class t{zone=_(oe);changeDetectionScheduler=_(tt);applicationRef=_(Kn);applicationErrorHandler=_(It);_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||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vg=new A("",{factory:()=>!1});function Vu({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:n}){return t??=()=>new oe(ue(J({},Bu()),{scheduleInRootZone:n})),[{provide:oe,useFactory:t},{provide:Rn,multi:!0,useFactory:()=>{let r=_(dC,{optional:!0});return()=>r.initialize()}},{provide:Rn,multi:!0,useFactory:()=>{let r=_(fC);return()=>{r.initialize()}}},e===!0?{provide:dl,useValue:!0}:[],{provide:fl,useValue:n??wh},{provide:It,useFactory:()=>{let r=_(oe),o=_(We),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(Qe),i.handleError(s))})}}}]}function ju(t){let e=t?.ignoreChangesOutsideZone,n=t?.scheduleInRootZone,r=Vu({ngZoneFactory:()=>{let o=Bu(t);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&cn("NgZone_CoalesceEvent"),new oe(o)},ignoreChangesOutsideZone:e,scheduleInRootZone:n});return uo([{provide:Vg,useValue:!0},{provide:bo,useValue:!1},r])}function Bu(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var fC=(()=>{class t{subscription=new pe;initialized=!1;zone=_(oe);pendingTasks=_(rn);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(()=>{oe.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{oe.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var jg=(()=>{class t{applicationErrorHandler=_(It);appRef=_(Kn);taskService=_(rn);ngZone=_(oe);zonelessEnabled=_(bo);tracing=_(an,{optional:!0});disableScheduling=_(dl,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new pe;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ss):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(_(fl,{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 Ns||!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}default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?vp:xh;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>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(Ss+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,vp(()=>{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||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pC(){return typeof $localize<"u"&&$localize.locale||Vo}var $o=new A("",{providedIn:"root",factory:()=>_($o,{optional:!0,skipSelf:!0})||pC()});var ta=class{destroyed=!1;listeners=null;errorHandler=_(Qe,{optional:!0});destroyRef=_(Ue);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new k(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let n=this.listeners?.indexOf(e);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(e){if(this.destroyed){console.warn(Mn(953,!1));return}if(this.listeners===null)return;let n=F(null);try{for(let r of this.listeners)try{r(e)}catch(o){this.errorHandler?.handleError(o)}}finally{F(n)}}};function ze(t){return mf(t)}function j(t,e){return Wr(t,e?.equal)}var Hu=class{[Ne];constructor(e){this[Ne]=e}destroy(){this[Ne].destroy()}};function Ie(t,e){let n=e?.injector??_(Be),r=e?.manualCleanup!==!0?n.get(Ue):null,o,i=n.get($n,null,{optional:!0}),s=n.get(tt);return i!==null?(o=mC(i.view,s,t),r instanceof co&&r._lView===i.view&&(r=null)):o=vC(t,n.get(Co),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new Hu(o)}var Bg=ue(J({},vf),{cleanupFns:void 0,zone:null,onDestroyFn:Un,run(){let t=Tr(!1);try{yf(this)}finally{Tr(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=F(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],F(t)}}}),hC=ue(J({},Bg),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Wt(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),gC=ue(J({},Bg),{consumerMarkedDirty(){this.view[L]|=8192,tn(this.view),this.notifier.notify(13)},destroy(){Wt(this),this.onDestroyFn(),this.cleanup(),this.view[Vt]?.delete(this)}});function mC(t,e,n){let r=Object.create(gC);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=e,r.fn=Hg(r,n),t[Vt]??=new Set,t[Vt].add(r),r.consumerMarkedDirty(r),r}function vC(t,e,n){let r=Object.create(hC);return r.fn=Hg(r,t),r.scheduler=e,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Hg(t,e){return()=>{e(n=>(t.cleanupFns??=[]).push(n))}}var Wg=Symbol("InputSignalNode#UNSET"),kC=ue(J({},qr),{transformFn:void 0,applyValueToInputSignal(t,e){cr(t,e)}});function qg(t,e){let n=Object.create(kC);n.value=t,n.transformFn=e?.transform;function r(){if(pn(n),n.value===Wg){let o=null;throw new k(-950,o)}return n.value}return r[Ne]=n,r}var RC=new A("");RC.__NG_ELEMENT_ID__=t=>{let e=Le();if(e===null)throw new k(204,!1);if(e.type&2)return e.value;if(t&8)return null;throw new k(204,!1)};function Y(t){return new ta}function $g(t,e){return qg(t,e)}function AC(t){return qg(Wg,t)}var V=($g.required=AC,$g);function Ug(t,e){return vg(e)}function OC(t,e){return yg(e)}var $t=(Ug.required=OC,Ug);var Uu=new A(""),PC=new A("");function Uo(t){return!t.moduleRef}function FC(t){let e=Uo(t)?t.r3Injector:t.moduleRef.injector,n=e.get(oe);return n.run(()=>{Uo(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(It),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Uo(t)){let i=()=>e.destroy(),s=t.platformInjector.get(Uu);s.add(i),e.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get(Uu);s.add(i),t.moduleRef.onDestroy(()=>{Eo(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i)})}return VC(r,n,()=>{let i=e.get(rn),s=i.add(),a=e.get(ku);return a.runInitializers(),a.donePromise.then(()=>{let c=e.get($o,Vo);if(Mg(c||Vo),!e.get(PC,!0))return Uo(t)?e.get(Kn):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Uo(t)){let u=e.get(Kn);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return LC?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{i.remove(s)})})})}var LC;function VC(t,e,n){try{let r=n();return ea(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t(r)),r}}var na=null;function jC(t=[],e){return Be.create({name:e,providers:[{provide:fo,useValue:"platform"},{provide:Uu,useValue:new Set([()=>na=null])},...t]})}function BC(t=[]){if(na)return na;let e=jC(t);return na=e,xg(),HC(e),e}function HC(t){let e=t.get(Bs,null);Dr(t,()=>{e?.forEach(n=>n())})}var Yu=(()=>{class t{static __NG_ELEMENT_ID__=$C}return t})();function $C(t){return UC(Le(),H(),(t&16)===16)}function UC(t,e,n){if(en(t)&&!n){let r=ot(t.index,e);return new on(r,r)}else if(t.type&175){let r=e[$e];return new on(r,e)}return null}var zu=class{constructor(){}supports(e){return xu(e)}create(e){return new Gu(e)}},zC=(t,e)=>e,Gu=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(e){this._trackByFn=e||zC}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<zg(r,o,i)?n:r,a=zg(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let l=a-o,u=c-o;if(l!=u){for(let m=0;m<l;m++){let p=m<i.length?i[m]:i[m]=0,E=p+m;u<=E&&E<l&&(i[m]=p+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&e(s,a,c)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)e(n)}diff(e){if(e==null&&(e=[]),!xu(e))throw new k(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)i=e[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,ig(e,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,o),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new Wu(n,r),i,o)),e}_verifyReinsertion(e,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=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(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let o=n===null?this._itHead:n._next;return e._next=o,e._prev=n,o===null?this._itTail=e:o._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new ra),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ra),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Wu=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(e,n){this.item=e,this.trackById=n}},qu=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},ra=class{map=new Map;put(e){let n=e.trackById,r=this.map.get(n);r||(r=new qu,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,o=this.map.get(r);return o?o.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function zg(t,e,n){let r=t.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+e+o}function Gg(){return new ia([new zu])}var ia=(()=>{class t{factories;static \u0275prov=B({token:t,providedIn:"root",factory:Gg});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:()=>{let r=_(t,{optional:!0,skipSelf:!0});return t.create(n,r||Gg())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new k(901,!1)}}return t})();function Zg(t){let{rootComponent:e,appProviders:n,platformProviders:r,platformRef:o}=t;te(8);try{let i=o?.injector??BC(r),s=[Vu({}),{provide:tt,useExisting:jg},ap,...n||[]],a=new No({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return FC({r3Injector:a.injector,platformInjector:i,rootComponent:e})}catch(i){return Promise.reject(i)}finally{te(9)}}function Yg(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}var $u=Symbol("NOT_SET"),Qg=new Set,GC=ue(J({},qr),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:$u,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(t){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==$u&&!gn(this))return this.signal;try{for(let o of this.cleanup??Qg)o()}finally{this.cleanup?.clear()}let e=[];t!==void 0&&e.push(t),e.push(this.registerCleanupFn);let n=Gt(this),r;try{r=this.userFn.apply(null,e)}finally{hn(this,n)}return(this.value===$u||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Zu=class extends xo{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];constructor(e,n,r,o,i,s=null){super(e,[void 0,void 0,void 0,void 0],r,!1,i.get(Ue),s),this.scheduler=o;for(let a of hu){let c=n[a];if(c===void 0)continue;let l=Object.create(GC);l.sequence=this,l.phase=a,l.userFn=c,l.dirty=!0,l.signal=()=>(pn(l),l.value),l.signal[Ne]=l,l.registerCleanupFn=u=>(l.cleanup??=new Set).add(u),this.nodes[a]=l,this.hooks[a]=u=>l.phaseFn(u)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let e of this.nodes)if(e)try{for(let n of e.cleanup??Qg)n()}finally{Wt(e)}}};function Qu(t,e){let n=e?.injector??_(Be),r=n.get(tt),o=n.get(Ws),i=n.get(an,null,{optional:!0});o.impl??=n.get(gu);let s=t;typeof s=="function"&&(s={mixedReadWrite:t});let a=n.get($n,null,{optional:!0}),c=new Zu(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}var Kg=null;function Go(){return Kg}function Ku(t){Kg??=t}var zo=class{};var Ve=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(Ve||{}),re=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(re||{}),Ze=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(Ze||{}),zt={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 Jg(t){return Xe(t)[we.LocaleId]}function em(t,e,n){let r=Xe(t),o=[r[we.DayPeriodsFormat],r[we.DayPeriodsStandalone]],i=at(o,e);return at(i,n)}function tm(t,e,n){let r=Xe(t),o=[r[we.DaysFormat],r[we.DaysStandalone]],i=at(o,e);return at(i,n)}function nm(t,e,n){let r=Xe(t),o=[r[we.MonthsFormat],r[we.MonthsStandalone]],i=at(o,e);return at(i,n)}function rm(t,e){let r=Xe(t)[we.Eras];return at(r,e)}function Wo(t,e){let n=Xe(t);return at(n[we.DateFormat],e)}function qo(t,e){let n=Xe(t);return at(n[we.TimeFormat],e)}function Zo(t,e){let r=Xe(t)[we.DateTimeFormat];return at(r,e)}function Yo(t,e){let n=Xe(t),r=n[we.NumberSymbols][e];if(typeof r>"u"){if(e===zt.CurrencyDecimal)return n[we.NumberSymbols][zt.Decimal];if(e===zt.CurrencyGroup)return n[we.NumberSymbols][zt.Group]}return r}function om(t){if(!t[we.ExtraData])throw new k(2303,!1)}function im(t){let e=Xe(t);return om(e),(e[we.ExtraData][2]||[]).map(r=>typeof r=="string"?Xu(r):[Xu(r[0]),Xu(r[1])])}function sm(t,e,n){let r=Xe(t);om(r);let o=[r[we.ExtraData][0],r[we.ExtraData][1]],i=at(o,e)||[];return at(i,n)||[]}function at(t,e){for(let n=e;n>-1;n--)if(typeof t[n]<"u")return t[n];throw new k(2304,!1)}function Xu(t){let[e,n]=t.split(":");return{hours:+e,minutes:+n}}var WC=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,sa={},qC=/((?:[^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]*)/,ZC=256;function am(t,e,n,r){let o=oD(t);YC(e),e=Ut(n,e)||e;let s=[],a;for(;e;)if(a=qC.exec(e),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;e=u}else{s.push(e);break}let c=o.getTimezoneOffset();r&&(c=lm(r,c),o=rD(o,r));let l="";return s.forEach(u=>{let d=tD(u);l+=d?d(o,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function YC(t){if(t.length>ZC)throw new k(2300,!1)}function da(t,e,n){let r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function Ut(t,e){let n=Jg(t);if(sa[n]??={},sa[n][e])return sa[n][e];let r="";switch(e){case"shortDate":r=Wo(t,Ze.Short);break;case"mediumDate":r=Wo(t,Ze.Medium);break;case"longDate":r=Wo(t,Ze.Long);break;case"fullDate":r=Wo(t,Ze.Full);break;case"shortTime":r=qo(t,Ze.Short);break;case"mediumTime":r=qo(t,Ze.Medium);break;case"longTime":r=qo(t,Ze.Long);break;case"fullTime":r=qo(t,Ze.Full);break;case"short":let o=Ut(t,"shortTime"),i=Ut(t,"shortDate");r=aa(Zo(t,Ze.Short),[o,i]);break;case"medium":let s=Ut(t,"mediumTime"),a=Ut(t,"mediumDate");r=aa(Zo(t,Ze.Medium),[s,a]);break;case"long":let c=Ut(t,"longTime"),l=Ut(t,"longDate");r=aa(Zo(t,Ze.Long),[c,l]);break;case"full":let u=Ut(t,"fullTime"),d=Ut(t,"fullDate");r=aa(Zo(t,Ze.Full),[u,d]);break}return r&&(sa[n][e]=r),r}function aa(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(n,r){return e!=null&&r in e?e[r]:n})),t}function yt(t,e,n="-",r,o){let i="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,i=n));let s=String(t);for(;s.length<e;)s="0"+s;return r&&(s=s.slice(s.length-e)),i+s}function QC(t,e){return yt(t,3).substring(0,e)}function Me(t,e,n=0,r=!1,o=!1){return function(i,s){let a=KC(t,i);if((n>0||a>-n)&&(a+=n),t===3)a===0&&n===-12&&(a=12);else if(t===6)return QC(a,e);let c=Yo(s,zt.MinusSign);return yt(a,e,c,r,o)}}function KC(t,e){switch(t){case 0:return e.getFullYear();case 1:return e.getMonth();case 2:return e.getDate();case 3:return e.getHours();case 4:return e.getMinutes();case 5:return e.getSeconds();case 6:return e.getMilliseconds();case 7:return e.getDay();default:throw new k(2301,!1)}}function le(t,e,n=Ve.Format,r=!1){return function(o,i){return XC(o,i,t,e,n,r)}}function XC(t,e,n,r,o,i){switch(n){case 2:return nm(e,o,r)[t.getMonth()];case 1:return tm(e,o,r)[t.getDay()];case 0:let s=t.getHours(),a=t.getMinutes();if(i){let l=im(e),u=sm(e,o,r),d=l.findIndex(m=>{if(Array.isArray(m)){let[p,E]=m,N=s>=p.hours&&a>=p.minutes,R=s<E.hours||s===E.hours&&a<E.minutes;if(p.hours<E.hours){if(N&&R)return!0}else if(N||R)return!0}else if(m.hours===s&&m.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return em(e,o,r)[s<12?0:1];case 3:return rm(e,r)[t.getFullYear()<=0?0:1];default:let c=n;throw new k(2302,!1)}}function ca(t){return function(e,n,r){let o=-1*r,i=Yo(n,zt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case 0:return(o>=0?"+":"")+yt(s,2,i)+yt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+yt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+yt(s,2,i)+":"+yt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+yt(s,2,i)+":"+yt(Math.abs(o%60),2,i);default:throw new k(2310,!1)}}}var JC=0,ua=4;function eD(t){let e=da(t,JC,1).getDay();return da(t,0,1+(e<=ua?ua:ua+7)-e)}function cm(t){let e=t.getDay(),n=e===0?-3:ua-e;return da(t.getFullYear(),t.getMonth(),t.getDate()+n)}function Ju(t,e=!1){return function(n,r){let o;if(e){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=cm(n),s=eD(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return yt(o,t,Yo(r,zt.MinusSign))}}function la(t,e=!1){return function(n,r){let i=cm(n).getFullYear();return yt(i,t,Yo(r,zt.MinusSign),e)}}var ed={};function tD(t){if(ed[t])return ed[t];let e;switch(t){case"G":case"GG":case"GGG":e=le(3,re.Abbreviated);break;case"GGGG":e=le(3,re.Wide);break;case"GGGGG":e=le(3,re.Narrow);break;case"y":e=Me(0,1,0,!1,!0);break;case"yy":e=Me(0,2,0,!0,!0);break;case"yyy":e=Me(0,3,0,!1,!0);break;case"yyyy":e=Me(0,4,0,!1,!0);break;case"Y":e=la(1);break;case"YY":e=la(2,!0);break;case"YYY":e=la(3);break;case"YYYY":e=la(4);break;case"M":case"L":e=Me(1,1,1);break;case"MM":case"LL":e=Me(1,2,1);break;case"MMM":e=le(2,re.Abbreviated);break;case"MMMM":e=le(2,re.Wide);break;case"MMMMM":e=le(2,re.Narrow);break;case"LLL":e=le(2,re.Abbreviated,Ve.Standalone);break;case"LLLL":e=le(2,re.Wide,Ve.Standalone);break;case"LLLLL":e=le(2,re.Narrow,Ve.Standalone);break;case"w":e=Ju(1);break;case"ww":e=Ju(2);break;case"W":e=Ju(1,!0);break;case"d":e=Me(2,1);break;case"dd":e=Me(2,2);break;case"c":case"cc":e=Me(7,1);break;case"ccc":e=le(1,re.Abbreviated,Ve.Standalone);break;case"cccc":e=le(1,re.Wide,Ve.Standalone);break;case"ccccc":e=le(1,re.Narrow,Ve.Standalone);break;case"cccccc":e=le(1,re.Short,Ve.Standalone);break;case"E":case"EE":case"EEE":e=le(1,re.Abbreviated);break;case"EEEE":e=le(1,re.Wide);break;case"EEEEE":e=le(1,re.Narrow);break;case"EEEEEE":e=le(1,re.Short);break;case"a":case"aa":case"aaa":e=le(0,re.Abbreviated);break;case"aaaa":e=le(0,re.Wide);break;case"aaaaa":e=le(0,re.Narrow);break;case"b":case"bb":case"bbb":e=le(0,re.Abbreviated,Ve.Standalone,!0);break;case"bbbb":e=le(0,re.Wide,Ve.Standalone,!0);break;case"bbbbb":e=le(0,re.Narrow,Ve.Standalone,!0);break;case"B":case"BB":case"BBB":e=le(0,re.Abbreviated,Ve.Format,!0);break;case"BBBB":e=le(0,re.Wide,Ve.Format,!0);break;case"BBBBB":e=le(0,re.Narrow,Ve.Format,!0);break;case"h":e=Me(3,1,-12);break;case"hh":e=Me(3,2,-12);break;case"H":e=Me(3,1);break;case"HH":e=Me(3,2);break;case"m":e=Me(4,1);break;case"mm":e=Me(4,2);break;case"s":e=Me(5,1);break;case"ss":e=Me(5,2);break;case"S":e=Me(6,1);break;case"SS":e=Me(6,2);break;case"SSS":e=Me(6,3);break;case"Z":case"ZZ":case"ZZZ":e=ca(0);break;case"ZZZZZ":e=ca(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=ca(1);break;case"OOOO":case"ZZZZ":case"zzzz":e=ca(2);break;default:return null}return ed[t]=e,e}function lm(t,e){t=t.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function nD(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function rD(t,e,n){let o=t.getTimezoneOffset(),i=lm(e,o);return nD(t,-1*(i-o))}function oD(t){if(Xg(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,i=1,s=1]=t.split("-").map(a=>+a);return da(o,i-1,s)}let n=parseFloat(t);if(!isNaN(t-n))return new Date(n);let r;if(r=t.match(WC))return iD(r)}let e=new Date(t);if(!Xg(e))throw new k(2311,!1);return e}function iD(t){let e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,c=Number(t[6]||0),l=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return i.call(e,s,a,c,l),e}function Xg(t){return t instanceof Date&&!isNaN(t.valueOf())}function sD(t,e){return new k(2100,!1)}var aD="mediumDate",um=new A(""),dm=new A(""),Qo=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??aD,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return am(n,s,i||this.locale,a)}catch(s){throw sD(t,s.message)}}static \u0275fac=function(r){return new(r||t)(Bt($o,16),Bt(um,24),Bt(dm,24))};static \u0275pipe=Mu({name:"date",type:t,pure:!0})}return t})();function Ko(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var er=class{};var td="browser";function fm(t){return t===td}var Xo=class{_doc;constructor(e){this._doc=e}manager},fa=(()=>{class t extends Xo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||t)(Q(ke))};static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})(),ha=new A(""),sd=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof fa));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof fa);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new k(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||t)(Q(ha),Q(oe))};static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})(),nd="ng-app-id";function pm(t){for(let e of t)e.remove()}function hm(t,e){let n=e.createElement("style");return n.textContent=t,n}function uD(t,e,n,r){let o=t.head?.querySelectorAll(`style[${nd}="${e}"],link[${nd}="${e}"]`);if(o)for(let i of o)i.removeAttribute(nd),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function od(t,e){let n=e.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),n}var ad=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,uD(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,hm);r?.forEach(o=>this.addUsage(o,this.external,od))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(pm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])pm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,hm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,od(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||t)(Q(ke),Q(js),Q(Hs,8),Q(Zn))};static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})(),rd={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"},cd=/%COMP%/g;var mm="%COMP%",dD=`_nghost-${mm}`,fD=`_ngcontent-${mm}`,pD=!0,hD=new A("",{providedIn:"root",factory:()=>pD});function gD(t){return fD.replace(cd,t)}function mD(t){return dD.replace(cd,t)}function vm(t,e){return e.map(n=>n.replace(cd,t))}var ld=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.platformIsServer=!1,this.defaultRenderer=new Jo(n,s,a,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof pa?o.applyToHost(n):o instanceof ei&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,m=this.tracingService;switch(r.encapsulation){case jt.Emulated:i=new pa(c,l,r,this.appId,u,s,a,d,m);break;case jt.ShadowDom:return new id(c,l,n,r,s,a,this.nonce,d,m);default:i=new ei(c,l,r,u,s,a,d,m);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||t)(Q(sd),Q(ad),Q(js),Q(hD),Q(ke),Q(oe),Q(Hs),Q(an,8))};static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})(),Jo=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,n,r,o,i){this.eventManager=e,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,n){return n?this.doc.createElementNS(rd[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(gm(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(gm(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){n.remove()}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new k(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;let i=rd[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let o=rd[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(Mt.DashCase|Mt.Important)?e.style.setProperty(n,r,o&Mt.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&Mt.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r,o){if(typeof e=="string"&&(e=Go().getGlobalEventTarget(this.doc,e),!e))throw new k(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,n,i)),this.eventManager.addEventListener(e,n,i,o)}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;e(n)===!1&&n.preventDefault()}}};function gm(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var id=class extends Jo{sharedStylesHost;hostEl;shadowRoot;constructor(e,n,r,o,i,s,a,c,l){super(e,i,s,c,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=o.styles;u=vm(o.id,u);for(let m of u){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=m,this.shadowRoot.appendChild(p)}let d=o.getExternalStyles?.();if(d)for(let m of d){let p=od(m,i);a&&p.setAttribute("nonce",a),this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},ei=class extends Jo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,n,r,o,i,s,a,c,l){super(e,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=l?vm(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Wn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},pa=class extends ei{contentAttr;hostAttr;constructor(e,n,r,o,i,s,a,c,l){let u=o+"-"+r.id;super(e,n,r,i,s,a,c,l,u),this.contentAttr=gD(u),this.hostAttr=mD(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}};var ga=class t extends zo{supportsDOMEvents=!0;static makeCurrent(){Ku(new t)}onAndCancel(e,n,r,o){return e.addEventListener(n,r,o),()=>{e.removeEventListener(n,r,o)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=vD();return n==null?null:yD(n)}resetBaseElement(){ti=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Ko(document.cookie,e)}},ti=null;function vD(){return ti=ti||document.head.querySelector("base"),ti?ti.getAttribute("href"):null}function yD(t){return new URL(t,document.baseURI).pathname}var _D=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})(),ym=["alt","control","meta","shift"],bD={"\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"},CD={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},_m=(()=>{class t extends Xo{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Go().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),ym.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=bD[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),ym.forEach(s=>{if(s!==o){let a=CD[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{t.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||t)(Q(ke))};static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();function ud(t,e,n){let r=J({rootComponent:t,platformRef:n?.platformRef},DD(e));return Zg(r)}function DD(t){return{appProviders:[...TD,...t?.providers??[]],platformProviders:ID}}function ED(){ga.makeCurrent()}function wD(){return new Qe}function xD(){return iu(document),document}var ID=[{provide:Zn,useValue:td},{provide:Bs,useValue:ED,multi:!0},{provide:ke,useFactory:xD}];var TD=[{provide:fo,useValue:"root"},{provide:Qe,useFactory:wD},{provide:ha,useClass:fa,multi:!0,deps:[ke]},{provide:ha,useClass:_m,multi:!0,deps:[ke]},ld,ad,sd,{provide:St,useExisting:ld},{provide:er,useClass:_D},[]];var nr=class{},ni=class{},ln=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
|
|
5
|
-
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init();for(let[n,r]of e.headers.entries())this.headers.set(n,r),this.normalizedNames.set(n,e.normalizedNames.get(n))}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let o=e.op==="a"?(this.headers.get(n)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case"d":let i=e.value;if(i===void 0)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(n);if(!a)return;a=a.filter(c=>s.indexOf(c)===-1),a.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,a)}break}}addHeaderEntry(e,n){let r=e.toLowerCase();this.maybeSetNormalizedName(e,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(e,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=e.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var va=class{encodeKey(e){return bm(e)}encodeValue(e){return bm(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function MD(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var SD=/%(\d[a-f0-9])/gi,ND={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function bm(t){return encodeURIComponent(t).replace(SD,(e,n)=>ND[n]??e)}function ma(t){return`${t}`}var Ye=class t{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new va,e.fromString){if(e.fromObject)throw new k(2805,!1);this.map=MD(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],o=Array.isArray(r)?r.map(ma):[ma(r)];this.map.set(n,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(r=>{let o=e[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[e,n]of this.cloneFrom.map.entries())this.map.set(e,n);this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=e.op==="a"?(this.map.get(e.param)||[]).slice():[];n.push(ma(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=(this.map.get(e.param)||[]).slice(),o=r.indexOf(ma(e.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null}}};var ya=class{map=new Map;set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function kD(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Cm(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Dm(t){return typeof Blob<"u"&&t instanceof Blob}function Em(t){return typeof FormData<"u"&&t instanceof FormData}function RD(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var wm="Content-Type",xm="Accept",Im="X-Request-URL",Tm="text/plain",Mm="application/json",AD=`${Mm}, ${Tm}, */*`,Vr=class t{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(e,n,r,o){this.url=n,this.method=e.toUpperCase();let i;if(kD(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new k(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),this.transferCache=i.transferCache}if(this.headers??=new ln,this.context??=new ya,!this.params)this.params=new Ye,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"||Cm(this.body)||Dm(this.body)||Em(this.body)||RD(this.body)?this.body:this.body instanceof Ye?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||Em(this.body)?null:Dm(this.body)?this.body.type||null:Cm(this.body)?null:typeof this.body=="string"?Tm:this.body instanceof Ye?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Mm:null}clone(e={}){let n=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,i=e.keepalive??this.keepalive,s=e.priority||this.priority,a=e.cache||this.cache,c=e.mode||this.mode,l=e.redirect||this.redirect,u=e.credentials||this.credentials,d=e.referrer??this.referrer,m=e.integrity||this.integrity,p=e.transferCache??this.transferCache,E=e.timeout??this.timeout,N=e.body!==void 0?e.body:this.body,R=e.withCredentials??this.withCredentials,I=e.reportProgress??this.reportProgress,me=e.headers||this.headers,or=e.params||this.params,Ae=e.context??this.context;return e.setHeaders!==void 0&&(me=Object.keys(e.setHeaders).reduce((un,dn)=>un.set(dn,e.setHeaders[dn]),me)),e.setParams&&(or=Object.keys(e.setParams).reduce((un,dn)=>un.set(dn,e.setParams[dn]),or)),new t(n,r,N,{params:or,headers:me,context:Ae,reportProgress:I,responseType:o,withCredentials:R,transferCache:p,keepalive:i,cache:a,priority:s,timeout:E,mode:c,redirect:l,credentials:u,referrer:d,integrity:m})}},tr=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(tr||{}),Br=class{headers;status;statusText;url;ok;type;redirected;constructor(e,n=200,r="OK"){this.headers=e.headers||new ln,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.redirected=e.redirected,this.ok=this.status>=200&&this.status<300}},_a=class t extends Br{constructor(e={}){super(e)}type=tr.ResponseHeader;clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ri=class t extends Br{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=tr.Response;clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0,redirected:e.redirected??this.redirected})}},jr=class extends Br{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},OD=200,PD=204;function dd(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer}}var Ca=(()=>{class t{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Vr)i=n;else{let c;o.headers instanceof ln?c=o.headers:c=new ln(o.headers);let l;o.params&&(o.params instanceof Ye?l=o.params:l=new Ye({fromObject:o.params})),i=new Vr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,integrity:o.integrity,timeout:o.timeout})}let s=Ge(i).pipe(uc(c=>this.handler.handle(c)));if(n instanceof Vr||o.observe==="events")return s;let a=s.pipe(no(c=>c instanceof ri));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Pe(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new k(2806,!1);return c.body}));case"blob":return a.pipe(Pe(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new k(2807,!1);return c.body}));case"text":return a.pipe(Pe(c=>{if(c.body!==null&&typeof c.body!="string")throw new k(2808,!1);return c.body}));default:return a.pipe(Pe(c=>c.body))}case"response":return a;default:throw new k(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 Ye().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,dd(o,r))}post(n,r,o={}){return this.request("POST",n,dd(o,r))}put(n,r,o={}){return this.request("PUT",n,dd(o,r))}static \u0275fac=function(r){return new(r||t)(Q(nr))};static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var FD=new A("");function LD(t,e){return e(t)}function VD(t,e,n){return(r,o)=>Dr(n,()=>e(r,i=>t(i,o)))}var pd=new A(""),Sm=new A(""),Nm=new A("",{providedIn:"root",factory:()=>!0});var ba=(()=>{class t extends nr{backend;injector;chain=null;pendingTasks=_(Mr);contributeToStability=_(Nm);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=this.injector.get(nr,null,{skipSelf:!0}),o=r!==null&&this.backend===r,i=this.injector.get(Sm,[],o?{self:!0}:void 0),s=Array.from(new Set([...this.injector.get(pd),...i]));this.chain=s.reduceRight((a,c)=>VD(a,c,this.injector),LD)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(yr(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(Q(ni),Q(We))};static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var jD=/^\)\]\}',?\n/,BD=RegExp(`^${Im}:`,"m");function HD(t){return"responseURL"in t&&t.responseURL?t.responseURL:BD.test(t.getAllResponseHeaders())?t.getResponseHeader(Im):null}var fd=(()=>{class t{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new k(-2800,!1);let r=this.xhrFactory;return Ge(null).pipe(io(()=>new W(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((R,I)=>s.setRequestHeader(R,I.join(","))),n.headers.has(xm)||s.setRequestHeader(xm,AD),!n.headers.has(wm)){let R=n.detectContentTypeHeader();R!==null&&s.setRequestHeader(wm,R)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let R=n.responseType.toLowerCase();s.responseType=R!=="json"?R:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let R=s.statusText||"OK",I=new ln(s.getAllResponseHeaders()),me=HD(s)||n.url;return c=new _a({headers:I,status:s.status,statusText:R,url:me}),c},u=()=>{let{headers:R,status:I,statusText:me,url:or}=l(),Ae=null;I!==PD&&(Ae=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=Ae?OD:0);let un=I>=200&&I<300;if(n.responseType==="json"&&typeof Ae=="string"){let dn=Ae;Ae=Ae.replace(jD,"");try{Ae=Ae!==""?JSON.parse(Ae):null}catch(ov){Ae=dn,un&&(un=!1,Ae={error:ov,text:Ae})}}un?(i.next(new ri({body:Ae,headers:R,status:I,statusText:me,url:or||void 0})),i.complete()):i.error(new jr({error:Ae,headers:R,status:I,statusText:me,url:or||void 0}))},d=R=>{let{url:I}=l(),me=new jr({error:R,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});i.error(me)},m=d;n.timeout&&(m=R=>{let{url:I}=l(),me=new jr({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:I||void 0});i.error(me)});let p=!1,E=R=>{p||(i.next(l()),p=!0);let I={type:tr.DownloadProgress,loaded:R.loaded};R.lengthComputable&&(I.total=R.total),n.responseType==="text"&&s.responseText&&(I.partialText=s.responseText),i.next(I)},N=R=>{let I={type:tr.UploadProgress,loaded:R.loaded};R.lengthComputable&&(I.total=R.total),i.next(I)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",m),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",E),a!==null&&s.upload&&s.upload.addEventListener("progress",N)),s.send(a),i.next({type:tr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",m),n.reportProgress&&(s.removeEventListener("progress",E),a!==null&&s.upload&&s.upload.removeEventListener("progress",N)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(Q(er))};static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})(),km=new A(""),$D="XSRF-TOKEN",UD=new A("",{providedIn:"root",factory:()=>$D}),zD="X-XSRF-TOKEN",GD=new A("",{providedIn:"root",factory:()=>zD}),oi=class{},WD=(()=>{class t{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=Ko(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||t)(Q(ke),Q(UD))};static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})(),qD=/^(?:https?:)?\/\//i;function ZD(t,e){if(!_(km)||t.method==="GET"||t.method==="HEAD"||qD.test(t.url))return e(t);let n=_(oi).getToken(),r=_(GD);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var hd=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(hd||{});function YD(t,e){return{\u0275kind:t,\u0275providers:e}}function gd(...t){let e=[Ca,fd,ba,{provide:nr,useExisting:ba},{provide:ni,useFactory:()=>_(FD,{optional:!0})??_(fd)},{provide:pd,useValue:ZD,multi:!0},{provide:km,useValue:!0},{provide:oi,useClass:WD}];for(let n of t)e.push(...n.\u0275providers);return uo(e)}function md(t){return YD(hd.Interceptors,t.map(e=>({provide:pd,useValue:e,multi:!0})))}var Rm="guitoToken";function Am(){return new URLSearchParams(window.location.search).get(Rm)??""}var Om=(t,e)=>{let n=Am();return!n||!t.url.startsWith("/api")?e(t):e(t.clone({setHeaders:{"X-Guito-Token":n}}))};function Pm(t){let e=new URL(t,window.location.origin),n=Am();return n&&e.searchParams.set(Rm,n),e.toString()}var Fm={providers:[ju({eventCoalescing:!0}),gd(md([Om]))]};var At="__working__";var Ot=class t{http=_(Ca);base="/api";mutating=b(!1);mutate(e){return cc(()=>this.mutating()?sc(()=>({status:400,error:{error:"Another Git operation is in progress."}})):(this.mutating.set(!0),e().pipe(yr(()=>this.mutating.set(!1)))))}getRepoInfo(){return this.http.get(`${this.base}/repo`)}getCommits(e,n=0){let r=new Ye;return e!==void 0&&(r=r.set("limit",String(e))),n>0&&(r=r.set("skip",String(n))),this.http.get(`${this.base}/commits`,{params:r})}searchCommits(e){let n=new Ye().set("query",e);return this.http.get(`${this.base}/commits/search`,{params:n})}getCommitDetail(e){return this.http.post(`${this.base}/commit/detail`,{hash:e})}getAllBranches(){return this.http.get(`${this.base}/branches/all`)}getCommitDiff(e){return this.http.post(`${this.base}/commit/diff`,{hash:e})}getWorkingChanges(){return this.http.get(`${this.base}/working-changes`)}getFileContent(e,n){return this.http.post(`${this.base}/file-content`,{path:e,ref:n})}fetch(){return this.mutate(()=>this.http.get(`${this.base}/fetch`))}pull(e=!1){return this.mutate(()=>this.http.post(`${this.base}/pull`,{rebase:e}))}push(e=!1){return this.mutate(()=>this.http.post(`${this.base}/push`,{force:e}))}sync(){return this.mutate(()=>this.http.post(`${this.base}/sync`,{}))}checkout(e){return this.mutate(()=>this.http.post(`${this.base}/checkout`,{ref:e}))}revert(e){return this.mutate(()=>this.http.post(`${this.base}/revert`,{commit:e}))}cherryPick(e){return this.mutate(()=>this.http.post(`${this.base}/cherry-pick`,{commit:e}))}dropCommit(e){return this.mutate(()=>this.http.post(`${this.base}/commit/drop`,{commit:e}))}resetToCommit(e,n="hard"){return this.mutate(()=>this.http.post(`${this.base}/reset-commit`,{commit:e,mode:n}))}commit(e,n){return this.mutate(()=>this.http.post(`${this.base}/commit`,{message:e,description:n}))}stage(e){return this.mutate(()=>this.http.post(`${this.base}/stage`,{files:e}))}unstage(e){return this.mutate(()=>this.http.post(`${this.base}/unstage`,{files:e}))}discard(e,n){return this.mutate(()=>this.http.post(`${this.base}/discard`,{files:e,mode:n}))}resetWorking(){return this.mutate(()=>this.http.post(`${this.base}/reset`,{}))}cleanUntracked(){return this.mutate(()=>this.http.post(`${this.base}/clean`,{}))}stashSave(e,n="all"){return this.mutate(()=>this.http.post(`${this.base}/stash/save`,{message:e,scope:n}))}createBranch(e,n){return this.mutate(()=>this.http.post(`${this.base}/branch/create`,{name:e,startPoint:n}))}deleteBranch(e,n=!1){return this.mutate(()=>this.http.post(`${this.base}/branch/delete`,{name:e,force:n}))}deleteRemoteBranch(e,n){return this.mutate(()=>this.http.post(`${this.base}/branch/delete-remote`,{remote:e,branch:n}))}renameBranch(e,n){return this.mutate(()=>this.http.post(`${this.base}/branch/rename`,{oldName:e,newName:n}))}merge(e){return this.mutate(()=>this.http.post(`${this.base}/merge`,{branch:e}))}rebase(e){return this.mutate(()=>this.http.post(`${this.base}/rebase`,{branch:e}))}createTag(e,n){return this.mutate(()=>this.http.post(`${this.base}/tag/create`,{name:e,commit:n}))}deleteTag(e){return this.mutate(()=>this.http.post(`${this.base}/tag/delete`,{name:e}))}pushTag(e,n="origin"){return this.mutate(()=>this.http.post(`${this.base}/tag/push`,{name:e,remote:n}))}getSettings(){return this.http.get(`${this.base}/settings`)}saveSettings(e){return this.http.post(`${this.base}/settings`,{azureDevOpsUrl:e})}createPr(e){return this.mutate(()=>this.http.post(`${this.base}/azure-devops/pullrequest`,e))}searchReviewers(e){return this.http.get(`${this.base}/azure-devops/reviewers`,{params:new Ye().set("query",e)}).pipe(Pe(n=>n.reviewers))}searchWorkItems(e){return this.http.get(`${this.base}/azure-devops/workitems`,{params:new Ye().set("query",e)}).pipe(Pe(n=>n.workItems))}getPrTags(){return this.http.get(`${this.base}/azure-devops/tags`).pipe(Pe(e=>e.tags.map(n=>({name:n}))))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})};function Da(t){let e=[],n=new Int32Array(t.length),r=o=>{let i=e.indexOf(o);return i===-1&&(i=e.indexOf(null),i===-1&&(e.push(null),i=e.length-1),e[i]=o),i};for(let o=0;o<t.length;o++){let{hash:i,parents:s}=t[o],a=e.map((l,u)=>l===i?u:-1).filter(l=>l!==-1),c;if(a.length>0){c=a[0];for(let l=1;l<a.length;l++)e[a[l]]=null}else c=r(i);e[c]=s[0]??null;for(let l=1;l<s.length;l++)r(s[l]);n[o]=c}return n}var Lm=["#3794ff","#4ec9b0","#d7ba7d","#c586c0","#89d185","#ce9178","#d16969","#569cd6","#b5cea8","#dcdcaa"];function ii(t){return Lm[Math.abs(t)%Lm.length]}function Vm(t){let e=0;for(let n=0;n<t.length;n++)e=e*31+t.charCodeAt(n)|0;return Math.abs(e)}var Ea=class t{loading=null;load(){return this.loading||(this.loading=new Promise((e,n)=>{let r=window;if(r.monaco){e(r.monaco);return}let o=document.createElement("script");o.src="vs/loader.js",o.async=!0,o.onload=()=>{let i=r.require;if(!i){n(new Error("Monaco AMD loader not found."));return}i.config({paths:{vs:"vs"}}),i(["vs/editor/editor.main"],()=>{this.applyTheme(r.monaco),e(r.monaco)})},o.onerror=()=>{this.loading=null,n(new Error("Failed to load the Monaco editor."))},document.head.appendChild(o)})),this.loading}applyTheme(e){e.editor.defineTheme("guito",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#1e1e1e","editor.foreground":"#cccccc","editorGutter.background":"#1e1e1e","editorLineNumber.foreground":"#5a5a5a","editorLineNumber.activeForeground":"#cccccc","diffEditor.insertedTextBackground":"#89d18526","diffEditor.removedTextBackground":"#f4877126","diffEditor.insertedLineBackground":"#89d1851a","diffEditor.removedLineBackground":"#f487711a","scrollbarSlider.background":"#4a4a4a80","scrollbarSlider.hoverBackground":"#5a5a5a99","editorWidget.background":"#232323","editorWidget.border":"#3c3c3c","editorSuggestWidget.background":"#232323"}})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})};var QD=["host"];function KD(t,e){if(t&1&&(w(0,"span",6),y(1),x()),t&2){let n=h();f(),q("+",n.file().additions)}}function XD(t,e){if(t&1&&(w(0,"span",7),y(1),x()),t&2){let n=h();f(),q("\u2212",n.file().deletions)}}function JD(t,e){t&1&&(K(),he(0,"line",11))}function eE(t,e){t&1&&(K(),he(0,"line",12))}function tE(t,e){t&1&&(w(0,"div",18),y(1,"Loading diff\u2026"),x())}function nE(t,e){if(t&1&&(w(0,"div",19),y(1),x()),t&2){let n=h();f(),U(n.error())}}function rE(t,e){t&1&&(w(0,"div",18),y(1,"Binary file not shown."),x())}var oE=0,Hr=class t{git=_(Ot);monacoService=_(Ea);file=V.required();originalRef=V.required();modifiedRef=V.required();closed=Y();host=$t.required("host");loading=b(!0);error=b("");binary=b(!1);sideBySide=b(!0);destroyed=!1;editor=null;models=[];onEscape(){this.closed.emit()}ngAfterViewInit(){return ir(this,null,function*(){this.loading.set(!0),this.error.set(""),this.binary.set(!1);try{let e=yield this.monacoService.load();if(this.destroyed)return;let n=this.file(),r=n.status==="added"&&!n.oldPath?"EMPTY":this.originalRef(),[o,i]=yield Promise.all([$i(this.git.getFileContent(n.oldPath||n.path,r)),$i(this.git.getFileContent(n.path,this.modifiedRef()))]);if(this.destroyed)return;if(o.binary||i.binary){this.binary.set(!0),this.loading.set(!1);return}let s=++oE,a=e.editor.createModel(o.content,void 0,e.Uri.parse(`inmemory://diff/${s}/original/${n.oldPath||n.path}`)),c=e.editor.createModel(i.content,void 0,e.Uri.parse(`inmemory://diff/${s}/modified/${n.path}`));this.models=[a,c],this.editor=e.editor.createDiffEditor(this.host().nativeElement,{theme:"guito",readOnly:!0,originalEditable:!1,renderSideBySide:this.sideBySide(),ignoreTrimWhitespace:!1,automaticLayout:!0,fontSize:12,fontFamily:"ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace",minimap:{enabled:!1},scrollBeyondLastLine:!1,renderOverviewRuler:!1,hideUnchangedRegions:{enabled:!0,contextLineCount:3},scrollbar:{verticalScrollbarSize:10,horizontalScrollbarSize:10},padding:{top:8}}),this.editor.setModel({original:a,modified:c}),this.loading.set(!1)}catch{this.error.set("Failed to load the diff."),this.loading.set(!1)}})}ngOnDestroy(){this.destroyed=!0,this.editor?.dispose(),this.editor=null;for(let e of this.models)e.dispose();this.models=[]}toggleLayout(){this.sideBySide.update(e=>!e),this.editor?.updateOptions({renderSideBySide:this.sideBySide()})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ye({type:t,selectors:[["app-diff-dialog"]],viewQuery:function(n,r){n&1&&kt(r.host,QD,5),n&2&&Ht()},hostBindings:function(n,r){n&1&&S("keydown.escape",function(){return r.onEscape()},st)},inputs:{file:[1,"file"],originalRef:[1,"originalRef"],modifiedRef:[1,"modifiedRef"]},outputs:{closed:"closed"},decls:25,vars:10,consts:[["host",""],[1,"backdrop",3,"click"],["role","dialog","aria-modal","true",1,"dialog"],[1,"dialog-head"],[1,"path",3,"title"],[1,"counts"],[1,"additions"],[1,"deletions"],["type","button","title","Toggle diff layout",1,"icon-btn",3,"click"],["viewBox","0 0 24 24","aria-hidden","true"],["x","3","y","4","width","18","height","16","rx","2"],["x1","12","y1","4","x2","12","y2","20"],["x1","3","y1","12","x2","21","y2","12"],["type","button","title","Close","aria-label","Close diff",1,"icon-btn",3,"click"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],[1,"dialog-body"],[1,"editor-host"],[1,"state"],[1,"state","state-error"]],template:function(n,r){if(n&1){let o=$();w(0,"div",1),Z("click",function(){return C(o),D(r.closed.emit())}),x(),w(1,"div",2)(2,"header",3)(3,"span"),y(4),x(),w(5,"span",4),y(6),x(),w(7,"span",5),T(8,KD,2,1,"span",6),T(9,XD,2,1,"span",7),x(),w(10,"button",8),Z("click",function(){return C(o),D(r.toggleLayout())}),K(),w(11,"svg",9),he(12,"rect",10),T(13,JD,1,0,":svg:line",11)(14,eE,1,0,":svg:line",12),x()(),xe(),w(15,"button",13),Z("click",function(){return C(o),D(r.closed.emit())}),K(),w(16,"svg",9),he(17,"line",14)(18,"line",15),x()()(),xe(),w(19,"div",16),he(20,"div",17,0),T(22,tE,2,0,"div",18)(23,nE,2,1,"div",19)(24,rE,2,0,"div",18),x()()}n&2&&(f(3),Jn("status status-"+r.file().status),f(),U(r.file().status),f(),ge("title",r.file().path),f(),U(r.file().path),f(2),M(r.file().additions>0?8:-1),f(),M(r.file().deletions>0?9:-1),f(),se("aria-label",r.sideBySide()?"Switch to inline view":"Switch to side-by-side view"),f(3),M(r.sideBySide()?13:14),f(9),M(r.loading()?22:r.error()?23:r.binary()?24:-1))},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0000008c;z-index:200}.dialog[_ngcontent-%COMP%]{position:fixed;top:4vh;left:4vw;right:4vw;bottom:4vh;display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--border);border-radius:8px;box-shadow:0 12px 48px #0009;overflow:hidden;z-index:201}.dialog-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;flex:none;height:42px;padding:0 10px;background:var(--bg-alt);border-bottom:1px solid var(--border)}.status[_ngcontent-%COMP%]{flex:none;padding:1px 7px;border-radius:3px;font-size:10px;text-transform:uppercase;letter-spacing:.4px}.status-added[_ngcontent-%COMP%]{background:#89d18526;color:#89d185}.status-deleted[_ngcontent-%COMP%]{background:#f4877126;color:#f48771}.status-modified[_ngcontent-%COMP%]{background:#3794ff26;color:#4fc1ff}.status-renamed[_ngcontent-%COMP%]{background:#c586c026;color:#c586c0}.status-binary[_ngcontent-%COMP%]{background:#ffffff14;color:#9d9d9d}.path[_ngcontent-%COMP%]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:12px;color:var(--text)}.counts[_ngcontent-%COMP%]{flex:none;display:flex;gap:6px;font-family:var(--mono);font-size:11px}.additions[_ngcontent-%COMP%]{color:#89d185}.deletions[_ngcontent-%COMP%]{color:#f48771}.icon-btn[_ngcontent-%COMP%]{flex:none;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:4px;background:transparent;color:var(--text);cursor:pointer}.icon-btn[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-bright)}.icon-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.dialog-body[_ngcontent-%COMP%]{position:relative;flex:1;min-height:0}.editor-host[_ngcontent-%COMP%]{position:absolute;inset:0}.state[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--bg);color:var(--text-dim);font-size:13px}.state-error[_ngcontent-%COMP%]{color:var(--red)}"],changeDetection:0})};var iE=(t,e)=>e.path;function sE(t,e){if(t&1&&(g(0,"span",15),y(1,"\u2022"),v(),g(2,"span"),y(3),Bo(4,"date"),v(),g(5,"span",15),y(6,"\u2022"),v(),g(7,"code",16),y(8),v()),t&2){let n=h();f(3),U(Ho(4,2,n.commit().date,"d MMM y HH:mm")),f(5),U(n.commit().hash.slice(0,8))}}function aE(t,e){if(t&1&&(g(0,"pre",10),y(1),v()),t&2){let n=h();f(),U(n.body())}}function cE(t,e){t&1&&(g(0,"div",12),y(1,"Loading changes\u2026"),v())}function lE(t,e){if(t&1&&(g(0,"div",13),y(1),v()),t&2){let n=h();f(),U(n.error())}}function uE(t,e){t&1&&(g(0,"div",12),y(1,"No changes."),v())}function dE(t,e){if(t&1&&(g(0,"span",22),y(1),v()),t&2){let n=h().$implicit;f(),q("+",n.additions)}}function fE(t,e){if(t&1&&(g(0,"span",23),y(1),v()),t&2){let n=h().$implicit;f(),q("\u2212",n.deletions)}}function pE(t,e){if(t&1){let n=$();g(0,"button",19),S("click",function(){let o=C(n).$implicit,i=h(3);return D(i.openFile(o))}),g(1,"span"),y(2),v(),g(3,"span",20),y(4),v(),g(5,"span",21),T(6,dE,2,1,"span",22),T(7,fE,2,1,"span",23),v(),K(),g(8,"svg",24),Ee(9,"polyline",25),v()()}if(t&2){let n=e.$implicit;f(),Jn("file-status status-"+n.status),f(),U(n.status),f(),P("title",n.path),f(),U(n.path),f(2),M(n.additions>0?6:-1),f(),M(n.deletions>0?7:-1)}}function hE(t,e){if(t&1&&(g(0,"div",17),ae(1,pE,10,7,"button",18,iE),v()),t&2){let n=h();f(),ce(n.files)}}function gE(t,e){t&1&&T(0,uE,2,0,"div",12)(1,hE,3,0,"div",17),t&2&&M(e.files.length===0?0:1)}function mE(t,e){if(t&1){let n=$();g(0,"app-diff-dialog",26),S("closed",function(){C(n);let o=h();return D(o.dialogFile.set(null))}),v()}if(t&2){let n=h();P("file",e)("originalRef",n.originalRef())("modifiedRef",n.modifiedRef())}}var wa=class t{git=_(Ot);commit=V.required();closed=Y();diff=b(null);loading=b(!1);error=b("");dialogFile=b(null);body=b("");bodySub=null;workingHash=At;isWorking=j(()=>this.commit().hash===this.workingHash);originalRef=j(()=>this.isWorking()?"HEAD":`${this.commit().hash}^`);modifiedRef=j(()=>this.isWorking()?"WORKING":this.commit().hash);initials=j(()=>{let e=this.commit().author_name.trim();if(!e)return"?";let n=e.split(/\s+/),r=n[0].charAt(0),o=n.length>1?n[n.length-1].charAt(0):"";return(r+o).toUpperCase()});avatarColor=j(()=>ii(Vm(this.commit().author_name)));constructor(){Ie(()=>{this.loadDiff(this.commit().hash),this.loadBody(this.commit())})}ngOnDestroy(){this.bodySub?.unsubscribe()}openFile(e){this.dialogFile.set(e)}loadBody(e){if(this.bodySub?.unsubscribe(),this.body.set(""),e.body!==void 0){this.body.set(e.body);return}this.bodySub=this.git.getCommitDetail(e.hash).subscribe({next:n=>this.body.set(n.body??""),error:()=>this.body.set("")})}loadDiff(e){if(this.loading.set(!0),this.error.set(""),this.diff.set(null),this.dialogFile.set(null),e===At){this.git.getWorkingChanges().subscribe({next:n=>{this.loading.set(!1),this.diff.set({hash:At,files:n.files})},error:()=>{this.loading.set(!1),this.error.set("Failed to load the working changes.")}});return}this.git.getCommitDiff(e).subscribe({next:n=>{this.loading.set(!1),this.diff.set(n)},error:()=>{this.loading.set(!1),this.error.set("Failed to load the commit diff.")}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ye({type:t,selectors:[["app-commit-detail"]],inputs:{commit:[1,"commit"]},outputs:{closed:"closed"},decls:20,vars:9,consts:[[1,"detail"],[1,"detail-head"],["title","Close",1,"close-btn",3,"click"],["viewBox","0 0 24 24","aria-hidden","true"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],[1,"subject"],[1,"meta"],[1,"avatar"],[1,"author"],[1,"body"],[1,"detail-body"],[1,"state"],[1,"state","state-error"],[3,"file","originalRef","modifiedRef"],[1,"separator"],[1,"hash"],[1,"file-list"],["type","button",1,"file-row"],["type","button",1,"file-row",3,"click"],[1,"file-path",3,"title"],[1,"file-counts"],[1,"additions"],[1,"deletions"],["viewBox","0 0 24 24","aria-hidden","true",1,"chevron"],["points","9 18 15 12 9 6"],[3,"closed","file","originalRef","modifiedRef"]],template:function(n,r){if(n&1&&(g(0,"aside",0)(1,"header",1)(2,"button",2),S("click",function(){return r.closed.emit()}),K(),g(3,"svg",3),Ee(4,"line",4)(5,"line",5),v()(),xe(),g(6,"h2",6),y(7),v(),g(8,"div",7)(9,"span",8),y(10),v(),g(11,"span",9),y(12),v(),T(13,sE,9,5),v(),T(14,aE,2,1,"pre",10),v(),g(15,"div",11),T(16,cE,2,0,"div",12)(17,lE,2,1,"div",13)(18,gE,2,1),v()(),T(19,mE,1,3,"app-diff-dialog",14)),n&2){let o,i;f(7),U(r.commit().message),f(2),ie("background",r.avatarColor()),f(),U(r.initials()),f(2),U(r.commit().author_name),f(),M(r.isWorking()?-1:13),f(),M(r.body().trim()?14:-1),f(2),M(r.loading()?16:r.error()?17:(o=r.diff())?18:-1,o),f(3),M((i=r.dialogFile())?19:-1,i)}},dependencies:[Hr,Qo],styles:["[_nghost-%COMP%]{display:flex;flex:none;flex-direction:column;width:480px;min-height:0}.detail[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;flex:1;min-height:0;background:var(--bg-alt);border-left:1px solid var(--border)}.file-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0;padding:6px;gap:2px;overflow-y:auto}.file-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border:none;border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-family:inherit;text-align:left;cursor:pointer}.file-row[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.chevron[_ngcontent-%COMP%]{flex:none;width:13px;height:13px;fill:none;stroke:var(--text-dim);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.file-row[_ngcontent-%COMP%]:hover .chevron[_ngcontent-%COMP%]{stroke:var(--accent)}.detail-head[_ngcontent-%COMP%]{flex:none;padding:14px 16px 12px;border-bottom:1px solid var(--border);position:relative}.close-btn[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:4px;background:transparent;color:var(--text);cursor:pointer}.close-btn[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-bright)}.close-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.subject[_ngcontent-%COMP%]{margin:0 30px 10px 0;font-size:14px;font-weight:600;color:var(--text-bright);word-break:break-word}.meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--text-dim);font-size:12px}.avatar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;color:#1e1e1e;font-size:10px;font-weight:700}.author[_ngcontent-%COMP%]{color:var(--text)}.hash[_ngcontent-%COMP%]{font-family:var(--mono);color:var(--accent);background:#3794ff1a;padding:1px 6px;border-radius:3px}.body[_ngcontent-%COMP%]{margin:10px 0 0;padding:8px 10px;background:#ffffff0a;border-radius:4px;font-size:12px;font-family:inherit;color:var(--text);white-space:pre-wrap;word-break:break-word;max-height:160px;overflow-y:auto}.detail-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.state[_ngcontent-%COMP%]{padding:24px;text-align:center;color:var(--text-dim)}.state-error[_ngcontent-%COMP%]{color:var(--red)}.file-status[_ngcontent-%COMP%]{flex:none;padding:0 6px;border-radius:3px;font-size:10px;text-transform:uppercase;letter-spacing:.4px}.status-added[_ngcontent-%COMP%]{background:#89d18526;color:#89d185}.status-deleted[_ngcontent-%COMP%]{background:#f4877126;color:#f48771}.status-modified[_ngcontent-%COMP%]{background:#3794ff26;color:#4fc1ff}.status-renamed[_ngcontent-%COMP%]{background:#c586c026;color:#c586c0}.status-binary[_ngcontent-%COMP%]{background:#ffffff14;color:#9d9d9d}.file-path[_ngcontent-%COMP%]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:12px;color:var(--text)}.file-counts[_ngcontent-%COMP%]{flex:none;font-family:var(--mono);font-size:11px}.additions[_ngcontent-%COMP%]{color:#89d185}.deletions[_ngcontent-%COMP%]{color:#f48771}.binary[_ngcontent-%COMP%]{padding:12px;color:var(--text-dim);font-size:12px}"],changeDetection:0})};function si(t,e=0){return vE(t)?Number(t):arguments.length===2?e:0}function vE(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function jm(t){return t instanceof vt?t.nativeElement:t}var vd;try{vd=typeof Intl<"u"&&Intl.v8BreakIterator}catch{vd=!1}var xa=(()=>{class t{_platformId=_(Zn);isBrowser=this._platformId?fm(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||vd)&&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||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var yE=new A("cdk-dir-doc",{providedIn:"root",factory:_E});function _E(){return _(ke)}var bE=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function CE(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?bE.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Bm=(()=>{class t{get value(){return this.valueSignal()}valueSignal=b("ltr");change=new mt;constructor(){let n=_(yE,{optional:!0});if(n){let r=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.valueSignal.set(CE(r||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _t=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(_t||{}),Ia,rr;function Hm(){if(rr==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return rr=!1,rr;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)rr=!0;else{let t=Element.prototype.scrollTo;t?rr=!/\{\s*\[native code\]\s*\}/.test(t.toString()):rr=!1}}return rr}function $r(){if(typeof document!="object"||!document)return _t.NORMAL;if(Ia==null){let t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",t.appendChild(n),document.body.appendChild(t),Ia=_t.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Ia=t.scrollLeft===0?_t.NEGATED:_t.INVERTED),t.remove()}return Ia}var Ta=class{};function $m(t){return t&&typeof t.connect=="function"&&!(t instanceof Yr)}var Ma=class extends Ta{_data;constructor(e){super(),this._data=e}connect(){return to(this._data)?this._data:Ge(this._data)}disconnect(){}},ai=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(ai||{}),yd=new A("_ViewRepeater"),Sa=class{viewCacheSize=20;_viewCache=[];applyChanges(e,n,r,o,i){e.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=()=>r(s,a,c);l=this._insertView(d,c,n,o(s)),u=l?ai.INSERTED:ai.REPLACED}else c==null?(this._detachAndCacheView(a,n),u=ai.REMOVED):(l=this._moveView(a,c,n,o(s)),u=ai.MOVED);i&&i({context:l?.context,operation:u,record:s})})}detach(){for(let e of this._viewCache)e.destroy();this._viewCache=[]}_insertView(e,n,r,o){let i=this._insertViewFromCache(n,r);if(i){i.context.$implicit=o;return}let s=e();return r.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(e,n){let r=n.detach(e);this._maybeCacheView(r,n)}_moveView(e,n,r,o){let i=r.get(e);return r.move(i,n),i.context.$implicit=o,i}_maybeCacheView(e,n){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(e);else{let r=n.indexOf(e);r===-1?e.destroy():n.remove(r)}}_insertViewFromCache(e,n){let r=this._viewCache.pop();return r&&n.insert(r,e),r||null}};var DE=["contentWrapper"],EE=["*"],Gm=new A("VIRTUAL_SCROLL_STRATEGY"),_d=class{_scrolledIndexChange=new ve;scrolledIndexChange=this._scrolledIndexChange.pipe(Pt());_viewport=null;_itemSize;_minBufferPx;_maxBufferPx;constructor(e,n,r){this._itemSize=e,this._minBufferPx=n,this._maxBufferPx=r}attach(e){this._viewport=e,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(e,n,r){r<n,this._itemSize=e,this._minBufferPx=n,this._maxBufferPx=r,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(e,n){this._viewport&&this._viewport.scrollToOffset(e*this._itemSize,n)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;let e=this._viewport.getRenderedRange(),n={start:e.start,end:e.end},r=this._viewport.getViewportSize(),o=this._viewport.getDataLength(),i=this._viewport.measureScrollOffset(),s=this._itemSize>0?i/this._itemSize:0;if(n.end>o){let c=Math.ceil(r/this._itemSize),l=Math.max(0,Math.min(s,o-c));s!=l&&(s=l,i=l*this._itemSize,n.start=Math.floor(s)),n.end=Math.max(0,Math.min(o,n.start+c))}let a=i-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(o,Math.ceil(s+(r+this._minBufferPx)/this._itemSize))}else{let c=n.end*this._itemSize-(i+r);if(c<this._minBufferPx&&n.end!=o){let l=Math.ceil((this._maxBufferPx-c)/this._itemSize);l>0&&(n.end=Math.min(o,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 wE(t){return t._scrollStrategy}var Wm=(()=>{class t{get itemSize(){return this._itemSize}set itemSize(n){this._itemSize=si(n)}_itemSize=20;get minBufferPx(){return this._minBufferPx}set minBufferPx(n){this._minBufferPx=si(n)}_minBufferPx=100;get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(n){this._maxBufferPx=si(n)}_maxBufferPx=200;_scrollStrategy=new _d(this.itemSize,this.minBufferPx,this.maxBufferPx);ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Qn({type:t,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[jo([{provide:Gm,useFactory:wE,deps:[br(()=>t)]}]),Vs]})}return t})(),xE=20,IE=(()=>{class t{_ngZone=_(oe);_platform=_(xa);_renderer=_(St).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new ve;_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=xE){return this._platform.isBrowser?new W(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=n>0?this._scrolled.pipe(ro(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Ge()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let o=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(no(i=>!i||o.indexOf(i)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((o,i)=>{this._scrollableContainsElement(i,n)&&r.push(i)}),r}_scrollableContainsElement(n,r){let o=jm(r),i=n.getElementRef().nativeElement;do if(o==i)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(r){return new(r||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qm=(()=>{class t{elementRef=_(vt);scrollDispatcher=_(IE);ngZone=_(oe);dir=_(Bm,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new ve;_renderer=_(Xs);_cleanupScroll;_elementScrolled=new ve;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,o=this.dir&&this.dir.value=="rtl";n.left==null&&(n.left=o?n.end:n.start),n.right==null&&(n.right=o?n.start:n.end),n.bottom!=null&&(n.top=r.scrollHeight-r.clientHeight-n.bottom),o&&$r()!=_t.NORMAL?(n.left!=null&&(n.right=r.scrollWidth-r.clientWidth-n.left),$r()==_t.INVERTED?n.left=n.right:$r()==_t.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;Hm()?r.scrollTo(n):(n.top!=null&&(r.scrollTop=n.top),n.left!=null&&(r.scrollLeft=n.left))}measureScrollOffset(n){let r="left",o="right",i=this.elementRef.nativeElement;if(n=="top")return i.scrollTop;if(n=="bottom")return i.scrollHeight-i.clientHeight-i.scrollTop;let s=this.dir&&this.dir.value=="rtl";return n=="start"?n=s?o:r:n=="end"&&(n=s?r:o),s&&$r()==_t.INVERTED?n==r?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:s&&$r()==_t.NEGATED?n==r?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:n==r?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Qn({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),TE=20,ME=(()=>{class t{_platform=_(xa);_listeners;_viewportSize;_change=new ve;_document=_(ke);constructor(){let n=_(oe),r=_(St).createRenderer(null,null);n.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=i=>this._change.next(i);this._listeners=[r.listen("window","resize",o),r.listen("window","orientationchange",o)]}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:o}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+o,right:n.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),o=n.documentElement,i=o.getBoundingClientRect(),s=-i.top||n.body.scrollTop||r.scrollY||o.scrollTop||0,a=-i.left||n.body.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:s,left:a}}change(n=TE){return n>0?this._change.pipe(ro(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||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Um=new A("VIRTUAL_SCROLLABLE"),SE=(()=>{class t extends qm{constructor(){super()}measureViewportSize(n){let r=this.elementRef.nativeElement;return n==="horizontal"?r.clientWidth:r.clientHeight}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Qn({type:t,features:[Fo]})}return t})();function NE(t,e){return t.start==e.start&&t.end==e.end}var kE=typeof requestAnimationFrame<"u"?ic:oc,ci=(()=>{class t extends SE{elementRef=_(vt);_changeDetectorRef=_(Yu);_scrollStrategy=_(Gm,{optional:!0});scrollable=_(Um,{optional:!0});_platform=_(xa);_detachedSubject=new ve;_renderedRangeSubject=new ve;get orientation(){return this._orientation}set orientation(n){this._orientation!==n&&(this._orientation=n,this._calculateSpacerSize())}_orientation="vertical";appendOnly=!1;scrolledIndexChange=new W(n=>this._scrollStrategy.scrolledIndexChange.subscribe(r=>Promise.resolve().then(()=>this.ngZone.run(()=>n.next(r)))));_contentWrapper;renderedRangeStream=this._renderedRangeSubject;_totalContentSize=0;_totalContentWidth=b("");_totalContentHeight=b("");_renderedContentTransform;_renderedRange={start:0,end:0};_dataLength=0;_viewportSize=0;_forOf;_renderedContentOffset=0;_renderedContentOffsetNeedsRewrite=!1;_changeDetectionNeeded=b(!1);_runAfterChangeDetection=[];_viewportChanges=pe.EMPTY;_injector=_(Be);_isDestroyed=!1;constructor(){super();let n=_(ME);this._scrollStrategy,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);let r=Ie(()=>{this._changeDetectionNeeded()&&this._doChangeDetection()},{injector:_(Kn).injector});_(Ue).onDestroy(()=>{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),ro(0,kE),Dn(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(Dn(this._detachedSubject)).subscribe(r=>{let o=r.length;o!==this._dataLength&&(this._dataLength=o,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){NE(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 o=this.dir&&this.dir.value=="rtl",i=this.orientation=="horizontal",s=i?"X":"Y",c=`translate${s}(${Number((i&&o?-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 o={behavior:r};this.orientation==="horizontal"?o.start=n:o.top=n,this.scrollable.scrollTo(o)}scrollToIndex(n,r="auto"){this._scrollStrategy.scrollToIndex(n,r)}measureScrollOffset(n){let r;return this.scrollable==this?r=o=>super.measureScrollOffset(o):r=o=>this.scrollable.measureScrollOffset(o),Math.max(0,r(n??(this.orientation==="horizontal"?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(n){let r,o="left",i="right",s=this.dir?.value=="rtl";n=="start"?r=s?i:o:n=="end"?r=s?o:i: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),!ze(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,mu(()=>{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||t)};static \u0275cmp=ye({type:t,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(r,o){if(r&1&&Pu(DE,7),r&2){let i;Fu(i=Lu())&&(o._contentWrapper=i.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(r,o){r&2&&Re("cdk-virtual-scroll-orientation-horizontal",o.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",o.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",Yg]},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[jo([{provide:qm,useFactory:(n,r)=>n||r,deps:[[new nu,new tu(Um)],t]}]),Fo],ngContentSelectors:EE,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(r,o){r&1&&(Au(),w(0,"div",1,0),Ou(2),x(),he(3,"div",2)),r&2&&(f(3),ie("width",o._totalContentWidth())("height",o._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}
|
|
6
|
-
`],encapsulation:2,changeDetection:0})}return t})();function zm(t,e,n){let r=n;if(!r.getBoundingClientRect)return 0;let o=r.getBoundingClientRect();return t==="horizontal"?e==="start"?o.left:o.right:e==="start"?o.top:o.bottom}var Zm=(()=>{class t{_viewContainerRef=_(Yn);_template=_(sn);_differs=_(ia);_viewRepeater=_(yd);_viewport=_(ci,{skipSelf:!0});viewChange=new ve;_dataSourceChanges=new ve;get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(n){this._cdkVirtualForOf=n,$m(n)?this._dataSourceChanges.next(n):this._dataSourceChanges.next(new Ma(to(n)?n:Array.from(n||[])))}_cdkVirtualForOf;get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(n){this._needsUpdate=!0,this._cdkVirtualForTrackBy=n?(r,o)=>n(r+(this._renderedRange?this._renderedRange.start:0),o):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=si(n)}dataStream=this._dataSourceChanges.pipe(Ui(null),dc(),io(([n,r])=>this._changeDataSource(n,r)),pc(1));_differ=null;_data;_renderedItems;_renderedRange;_needsUpdate=!1;_destroyed=new ve;constructor(){let n=_(oe);this.dataStream.subscribe(r=>{this._data=r,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Dn(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 o=n.start-this._renderedRange.start,i=n.end-n.start,s,a;for(let c=0;c<i;c++){let l=this._viewContainerRef.get(c+o);if(l&&l.rootNodes.length){s=a=l.rootNodes[0];break}}for(let c=i-1;c>-1;c--){let l=this._viewContainerRef.get(c+o);if(l&&l.rootNodes.length){a=l.rootNodes[l.rootNodes.length-1];break}}return s&&a?zm(r,"end",a)-zm(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):Ge()}_updateContext(){let n=this._data.length,r=this._viewContainerRef.length;for(;r--;){let o=this._viewContainerRef.get(r);o.context.index=this._renderedRange.start+r,o.context.count=n,this._updateComputedContextProperties(o.context),o.detectChanges()}}_applyChanges(n){this._viewRepeater.applyChanges(n,this._viewContainerRef,(i,s,a)=>this._getEmbeddedViewArgs(i,a),i=>i.item),n.forEachIdentityChange(i=>{let s=this._viewContainerRef.get(i.currentIndex);s.context.$implicit=i.item});let r=this._data.length,o=this._viewContainerRef.length;for(;o--;){let i=this._viewContainerRef.get(o);i.context.index=this._renderedRange.start+o,i.context.count=r,this._updateComputedContextProperties(i.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||t)};static \u0275dir=Qn({type:t,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[jo([{provide:yd,useClass:Sa}])]})}return t})();var RE=2e3,Na=class t{worker=null;workerBroken=!1;nextId=0;pending=new Map;compute(e){return e.length<=RE?Ge(Da(e)):new W(n=>{let r=this.ensureWorker();if(!r){n.next(Da(e)),n.complete();return}let o=++this.nextId;this.pending.set(o,{rows:e,subscriber:n});let i=setTimeout(()=>this.fallback(),15e3);try{r.postMessage({id:o,hashes:e.map(s=>s.hash),parents:e.map(s=>[...s.parents])})}catch{this.fallback()}return()=>{clearTimeout(i),this.pending.delete(o)}})}fallback(){this.workerBroken=!0,this.worker?.terminate(),this.worker=null;for(let[e,n]of this.pending)this.pending.delete(e),n.subscriber.next(Da(n.rows)),n.subscriber.complete()}ensureWorker(){if(this.worker)return this.worker;if(this.workerBroken||typeof Worker>"u")return null;try{return this.worker=new Worker(new URL("worker-O4G7QTZ6.js",import.meta.url),{type:"module"}),this.worker.onmessage=e=>{let n=this.pending.get(e.data.id);if(n){if(!(e.data.lanes instanceof Int32Array)||e.data.lanes.length!==n.rows.length){this.fallback();return}n.subscriber.next(e.data.lanes),n.subscriber.complete()}},this.worker.onerror=()=>this.fallback(),this.worker.onmessageerror=()=>this.fallback(),this.worker}catch{return this.fallback(),null}}ngOnDestroy(){this.worker?.terminate();for(let e of this.pending.values())e.subscriber.complete();this.pending.clear()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})};function Ym(t){return t?t.split(",").map(e=>e.trim()).filter(Boolean).map(e=>e.startsWith("HEAD -> ")?{type:"head",name:e.slice(8)}:e==="HEAD"?{type:"head",name:"HEAD"}:e.startsWith("tag: ")?{type:"tag",name:e.slice(5)}:e.includes("/")?{type:"remote",name:e}:{type:"local",name:e}):[]}function bd(t){let e=t.refs;return e?e==="HEAD"||e.startsWith("HEAD,")||e.startsWith("HEAD ->"):!1}function ka(t,e){if(typeof localStorage>"u")return e;try{let n=localStorage.getItem(t);return n===null?e:JSON.parse(n)}catch{return e}}function Ra(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,JSON.stringify(e))}catch{}}var AE=(t,e)=>e.hash,OE=(t,e)=>e.name;function PE(t,e){if(t&1&&(g(0,"span",38),y(1),v()),t&2){let n=h();f(),q("",n.staged.length," staged")}}function FE(t,e){if(t&1&&(g(0,"span",39),y(1),v()),t&2){let n=h();f(),q("",n.unstaged.length," unstaged")}}function LE(t,e){if(t&1&&(g(0,"span",40),y(1),v()),t&2){let n=h();f(),q("",n.untracked.length," untracked")}}function VE(t,e){if(t&1&&(T(0,PE,2,1,"span",38),T(1,FE,2,1,"span",39),T(2,LE,2,1,"span",40)),t&2){let n=e;M(n.staged.length>0?0:-1),f(),M(n.unstaged.length>0?1:-1),f(),M(n.untracked.length>0?2:-1)}}function jE(t,e){if(t&1){let n=$();g(0,"div",21),S("click",function(){C(n);let o=h();return D(o.commitClick.emit(o.workingCommit()))})("contextmenu",function(o){C(n);let i=h();return D(i.onWorkingContextMenu(o))}),g(1,"div",22),K(),g(2,"svg",23),Ee(3,"path",24)(4,"path",25),v()(),xe(),g(5,"div",26)(6,"span",27),K(),g(7,"svg",28),Ee(8,"circle",29)(9,"path",30)(10,"path",31)(11,"path",32)(12,"path",33),v(),xe(),g(13,"span",34),y(14,"Uncommitted changes"),v()(),T(15,VE,3,3),v(),g(16,"div",35),y(17,"\u2014"),v(),g(18,"div",36),y(19,"You"),v(),g(20,"div",37),y(21,"\u2014"),v()()}if(t&2){let n,r=h();ie("width",r.tableWidth(),"px")("transform",r.horizontalTransform()),Re("selected",r.selectedHash()===r.workingHash),f(),ie("width",r.graphColumnWidth(),"px"),f(14),M((n=r.workingChanges())?15:-1,n),f(),ie("width",r.columnWidths().date,"px"),f(2),ie("width",r.columnWidths().author,"px"),f(2),ie("width",r.columnWidths().commit,"px")}}function BE(t,e){if(t&1&&(g(0,"div",12),Ee(1,"span",41),y(2),v()),t&2){let n=h();f(2),U(n.pendingLabel())}}function HE(t,e){if(t&1&&(K(),Ee(0,"path",16)),t&2){let n=e.$implicit;se("d",n.d)("stroke",n.color)}}function $E(t,e){if(t&1&&(K(),Ee(0,"circle",42)),t&2){let n=h().$implicit;se("cx",n.x)("cy",n.y)("stroke",n.color)}}function UE(t,e){if(t&1&&(K(),Ee(0,"circle",43)),t&2){let n=h().$implicit;se("cx",n.x)("cy",n.y)("fill",n.color)}}function zE(t,e){if(t&1&&T(0,$E,1,3,":svg:circle",42)(1,UE,1,3,":svg:circle",43),t&2){let n=e.$implicit;M(n.isHead?0:1)}}function GE(t,e){t&1&&(K(),g(0,"svg",28),Ee(1,"line",50)(2,"circle",51)(3,"circle",52)(4,"path",53),v())}function WE(t,e){t&1&&(K(),g(0,"svg",28),Ee(1,"path",54)(2,"line",55),v())}function qE(t,e){if(t&1){let n=$();g(0,"span",49),S("contextmenu",function(o){let i=C(n).$implicit,s=h().$implicit,a=h();return D(a.onBadgeContextMenu(o,s.commit,i))}),T(1,GE,5,0,":svg:svg",28)(2,WE,3,0,":svg:svg",28),g(3,"span",34),y(4),v()()}if(t&2){let n=e.$implicit;Jn("badge badge-"+n.type),f(),M(n.type==="head"||n.type==="local"?1:n.type==="tag"?2:-1),f(3),U(n.name)}}function ZE(t,e){if(t&1&&(g(0,"mark",56),y(1),v()),t&2){let n=h().$implicit;f(),U(n.text)}}function YE(t,e){if(t&1&&y(0),t&2){let n=h().$implicit;q(" ",n.text," ")}}function QE(t,e){if(t&1&&T(0,ZE,2,1,"mark",56)(1,YE,1,1),t&2){let n=e.$implicit;M(n.match?0:1)}}function KE(t,e){if(t&1&&(g(0,"mark",56),y(1),v()),t&2){let n=h().$implicit;f(),U(n.text)}}function XE(t,e){if(t&1&&y(0),t&2){let n=h().$implicit;q(" ",n.text," ")}}function JE(t,e){if(t&1&&T(0,KE,2,1,"mark",56)(1,XE,1,1),t&2){let n=e.$implicit;M(n.match?0:1)}}function ew(t,e){if(t&1){let n=$();g(0,"div",44),S("click",function(){let o=C(n).$implicit,i=h();return D(i.commitClick.emit(o.commit))})("contextmenu",function(o){let i=C(n).$implicit,s=h();return D(s.onRowContextMenu(o,i.commit))}),Ee(1,"div",22),g(2,"div",26),ae(3,qE,5,4,"span",45,OE),g(5,"span",46),ae(6,QE,2,1,null,null,Xn),v()(),g(8,"div",35),y(9),Bo(10,"date"),v(),g(11,"div",47),ae(12,JE,2,1,null,null,Xn),v(),g(14,"div",48),y(15),v()()}if(t&2){let n=e.$implicit,r=h();ie("width",r.tableWidth(),"px"),Re("selected",n.commit.hash===r.selectedHash()),f(),ie("width",r.graphColumnWidth(),"px"),f(2),ce(r.badges(n.commit)),f(2),Re("head",r.isHead(n.commit)),f(),ce(r.highlight(n.commit.message)),f(2),ie("width",r.columnWidths().date,"px"),f(),q(" ",Ho(10,18,n.commit.date,"d MMM y HH:mm")," "),f(2),ie("width",r.columnWidths().author,"px"),P("title",n.commit.author_name),f(),ce(r.highlight(n.commit.author_name)),f(2),ie("width",r.columnWidths().commit,"px"),P("title",n.commit.hash),f(),q(" ",n.commit.hash.slice(0,8)," ")}}function tw(t,e){if(t&1&&(g(0,"div",19),y(1),v()),t&2){let n=h();f(),U(n.search().trim()?"No matching commits":"No commits to show")}}function nw(t,e){if(t&1){let n=$();g(0,"div",20)(1,"button",57),S("click",function(){C(n);let o=h();return D(o.onLoadMoreCommits())}),y(2,"Load more commits"),v(),g(3,"button",57),S("click",function(){C(n);let o=h();return D(o.onLoadAllCommits())}),y(4),v()()}if(t&2){let n=h();f(4),q("Load all (",n.unloaded(),")")}}var ct=34,Cd=14,Qm=10,rw=72,Km=10,Jm="guito.columnWidths",Xm={graph:0,date:132,author:150,commit:84},ow={graph:0,date:48,author:48,commit:48};function iw(){let t=ka(Jm,{}),e=J({},Xm);for(let n of Object.keys(Xm)){let r=t[n];typeof r=="number"&&Number.isFinite(r)&&r>=ow[n]&&(e[n]=r)}return e}var Aa=class t{commits=V.required();selectedHash=V.required();search=V("");selectedBranch=V("");showRemote=V(!0);workingChanges=V(null);unloaded=V(0);historyLoading=V(!1);loadingLabel=V("");scrollToHash=V(null);graphLoading=b(!1);pendingLabel=j(()=>this.loadingLabel()||(this.graphLoading()?"Drawing commit graph...":""));commitClick=Y();contextMenu=Y();loadMoreRequested=Y();loadAllRequested=Y();rowHeight=ct;graph=_(Na);viewport=$t(ci);zone=_(oe);scrollTop=b(0);scrollLeft=b(0);viewportWidth=b(0);viewportHeight=b(0);constructor(){Ie(()=>{let e=this.commits();this.updateGraph(e)}),Qu(()=>{this.graphCommits(),this.columnWidths();let e=this.viewport();e&&ze(()=>{e.checkViewportSize(),this.measureViewport()})}),Qu(()=>{this.selectedBranch(),this.showRemote();let e=this.viewport();e&&ze(()=>{e.scrollToOffset(0),this.measureViewport()})}),Ie(()=>{let e=this.scrollToHash();if(!e)return;let n=this.graphCommits().findIndex(o=>o.commit.hash===e.hash);if(n===-1)return;let r=this.viewport();r&&ze(()=>this.scrollToIndex(r,n))}),Ie(e=>{let n=this.viewport();if(!n)return;let r=new ResizeObserver(()=>{this.zone.run(()=>{n.checkViewportSize(),this.measureViewport()})});r.observe(n.elementRef.nativeElement);let o=n.elementScrolled().subscribe(()=>{this.zone.run(()=>this.measureViewport())});e(()=>{r.disconnect(),o.unsubscribe()})})}measureViewport(){let e=this.viewport()?.elementRef.nativeElement;e&&(this.scrollTop.set(e.scrollTop),this.scrollLeft.set(e.scrollLeft),this.viewportWidth.set(e.clientWidth),this.viewportHeight.set(e.clientHeight))}scrollToIndex(e,n){let r=e.elementRef.nativeElement,o=r.clientHeight||this.viewportHeight(),i=Math.max(0,n*ct-(o-ct)/2),s=0,a=()=>{e.scrollToOffset(i),this.measureViewport(),Math.abs(r.scrollTop-i)>1&&++s<10&&requestAnimationFrame(a)};a()}columnWidths=b(iw());graphCommits=b([]);graphSubscription=null;updateGraph(e){this.graphSubscription?.unsubscribe(),this.graphLoading.set(!0),this.graphSubscription=this.graph.compute(e).subscribe(n=>{n.length===e.length&&(this.graphLoading.set(!1),this.graphCommits.set(e.map((r,o)=>({commit:r,lane:n[o],parents:r.parents??[]}))))})}graphWidth=j(()=>{let e=this.graphCommits().reduce((n,r)=>Math.max(n,r.lane),0)+1;return Math.max(rw,Qm*2+e*Cd)});graphColumnWidth=j(()=>Math.max(this.graphWidth(),this.columnWidths().graph));tableWidth=j(()=>Math.max(this.viewportWidth(),this.graphColumnWidth()+this.columnWidths().date+this.columnWidths().author+this.columnWidths().commit+280));horizontalTransform=j(()=>"translateX("+-this.scrollLeft()+"px)");graphHeight=j(()=>this.graphCommits().length*ct);allEdges=j(()=>{let e=this.graphCommits(),n=new Map,r=new Map;e.forEach((i,s)=>{n.set(i.commit.hash,s),r.set(i.commit.hash,i.lane)});let o=[];for(let i=0;i<e.length;i++){let s=e[i];for(let a of s.parents){let c=n.get(a);o.push({childRow:i,childLane:s.lane,parentRow:c??-1,parentLane:c===void 0?s.lane:r.get(a)??s.lane})}}return o});visibleRange=j(()=>{let e=this.graphCommits().length;if(e===0||this.viewportHeight()===0)return{start:0,end:0};let n=Math.max(0,Math.floor(this.scrollTop()/ct)-Km),r=Math.min(e,Math.ceil((this.scrollTop()+this.viewportHeight())/ct)+Km);return{start:n,end:r}});nodes=j(()=>{let{start:e,end:n}=this.visibleRange(),r=[];for(let o=e;o<n;o++){let i=this.graphCommits()[o];r.push({hash:i.commit.hash,x:this.laneX(i.lane),y:o*ct+ct/2,color:ii(i.lane),isHead:bd(i.commit)})}return r});edges=j(()=>{let e=this.allEdges(),{start:n,end:r}=this.visibleRange(),o=this.graphHeight(),i=[];for(let s of e){let a=s.parentRow,c=Math.min(s.childRow,a<0?s.childRow:a);if((a<0?Number.MAX_SAFE_INTEGER:Math.max(s.childRow,a))<n||c>=r)continue;let u=ii(s.childLane),d=this.laneX(s.childLane),m=s.childRow*ct+ct/2;if(a<0){i.push({d:`M ${d} ${m} L ${d} ${o}`,color:u});continue}let p=this.laneX(s.parentLane),E=a*ct+ct/2;if(d===p)i.push({d:`M ${d} ${m} L ${p} ${E}`,color:u});else{let N=(m+E)/2;i.push({d:`M ${d} ${m} C ${d} ${N} ${p} ${N} ${p} ${E}`,color:u})}}return i});hasWorkingChanges=j(()=>{let e=this.workingChanges();return!!e&&e.staged.length+e.unstaged.length+e.untracked.length+e.conflicted.length>0});workingHash=At;workingCommit=j(()=>({hash:At,date:new Date().toISOString(),message:"Uncommitted changes",refs:"",body:"",author_name:"You",author_email:"",parents:[]}));resizeState=null;startResize(e,n){n.preventDefault(),n.stopPropagation();let r=e==="graph"?this.graphColumnWidth():this.columnWidths()[e];this.resizeState={column:e,startX:n.clientX,startWidth:r},document.addEventListener("mousemove",this.onResizeMove),document.addEventListener("mouseup",this.onResizeEnd)}onResizeMove=e=>{let n=this.resizeState;if(!n)return;let r=e.clientX-n.startX,o=n.column==="graph"?this.graphWidth():48,i=Math.max(o,n.startWidth+r);this.columnWidths.update(s=>ue(J({},s),{[n.column]:i}))};onResizeEnd=()=>{this.resizeState&&Ra(Jm,this.columnWidths()),this.resizeState=null,document.removeEventListener("mousemove",this.onResizeMove),document.removeEventListener("mouseup",this.onResizeEnd)};ngOnDestroy(){this.onResizeEnd(),this.graphSubscription?.unsubscribe()}onRowContextMenu(e,n){e.preventDefault(),e.stopPropagation(),this.contextMenu.emit({x:e.clientX,y:e.clientY,target:{kind:"commit",commit:n}})}onBadgeContextMenu(e,n,r){e.preventDefault(),e.stopPropagation(),this.contextMenu.emit({x:e.clientX,y:e.clientY,target:{kind:r.type==="tag"?"tag":"branch",commit:n,branch:r}})}onWorkingContextMenu(e){e.preventDefault(),e.stopPropagation(),this.contextMenu.emit({x:e.clientX,y:e.clientY,target:{kind:"working"}})}highlight(e){let n=this.search().trim().toLowerCase();if(!n||!e)return[{text:e,match:!1}];let r=[],o=e.toLowerCase(),i=0,s=o.indexOf(n);for(;s!==-1;)s>i&&r.push({text:e.slice(i,s),match:!1}),r.push({text:e.slice(s,s+n.length),match:!0}),i=s+n.length,s=o.indexOf(n,i);return i<e.length&&r.push({text:e.slice(i),match:!1}),r.length>0?r:[{text:e,match:!1}]}onLoadMoreCommits(){this.loadMoreRequested.emit()}onLoadAllCommits(){this.loadAllRequested.emit()}trackByHash(e,n){return n.commit.hash}badges(e){let n=this.selectedBranch(),r=this.showRemote();return Ym(e.refs).filter(o=>o.type==="remote"&&!r?!1:!n||o.type==="tag"?!0:o.name===n)}isHead(e){return bd(e)}laneX(e){return Qm+Cd/2+e*Cd}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ye({type:t,selectors:[["app-commit-table"]],viewQuery:function(n,r){n&1&&kt(r.viewport,ci,5),n&2&&Ht()},inputs:{commits:[1,"commits"],selectedHash:[1,"selectedHash"],search:[1,"search"],selectedBranch:[1,"selectedBranch"],showRemote:[1,"showRemote"],workingChanges:[1,"workingChanges"],unloaded:[1,"unloaded"],historyLoading:[1,"historyLoading"],loadingLabel:[1,"loadingLabel"],scrollToHash:[1,"scrollToHash"]},outputs:{commitClick:"commitClick",contextMenu:"contextMenu",loadMoreRequested:"loadMoreRequested",loadAllRequested:"loadAllRequested"},decls:37,vars:28,consts:[[1,"table"],[1,"pinned-clip"],[1,"table-head"],[1,"head-cell","cell-graph"],[1,"head-label"],[1,"resizer",3,"mousedown"],[1,"head-cell","cell-desc"],[1,"head-cell","cell-date"],[1,"head-cell","cell-author"],[1,"head-cell","cell-commit"],[1,"row","working-row",3,"width","transform","selected"],[1,"table-body"],["role","status",1,"table-loading"],[1,"list-container"],[1,"graph-clip"],["aria-hidden","true",1,"graph-overlay"],["fill","none","stroke-width","2"],[1,"list-viewport",3,"itemSize"],["class","row",3,"width","selected","click","contextmenu",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[1,"empty"],[1,"load-actions"],[1,"row","working-row",3,"click","contextmenu"],[1,"cell","cell-graph"],["viewBox","0 0 24 24","aria-hidden","true",1,"working-icon"],["d","M12 20h9"],["d","M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"],[1,"cell","cell-desc"],[1,"badge","badge-working"],["viewBox","0 0 24 24","aria-hidden","true",1,"badge-icon"],["cx","12","cy","12","r","3"],["d","M12 2v3"],["d","M12 19v3"],["d","M2 12h3"],["d","M19 12h3"],[1,"badge-name"],[1,"cell","cell-date"],[1,"cell","cell-author"],[1,"cell","cell-commit"],[1,"count-badge","count-staged"],[1,"count-badge","count-unstaged"],[1,"count-badge","count-untracked"],[1,"spinner"],["r","5.5","fill","#1e1e1e","stroke-width","2"],["r","4"],[1,"row",3,"click","contextmenu"],[3,"class"],[1,"message"],[1,"cell","cell-author",3,"title"],[1,"cell","cell-commit",3,"title"],[3,"contextmenu"],["x1","6","y1","3","x2","6","y2","15"],["cx","18","cy","6","r","3"],["cx","6","cy","18","r","3"],["d","M18 9a9 9 0 0 1-9 9"],["d","M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.83z"],["x1","7","y1","7","x2","7.01","y2","7"],[1,"hl"],[1,"load-more",3,"click"]],template:function(n,r){n&1&&(g(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),y(5,"Graph"),v(),g(6,"div",5),S("mousedown",function(i){return r.startResize("graph",i)}),v()(),g(7,"div",6)(8,"span",4),y(9,"Description"),v()(),g(10,"div",7)(11,"span",4),y(12,"Date"),v(),g(13,"div",5),S("mousedown",function(i){return r.startResize("date",i)}),v()(),g(14,"div",8)(15,"span",4),y(16,"Author"),v(),g(17,"div",5),S("mousedown",function(i){return r.startResize("author",i)}),v()(),g(18,"div",9)(19,"span",4),y(20,"Commit"),v(),g(21,"div",5),S("mousedown",function(i){return r.startResize("commit",i)}),v()()(),T(22,jE,22,15,"div",10),v(),g(23,"div",11),T(24,BE,3,1,"div",12),g(25,"div",13)(26,"div",14),K(),g(27,"svg",15)(28,"g"),ae(29,HE,1,2,":svg:path",16,Xn),ae(31,zE,2,1,null,null,AE),v()()(),xe(),g(33,"cdk-virtual-scroll-viewport",17),Js(34,ew,16,21,"div",18),v(),T(35,tw,2,1,"div",19),v(),T(36,nw,5,1,"div",20),v()()),n&2&&(se("aria-busy",!!r.pendingLabel()),f(),ie("width",r.viewportWidth(),"px"),f(),ie("width",r.tableWidth(),"px")("transform",r.horizontalTransform()),f(),ie("width",r.graphColumnWidth(),"px"),f(7),ie("width",r.columnWidths().date,"px"),f(4),ie("width",r.columnWidths().author,"px"),f(4),ie("width",r.columnWidths().commit,"px"),f(4),M(r.hasWorkingChanges()?22:-1),f(2),M(r.pendingLabel()?24:-1),f(2),ie("width",r.viewportWidth(),"px"),f(),ie("transform",r.horizontalTransform()),se("width",r.graphWidth()),f(),se("transform","translate(0 "+-r.scrollTop()+")"),f(),ce(r.edges()),f(2),ce(r.nodes()),f(2),P("itemSize",r.rowHeight),f(),P("cdkVirtualForOf",r.graphCommits())("cdkVirtualForTrackBy",r.trackByHash),f(),M(!r.pendingLabel()&&r.graphCommits().length===0?35:-1),f(),M(r.unloaded()>0&&!r.historyLoading()?36:-1))},dependencies:[Wm,Zm,ci,Qo],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.table[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;width:100%;min-width:0;min-height:0}.table-head[_ngcontent-%COMP%]{display:flex;align-items:center;height:30px;flex:none;border-bottom:1px solid var(--border);background:var(--bg-alt);font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none}.head-cell[_ngcontent-%COMP%]{position:relative;padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:none}.head-cell.cell-desc[_ngcontent-%COMP%]{flex:1;min-width:0}.resizer[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:6px;height:100%;cursor:col-resize;z-index:1}.resizer[_ngcontent-%COMP%]:hover, .resizer.active[_ngcontent-%COMP%]{background:var(--accent)}.table-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0}.list-container[_ngcontent-%COMP%]{position:relative;flex:1;min-height:0}.list-viewport[_ngcontent-%COMP%]{position:absolute;inset:0;width:100%;height:100%}.graph-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;pointer-events:none}.row[_ngcontent-%COMP%]{display:flex;align-items:center;height:34px;flex:none;cursor:pointer;-webkit-user-select:none;user-select:none}.row[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.row.selected[_ngcontent-%COMP%]{background:#04395e}.cell[_ngcontent-%COMP%]{padding:0 10px;overflow:hidden;white-space:nowrap;color:var(--text);min-width:0}.cell-graph[_ngcontent-%COMP%]{flex:none}.cell-desc[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;gap:6px}.cell-date[_ngcontent-%COMP%]{flex:none;text-align:right;color:var(--text-dim)}.cell-author[_ngcontent-%COMP%]{flex:none;text-align:right;text-overflow:ellipsis}.cell-commit[_ngcontent-%COMP%]{flex:none;text-align:right;font-family:var(--mono);color:var(--text-dim)}.working-row[_ngcontent-%COMP%]{flex:none;border-bottom:1px solid var(--border);background:#d7ba7d0a}.working-row[_ngcontent-%COMP%]:hover{background:#d7ba7d14}.working-row.selected[_ngcontent-%COMP%]{background:#4d3a12}.working-icon[_ngcontent-%COMP%]{width:14px;height:14px;margin-left:4px;fill:none;stroke:#d7ba7d;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.badge-working[_ngcontent-%COMP%]{background:#d7ba7d24;color:#d7ba7d;border-color:#d7ba7d66}.count-badge[_ngcontent-%COMP%]{flex:none;padding:1px 7px;border-radius:10px;font-size:11px;line-height:16px;white-space:nowrap}.count-staged[_ngcontent-%COMP%]{background:#89d18524;color:#89d185}.count-unstaged[_ngcontent-%COMP%]{background:#f4877124;color:#f48771}.count-untracked[_ngcontent-%COMP%]{background:#3794ff24;color:#4fc1ff}.hl[_ngcontent-%COMP%]{background:#613214;color:#f5c04a;border-radius:2px;padding:0 1px}.message[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;font-weight:400}.message.head[_ngcontent-%COMP%]{font-weight:600;color:var(--text-bright)}.badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;flex:none;padding:1px 7px;border-radius:10px;border:1px solid transparent;font-size:11px;line-height:16px;white-space:nowrap}.badge-head[_ngcontent-%COMP%]{background:#0078d4;color:#fff}.badge-local[_ngcontent-%COMP%]{background:#3794ff24;color:#4fc1ff;border-color:#3794ff66}.badge-remote[_ngcontent-%COMP%]{background:#ffffff0f;color:#b8b8b8;border-color:#4a4a4a}.badge-tag[_ngcontent-%COMP%]{background:#d7ba7d1f;color:#d7ba7d;border-color:#d7ba7d66}.badge-icon[_ngcontent-%COMP%]{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.badge-name[_ngcontent-%COMP%]{max-width:160px;overflow:hidden;text-overflow:ellipsis}.empty[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:240px;color:var(--text-dim)}.load-more[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background:transparent;border:none;border-top:1px solid var(--border);color:var(--accent);cursor:pointer;font-size:12px;font-family:inherit}.load-more[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.load-actions[_ngcontent-%COMP%]{display:flex;border-top:1px solid var(--border)}.load-actions[_ngcontent-%COMP%] .load-more[_ngcontent-%COMP%]{border-top:none}.load-actions[_ngcontent-%COMP%] .load-more[_ngcontent-%COMP%] + .load-more[_ngcontent-%COMP%]{border-left:1px solid var(--border)}.history-loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:10px;border-top:1px solid var(--border);color:var(--text-dim);font-size:12px}.pinned-clip[_ngcontent-%COMP%]{overflow:hidden;flex:none;max-width:100%}.table-body[_ngcontent-%COMP%]{position:relative}.graph-clip[_ngcontent-%COMP%]{position:absolute;inset:0 auto 0 0;overflow:hidden;pointer-events:none;z-index:1}.table-head[_ngcontent-%COMP%], .row[_ngcontent-%COMP%]{box-sizing:border-box}.head-cell.cell-desc[_ngcontent-%COMP%], .cell-desc[_ngcontent-%COMP%]{min-width:280px}.empty[_ngcontent-%COMP%]{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}.table-loading[_ngcontent-%COMP%]{position:absolute;top:8px;left:50%;transform:translate(-50%);z-index:3;display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border);border-radius:4px;background:var(--bg-alt);color:var(--text);font-size:12px;white-space:nowrap}.spinner[_ngcontent-%COMP%]{width:14px;height:14px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner[_ngcontent-%COMP%]{animation:none}}"],changeDetection:0})};function sw(t,e){t&1&&he(0,"div",2)}function aw(t,e){if(t&1){let n=$();w(0,"button",4),Z("click",function(){C(n);let o=h().$implicit,i=h(2);return D(i.onSelect(o))}),y(1),x()}if(t&2){let n=h().$implicit;Re("danger",n.danger),ge("disabled",n.disabled),f(),q(" ",n.label," ")}}function cw(t,e){if(t&1&&T(0,sw,1,0,"div",2)(1,aw,2,4,"button",3),t&2){let n=e.$implicit;M(n.separator?0:1)}}function lw(t,e){if(t&1){let n=$();w(0,"div",0),Z("click",function(){C(n);let o=h();return D(o.closed.emit())})("contextmenu",function(o){C(n);let i=h();return o.preventDefault(),D(i.closed.emit())}),x(),w(1,"div",1),ae(2,cw,2,1,null,null,Xn),x()}if(t&2){let n=h();f(),ie("left",n.left(),"px")("top",n.top(),"px"),f(),ce(e.items)}}var Oa=class t{menu=V.required();select=Y();closed=Y();left=j(()=>{let e=this.menu();return e?Math.max(4,Math.min(e.x,window.innerWidth-250)):0});top=j(()=>{let e=this.menu();if(!e)return 0;let n=e.items.length*30+12;return Math.max(4,Math.min(e.y,window.innerHeight-n-8))});onEscape(){this.menu()&&this.closed.emit()}onSelect(e){e.disabled||!e.action||(this.select.emit(e.action),this.closed.emit())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ye({type:t,selectors:[["app-context-menu"]],hostBindings:function(n,r){n&1&&S("keydown.escape",function(){return r.onEscape()},st)},inputs:{menu:[1,"menu"]},outputs:{select:"select",closed:"closed"},decls:1,vars:1,consts:[[1,"backdrop",3,"click","contextmenu"],["role","menu",1,"menu"],[1,"separator"],["role","menuitem",1,"item",3,"danger","disabled"],["role","menuitem",1,"item",3,"click","disabled"]],template:function(n,r){if(n&1&&T(0,lw,4,4),n&2){let o;M((o=r.menu())?0:-1,o)}},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:300}.menu[_ngcontent-%COMP%]{position:fixed;min-width:210px;max-width:300px;padding:4px;display:flex;flex-direction:column;background:var(--bg-alt);border:1px solid var(--border);border-radius:6px;box-shadow:0 6px 24px #0000008c;z-index:301}.item[_ngcontent-%COMP%]{display:block;width:100%;padding:6px 10px;border:none;border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-family:inherit;text-align:left;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bg-hover);color:var(--text-bright)}.item[_ngcontent-%COMP%]:disabled{color:var(--text-dim);opacity:.55;cursor:default}.item.danger[_ngcontent-%COMP%]{color:var(--red)}.item.danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#f487711f;color:#f48771}.separator[_ngcontent-%COMP%]{height:1px;margin:4px 6px;background:var(--border);flex:none}"],changeDetection:0})};function Ur(t){t||(t=_(Ue));let e=new W(n=>{if(t.destroyed){n.next();return}return t.onDestroy(n.next.bind(n))});return n=>n.pipe(Dn(e))}function zr(t,e){let n=e?.injector??_(Be),r=new _n(1),o=Ie(()=>{let i;try{i=t()}catch(s){ze(()=>r.error(s));return}ze(()=>r.next(i))},{injector:n,manualCleanup:!0});return n.get(Ue).onDestroy(()=>{o.destroy(),r.complete()}),r.asObservable()}var ev=(t,e)=>e.id;function uw(t,e){if(t&1){let n=$();w(0,"span",2)(1,"span",5),y(2),x(),w(3,"button",6),Z("click",function(){let o=C(n).$implicit,i=h();return D(i.remove.emit(o))}),y(4," \xD7 "),x()()}if(t&2){let n=e.$implicit,r=h();f(),ge("title",n.description??n.label),f(),U(n.label),f(),ge("disabled",r.disabled()),se("aria-label","Remove "+n.label)}}function dw(t,e){t&1&&(w(0,"li",7),y(1,"Searching..."),x())}function fw(t,e){if(t&1&&(w(0,"span",11),y(1),x()),t&2){let n=h().$implicit;f(),U(n.description)}}function pw(t,e){if(t&1){let n=$();w(0,"li",9),Z("mousedown",function(o){let i=C(n).$implicit,s=h(2);return D(s.onSuggestionMouseDown(o,i))}),w(1,"span",10),y(2),x(),T(3,fw,2,1,"span",11),x()}if(t&2){let n=e.$implicit,r=e.$index,o=h(2);Re("active",r===o.highlight()),se("aria-selected",r===o.highlight()),f(2),U(n.label),f(),M(n.description?3:-1)}}function hw(t,e){if(t&1&&(w(0,"ul",4),T(1,dw,2,0,"li",7),ae(2,pw,4,5,"li",8,ev),x()),t&2){let n=h();f(),M(n.loading()?1:-1),f(),ce(n.suggestions())}}var Pa=class t{placeholder=V("");chips=V([]);suggestions=V([]);loading=V(!1);query=V("");disabled=V(!1);allowFreeText=V(!1);queryChange=Y();select=Y();remove=Y();open=b(!1);highlight=b(0);onInput(e){this.queryChange.emit(e.target.value),this.open.set(!0),this.highlight.set(0)}onKeydown(e){let n=this.suggestions();if(e.key==="ArrowDown"&&n.length)e.preventDefault(),this.highlight.update(r=>Math.min(r+1,n.length-1));else if(e.key==="ArrowUp"&&n.length)e.preventDefault(),this.highlight.update(r=>Math.max(r-1,0));else if(e.key==="Enter"){e.preventDefault();let r=n[this.highlight()];if(r){this.pick(r);return}let o=this.query().trim();this.allowFreeText()&&o&&(this.open.set(!1),this.select.emit({id:o.toLowerCase(),label:o}))}else e.key==="Escape"&&this.open()&&(e.stopPropagation(),this.open.set(!1))}pick(e){this.open.set(!1),this.select.emit(e)}onSuggestionMouseDown(e,n){e.preventDefault(),this.pick(n)}onBlur(){setTimeout(()=>this.open.set(!1),120)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ye({type:t,selectors:[["app-chip-input"]],inputs:{placeholder:[1,"placeholder"],chips:[1,"chips"],suggestions:[1,"suggestions"],loading:[1,"loading"],query:[1,"query"],disabled:[1,"disabled"],allowFreeText:[1,"allowFreeText"]},outputs:{queryChange:"queryChange",select:"select",remove:"remove"},decls:6,vars:4,consts:[[1,"chip-input"],[1,"chip-row"],[1,"chip"],["type","text",1,"chip-query",3,"input","keydown","focus","blur","value","disabled"],["role","listbox",1,"suggestions"],[1,"chip-label",3,"title"],["type","button",1,"chip-remove",3,"click","disabled"],[1,"suggestion-hint"],["role","option",3,"active"],["role","option",3,"mousedown"],[1,"suggestion-label"],[1,"suggestion-desc"]],template:function(n,r){n&1&&(w(0,"div",0)(1,"div",1),ae(2,uw,5,4,"span",2,ev),w(4,"input",3),Z("input",function(i){return r.onInput(i)})("keydown",function(i){return r.onKeydown(i)})("focus",function(){return r.open.set(!0)})("blur",function(){return r.onBlur()}),x()(),T(5,hw,4,1,"ul",4),x()),n&2&&(f(2),ce(r.chips()),f(2),ge("value",r.query())("disabled",r.disabled()),se("placeholder",r.chips().length?"":r.placeholder()),f(),M(r.open()&&(r.loading()||r.suggestions().length>0)?5:-1))},styles:[".chip-input[_ngcontent-%COMP%]{position:relative}.chip-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:4px 6px;border:1px solid var(--border);border-radius:4px;background:var(--bg)}.chip-row[_ngcontent-%COMP%]:focus-within{border-color:var(--accent)}.chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:2px;padding:2px 4px 2px 8px;border-radius:3px;background:var(--bg-hover);font-size:12px;color:var(--text);max-width:100%}.chip-label[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip-remove[_ngcontent-%COMP%]{border:none;background:transparent;color:var(--text-dim);font-size:13px;line-height:1;cursor:pointer;padding:2px 4px}.chip-remove[_ngcontent-%COMP%]:hover:not(:disabled){color:#f48771}.chip-query[_ngcontent-%COMP%]{flex:1;min-width:90px;border:none;background:transparent;color:var(--text);font-size:12px;font-family:inherit;outline:none;padding:2px}.suggestions[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;right:0;z-index:20;margin:4px 0 0;padding:4px 0;list-style:none;background:var(--bg-alt);border:1px solid var(--border);border-radius:4px;box-shadow:0 6px 18px #00000080;max-height:200px;overflow-y:auto}.suggestions[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;padding:6px 10px;font-size:12px;cursor:pointer}.suggestions[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover, .suggestions[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background:var(--bg-hover)}.suggestion-hint[_ngcontent-%COMP%]{color:var(--text-dim);cursor:default}.suggestion-label[_ngcontent-%COMP%]{color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.suggestion-desc[_ngcontent-%COMP%]{color:var(--text-dim);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"],changeDetection:0})};var Dd=(t,e)=>e.name;function gw(t,e){if(t&1&&(g(0,"a",10),y(1," Open in Azure DevOps "),v()),t&2){let n=h();P("href",n.url,su)}}function mw(t,e){if(t&1&&(g(0,"p",14),y(1),v()),t&2){let n=e.$implicit;f(),U(n)}}function vw(t,e){if(t&1&&ae(0,mw,2,1,"p",14,Lo),t&2){let n=h();ce(n.warnings)}}function yw(t,e){if(t&1){let n=$();g(0,"div",8)(1,"p",9),y(2),v(),T(3,gw,2,1,"a",10),g(4,"p",11),y(5),v(),T(6,vw,2,0),v(),g(7,"div",12)(8,"button",13),S("click",function(){C(n);let o=h();return D(o.closed.emit())}),y(9,"Close"),v()()}if(t&2){let n=e;f(2),q("\u2714 Pull Request #",n.id," created"),f(),M(n.url?3:-1),f(2),q("Source branch: ",n.branch),f(),M(n.warnings!=null&&n.warnings.length?6:-1)}}function _w(t,e){if(t&1&&(g(0,"option",22),y(1),v()),t&2){let n=e.$implicit,r=h(2);P("value",n.name)("selected",r.source()===n.name),f(),q(" ",n.name," ")}}function bw(t,e){if(t&1&&(g(0,"option",22),y(1),v()),t&2){let n=e.$implicit,r=h(2);P("value",n.name)("selected",r.source()===n.name),f(),q(" ",n.name," ")}}function Cw(t,e){t&1&&(g(0,"p",11),y(1," A new branch (pr/xxxxxx) will be created from the current HEAD and pushed before the pull request is created. "),v())}function Dw(t,e){if(t&1&&(g(0,"option",22),y(1),v()),t&2){let n=e.$implicit,r=h(2);P("value",n.name)("selected",r.target()===n.name),f(),q(" ",n.name," ")}}function Ew(t,e){if(t&1&&(g(0,"p",11),y(1),v()),t&2){let n=h(2);f(),q('Press Enter to add "',n.tagQuery().trim(),'" as a new tag.')}}function ww(t,e){if(t&1&&(g(0,"p",28),y(1),v()),t&2){let n=h(2);f(),U(n.error())}}function xw(t,e){if(t&1){let n=$();g(0,"div",15)(1,"label",16)(2,"span",17),y(3,"Title"),v(),g(4,"input",18),S("input",function(o){C(n);let i=h();return D(i.onTitleInput(o))}),v()(),g(5,"label",16)(6,"span",17),y(7,"Description"),v(),g(8,"textarea",19),S("input",function(o){C(n);let i=h();return D(i.onDescriptionInput(o))}),v()(),g(9,"label",16)(10,"span",17),y(11,"Source branch"),v(),g(12,"select",20),S("change",function(o){C(n);let i=h();return D(i.onSourceChange(o))}),g(13,"optgroup",21)(14,"option",22),y(15," \u2795 Create new branch (random name) "),v()(),g(16,"optgroup",23),ae(17,_w,2,3,"option",22,Dd),v(),g(19,"optgroup",24),ae(20,bw,2,3,"option",22,Dd),v()()(),T(22,Cw,2,0,"p",11),g(23,"label",16)(24,"span",17),y(25,"Target branch"),v(),g(26,"select",20),S("change",function(o){C(n);let i=h();return D(i.onTargetChange(o))}),ae(27,Dw,2,3,"option",22,Dd),v()(),g(29,"label",16)(30,"span",17),y(31,"Required reviewers"),v(),g(32,"app-chip-input",25),S("queryChange",function(o){C(n);let i=h();return D(i.requiredReviewerQuery.set(o))})("select",function(o){C(n);let i=h();return D(i.addRequiredReviewer(o))})("remove",function(o){C(n);let i=h();return D(i.removeRequiredReviewer(o))}),v()(),g(33,"label",16)(34,"span",17),y(35,"Optional reviewers"),v(),g(36,"app-chip-input",25),S("queryChange",function(o){C(n);let i=h();return D(i.optionalReviewerQuery.set(o))})("select",function(o){C(n);let i=h();return D(i.addOptionalReviewer(o))})("remove",function(o){C(n);let i=h();return D(i.removeOptionalReviewer(o))}),v()(),g(37,"label",16)(38,"span",17),y(39,"Work items"),v(),g(40,"app-chip-input",26),S("queryChange",function(o){C(n);let i=h();return D(i.workItemQuery.set(o))})("select",function(o){C(n);let i=h();return D(i.addWorkItem(o))})("remove",function(o){C(n);let i=h();return D(i.removeWorkItem(o))}),v()(),g(41,"label",16)(42,"span",17),y(43,"Tags"),v(),g(44,"app-chip-input",27),S("queryChange",function(o){C(n);let i=h();return D(i.tagQuery.set(o))})("select",function(o){C(n);let i=h();return D(i.addTag(o))})("remove",function(o){C(n);let i=h();return D(i.removeTag(o))}),v()(),T(45,Ew,2,1,"p",11),T(46,ww,2,1,"p",28),v(),g(47,"div",12)(48,"button",29),S("click",function(){C(n);let o=h();return D(o.closed.emit())}),y(49," Cancel "),v(),g(50,"button",30),S("click",function(){C(n);let o=h();return D(o.create())}),y(51),v()()}if(t&2){let n=h();f(4),P("value",n.title()),f(4),P("value",n.description()),f(6),P("value",n.newBranchValue)("selected",n.source()===n.newBranchValue),f(3),ce(n.localBranches()),f(3),ce(n.remoteBranches()),f(2),M(n.source()===n.newBranchValue?22:-1),f(5),ce(n.remoteBranches()),f(5),P("chips",n.requiredReviewers())("suggestions",n.requiredReviewerSuggestions())("loading",n.reviewersLoading())("query",n.requiredReviewerQuery()),f(4),P("chips",n.optionalReviewers())("suggestions",n.optionalReviewerSuggestions())("loading",n.reviewersLoading())("query",n.optionalReviewerQuery()),f(4),P("chips",n.workItemChips())("suggestions",n.workItemSuggestions())("loading",n.workItemsLoading())("query",n.workItemQuery()),f(4),P("chips",n.tagChips())("suggestions",n.filteredTagSuggestions())("loading",n.tagsLoading())("query",n.tagQuery())("allowFreeText",!0),f(),M(n.tagQuery().trim()&&!n.tagSuggestions().length&&!n.tagsLoading()?45:-1),f(),M(n.error()?46:-1),f(2),P("disabled",n.creating()),f(2),P("disabled",!n.canCreate()),f(),q(" ",n.creating()?"Creating...":"Create Pull Request"," ")}}var tv="__new__",Fa=class t{git=_(Ot);branches=V.required();closed=Y();created=Y();newBranchValue=tv;title=b("");description=b("");source=b("");target=b("");creating=b(!1);error=b("");result=b(null);requiredReviewers=b([]);optionalReviewers=b([]);workItemChips=b([]);tagChips=b([]);requiredReviewerQuery=b("");optionalReviewerQuery=b("");workItemQuery=b("");tagQuery=b("");requiredReviewerSuggestions=b([]);optionalReviewerSuggestions=b([]);workItemSuggestions=b([]);tagSuggestions=b([]);reviewersLoading=b(!1);workItemsLoading=b(!1);tagsLoading=b(!1);localBranches=j(()=>this.branches().filter(e=>!e.remote));remoteBranches=j(()=>this.branches().filter(e=>e.remote));canCreate=j(()=>!this.creating()&&!!this.target()&&!!this.source());filteredTagSuggestions=j(()=>{let e=this.tagQuery().trim().toLowerCase();return e?this.tagSuggestions().filter(n=>n.label.toLowerCase().includes(e)):this.tagSuggestions()});constructor(){zr(this.requiredReviewerQuery).pipe(Cn(300),Pt(),Ur()).subscribe(e=>this.lookupReviewers(e,this.requiredReviewerSuggestions)),zr(this.optionalReviewerQuery).pipe(Cn(300),Pt(),Ur()).subscribe(e=>this.lookupReviewers(e,this.optionalReviewerSuggestions)),zr(this.workItemQuery).pipe(Cn(300),Pt(),Ur()).subscribe(e=>this.lookupWorkItems(e))}ngOnInit(){let e=this.branches(),n=e.find(s=>s.current&&!s.remote),r=e.find(s=>!s.remote);this.source.set(n?.name??r?.name??""),this.title()||this.title.set(n?.name??"");let o=e.filter(s=>s.remote),i=o.find(s=>s.name==="origin/main")??o.find(s=>s.name==="origin/master");this.target.set(i?.name??o[0]?.name??""),this.tagsLoading.set(!0),this.git.getPrTags().subscribe({next:s=>{this.tagSuggestions.set(s.map(a=>({id:a.name.toLowerCase(),label:a.name}))),this.tagsLoading.set(!1)},error:()=>{this.tagSuggestions.set([]),this.tagsLoading.set(!1)}})}onEscape(){this.creating()||this.closed.emit()}onBackdropClick(){this.creating()||this.closed.emit()}onTitleInput(e){this.title.set(e.target.value)}onDescriptionInput(e){this.description.set(e.target.value)}onSourceChange(e){this.source.set(e.target.value)}onTargetChange(e){this.target.set(e.target.value)}lookupReviewers(e,n){let r=e.trim();if(r.length<2){n.set([]),this.reviewersLoading.set(!1);return}this.reviewersLoading.set(!0),this.git.searchReviewers(r).subscribe({next:o=>{n.set(o.map(i=>({id:i.id,label:i.label,description:i.description}))),this.reviewersLoading.set(!1)},error:()=>{n.set([]),this.reviewersLoading.set(!1)}})}lookupWorkItems(e){let n=e.trim();if(!n){this.workItemSuggestions.set([]),this.workItemsLoading.set(!1);return}this.workItemsLoading.set(!0),this.git.searchWorkItems(n).subscribe({next:r=>{this.workItemSuggestions.set(r.map(o=>({id:String(o.id),label:`#${o.id} ${o.title}`,description:o.state}))),this.workItemsLoading.set(!1)},error:()=>{this.workItemSuggestions.set([]),this.workItemsLoading.set(!1)}})}isReviewerSelected(e){return[...this.requiredReviewers(),...this.optionalReviewers()].some(n=>n.id===e)}addRequiredReviewer(e){this.requiredReviewerQuery.set(""),this.requiredReviewerSuggestions.set([]),this.isReviewerSelected(e.id)||this.requiredReviewers.update(n=>[...n,e])}addOptionalReviewer(e){this.optionalReviewerQuery.set(""),this.optionalReviewerSuggestions.set([]),this.isReviewerSelected(e.id)||this.optionalReviewers.update(n=>[...n,e])}removeRequiredReviewer(e){this.requiredReviewers.update(n=>n.filter(r=>r.id!==e.id))}removeOptionalReviewer(e){this.optionalReviewers.update(n=>n.filter(r=>r.id!==e.id))}addWorkItem(e){this.workItemQuery.set(""),this.workItemSuggestions.set([]),this.workItemChips().some(n=>n.id===e.id)||this.workItemChips.update(n=>[...n,e])}removeWorkItem(e){this.workItemChips.update(n=>n.filter(r=>r.id!==e.id))}addTag(e){this.tagQuery.set(""),this.tagChips().some(n=>n.id===e.id)||this.tagChips.update(n=>[...n,e])}removeTag(e){this.tagChips.update(n=>n.filter(r=>r.id!==e.id))}create(){if(!this.canCreate())return;let e=this.source()===tv;this.creating.set(!0),this.error.set("");let n=[...this.requiredReviewers().map(i=>({id:i.id,required:!0})),...this.optionalReviewers().map(i=>({id:i.id,required:!1}))],r=this.workItemChips().map(i=>Number(i.id)).filter(i=>Number.isInteger(i)&&i>0),o=this.tagChips().map(i=>i.label);this.git.createPr({sourceBranch:e?"":this.source(),targetBranch:this.target(),title:this.title().trim()||void 0,description:this.description().trim()||void 0,newBranch:e,reviewers:n.length?n:void 0,workItems:r.length?r:void 0,labels:o.length?o:void 0}).subscribe({next:i=>{this.creating.set(!1),this.result.set(i),this.created.emit(i)},error:i=>{this.creating.set(!1),this.error.set(this.errorMessage(i))}})}errorMessage(e){let n=e;return n?.status===400&&n.error?.error?n.error.error:"Failed to communicate with the Guito server."}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ye({type:t,selectors:[["app-create-pr-dialog"]],hostBindings:function(n,r){n&1&&S("keydown.escape",function(){return r.onEscape()},st)},inputs:{branches:[1,"branches"]},outputs:{closed:"closed",created:"created"},decls:11,vars:2,consts:[[1,"backdrop",3,"click"],["role","dialog","aria-modal","true","aria-labelledby","create-pr-title",1,"dialog"],[1,"dialog-head"],["id","create-pr-title",1,"title"],["type","button","title","Close","aria-label","Close dialog",1,"icon-btn",3,"click","disabled"],["viewBox","0 0 24 24","aria-hidden","true"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],[1,"success"],[1,"success-line"],["target","_blank","rel","noopener",1,"pr-link",3,"href"],[1,"hint"],[1,"actions"],["type","button",1,"btn","btn-primary",3,"click"],[1,"warning"],[1,"form"],[1,"field"],[1,"field-label"],["type","text","placeholder","Pull request title",1,"input",3,"input","value"],["rows","3","placeholder","Optional description",1,"input","description",3,"input","value"],[1,"input",3,"change"],["label","New branch"],[3,"value","selected"],["label","Local branches"],["label","Remote branches"],["placeholder","Search users by name or email",3,"queryChange","select","remove","chips","suggestions","loading","query"],["placeholder","Search by id or title",3,"queryChange","select","remove","chips","suggestions","loading","query"],["placeholder","Add tags (Enter to add)",3,"queryChange","select","remove","chips","suggestions","loading","query","allowFreeText"],["role","alert",1,"error"],["type","button",1,"btn",3,"click","disabled"],["type","button",1,"btn","btn-primary",3,"click","disabled"]],template:function(n,r){if(n&1&&(g(0,"div",0),S("click",function(){return r.onBackdropClick()}),v(),g(1,"div",1)(2,"header",2)(3,"h3",3),y(4,"Create Pull Request"),v(),g(5,"button",4),S("click",function(){return r.closed.emit()}),K(),g(6,"svg",5),Ee(7,"line",6)(8,"line",7),v()()(),T(9,yw,10,4)(10,xw,52,27),v()),n&2){let o;f(5),P("disabled",r.creating()),f(4),M((o=r.result())?9:10,o)}},dependencies:[Pa],styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000080;z-index:400}.dialog[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(480px,calc(100vw - 48px));max-height:calc(100vh - 64px);overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:12px;background:var(--bg-alt);border:1px solid var(--border);border-radius:8px;box-shadow:0 10px 36px #0009;z-index:401}.dialog-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px}.title[_ngcontent-%COMP%]{margin:0;font-size:14px;font-weight:600;color:var(--text-bright)}.icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:none;border-radius:4px;background:transparent;color:var(--text-dim);cursor:pointer}.icon-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bg-hover);color:var(--text-bright)}.icon-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.field-label[_ngcontent-%COMP%]{font-size:12px;color:var(--text-dim)}.input[_ngcontent-%COMP%]{padding:7px 10px;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font-size:13px;font-family:inherit;outline:none}.input[_ngcontent-%COMP%]:focus{border-color:var(--accent)}textarea.description[_ngcontent-%COMP%]{resize:vertical;min-height:60px}.hint[_ngcontent-%COMP%]{margin:-6px 0 0;font-size:11px;color:var(--text-dim)}.error[_ngcontent-%COMP%]{margin:0;padding:8px 10px;border:1px solid #a1260d;border-radius:4px;background:#a1260d26;color:#f48771;font-size:12px;word-break:break-word}.warning[_ngcontent-%COMP%]{margin:0;padding:8px 10px;border:1px solid #8a6c10;border-radius:4px;background:#8a6c1026;color:#dcb67a;font-size:12px;word-break:break-word}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px}.btn[_ngcontent-%COMP%]{padding:6px 14px;border:1px solid var(--border);border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-family:inherit;cursor:pointer}.btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bg-hover);color:var(--text-bright)}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.btn-primary[_ngcontent-%COMP%]{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#2b7cd3}.success[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.success-line[_ngcontent-%COMP%]{margin:0;font-size:13px;color:#4ec9b0}.pr-link[_ngcontent-%COMP%]{font-size:13px;color:var(--accent);text-decoration:none}.pr-link[_ngcontent-%COMP%]:hover{text-decoration:underline}"],changeDetection:0})};var Iw=["inputEl"],Tw=["searchEl"],Mw=(t,e)=>e.value;function Sw(t,e){if(t&1&&(w(0,"p",5),y(1),x()),t&2){let n=h();f(),U(n.label)}}function Nw(t,e){if(t&1){let n=$();w(0,"input",13,0),Z("input",function(o){C(n);let i=h(3);return D(i.onSearch(o))})("keydown.enter",function(o){C(n);let i=h(3);return D(i.onSearchEnter(o))}),x()}if(t&2){let n=h(3);ge("value",n.search())}}function kw(t,e){if(t&1&&(w(0,"span",18),y(1),x()),t&2){let n=h().$implicit;f(),U(n.description)}}function Rw(t,e){if(t&1){let n=$();w(0,"button",14),Z("click",function(){let o=C(n).$implicit,i=h(3);return D(i.choose(o))})("dblclick",function(){C(n);let o=h(3);return D(o.confirm())}),he(1,"span",15),w(2,"span",16)(3,"span",17),y(4),x(),T(5,kw,2,1,"span",18),x()()}if(t&2){let n=e.$implicit,r=h(3);Re("selected",r.choice()===n.value)("danger",n.danger),se("aria-checked",r.choice()===n.value),f(4),U(n.label),f(),M(n.description?5:-1)}}function Aw(t,e){t&1&&(w(0,"p",12),y(1,"No matching branches"),x())}function Ow(t,e){if(t&1&&(T(0,Nw,2,1,"input",9),w(1,"div",10),ae(2,Rw,6,7,"button",11,Mw,!1,Aw,2,0,"p",12),x()),t&2){let n=h(),r=h();M(n.searchable?0:-1),f(2),ce(r.filteredOptions())}}function Pw(t,e){if(t&1){let n=$();w(0,"label",19),y(1),x(),w(2,"input",20,1),Z("input",function(o){C(n);let i=h(2);return D(i.onInput(o))})("keydown.enter",function(){C(n);let o=h(2);return D(o.confirm())}),x()}if(t&2){let n=h(),r=h();f(),U(n.label||n.title),f(),ge("value",r.value()),se("placeholder",n.placeholder||" ")("aria-label",n.label||n.title)}}function Fw(t,e){if(t&1){let n=$();w(0,"div",2),Z("click",function(){C(n);let o=h();return D(o.cancelled.emit())}),x(),w(1,"div",3)(2,"h3",4),y(3),x(),T(4,Sw,2,1,"p",5),T(5,Ow,5,2)(6,Pw,4,4),w(7,"div",6)(8,"button",7),Z("click",function(){C(n);let o=h();return D(o.cancelled.emit())}),y(9,"Cancel"),x(),w(10,"button",8),Z("click",function(){C(n);let o=h();return D(o.confirm())}),y(11),x()()()}if(t&2){let n=e,r=h();f(3),U(n.title),f(),M(n.label?4:-1),f(),M(r.options().length>0?5:n.confirmOnly?-1:6),f(5),Re("btn-danger",n.danger),ge("disabled",r.options().length===0&&!n.confirmOnly&&!n.allowEmpty&&!r.value().trim()||n.searchable&&r.filteredOptions().length===0),f(),q(" ",n.okLabel||"OK"," ")}}var La=class t{state=V.required();confirmed=Y();cancelled=Y();value=b("");choice=b("");options=j(()=>this.state()?.options??[]);search=b("");filteredOptions=j(()=>{let e=this.search().trim().toLowerCase(),n=this.options();return e?n.filter(r=>r.label.toLowerCase().includes(e)||r.value.toLowerCase().includes(e)):n});inputEl=$t("inputEl");searchEl=$t("searchEl");constructor(){Ie(()=>{let e=this.state();e&&(this.value.set(e.value??""),this.choice.set(e.options?.[0]?.value??""),this.search.set(""));let n=this.inputEl()??this.searchEl();e&&n&&(n.nativeElement.focus(),n.nativeElement.select())})}onEscape(){this.state()&&this.cancelled.emit()}onInput(e){this.value.set(e.target.value)}choose(e){this.choice.set(e.value)}onSearch(e){this.search.set(e.target.value);let n=this.filteredOptions();n.length&&!n.some(r=>r.value===this.choice())&&this.choice.set(n[0].value)}onSearchEnter(e){e.preventDefault(),this.filteredOptions().length>0&&this.confirm()}confirm(){let e=this.state();if(e){if(e.options?.length){this.confirmed.emit(this.choice());return}!e.confirmOnly&&!e.allowEmpty&&!this.value().trim()||this.confirmed.emit(e.confirmOnly?"":this.value().trim())}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ye({type:t,selectors:[["app-prompt-dialog"]],viewQuery:function(n,r){n&1&&(kt(r.inputEl,Iw,5),kt(r.searchEl,Tw,5)),n&2&&Ht(2)},hostBindings:function(n,r){n&1&&S("keydown.escape",function(){return r.onEscape()},st)},inputs:{state:[1,"state"]},outputs:{confirmed:"confirmed",cancelled:"cancelled"},decls:1,vars:1,consts:[["searchEl",""],["inputEl",""],[1,"backdrop",3,"click"],["role","dialog","aria-modal","true",1,"dialog"],[1,"title"],[1,"label"],[1,"actions"],["type","button",1,"btn",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["type","text","placeholder","Search\u2026","aria-label","Search options",1,"input",3,"value"],["role","radiogroup",1,"options"],["type","button","role","radio",1,"option",3,"selected","danger"],[1,"no-results"],["type","text","placeholder","Search\u2026","aria-label","Search options",1,"input",3,"input","keydown.enter","value"],["type","button","role","radio",1,"option",3,"click","dblclick"],["aria-hidden","true",1,"option-radio"],[1,"option-text"],[1,"option-label"],[1,"option-description"],["for","prompt-input",1,"sr-only"],["id","prompt-input","type","text","placeholder"," ","title","Enter a value",1,"input",3,"input","keydown.enter","value"]],template:function(n,r){if(n&1&&T(0,Fw,12,7),n&2){let o;M((o=r.state())?0:-1,o)}},styles:[".backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000080;z-index:400}.dialog[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 48px));padding:18px;display:flex;flex-direction:column;gap:12px;background:var(--bg-alt);border:1px solid var(--border);border-radius:8px;box-shadow:0 10px 36px #0009;z-index:401}.title[_ngcontent-%COMP%]{margin:0;font-size:14px;font-weight:600;color:var(--text-bright)}.label[_ngcontent-%COMP%]{margin:0;font-size:12px;color:var(--text-dim)}.input[_ngcontent-%COMP%]{padding:7px 10px;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font-size:13px;font-family:inherit;outline:none}.input[_ngcontent-%COMP%]:focus{border-color:var(--accent)}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px}.btn[_ngcontent-%COMP%]{padding:6px 14px;border:1px solid var(--border);border-radius:4px;background:transparent;color:var(--text);font-size:12px;font-family:inherit;cursor:pointer}.btn[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bg-hover);color:var(--text-bright)}.btn-primary[_ngcontent-%COMP%]{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#2b7cd3}.btn-danger[_ngcontent-%COMP%]{background:#a1260d;border-color:#a1260d;color:#fff}.options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;max-height:40vh;overflow-y:auto}.no-results[_ngcontent-%COMP%]{margin:0;padding:8px 10px;font-size:12px;color:var(--text-dim)}.option[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border:1px solid var(--border);border-radius:4px;background:transparent;color:var(--text);font-family:inherit;text-align:left;cursor:pointer}.option[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.option.selected[_ngcontent-%COMP%]{border-color:var(--accent);background:#3794ff1f}.option-radio[_ngcontent-%COMP%]{width:13px;height:13px;margin-top:2px;border:1px solid var(--border);border-radius:50%;flex:none}.option.selected[_ngcontent-%COMP%] .option-radio[_ngcontent-%COMP%]{border-color:var(--accent);background:radial-gradient(circle,var(--accent) 0 40%,transparent 45%)}.option-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0}.option-label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--text-bright)}.option.danger[_ngcontent-%COMP%] .option-label[_ngcontent-%COMP%]{color:#f48771}.option-description[_ngcontent-%COMP%]{font-size:11px;color:var(--text-dim)}.btn-danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#c42b1c}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}"],changeDetection:0})};var Lw=(t,e)=>e.path;function Vw(t,e){if(t&1&&(g(0,"div",4),Ee(1,"span",16),y(2),v()),t&2){let n=h();f(2),U(n.statusLoading()?"Refreshing changes\u2026":"Updating repository\u2026")}}function jw(t,e){if(t&1){let n=$();g(0,"div",5),y(1),g(2,"button",3),S("click",function(){C(n);let o=h();return D(o.retry.emit())}),y(3,"Retry status"),v()()}if(t&2){let n=h();f(),q("",n.statusError()," "),f(),P("disabled",n.busy())}}function Bw(t,e){if(t&1){let n=$();g(0,"button",22),S("click",function(){C(n);let o=h(2);return D(o.discardSelected())}),y(1,"Discard selected"),v(),g(2,"button",22),S("click",function(){C(n);let o=h(2);return D(o.discardAll())}),y(3,"Discard all"),v()}if(t&2){let n=h().$implicit,r=h();P("disabled",r.disabled()||!r.selected()[n].size),f(2),P("disabled",r.disabled()||!r.files(n).length)}}function Hw(t,e){if(t&1){let n=$();g(0,"div",20)(1,"div",23),S("click",function(o){let i=C(n).$implicit,s=h().$implicit,a=h();return D(a.select(s,i.path,o))})("keydown",function(o){let i=C(n).$implicit,s=h().$implicit,a=h();return D(a.keySelect(s,i.path,o))}),g(2,"span",24),y(3),v(),g(4,"span",25),y(5),v(),g(6,"span",26)(7,"span",27),y(8),v(),g(9,"span",28),y(10),v()()(),g(11,"button",29),S("click",function(){let o=C(n).$implicit,i=h().$implicit,s=h();return D(s.dialog.set({file:o,group:i}))}),y(12,"Diff"),v()()}if(t&2){let n=e.$implicit,r=h().$implicit,o=h();f(),Re("selected",o.selected()[r].has(n.path)),se("aria-selected",o.selected()[r].has(n.path))("aria-label",n.path),f(),P("title",n.status),f(),U(n.status.slice(0,1).toUpperCase()),f(),P("title",n.oldPath&&n.oldPath!==n.path?n.oldPath+" \u2192 "+n.path:n.path),f(),U(n.path),f(3),q("+",n.additions),f(2),q("\u2212",n.deletions),f(),P("disabled",o.busy()),se("aria-label","View "+r+" diff for "+n.path)}}function $w(t,e){if(t&1&&(g(0,"p",21),y(1),v()),t&2){let n=h().$implicit;f(),U(n==="staged"?"No staged changes.":"No unstaged changes.")}}function Uw(t,e){if(t&1){let n=$();g(0,"section")(1,"h3"),y(2),v(),g(3,"div",17)(4,"span",18),y(5),v(),g(6,"button",3),S("click",function(){let o=C(n).$implicit,i=h();return D(i.moveSelected(o))}),y(7),v(),g(8,"button",3),S("click",function(){let o=C(n).$implicit,i=h();return D(i.moveAll(o))}),y(9),v(),T(10,Bw,4,2),v(),g(11,"div",19),ae(12,Hw,13,12,"div",20,Lw,!1,$w,2,1,"p",21),v()()}if(t&2){let n=e.$implicit,r=h();se("aria-label",n==="staged"?"Staged changes":"Unstaged changes"),f(2),Lr("",n==="staged"?"Staged changes":"Unstaged changes"," (",r.files(n).length,")"),f(3),q("",r.selected()[n].size," selected"),f(),P("disabled",r.disabled()||!r.selected()[n].size),f(),U(n==="staged"?"Unstage selected":"Stage selected"),f(),P("disabled",r.disabled()||!r.files(n).length),f(),U(n==="staged"?"Unstage all":"Stage all"),f(),M(n==="unstaged"?10:-1),f(),se("aria-label",n+" files"),f(),ce(r.files(n))}}function zw(t,e){t&1&&(g(0,"p",8),y(1,"Resolve conflicts before committing."),v())}function Gw(t,e){if(t&1){let n=$();g(0,"app-diff-dialog",30),S("closed",function(){C(n);let o=h();return D(o.dialog.set(null))}),v()}if(t&2){let n=e;P("file",n.file)("originalRef",n.group==="staged"?"HEAD":"INDEX")("modifiedRef",n.group==="staged"?"INDEX":"WORKING")}}var Va=class t{changes=V(null);busy=V(!1);statusLoading=V(!1);statusError=V("");subject=V("");description=V("");subjectChange=Y();descriptionChange=Y();stageChange=Y();stashChange=Y();discardRequest=Y();commitRequested=Y();retry=Y();closed=Y();groups=["staged","unstaged"];selected=b({staged:new Set,unstaged:new Set});anchors={staged:null,unstaged:null};dialog=b(null);disabled=j(()=>this.busy()||!!this.statusError()||!this.changes());canCommit=j(()=>!this.disabled()&&!!this.subject().trim()&&!!this.changes()?.staged.length&&!this.changes()?.conflicted.length);constructor(){Ie(()=>{let e=this.changes();this.selected.update(n=>{let r=J({},n);for(let o of this.groups){let i=new Set((o==="staged"?e?.stagedFiles:e?.unstagedFiles)?.map(s=>s.path));r[o]=new Set([...n[o]].filter(s=>i.has(s))),this.anchors[o]&&!i.has(this.anchors[o])&&(this.anchors[o]=null)}return r}),this.dialog.set(null)})}files(e){return(e==="staged"?this.changes()?.stagedFiles:this.changes()?.unstagedFiles)??[]}select(e,n,r){let o=r.ctrlKey||r.metaKey,i=this.files(e).map(l=>l.path),s=this.anchors[e],a=r.shiftKey&&s!==null&&i.includes(s),c=o?new Set(this.selected()[e]):new Set;if(a){let l=i.indexOf(s),u=i.indexOf(n);for(let d of i.slice(Math.min(l,u),Math.max(l,u)+1))c.add(d)}else o&&c.has(n)?c.delete(n):c.add(n),this.anchors[e]=n;this.selected.update(l=>ue(J({},l),{[e]:c}))}keySelect(e,n,r){if((r.key===" "||r.key==="Enter")&&(r.preventDefault(),this.select(e,n,r)),r.key==="ArrowDown"||r.key==="ArrowUp"){r.preventDefault();let o=Array.from(r.currentTarget.closest(".file-list").querySelectorAll('[role="option"]')),i=o.indexOf(r.currentTarget),s=Math.max(0,Math.min(o.length-1,i+(r.key==="ArrowDown"?1:-1)));o[s]?.focus(),r.shiftKey&&this.select(e,this.files(e)[s].path,r)}}move(e,n){this.disabled()||!n.length||this.stageChange.emit({staged:e==="staged",files:n})}moveSelected(e){this.move(e,[...this.selected()[e]])}moveAll(e){this.move(e,this.files(e).map(n=>n.path))}stash(e){this.disabled()||this.stashChange.emit(e)}discard(e){this.disabled()||!e.length||this.discardRequest.emit(e)}discardSelected(){this.discard([...this.selected().unstaged])}discardAll(){this.discard(this.files("unstaged").map(e=>e.path))}updateSubject(e){this.subjectChange.emit(e.target.value)}updateDescription(e){this.descriptionChange.emit(e.target.value)}commit(e){e.preventDefault(),this.canCommit()&&this.commitRequested.emit()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ye({type:t,selectors:[["app-working-panel"]],inputs:{changes:[1,"changes"],busy:[1,"busy"],statusLoading:[1,"statusLoading"],statusError:[1,"statusError"],subject:[1,"subject"],description:[1,"description"]},outputs:{subjectChange:"subjectChange",descriptionChange:"descriptionChange",stageChange:"stageChange",stashChange:"stashChange",discardRequest:"discardRequest",commitRequested:"commitRequested",retry:"retry",closed:"closed"},decls:31,vars:12,consts:[["aria-label","Uncommitted changes",1,"detail"],["type","button","aria-label","Close changes",3,"click"],["role","group","aria-label","Stash changes",1,"stash-actions"],["type","button",3,"click","disabled"],["role","status",1,"state"],["role","alert",1,"error"],[1,"changes"],[3,"submit"],[1,"error"],["for","commit-subject"],["id","commit-subject","placeholder","Summary of your changes","required","",3,"input","value","disabled"],["for","commit-description"],[1,"optional"],["id","commit-description","rows","3",3,"input","value","disabled"],["type","submit",1,"commit-button",3,"disabled"],[3,"file","originalRef","modifiedRef"],[1,"spinner"],[1,"actions"],["aria-live","polite",1,"selection-count"],["role","listbox","aria-multiselectable","true",1,"file-list"],[1,"file-entry"],[1,"empty"],["type","button",1,"danger",3,"click","disabled"],["role","option","tabindex","0",1,"file-row",3,"click","keydown"],[1,"file-status",3,"title"],[1,"file-path",3,"title"],[1,"counts"],[1,"additions"],[1,"deletions"],["type","button",1,"file-action",3,"click","disabled"],[3,"closed","file","originalRef","modifiedRef"]],template:function(n,r){if(n&1&&(g(0,"aside",0)(1,"header")(2,"h2"),y(3,"Uncommitted changes"),v(),g(4,"button",1),S("click",function(){return r.closed.emit()}),y(5,"\xD7"),v()(),g(6,"div",2)(7,"button",3),S("click",function(){return r.stash("all")}),y(8,"Stash all"),v(),g(9,"button",3),S("click",function(){return r.stash("staged")}),y(10,"Stash staged"),v(),g(11,"button",3),S("click",function(){return r.stash("unstaged")}),y(12,"Stash unstaged"),v()(),T(13,Vw,3,1,"div",4),T(14,jw,4,2,"div",5),g(15,"div",6),ae(16,Uw,15,11,"section",null,Lo),v(),g(18,"form",7),S("submit",function(i){return r.commit(i)}),T(19,zw,2,0,"p",8),g(20,"label",9),y(21,"Commit message"),v(),g(22,"input",10),S("input",function(i){return r.updateSubject(i)}),v(),g(23,"label",11),y(24,"Description "),g(25,"span",12),y(26,"(optional)"),v()(),g(27,"textarea",13),S("input",function(i){return r.updateDescription(i)}),v(),g(28,"button",14),y(29,"Commit staged changes"),v()()(),T(30,Gw,1,3,"app-diff-dialog",15)),n&2){let o,i;f(7),P("disabled",r.disabled()||!r.files("staged").length&&!r.files("unstaged").length),f(2),P("disabled",r.disabled()||!r.files("staged").length),f(2),P("disabled",r.disabled()||!r.files("unstaged").length),f(2),M(r.busy()?13:-1),f(),M(r.statusError()?14:-1),f(2),ce(r.groups),f(3),M(!((o=r.changes())==null||o.conflicted==null)&&o.conflicted.length?19:-1),f(3),P("value",r.subject())("disabled",r.busy()),f(5),P("value",r.description())("disabled",r.busy()),f(),P("disabled",!r.canCommit()),f(2),M((i=r.dialog())?30:-1,i)}},dependencies:[Hr],styles:["[_nghost-%COMP%]{display:flex;flex:none;width:min(480px,60vw);min-width:320px;min-height:0}.detail[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;min-height:0;background:var(--bg-alt);border-left:1px solid var(--border);color:var(--text)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px;gap:12px}h2[_ngcontent-%COMP%]{font-size:15px;margin:0}h3[_ngcontent-%COMP%]{font-size:13px;margin:0 0 8px}.stash-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;padding:0 12px 10px;flex-wrap:wrap;font-size:11px}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font:inherit;color:var(--text);border:1px solid var(--border);border-radius:3px;background:var(--bg)}button[_ngcontent-%COMP%]{cursor:pointer;padding:4px 7px;white-space:nowrap}button[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--bg-hover)}button.danger[_ngcontent-%COMP%]{color:#f48771}button.danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#5a1d1d}button[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:default}button[_ngcontent-%COMP%]:focus-visible, input[_ngcontent-%COMP%]:focus-visible, textarea[_ngcontent-%COMP%]:focus-visible, .file-row[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.changes[_ngcontent-%COMP%]{overflow-y:auto;flex:1;min-height:80px}section[_ngcontent-%COMP%]{padding:10px;border-top:1px solid var(--border)}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;margin-bottom:6px;flex-wrap:wrap;font-size:11px}.selection-count[_ngcontent-%COMP%]{margin-right:auto;color:var(--text-dim)}.file-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.file-entry[_ngcontent-%COMP%]{display:flex;align-items:center;gap:3px}.file-row[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1;min-width:0;gap:7px;padding:7px 4px;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:12px}.file-row[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.file-row.selected[_ngcontent-%COMP%]{background:#04395e}.file-status[_ngcontent-%COMP%]{color:var(--accent);width:12px;flex:none}.file-path[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.counts[_ngcontent-%COMP%]{white-space:nowrap;font-size:11px}.additions[_ngcontent-%COMP%]{color:#89d185}.deletions[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{color:#f48771}.file-action[_ngcontent-%COMP%]{font-size:11px}.empty[_ngcontent-%COMP%], .optional[_ngcontent-%COMP%]{color:var(--text-dim);font-size:12px}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;padding:12px;border-top:1px solid var(--border);max-height:50%;overflow-y:auto}label[_ngcontent-%COMP%]{font-size:12px}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{padding:7px;width:100%;box-sizing:border-box}textarea[_ngcontent-%COMP%]{resize:vertical;min-height:50px}.commit-button[_ngcontent-%COMP%]{background:var(--accent);color:#fff;padding:8px;margin-top:4px}.state[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{padding:8px 12px;font-size:12px}.state[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center}.spinner[_ngcontent-%COMP%]{width:12px;height:12px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner[_ngcontent-%COMP%]{animation:none}}"],changeDetection:0})};var Ww=["searchInput"],qw=(t,e)=>e.name;function Zw(t,e){if(t&1&&(w(0,"option",6),y(1),x()),t&2){let n=e.$implicit;ge("value",n.name),f(),U(n.name)}}function Yw(t,e){if(t&1){let n=$();w(0,"button",34),Z("click",function(){C(n);let o=h();return D(o.clearSearch())}),K(),w(1,"svg",10),he(2,"line",35)(3,"line",36),x()()}}function Qw(t,e){t&1&&y(0," No matches ")}function Kw(t,e){if(t&1&&y(0),t&2){let n=h(2);q(" ",n.matchCount()," matches ")}}function Xw(t,e){if(t&1&&y(0),t&2){let n=h(2);Lr(" ",n.matchIndex()+1," of ",n.matchCount()," ")}}function Jw(t,e){if(t&1){let n=$();w(0,"div",15)(1,"button",37),Z("click",function(){C(n);let o=h();return D(o.searchNavigate.emit("prev"))}),K(),w(2,"svg",10),he(3,"polyline",38),x()(),xe(),w(4,"span",39),T(5,Qw,1,0)(6,Kw,1,1)(7,Xw,1,2),x(),w(8,"button",40),Z("click",function(){C(n);let o=h();return D(o.searchNavigate.emit("next"))}),K(),w(9,"svg",10),he(10,"polyline",41),x()()()}if(t&2){let n=h();f(),ge("disabled",n.matchCount()===0),f(4),M(n.matchCount()===0?5:n.matchIndex()<0?6:7),f(3),ge("disabled",n.matchCount()===0)}}function ex(t,e){if(t&1){let n=$();w(0,"div",23)(1,"button",42),Z("click",function(){C(n);let o=h();return D(o.chooseRemoteAction("pull"))}),y(2,"Pull"),x(),w(3,"button",42),Z("click",function(){C(n);let o=h();return D(o.chooseRemoteAction("pull-rebase"))}),y(4,"Pull (rebase)"),x(),w(5,"button",42),Z("click",function(){C(n);let o=h();return D(o.chooseRemoteAction("rebase-from"))}),y(6,"Rebase (from)..."),x()()}}function tx(t,e){if(t&1){let n=$();w(0,"button",42),Z("click",function(){C(n);let o=h(2);return D(o.chooseRemoteAction("create-pr"))}),y(1," Create Pull Request... "),x()}}function nx(t,e){if(t&1){let n=$();w(0,"div",23)(1,"button",42),Z("click",function(){C(n);let o=h();return D(o.chooseRemoteAction("push"))}),y(2,"Push"),x(),w(3,"button",43),Z("click",function(){C(n);let o=h();return D(o.chooseRemoteAction("push-force"))}),y(4," Push (force) "),x(),w(5,"button",42),Z("click",function(){C(n);let o=h();return D(o.chooseRemoteAction("sync"))}),y(6,"Sync"),x(),T(7,tx,2,0,"button",44),x()}if(t&2){let n=h();f(7),M(n.prEnabled()?7:-1)}}var rx=300,ja=class t{branches=V.required();selectedBranch=V.required();showRemote=V.required();busy=V.required();matchIndex=V(-1);matchCount=V(0);prEnabled=V(!1);branchChange=Y();remoteToggle=Y();searchChange=Y();searchNavigate=Y();refresh=Y();remoteAction=Y();settingsClick=Y();openMenu=b(null);searchValue=b("");searchInput=$t("searchInput");constructor(){zr(this.searchValue).pipe(Cn(rx),Pt(),Ur()).subscribe(e=>this.searchChange.emit(e))}visibleBranches=j(()=>this.branches());onBranchChange(e){this.branchChange.emit(e.target.value)}onRemoteToggle(e){this.remoteToggle.emit(e.target.checked)}onSearch(e){this.searchValue.set(e.target.value)}onSearchKeydown(e){e.key==="Enter"&&(e.preventDefault(),this.searchNavigate.emit(e.shiftKey?"prev":"next"))}clearSearch(){this.searchValue.set(""),this.searchInput()?.nativeElement.focus()}toggleMenu(e,n){n.stopPropagation(),this.openMenu.update(r=>r===e?null:e)}chooseRemoteAction(e){this.openMenu.set(null),this.remoteAction.emit(e)}closeMenu(){this.openMenu.set(null)}closeMenuOnEscape(){this.openMenu.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ye({type:t,selectors:[["app-toolbar"]],viewQuery:function(n,r){n&1&&kt(r.searchInput,Ww,5),n&2&&Ht()},hostBindings:function(n,r){n&1&&S("click",function(){return r.closeMenu()},st)("keydown.escape",function(){return r.closeMenuOnEscape()},st)},inputs:{branches:[1,"branches"],selectedBranch:[1,"selectedBranch"],showRemote:[1,"showRemote"],busy:[1,"busy"],matchIndex:[1,"matchIndex"],matchCount:[1,"matchCount"],prEnabled:[1,"prEnabled"]},outputs:{branchChange:"branchChange",remoteToggle:"remoteToggle",searchChange:"searchChange",searchNavigate:"searchNavigate",refresh:"refresh",remoteAction:"remoteAction",settingsClick:"settingsClick"},decls:48,vars:12,consts:[["searchInput",""],[1,"toolbar"],[1,"group"],["for","branch-select",1,"label"],["id","branch-select",1,"select",3,"change","value"],["value",""],[3,"value"],[1,"checkbox"],["type","checkbox",3,"change","checked"],[1,"search"],["viewBox","0 0 24 24","aria-hidden","true"],["cx","11","cy","11","r","8"],["x1","21","y1","21","x2","16.65","y2","16.65"],["type","text","placeholder","Search commits",3,"input","keydown","value"],["type","button","title","Clear search","aria-label","Clear search",1,"clear-btn"],[1,"search-nav"],["title","Fetch",1,"icon-btn",3,"click","disabled"],["d","M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"],[1,"action-menu"],["title","Pull",1,"icon-btn",3,"click","disabled"],["cx","12","cy","12","r","10"],["points","8 12 12 16 16 12"],["x1","12","y1","8","x2","12","y2","16"],["role","menu",1,"remote-menu"],["title","Push",1,"icon-btn",3,"click","disabled"],["points","16 12 12 8 8 12"],["x1","12","y1","16","x2","12","y2","8"],["title","Refresh",1,"icon-btn",3,"click"],["points","23 4 23 10 17 10"],["points","1 20 1 14 7 14"],["d","M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"],["title","Settings",1,"icon-btn",3,"click"],["cx","12","cy","12","r","3"],["d","M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"],["type","button","title","Clear search","aria-label","Clear search",1,"clear-btn",3,"click"],["x1","18","y1","6","x2","6","y2","18"],["x1","6","y1","6","x2","18","y2","18"],["type","button","title","Previous match (Shift+Enter)","aria-label","Previous match",1,"nav-btn",3,"click","disabled"],["points","18 15 12 9 6 15"],[1,"count"],["type","button","title","Next match (Enter)","aria-label","Next match",1,"nav-btn",3,"click","disabled"],["points","6 9 12 15 18 9"],["type","button","role","menuitem",3,"click"],["type","button","role","menuitem",1,"danger",3,"click"],["type","button","role","menuitem"]],template:function(n,r){if(n&1){let o=$();w(0,"div",1)(1,"div",2)(2,"label",3),y(3,"Branches:"),x(),w(4,"select",4),Z("change",function(s){return C(o),D(r.onBranchChange(s))}),w(5,"option",5),y(6,"Show All"),x(),ae(7,Zw,2,2,"option",6,qw),x(),w(9,"label",7)(10,"input",8),Z("change",function(s){return C(o),D(r.onRemoteToggle(s))}),x(),w(11,"span"),y(12,"Show Remote Branches"),x()()(),w(13,"div",2)(14,"div",9),K(),w(15,"svg",10),he(16,"circle",11)(17,"line",12),x(),xe(),w(18,"input",13,0),Z("input",function(s){return C(o),D(r.onSearch(s))})("keydown",function(s){return C(o),D(r.onSearchKeydown(s))}),x(),T(20,Yw,4,0,"button",14),x(),T(21,Jw,11,3,"div",15),w(22,"button",16),Z("click",function(){return C(o),D(r.remoteAction.emit("fetch"))}),K(),w(23,"svg",10),he(24,"path",17),x()(),xe(),w(25,"div",18)(26,"button",19),Z("click",function(s){return C(o),D(r.toggleMenu("pull",s))}),K(),w(27,"svg",10),he(28,"circle",20)(29,"polyline",21)(30,"line",22),x()(),T(31,ex,7,0,"div",23),x(),xe(),w(32,"div",18)(33,"button",24),Z("click",function(s){return C(o),D(r.toggleMenu("push",s))}),K(),w(34,"svg",10),he(35,"circle",20)(36,"polyline",25)(37,"line",26),x()(),T(38,nx,8,1,"div",23),x(),xe(),w(39,"button",27),Z("click",function(){return C(o),D(r.refresh.emit())}),K(),w(40,"svg",10),he(41,"polyline",28)(42,"polyline",29)(43,"path",30),x()(),xe(),w(44,"button",31),Z("click",function(){return C(o),D(r.settingsClick.emit())}),K(),w(45,"svg",10),he(46,"circle",32)(47,"path",33),x()()()()}n&2&&(f(4),ge("value",r.selectedBranch()),f(3),ce(r.visibleBranches()),f(3),ge("checked",r.showRemote()),f(8),ge("value",r.searchValue()),f(2),M(r.searchValue()?20:-1),f(),M(r.searchValue()?21:-1),f(),ge("disabled",r.busy()),f(4),ge("disabled",r.busy()),se("aria-expanded",r.openMenu()==="pull"),f(5),M(r.openMenu()==="pull"?31:-1),f(2),ge("disabled",r.busy()),se("aria-expanded",r.openMenu()==="push"),f(5),M(r.openMenu()==="push"?38:-1))},styles:[`.toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;height:42px;padding:0 12px;background:var(--bg-alt);border-bottom:1px solid var(--border)}.group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;min-width:0}.label[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none;white-space:nowrap}.select[_ngcontent-%COMP%]{appearance:none;height:26px;padding:0 26px 0 10px;border:1px solid var(--border);border-radius:4px;background:#2d2d2d url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23cccccc' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;color:var(--text);font-size:12px;cursor:pointer;outline:none;max-width:260px;text-overflow:ellipsis}.select[_ngcontent-%COMP%]:hover{border-color:#555}.select[_ngcontent-%COMP%]:focus{border-color:var(--accent)}.checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-bright);-webkit-user-select:none;user-select:none;cursor:pointer;white-space:nowrap}.checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{accent-color:var(--accent);cursor:pointer}.search[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;height:26px;padding:0 8px;border:1px solid var(--border);border-radius:4px;background:#2d2d2d;color:var(--text-dim)}.search[_ngcontent-%COMP%]:focus-within{border-color:var(--accent)}.search[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:170px;border:none;outline:none;background:transparent;color:var(--text);font-size:12px}.search[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#777}.icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:4px;background:transparent;color:var(--text);cursor:pointer;flex:none}.action-menu[_ngcontent-%COMP%]{position:relative;display:inline-flex}.clear-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:none;border-radius:3px;background:transparent;color:var(--text-dim);cursor:pointer;flex:none}.clear-btn[_ngcontent-%COMP%]:hover{color:var(--text);background:#3a3a3a}.clear-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.count[_ngcontent-%COMP%]{font-size:12px;color:var(--text-dim);white-space:nowrap;-webkit-user-select:none;user-select:none}.search-nav[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px}.nav-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:none;border-radius:3px;background:transparent;color:var(--text-dim);cursor:pointer;flex:none}.nav-btn[_ngcontent-%COMP%]:hover:not(:disabled){color:var(--text-bright);background:#3a3a3a}.nav-btn[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:default}.nav-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.remote-menu[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 4px);right:0;z-index:20;min-width:132px;padding:4px;background:var(--bg-alt);border:1px solid var(--border);border-radius:4px;box-shadow:0 6px 18px #00000073}.remote-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;width:100%;padding:6px 10px;border:none;border-radius:3px;background:transparent;color:var(--text);font:inherit;text-align:left;white-space:nowrap;cursor:pointer}.remote-menu[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-bright)}.remote-menu[_ngcontent-%COMP%] button.danger[_ngcontent-%COMP%]{color:var(--red)}.remote-menu[_ngcontent-%COMP%] button.danger[_ngcontent-%COMP%]:hover{background:#f487711f;color:#f48771}.icon-btn[_ngcontent-%COMP%]:hover{background:var(--bg-hover);color:var(--text-bright)}.icon-btn[_ngcontent-%COMP%]:disabled{opacity:.45;cursor:default}.icon-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}`],changeDetection:0})};function ox(t,e){if(t&1){let n=$();g(0,"div",12),y(1),g(2,"button",19),S("click",function(){C(n);let o=h();return D(o.refresh())}),y(3,"Retry"),v()()}if(t&2){let n=h();f(),q("",n.error()," "),f(),P("disabled",n.loading())}}function ix(t,e){if(t&1){let n=$();g(0,"div",13),y(1),g(2,"button",19),S("click",function(){C(n);let o=h();return D(o.refreshWorking())}),y(3,"Retry status"),v()()}if(t&2){let n=h();f(),q("",n.statusError()," "),f(),P("disabled",n.statusLoading())}}function sx(t,e){if(t&1){let n=$();g(0,"app-working-panel",22),S("subjectChange",function(o){C(n);let i=h(2);return D(i.commitSubject.set(o))})("descriptionChange",function(o){C(n);let i=h(2);return D(i.commitDescription.set(o))})("stageChange",function(o){C(n);let i=h(2);return D(i.changeStage(o))})("stashChange",function(o){C(n);let i=h(2);return D(i.stashChanges(o))})("discardRequest",function(o){C(n);let i=h(2);return D(i.discardUnstaged(o))})("commitRequested",function(){C(n);let o=h(2);return D(o.commitChanges())})("retry",function(){C(n);let o=h(2);return D(o.refreshWorking())})("closed",function(){C(n);let o=h(2);return D(o.selectedCommit.set(null))}),v()}if(t&2){let n=h(2);P("changes",n.workingChanges())("busy",n.busy()||n.mutationBusy()||n.statusLoading())("statusLoading",n.statusLoading())("statusError",n.statusError())("subject",n.commitSubject())("description",n.commitDescription())}}function ax(t,e){if(t&1){let n=$();g(0,"app-commit-detail",23),S("closed",function(){C(n);let o=h(2);return D(o.selectedCommit.set(null))}),v()}if(t&2){let n=h();P("commit",n)}}function cx(t,e){if(t&1&&T(0,sx,1,6,"app-working-panel",20)(1,ax,1,1,"app-commit-detail",21),t&2){let n=h();M(e.hash===n.workingHash?0:1)}}function lx(t,e){if(t&1){let n=$();g(0,"app-create-pr-dialog",24),S("closed",function(){C(n);let o=h();return D(o.prDialogOpen.set(!1))})("created",function(){C(n);let o=h();return D(o.onPrCreated())}),v()}if(t&2){let n=h();P("branches",n.branches())}}var nv=500,rv="guito.commitDraft";function ux(){let t=ka(rv,{});return{subject:typeof t.subject=="string"?t.subject:"",description:typeof t.description=="string"?t.description:""}}var Ba=class t{git=_(Ot);workingHash=At;mutationBusy=this.git.mutating;statusLoading=b(!1);statusError=b("");commitDraft=ux();commitSubject=b(this.commitDraft.subject);commitDescription=b(this.commitDraft.description);displayedCommits=b([]);searchLoading=b(!1);historyGeneration=b(0);filterFailed=b(!1);tableLoading=j(()=>this.loading()?"Refreshing commits...":this.searchLoading()||this.search().trim()&&this.historyLoading()?"Searching commits...":this.historyLoading()?"Loading history...":"");commits=b([]);branches=b([]);selectedBranch=b("");showRemote=b(!0);search=b("");selectedCommit=b(null);loading=b(!1);busy=b(!1);error=b("");repoName=b("");workingChanges=b(null);totalCommits=b(0);historyLoading=b(!1);contextMenuState=b(null);contextMenuTarget=b(null);promptState=b(null);azureSettings=b(null);hasAzureUrl=j(()=>!!this.azureSettings()?.azureDevOpsUrl);prDialogOpen=b(!1);pendingDiscard=b(null);searchFocusHash=b("");pendingSearchHash=b("");scrollRequest=b(null);scrollRequestCounter=0;bodyMatches=b([]);refreshSub=null;historySub=null;workingSub=null;searchSub=null;unloadedCommits=j(()=>Math.max(0,this.totalCommits()-this.commits().length));commitIndex=j(()=>{let e=new Map;for(let n of this.commits())e.set(n.hash,n);return e});filteredCommits=j(()=>{let e=this.commits(),n=this.selectedBranch(),r=this.branches().filter(i=>this.showRemote()||!i.remote),o=n?r.filter(i=>i.name===n):r;if(o.length>0){let i=new Set;for(let s of o)for(let a of this.ancestorsOf(s.commit))i.add(a);e=e.filter(s=>i.has(s.hash))}else e=[];return e});searchMatches=j(()=>{let e=this.search().trim().toLowerCase();if(!e)return[];let n=new Set(this.bodyMatches()),r=this.filteredCommits().filter(s=>s.message.toLowerCase().includes(e)||s.author_name.toLowerCase().includes(e)||s.hash.toLowerCase().startsWith(e)||n.has(s.hash)).map(s=>s.hash),o=new Set(r),i=this.bodyMatches().filter(s=>!o.has(s));return[...r,...i]});searchIndex=j(()=>{let e=this.searchFocusHash();return e?this.searchMatches().indexOf(e):-1});constructor(){this.refresh(),Ie(()=>{let e=this.search().trim();this.selectedBranch(),this.historyGeneration(),ze(()=>{this.searchSub?.unsubscribe(),this.searchLoading.set(!1),this.bodyMatches.set([]),this.filterFailed.set(!1),this.error.set(""),this.searchFocusHash.set(""),this.pendingSearchHash.set(""),!this.loading()&&(this.selectedBranch()&&this.unloadedCommits()>0&&this.loadAllCommits(),e&&this.fetchBodyMatches(e))})}),Ie(()=>{!this.loading()&&!this.searchLoading()&&!this.historyLoading()&&!this.filterFailed()&&this.displayedCommits.set(this.filteredCommits())}),Ie(()=>{let e=this.pendingSearchHash();if(!e)return;let n=this.displayedCommits().find(r=>r.hash===e);n?ze(()=>{this.selectedCommit.set(n),this.scrollRequestCounter+=1,this.scrollRequest.set({hash:e,id:this.scrollRequestCounter}),this.pendingSearchHash.set("")}):this.unloadedCommits()>0&&!this.historyLoading()&&!this.loading()?ze(()=>this.loadMoreCommits()):!this.historyLoading()&&!this.loading()&&this.pendingSearchHash.set("")}),Ie(()=>{Ra(rv,{subject:this.commitSubject(),description:this.commitDescription()})})}ngOnDestroy(){this.refreshSub?.unsubscribe(),this.historySub?.unsubscribe(),this.workingSub?.unsubscribe(),this.searchSub?.unsubscribe()}refresh(){this.historySub?.unsubscribe(),this.workingSub?.unsubscribe(),this.searchSub?.unsubscribe(),this.searchLoading.set(!1),this.filterFailed.set(!1),this.statusLoading.set(!0),this.historyLoading.set(!1),this.loading.set(!0),this.error.set(""),this.refreshSub?.unsubscribe(),this.refreshSub=lc({history:this.git.getCommits(nv),branches:this.git.getAllBranches(),repo:this.git.getRepoInfo(),settings:this.git.getSettings().pipe(oo(()=>Ge(null))),working:this.git.getWorkingChanges().pipe(oo(e=>(this.statusError.set(this.errorMessage(e)),Ge(null))))}).subscribe({next:({history:e,branches:n,repo:r,settings:o,working:i})=>{this.commits.set(e.commits),this.totalCommits.set(Math.max(e.total,e.commits.length)),this.branches.set(n),this.repoName.set(r.name),o&&this.azureSettings.set(o),i&&(this.workingChanges.set(i),this.statusError.set("")),this.statusLoading.set(!1),this.loading.set(!1),this.historyGeneration.update(s=>s+1)},error:e=>{this.error.set(this.errorMessage(e)),this.filterFailed.set(!0),this.statusError.set(this.errorMessage(e)),this.statusLoading.set(!1),this.loading.set(!1)}})}refreshWorking(){this.workingSub?.unsubscribe(),this.statusLoading.set(!0),this.workingSub=this.git.getWorkingChanges().subscribe({next:e=>{this.workingChanges.set(e),this.statusError.set(""),this.statusLoading.set(!1)},error:e=>{this.statusError.set(this.errorMessage(e)),this.statusLoading.set(!1)}})}changeStage(e){this.busy()||this.mutationBusy()||this.statusLoading()||this.statusError()||(this.busy.set(!0),this.error.set(""),(e.staged?this.git.unstage(e.files):this.git.stage(e.files)).subscribe({next:()=>{this.refreshWorking(),this.busy.set(!1)},error:n=>{this.error.set(this.errorMessage(n)),this.refreshWorking(),this.busy.set(!1)}}))}stashChanges(e){this.busy()||this.mutationBusy()||this.statusLoading()||this.statusError()||this.git.stashSave(void 0,e).subscribe({next:()=>this.refresh(),error:n=>this.error.set(this.errorMessage(n))})}discardUnstaged(e){this.busy()||this.mutationBusy()||this.statusLoading()||this.statusError()||e.length&&(this.pendingDiscard.set(e),this.promptState.set({title:"Discard unstaged changes?",label:e.length===1?`${e[0]} will be discarded. This cannot be undone.`:`${e.length} files will be discarded. This cannot be undone.`,confirmOnly:!0,okLabel:"Discard",danger:!0}))}onPromptCancel(){this.pendingDiscard.set(null),this.promptState.set(null)}commitChanges(){this.busy()||this.mutationBusy()||this.statusLoading()||this.statusError()||!this.commitSubject().trim()||!this.workingChanges()?.staged.length||this.workingChanges()?.conflicted.length||(this.busy.set(!0),this.error.set(""),this.git.commit(this.commitSubject(),this.commitDescription()).subscribe({next:()=>{this.commitSubject.set(""),this.commitDescription.set(""),this.refresh(),this.busy.set(!1)},error:e=>{this.error.set(this.errorMessage(e)),this.refreshWorking(),this.busy.set(!1)}}))}loadMoreCommits(){this.loadHistory(this.git.getCommits(nv,this.commits().length))}loadAllCommits(){this.loadHistory(this.git.getCommits(void 0,this.commits().length))}loadHistory(e){if(this.historyLoading()||this.loading())return;let n=this.commits().length;this.filterFailed.set(!1),this.historyLoading.set(!0),this.historySub?.unsubscribe(),this.historySub=e.subscribe({next:({commits:r,total:o})=>{this.commits().length===n&&(this.commits.update(i=>[...i,...r]),this.totalCommits.set(r.length>0?Math.max(o,this.commits().length):this.commits().length)),this.historyLoading.set(!1)},error:r=>{this.error.set(this.errorMessage(r)),this.filterFailed.set(!0),this.historyLoading.set(!1)}})}fetchBodyMatches(e){this.searchSub?.unsubscribe(),this.searchLoading.set(!0),this.searchSub=this.git.searchCommits(e).subscribe({next:n=>{this.bodyMatches.set(n.hashes),this.searchLoading.set(!1)},error:n=>{this.filterFailed.set(!0),this.error.set(this.errorMessage(n)),this.searchLoading.set(!1)}})}navigateSearch(e){let n=this.searchMatches();if(n.length===0)return;let r=this.searchIndex(),o=r<0?e==="next"?0:n.length-1:e==="next"?(r+1)%n.length:(r-1+n.length)%n.length,i=n[o];this.searchFocusHash.set(i),this.pendingSearchHash.set(i)}onRemoteToggle(e){this.showRemote.set(e)}runRemoteAction(e){if(this.busy()||this.mutationBusy()||this.statusLoading())return;if(e==="rebase-from"){this.openRebaseFromDialog();return}if(e==="create-pr"){this.prDialogOpen.set(!0);return}if(e==="push-force"){this.promptState.set({title:"Force push?",label:"This will overwrite the remote branch with your local history. Remote commits missing locally may be lost.",confirmOnly:!0,okLabel:"Force Push",danger:!0});return}this.busy.set(!0),this.error.set(""),(e==="fetch"?this.git.fetch():e==="pull"?this.git.pull():e==="pull-rebase"?this.git.pull(!0):e==="push"?this.git.push():this.git.sync()).subscribe({next:()=>{this.busy.set(!1),this.refresh()},error:r=>{this.busy.set(!1),this.error.set(this.errorMessage(r))}})}openRebaseFromDialog(){let e=new Set(this.branches().map(o=>o.name)),n=["origin/main","origin/master"].filter(o=>e.has(o));n.forEach(o=>e.delete(o));let r=[...n,...e];r.length===0&&r.push("origin/main","origin/master"),this.promptState.set({title:"Rebase from branch",label:"Rebase the current branch onto:",options:r.map(o=>({value:o,label:o})),okLabel:"Rebase",searchable:!0})}openAzureSettings(){let e=this.azureSettings(),n=e?.source==="vscode"?"Base URL of your Azure DevOps Server, e.g. https://server/DefaultCollection. Currently provided by the VS Code setting guito.azureDevOpsUrl; a value saved here applies only while that setting is empty.":"Base URL of your Azure DevOps Server, e.g. https://server/DefaultCollection. Leave empty to disable pull request creation.";this.promptState.set({title:"Azure DevOps URL",label:n,value:e?.azureDevOpsUrl??"",placeholder:"https://server/DefaultCollection",allowEmpty:!0,okLabel:"Save"})}onPrCreated(){this.refresh()}onContextMenu(e){let n=[];if(e.target.kind==="commit")n.push({label:"Add Tag...",action:"add-tag"}),n.push({label:"Create Branch...",action:"create-branch"}),n.push({separator:!0}),n.push({label:"Checkout...",action:"checkout-commit"}),n.push({label:"Cherry Pick...",action:"cherry-pick"}),n.push({label:"Revert...",action:"revert-commit",danger:!0}),n.push({label:"Drop...",action:"drop-commit",danger:!0}),n.push({separator:!0}),n.push({label:"Merge into current branch...",action:"merge-commit"}),n.push({label:"Rebase current branch on this Commit...",action:"rebase-commit"}),n.push({label:"Reset current branch to this Commit...",action:"reset-commit",danger:!0}),n.push({separator:!0}),n.push({label:"Copy Commit Hash to Clipboard",action:"copy-hash"}),n.push({label:"Copy Commit Subject to Clipboard",action:"copy-subject"});else if(e.target.kind==="tag")n.push({label:"View Details",action:"tag-details"}),n.push({separator:!0}),n.push({label:"Delete Tag...",action:"tag-delete",danger:!0}),n.push({label:"Push Tag...",action:"tag-push"}),n.push({separator:!0}),n.push({label:"Create Archive",action:"create-archive"}),n.push({label:"Copy Tag Name to Clipboard",action:"copy-tag-name"});else if(e.target.kind==="branch"){let r=e.target.branch.type,o=r==="head"||r==="local";n.push({label:"Checkout Branch...",action:"checkout-branch"}),o&&(n.push({label:"Rename Branch...",action:"rename-branch"}),n.push({label:"Delete Branch...",action:"delete-branch",danger:!0,disabled:r==="head"})),n.push({label:"Delete Remote Branch...",action:"delete-remote-branch",danger:!0}),n.push({label:"Merge into current branch...",action:"merge-branch"}),n.push({label:"Pull into current branch...",action:"pull-branch"}),n.push({separator:!0}),n.push({label:"Create Archive",action:"create-archive"}),n.push({label:"Unselect in Branches Dropdown",action:"unselect-branch"}),n.push({separator:!0}),n.push({label:"Copy Branch Name to Clipboard",action:"copy-branch-name"})}else n.push({label:"Stash uncommitted changes...",action:"stash-working"}),n.push({label:"Reset uncommitted changes...",action:"reset-working",danger:!0}),n.push({label:"Clean untracked files...",action:"clean-untracked",danger:!0}),n.push({separator:!0}),n.push({label:"Open Source Control View",action:"open-source-control"});this.contextMenuTarget.set(e.target),this.contextMenuState.set({x:e.x,y:e.y,items:n})}onContextAction(e){if(this.busy()||this.mutationBusy()||this.statusLoading())return;let n=this.contextMenuTarget()?.commit??this.selectedCommit();switch(e){case"add-tag":this.promptState.set({title:"Add Tag",label:"Tag name",placeholder:"v1.0.0",okLabel:"Add Tag"});break;case"create-branch":this.promptState.set({title:"Create Branch",label:"Branch name",placeholder:"feature/my-branch",okLabel:"Create Branch"});break;case"checkout-commit":n&&this.git.checkout(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"cherry-pick":n&&this.git.cherryPick(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"open-commit":this.selectedCommit()===null&&this.selectedCommit.set(this.commits()[0]??null);break;case"copy-hash":n&&navigator.clipboard?.writeText(n.hash);break;case"copy-subject":n&&navigator.clipboard?.writeText(n.message);break;case"view-commit-diff":n&&this.selectedCommit.set(n);break;case"revert-commit":n&&this.git.revert(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"drop-commit":this.promptState.set({title:"Drop commit?",label:"This will reset the current branch to the commit before it.",confirmOnly:!0,okLabel:"Drop",danger:!0});break;case"merge-commit":n&&this.git.merge(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"rebase-commit":n&&this.git.rebase(n.hash).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"reset-commit":this.promptState.set({title:"Reset current branch to this commit?",label:"Choose the reset type:",options:[{value:"soft",label:"Soft",description:"Keep all changes staged"},{value:"mixed",label:"Mixed",description:"Keep changes, but unstage them"},{value:"hard",label:"Hard",description:"Discard all changes",danger:!0}],okLabel:"Reset",danger:!0});break;case"checkout-branch":this.contextMenuTarget()?.branch?.name&&this.git.checkout(this.contextMenuTarget().branch.name).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"delete-remote-branch":{let r=this.contextMenuTarget()?.branch?.name??"",o=r.indexOf("/");o>0&&this.git.deleteRemoteBranch(r.slice(0,o),r.slice(o+1)).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))});break}case"merge-branch":this.contextMenuTarget()?.branch?.name&&this.git.merge(this.contextMenuTarget().branch.name).subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"pull-branch":this.git.pull().subscribe({next:()=>this.refresh(),error:r=>this.error.set(this.errorMessage(r))});break;case"create-archive":{let r=this.contextMenuTarget(),o=r?.kind==="tag"?r.branch?.name:r?.commit?.hash;o&&window.open(Pm(`/api/archive?ref=${encodeURIComponent(o)}`),"_blank");break}case"tag-details":this.contextMenuTarget()?.commit&&this.selectedCommit.set(this.contextMenuTarget().commit);break;case"tag-delete":{let r=this.contextMenuTarget()?.branch?.name??"";this.promptState.set({title:"Delete tag?",label:`This will delete the tag "${r}".`,confirmOnly:!0,okLabel:"Delete",danger:!0});break}case"tag-push":{let r=this.contextMenuTarget()?.branch?.name??"";this.promptState.set({title:"Push tag?",label:`This will push the tag "${r}" to the remote.`,confirmOnly:!0,okLabel:"Push"});break}case"copy-tag-name":this.contextMenuTarget()?.branch?.name&&navigator.clipboard?.writeText(this.contextMenuTarget().branch.name);break;case"unselect-branch":this.selectedBranch.set("");break;case"copy-branch-name":this.contextMenuTarget()?.branch?.name&&navigator.clipboard?.writeText(this.contextMenuTarget().branch.name);break;case"rename-branch":this.promptState.set({title:"Rename branch",label:"New branch name",placeholder:"feature/my-branch",value:this.contextMenuTarget()?.branch?.name,okLabel:"Rename"});break;case"delete-branch":this.promptState.set({title:"Delete branch?",label:"This will delete the local branch.",confirmOnly:!0,okLabel:"Delete",danger:!0});break;case"open-working":this.selectedCommit.set({hash:At,date:new Date().toISOString(),message:"Uncommitted changes",refs:"",body:"",author_name:"You",author_email:"",parents:[]});break;case"stash-working":this.promptState.set({title:"Stash uncommitted changes",label:"Stash message (optional)",placeholder:"WIP",allowEmpty:!0,okLabel:"Stash"});break;case"reset-working":this.promptState.set({title:"Reset uncommitted changes?",label:"Tracked changes will be discarded. Untracked files will remain.",confirmOnly:!0,okLabel:"Reset",danger:!0});break;case"clean-untracked":this.promptState.set({title:"Clean untracked files?",label:"Untracked files will be permanently deleted.",confirmOnly:!0,okLabel:"Clean",danger:!0});break;case"discard-working":this.git.getWorkingChanges().subscribe({next:r=>{let o=[...r.files.map(i=>i.path),...r.untracked];o.length>0&&this.git.discard(o).subscribe({next:()=>this.refreshWorking(),error:i=>this.error.set(this.errorMessage(i))})},error:r=>this.error.set(this.errorMessage(r))});break;case"refresh-status":this.refresh();break;case"open-source-control":window.open("vscode://command/workbench.view.scm","_blank");break;default:break}this.contextMenuState.set(null)}onPromptConfirm(e){if(this.busy()||this.mutationBusy()||this.statusLoading())return;let n=this.promptState();if(!n)return;this.promptState.set(null);let r=this.contextMenuTarget()?.commit;if(n.title==="Add Tag"&&r){this.git.createTag(e,r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Create Branch"&&r){this.git.createBranch(e,r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Drop commit?"&&r){this.git.dropCommit(r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Reset current branch to this commit?"&&r){let o=e==="soft"||e==="mixed"?e:"hard";this.git.resetToCommit(r.hash,o).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))});return}if(n.title==="Delete tag?"){let o=this.contextMenuTarget()?.branch?.name;o&&this.git.deleteTag(o).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))});return}if(n.title==="Push tag?"){let o=this.contextMenuTarget()?.branch?.name;o&&this.git.pushTag(o).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))});return}if(n.title==="Force push?"){this.git.push(!0).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Discard unstaged changes?"){let o=this.pendingDiscard();this.pendingDiscard.set(null),o?.length&&this.git.discard(o,"unstaged").subscribe({next:()=>this.refreshWorking(),error:i=>this.error.set(this.errorMessage(i))});return}if(n.title==="Stash uncommitted changes"){this.git.stashSave(e||void 0).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Reset uncommitted changes?"){this.git.resetWorking().subscribe({next:()=>this.refreshWorking(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Clean untracked files?"){this.git.cleanUntracked().subscribe({next:()=>this.refreshWorking(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Rename branch"){let o=this.contextMenuTarget()?.branch?.name,i=e.trim();o&&i&&i!==o&&this.git.renameBranch(o,i).subscribe({next:()=>{this.selectedBranch()===o&&this.selectedBranch.set(i),this.refresh()},error:s=>this.error.set(this.errorMessage(s))});return}if(n.title==="Delete branch?"){let o=this.contextMenuTarget()?.branch?.name;o&&this.git.deleteBranch(o).subscribe({next:()=>{this.selectedBranch()===o&&this.selectedBranch.set(""),this.refresh()},error:i=>this.error.set(this.errorMessage(i))});return}if(n.title==="Rebase from branch"){let o=e.trim();o&&this.git.rebase(o).subscribe({next:()=>this.refresh(),error:i=>this.error.set(this.errorMessage(i))});return}if(n.title==="Azure DevOps URL"){this.git.saveSettings(e.trim()).subscribe({next:o=>this.azureSettings.set(o),error:o=>this.error.set(this.errorMessage(o))});return}}ancestorsOf(e){let n=this.commitIndex(),r=new Set,o=[e];for(;o.length;){let i=o.pop();if(r.has(i))continue;r.add(i);let s=n.get(i);s&&o.push(...s.parents)}return r}errorMessage(e){let n=e;return n?.status===400&&n.error?.error?n.error.error:"Failed to communicate with the Guito server."}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ye({type:t,selectors:[["app-root"]],decls:21,vars:23,consts:[[1,"app"],[1,"titlebar"],["aria-label","Repository logo",1,"brand"],["viewBox","0 0 16 16","aria-hidden","true",1,"logo"],["d","M4.5 2.5v11","stroke","#3794ff","stroke-width","1.6","fill","none"],["d","M4.5 11.5c4.5 0 4.5-7 7.5-7","stroke","#4ec9b0","stroke-width","1.6","fill","none"],["cx","4.5","cy","3.5","r","1.7","fill","#3794ff"],["cx","4.5","cy","8","r","1.7","fill","#3794ff"],["cx","4.5","cy","12.5","r","1.7","fill","#3794ff"],["cx","12","cy","4.5","r","1.7","fill","#4ec9b0"],[1,"title"],[3,"branchChange","remoteToggle","searchChange","searchNavigate","refresh","remoteAction","settingsClick","branches","selectedBranch","showRemote","busy","matchIndex","matchCount","prEnabled"],[1,"error-banner"],["role","alert",1,"error-banner"],[1,"content"],[3,"commitClick","contextMenu","loadMoreRequested","loadAllRequested","commits","loadingLabel","selectedHash","search","selectedBranch","showRemote","workingChanges","unloaded","historyLoading","scrollToHash"],[3,"select","closed","menu"],[3,"confirmed","cancelled","state"],[3,"branches"],["type","button",3,"click","disabled"],[3,"changes","busy","statusLoading","statusError","subject","description"],[3,"commit"],[3,"subjectChange","descriptionChange","stageChange","stashChange","discardRequest","commitRequested","retry","closed","changes","busy","statusLoading","statusError","subject","description"],[3,"closed","commit"],[3,"closed","created","branches"]],template:function(n,r){if(n&1&&(g(0,"div",0)(1,"header",1)(2,"div",2),K(),g(3,"svg",3),Ee(4,"path",4)(5,"path",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"circle",9),v(),xe(),g(10,"span",10),y(11,"Guito"),v()()(),g(12,"app-toolbar",11),S("branchChange",function(i){return r.selectedBranch.set(i)})("remoteToggle",function(i){return r.onRemoteToggle(i)})("searchChange",function(i){return r.search.set(i)})("searchNavigate",function(i){return r.navigateSearch(i)})("refresh",function(){return r.refresh()})("remoteAction",function(i){return r.runRemoteAction(i)})("settingsClick",function(){return r.openAzureSettings()}),v(),T(13,ox,4,2,"div",12),T(14,ix,4,2,"div",13),g(15,"main",14)(16,"app-commit-table",15),S("commitClick",function(i){return r.selectedCommit.set(i)})("contextMenu",function(i){return r.onContextMenu(i)})("loadMoreRequested",function(){return r.loadMoreCommits()})("loadAllRequested",function(){return r.loadAllCommits()}),v(),T(17,cx,2,1),v(),g(18,"app-context-menu",16),S("select",function(i){return r.onContextAction(i)})("closed",function(){return r.contextMenuState.set(null)}),v(),g(19,"app-prompt-dialog",17),S("confirmed",function(i){return r.onPromptConfirm(i)})("cancelled",function(){return r.onPromptCancel()}),v(),T(20,lx,1,1,"app-create-pr-dialog",18),v()),n&2){let o,i,s;f(12),P("branches",r.branches())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("busy",r.busy()||r.mutationBusy()||r.statusLoading())("matchIndex",r.searchIndex())("matchCount",r.searchMatches().length)("prEnabled",r.hasAzureUrl()),f(),M(r.error()?13:-1),f(),M(r.statusError()&&((o=r.selectedCommit())==null?null:o.hash)!==r.workingHash?14:-1),f(2),P("commits",r.displayedCommits())("loadingLabel",r.tableLoading())("selectedHash",((i=r.selectedCommit())==null?null:i.hash)??"")("search",r.search())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("workingChanges",r.workingChanges())("unloaded",r.unloadedCommits())("historyLoading",r.historyLoading())("scrollToHash",r.scrollRequest()),f(),M((s=r.selectedCommit())?17:-1,s),f(),P("menu",r.contextMenuState()),f(),P("state",r.promptState()),f(),M(r.prDialogOpen()?20:-1)}},dependencies:[ja,Aa,wa,Oa,La,Va,Fa],styles:[".app[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh;overflow:hidden}.titlebar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex:none;height:38px;padding:0 14px;background:var(--bg-alt);border-bottom:1px solid var(--border)}.brand[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.logo[_ngcontent-%COMP%]{width:18px;height:18px}.title[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:var(--text-bright);letter-spacing:.2px}.repo[_ngcontent-%COMP%]{font-size:12px;color:var(--text-dim)}.error-banner[_ngcontent-%COMP%]{flex:none;padding:8px 14px;background:#5a1d1d;color:#f48771;border-bottom:1px solid #7a2d2d;font-size:12px}.content[_ngcontent-%COMP%]{display:flex;flex:1;min-height:0}.loading-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#1e1e1e8c;z-index:100}.spinner[_ngcontent-%COMP%]{width:28px;height:28px;border:3px solid rgba(255,255,255,.15);border-top-color:var(--accent);border-radius:50%;animation:_ngcontent-%COMP%_spin .8s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}"],changeDetection:0})};ud(Ba,Fm).catch(t=>console.error(t));
|