guito 0.5.3 → 0.5.4

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.
@@ -0,0 +1,6 @@
1
+ var Og=Object.defineProperty,Pg=Object.defineProperties;var Fg=Object.getOwnPropertyDescriptors;var id=Object.getOwnPropertySymbols;var Lg=Object.prototype.hasOwnProperty,jg=Object.prototype.propertyIsEnumerable;var sd=(e,t,n)=>t in e?Og(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t)=>{for(var n in t||={})Lg.call(t,n)&&sd(e,n,t[n]);if(id)for(var n of id(t))jg.call(t,n)&&sd(e,n,t[n]);return e},ae=(e,t)=>Pg(e,Fg(t));var Xn=(e,t,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(e,t)).next())});var wa;function ei(){return wa}function yt(e){let t=wa;return wa=e,t}var ad=Symbol("NotFound");function Jn(e){return e===ad||e?.name==="\u0275NotFound"}var Me=null,ti=!1,Ia=1,Bg=null,_e=Symbol("SIGNAL");function S(e){let t=Me;return Me=e,t}function ii(){return Me}var rn={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 er(e){if(ti)throw new Error("");if(Me===null)return;Me.consumerOnSignalRead(e);let t=Me.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Me.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Me.producers,n!==void 0&&n.producer===e)){Me.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Me&&(!r||Hg(o,Me)))return;let i=rr(Me),s={producer:e,consumer:Me,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Me.producersTail=s,t!==void 0?t.nextProducer=s:Me.producers=s,i&&dd(e,s)}function cd(){Ia++}function si(e){if(!(rr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ia)){if(!e.producerMustRecompute(e)&&!nr(e)){oi(e);return}e.producerRecomputeValue(e),oi(e)}}function Ta(e){if(e.consumers===void 0)return;let t=ti;ti=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Vg(r)}}finally{ti=t}}function xa(){return Me?.consumerAllowSignalWrites!==!1}function Vg(e){e.dirty=!0,Ta(e),e.consumerMarkedDirty?.(e)}function oi(e){e.dirty=!1,e.lastCleanEpoch=Ia}function on(e){return e&&ld(e),S(e)}function ld(e){e.producersTail=void 0,e.recomputing=!0}function tr(e,t){S(t),e&&ud(e)}function ud(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(rr(e))do n=Ma(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function nr(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(si(n),r!==n.version))return!0}return!1}function sn(e){if(rr(e)){let t=e.producers;for(;t!==void 0;)t=Ma(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function dd(e,t){let n=e.consumersTail,r=rr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)dd(o.producer,o)}function Ma(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!rr(t)){let i=t.producers;for(;i!==void 0;)i=Ma(i)}return n}function rr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function ai(e){Bg?.(e)}function Hg(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function ci(e,t){return Object.is(e,t)}function Br(e,t){let n=Object.create($g);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(si(n),er(n),n.value===jr)throw n.error;return n.value};return r[_e]=n,ai(n),r}var ni=Symbol("UNSET"),ri=Symbol("COMPUTING"),jr=Symbol("ERRORED"),$g=ae(K({},rn),{value:ni,dirty:!0,error:null,equal:ci,kind:"computed",producerMustRecompute(e){return e.value===ni||e.value===ri},producerRecomputeValue(e){if(e.value===ri)throw new Error("");let t=e.value;e.value=ri;let n=on(e),r,o=!1;try{r=e.computation(),S(null),o=t!==ni&&t!==jr&&r!==jr&&e.equal(t,r)}catch(i){r=jr,e.error=i}finally{tr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Ug(){throw new Error}var fd=Ug;function pd(e){fd(e)}function Sa(e){fd=e}var zg=null;function Na(e,t){let n=Object.create(li);n.value=e,t!==void 0&&(n.equal=t);let r=()=>hd(n);return r[_e]=n,ai(n),[r,s=>or(n,s),s=>Ra(n,s)]}function hd(e){return er(e),e.value}function or(e,t){xa()||pd(e),e.equal(e.value,t)||(e.value=t,Gg(e))}function Ra(e,t){xa()||pd(e),or(e,t(e.value))}var li=ae(K({},rn),{equal:ci,value:void 0,kind:"signal"});function Gg(e){e.version++,cd(),Ta(e),zg?.(e)}function L(e){return typeof e=="function"}function ir(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var ui=ir(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function an(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var re=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(L(r))try{r()}catch(i){t=i instanceof ui?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{md(i)}catch(s){t=t??[],s instanceof ui?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ui(t)}}add(t){var n;if(t&&t!==this)if(this.closed)md(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&an(n,t)}remove(t){let{_finalizers:n}=this;n&&an(n,t),t instanceof e&&t._removeParent(this)}};re.EMPTY=(()=>{let e=new re;return e.closed=!0,e})();var Aa=re.EMPTY;function di(e){return e instanceof re||e&&"closed"in e&&L(e.remove)&&L(e.add)&&L(e.unsubscribe)}function md(e){L(e)?e():e.unsubscribe()}var it={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var sr={setTimeout(e,t,...n){let{delegate:r}=sr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=sr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function fi(e){sr.setTimeout(()=>{let{onUnhandledError:t}=it;if(t)t(e);else throw e})}function Vr(){}var gd=ka("C",void 0,void 0);function yd(e){return ka("E",void 0,e)}function vd(e){return ka("N",e,void 0)}function ka(e,t,n){return{kind:e,value:t,error:n}}var cn=null;function ar(e){if(it.useDeprecatedSynchronousErrorHandling){let t=!cn;if(t&&(cn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=cn;if(cn=null,n)throw r}}else e()}function Dd(e){it.useDeprecatedSynchronousErrorHandling&&cn&&(cn.errorThrown=!0,cn.error=e)}var ln=class extends re{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,di(t)&&t.add(this)):this.destination=Zg}static create(t,n,r){return new st(t,n,r)}next(t){this.isStopped?Pa(vd(t),this):this._next(t)}error(t){this.isStopped?Pa(yd(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Pa(gd,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Wg=Function.prototype.bind;function Oa(e,t){return Wg.call(e,t)}var Fa=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){pi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){pi(r)}else pi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){pi(n)}}},st=class extends ln{constructor(t,n,r){super();let o;if(L(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&it.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Oa(t.next,i),error:t.error&&Oa(t.error,i),complete:t.complete&&Oa(t.complete,i)}):o=t}this.destination=new Fa(o)}};function pi(e){it.useDeprecatedSynchronousErrorHandling?Dd(e):fi(e)}function qg(e){throw e}function Pa(e,t){let{onStoppedNotification:n}=it;n&&sr.setTimeout(()=>n(e,t))}var Zg={closed:!0,next:Vr,error:qg,complete:Vr};var cr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function lr(e){return e}function bd(e){return e.length===0?lr:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var j=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Qg(n)?n:new st(n,r,o);return ar(()=>{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=_d(r),new r((o,i)=>{let s=new st({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)}[cr](){return this}pipe(...n){return bd(n)(this)}toPromise(n){return n=_d(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function _d(e){var t;return(t=e??it.Promise)!==null&&t!==void 0?t:Promise}function Yg(e){return e&&L(e.next)&&L(e.error)&&L(e.complete)}function Qg(e){return e&&e instanceof ln||Yg(e)&&di(e)}function La(e){return L(e?.lift)}function V(e){return t=>{if(La(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function U(e,t,n,r,o){return new ja(e,t,n,r,o)}var ja=class extends ln{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Ed(){return V((e,t)=>{let n=null;e._refCount++;let r=U(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Hr=class extends j{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,La(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new re;let n=this.getSubject();t.add(this.source.subscribe(U(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=re.EMPTY)}return t}refCount(){return Ed()(this)}};var ur={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=ur;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new re(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=ur;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=ur;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var Cd=ir(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=(()=>{class e extends j{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new hi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Cd}next(n){ar(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){ar(()=>{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(){ar(()=>{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?Aa:(this.currentObservers=null,i.push(n),new re(()=>{this.currentObservers=null,an(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new j;return n.source=this,n}}return e.create=(t,n)=>new hi(t,n),e})(),hi=class extends ee{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Aa}};var $r=class extends ee{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Ur={now(){return(Ur.delegate||Date).now()},delegate:void 0};var un=class extends ee{constructor(t=1/0,n=1/0,r=Ur){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<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 mi=class extends re{constructor(t,n){super()}schedule(t,n=0){return this}};var zr={setInterval(e,t,...n){let{delegate:r}=zr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=zr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Bt=class extends mi{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let 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(t,n,r=0){return zr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&zr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}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:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,an(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Kg=1,Ba,Va={};function wd(e){return e in Va?(delete Va[e],!0):!1}var Id={setImmediate(e){let t=Kg++;return Va[t]=!0,Ba||(Ba=Promise.resolve()),Ba.then(()=>wd(t)&&e()),t},clearImmediate(e){wd(e)}};var{setImmediate:Xg,clearImmediate:Jg}=Id,Gr={setImmediate(...e){let{delegate:t}=Gr;return(t?.setImmediate||Xg)(...e)},clearImmediate(e){let{delegate:t}=Gr;return(t?.clearImmediate||Jg)(e)},delegate:void 0};var gi=class extends Bt{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Gr.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Gr.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var dr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};dr.now=Ur.now;var Vt=class extends dr{constructor(t,n=dr.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var yi=class extends Vt{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Ha=new yi(gi);var Wr=new Vt(Bt),Td=Wr;var vi=class extends Bt{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=ur.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(ur.cancelAnimationFrame(n),t._scheduled=void 0)}};var Di=class extends Vt{flush(t){this._active=!0;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var $a=new Di(vi);var xd=new j(e=>e.complete());function bi(e){return e&&L(e.schedule)}function Md(e){return e[e.length-1]}function Sd(e){return L(Md(e))?e.pop():void 0}function fr(e){return bi(Md(e))?e.pop():void 0}function Rd(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(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(e,t||[])).next())})}function Nd(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function dn(e){return this instanceof dn?(this.v=e,this):new dn(e)}function Ad(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(E){return new Promise(function(_,D){i.push([f,E,_,D])>1||c(f,E)})},g&&(o[f]=g(o[f])))}function c(f,g){try{l(r[f](g))}catch(E){p(i[0][3],E)}}function l(f){f.value instanceof dn?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function kd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Nd=="function"?Nd(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var _i=e=>e&&typeof e.length=="number"&&typeof e!="function";function Ei(e){return L(e?.then)}function Ci(e){return L(e[cr])}function wi(e){return Symbol.asyncIterator&&L(e?.[Symbol.asyncIterator])}function Ii(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function ey(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ti=ey();function xi(e){return L(e?.[Ti])}function Mi(e){return Ad(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield dn(n.read());if(o)return yield dn(void 0);yield yield dn(r)}}finally{n.releaseLock()}})}function Si(e){return L(e?.getReader)}function se(e){if(e instanceof j)return e;if(e!=null){if(Ci(e))return ty(e);if(_i(e))return ny(e);if(Ei(e))return ry(e);if(wi(e))return Od(e);if(xi(e))return oy(e);if(Si(e))return iy(e)}throw Ii(e)}function ty(e){return new j(t=>{let n=e[cr]();if(L(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ny(e){return new j(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function ry(e){return new j(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,fi)})}function oy(e){return new j(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Od(e){return new j(t=>{sy(e,t).catch(n=>t.error(n))})}function iy(e){return Od(Mi(e))}function sy(e,t){var n,r,o,i;return Rd(this,void 0,void 0,function*(){try{for(n=kd(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function Ye(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ni(e,t=0){return V((n,r)=>{n.subscribe(U(r,o=>Ye(r,e,()=>r.next(o),t),()=>Ye(r,e,()=>r.complete(),t),o=>Ye(r,e,()=>r.error(o),t)))})}function Ri(e,t=0){return V((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Pd(e,t){return se(e).pipe(Ri(t),Ni(t))}function Fd(e,t){return se(e).pipe(Ri(t),Ni(t))}function Ld(e,t){return new j(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function jd(e,t){return new j(n=>{let r;return Ye(n,t,()=>{r=e[Ti](),Ye(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>L(r?.return)&&r.return()})}function Ai(e,t){if(!e)throw new Error("Iterable cannot be null");return new j(n=>{Ye(n,t,()=>{let r=e[Symbol.asyncIterator]();Ye(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Bd(e,t){return Ai(Mi(e),t)}function Vd(e,t){if(e!=null){if(Ci(e))return Pd(e,t);if(_i(e))return Ld(e,t);if(Ei(e))return Fd(e,t);if(wi(e))return Ai(e,t);if(xi(e))return jd(e,t);if(Si(e))return Bd(e,t)}throw Ii(e)}function ki(e,t){return t?Vd(e,t):se(e)}function Oe(...e){let t=fr(e);return ki(e,t)}function qr(e){return!!e&&(e instanceof j||L(e.lift)&&L(e.subscribe))}var Hd=ir(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Oi(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new st({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Hd)}});e.subscribe(i)})}function $d(e){return e instanceof Date&&!isNaN(e)}function Be(e,t){return V((n,r)=>{let o=0;n.subscribe(U(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:ay}=Array;function cy(e,t){return ay(t)?e(...t):e(t)}function Ud(e){return Be(t=>cy(e,t))}var{isArray:ly}=Array,{getPrototypeOf:uy,prototype:dy,keys:fy}=Object;function zd(e){if(e.length===1){let t=e[0];if(ly(t))return{args:t,keys:null};if(py(t)){let n=fy(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function py(e){return e&&typeof e=="object"&&uy(e)===dy}function Gd(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Wd(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=E=>l<r?g(E):c.push(E),g=E=>{i&&t.next(E),l++;let _=!1;se(n(E,u++)).subscribe(U(t,D=>{o?.(D),i?f(D):t.next(D)},()=>{_=!0},void 0,()=>{if(_)try{for(l--;c.length&&l<r;){let D=c.shift();s?Ye(t,s,()=>g(D)):g(D)}p()}catch(D){t.error(D)}}))};return e.subscribe(U(t,f,()=>{d=!0,p()})),()=>{a?.()}}function pr(e,t,n=1/0){return L(t)?pr((r,o)=>Be((i,s)=>t(r,i,o,s))(se(e(r,o))),n):(typeof t=="number"&&(n=t),V((r,o)=>Wd(r,o,e,n)))}function qd(e=1/0){return pr(lr,e)}function Zd(){return qd(1)}function Ua(...e){return Zd()(ki(e,fr(e)))}function za(...e){let t=Sd(e),{args:n,keys:r}=zd(e),o=new j(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;se(n[u]).subscribe(U(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Gd(r,a):a),i.complete())}))}});return t?o.pipe(Ud(t)):o}function Yd(e=0,t,n=Td){let r=-1;return t!=null&&(bi(t)?n=t:r=t),new j(o=>{let i=$d(e)?+e-n.now():e;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 fn(e,t){return V((n,r)=>{let o=0;n.subscribe(U(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Qd(e){return V((t,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()};t.subscribe(U(n,l=>{r=!0,o=l,i||se(e(l)).subscribe(i=U(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Zr(e,t=Wr){return Qd(()=>Yd(e,t))}function Yr(e){return V((t,n)=>{let r=null,o=!1,i;r=t.subscribe(U(n,void 0,void 0,s=>{i=se(e(s,Yr(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Ga(e,t){return L(t)?pr(e,t,1):pr(e,1)}function Wa(e,t=Wr){return V((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+e,u=t.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(U(r,l=>{i=l,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function qa(e){return e<=0?()=>xd:V((t,n)=>{let r=0;t.subscribe(U(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Qr(e,t=lr){return e=e??hy,V((n,r)=>{let o,i=!0;n.subscribe(U(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function hy(e,t){return e===t}function Kr(e){return V((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Za(){return V((e,t)=>{let n,r=!1;e.subscribe(U(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function Kd(e={}){let{connector:t=()=>new ee,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,l=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,u=d=!1},g=()=>{let E=s;f(),E?.unsubscribe()};return V((E,_)=>{l++,!d&&!u&&p();let D=c=c??t();_.add(()=>{l--,l===0&&!d&&!u&&(a=Ya(g,o))}),D.subscribe(_),!s&&l>0&&(s=new st({next:ie=>D.next(ie),error:ie=>{d=!0,p(),a=Ya(f,n,ie),D.error(ie)},complete:()=>{u=!0,p(),a=Ya(f,r),D.complete()}}),se(E).subscribe(s))})(i)}}function Ya(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new st({next:()=>{r.unsubscribe(),e()}});return se(t(...n)).subscribe(r)}function Qa(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,Kd({connector:()=>new un(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Pi(...e){let t=fr(e);return V((n,r)=>{(t?Ua(e,n,t):Ua(e,n)).subscribe(r)})}function Xr(e,t){return V((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(U(r,c=>{o?.unsubscribe();let l=0,u=i++;se(e(c,u)).subscribe(o=U(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function pn(e){return V((t,n)=>{se(e).subscribe(U(n,()=>n.complete(),Vr)),!n.closed&&t.subscribe(n)})}function Xd(e){let t=S(null);try{return e()}finally{S(t)}}var Jd=ae(K({},rn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function ef(e){if(e.dirty=!1,e.version>0&&!nr(e))return;e.version++;let t=on(e);try{e.cleanup(),e.fn()}finally{tr(e,t)}}var lc="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",C=class extends Error{code;constructor(t,n){super(Dn(t,n)),this.code=t}};function my(e){return`NG0${Math.abs(e)}`}function Dn(e,t){return`${my(e)}${t?": "+t:""}`}var bn=globalThis;function W(e){for(let t in e)if(e[t]===W)return t;throw Error("")}function rf(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ht(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Ht).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function Bi(e,t){return e?t?`${e} ${t}`:e:t||""}var gy=W({__forward_ref__:W});function mr(e){return e.__forward_ref__=mr,e.toString=function(){return Ht(this())},e}function Se(e){return of(e)?e():e}function of(e){return typeof e=="function"&&e.hasOwnProperty(gy)&&e.__forward_ref__===mr}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Vi(e){return yy(e,Hi)}function yy(e,t){return e.hasOwnProperty(t)&&e[t]||null}function vy(e){let t=e?.[Hi]??null;return t||null}function Xa(e){return e&&e.hasOwnProperty(Li)?e[Li]:null}var Hi=W({\u0275prov:W}),Li=W({\u0275inj:W}),T=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function uc(e){return e&&!!e.\u0275providers}var dc=W({\u0275cmp:W}),fc=W({\u0275dir:W}),pc=W({\u0275pipe:W});var Ja=W({\u0275fac:W}),_n=W({__NG_ELEMENT_ID__:W}),tf=W({__NG_ENV_ID__:W});function $i(e){return typeof e=="string"?e:e==null?"":String(e)}function sf(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():$i(e)}var af=W({ngErrorCode:W}),Dy=W({ngErrorMessage:W}),by=W({ngTokenPath:W});function hc(e,t){return cf("",-200,t)}function Ui(e,t){throw new C(-201,!1)}function cf(e,t,n){let r=new C(t,e);return r[af]=t,r[Dy]=e,n&&(r[by]=n),r}function _y(e){return e[af]}var ec;function lf(){return ec}function Pe(e){let t=ec;return ec=e,t}function mc(e,t,n){let r=Vi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Ui(e,"Injector")}var Ey={},hn=Ey,tc="__NG_DI_FLAG__",nc=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=mn(n)||0;try{return this.injector.get(t,r&8?null:hn,r)}catch(o){if(Jn(o))return o;throw o}}};function Cy(e,t=0){let n=ei();if(n===void 0)throw new C(-203,!1);if(n===null)return mc(e,void 0,t);{let r=wy(t),o=n.retrieve(e,r);if(Jn(o)){if(r.optional)return null;throw o}return o}}function B(e,t=0){return(lf()||Cy)(Se(e),t)}function m(e,t){return B(e,mn(t))}function mn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function wy(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function rc(e){let t=[];for(let n=0;n<e.length;n++){let r=Se(e[n]);if(Array.isArray(r)){if(r.length===0)throw new C(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Iy(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(B(o,i))}else t.push(B(r))}return t}function gc(e,t){return e[tc]=t,e.prototype[tc]=t,e}function Iy(e){return e[tc]}function gn(e,t){let n=e.hasOwnProperty(Ja);return n?e[Ja]:null}function uf(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function df(e){return e.flat(Number.POSITIVE_INFINITY)}function zi(e,t){e.forEach(n=>Array.isArray(n)?zi(n,t):t(n))}function yc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function no(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ff(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function pf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Gi(e,t,n){let r=gr(e,t);return r>=0?e[r|1]=n:(r=~r,pf(e,r,t,n)),r}function Wi(e,t){let n=gr(e,t);if(n>=0)return e[n|1]}function gr(e,t){return Ty(e,t,1)}function Ty(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Ut={},Qe=[],En=new T(""),vc=new T("",-1),Dc=new T(""),eo=class{get(t,n=hn){if(n===hn){let o=cf("",-201);throw o.name="\u0275NotFound",o}return n}};function Cn(e){return e[dc]||null}function bc(e){return e[fc]||null}function hf(e){return e[pc]||null}function ro(e){return{\u0275providers:e}}function mf(...e){return{\u0275providers:_c(!0,e),\u0275fromNgModule:!0}}function _c(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return zi(t,s=>{let a=s;ji(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&gf(o,i),n}function gf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ec(o,i=>{t(i,r)})}}function ji(e,t,n,r){if(e=Se(e),!e)return!1;let o=null,i=Xa(e),s=!i&&Cn(e);if(!i&&!s){let c=e.ngModule;if(i=Xa(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)ji(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;zi(i.imports,u=>{ji(u,t,n,r)&&(l||=[],l.push(u))}),l!==void 0&&gf(l,t)}if(!a){let l=gn(o)||(()=>new o);t({provide:o,useFactory:l,deps:Qe},o),t({provide:Dc,useValue:o,multi:!0},o),t({provide:En,useValue:()=>B(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Ec(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Ec(e,t){for(let n of e)uc(n)&&(n=n.\u0275providers),Array.isArray(n)?Ec(n,t):t(n)}var xy=W({provide:String,useValue:W});function yf(e){return e!==null&&typeof e=="object"&&xy in e}function My(e){return!!(e&&e.useExisting)}function Sy(e){return!!(e&&e.useFactory)}function yn(e){return typeof e=="function"}function vf(e){return!!e.useClass}var oo=new T(""),Fi={},nf={},Ka;function io(){return Ka===void 0&&(Ka=new eo),Ka}var Ve=class{},vn=class extends Ve{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,ic(t,s=>this.processProvider(s)),this.records.set(vc,hr(void 0,this)),o.has("environment")&&this.records.set(Ve,hr(void 0,this));let i=this.records.get(oo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Dc,Qe,{self:!0}))}retrieve(t,n){let r=mn(n)||0;try{return this.get(t,hn,r)}catch(o){if(Jn(o))return o;throw o}}destroy(){Jr(this),this._destroyed=!0;let t=S(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(),S(t)}}onDestroy(t){return Jr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Jr(this);let n=yt(this),r=Pe(void 0),o;try{return t()}finally{yt(n),Pe(r)}}get(t,n=hn,r){if(Jr(this),t.hasOwnProperty(tf))return t[tf](this);let o=mn(r),i,s=yt(this),a=Pe(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=Oy(t)&&Vi(t);u&&this.injectableDefInScope(u)?l=hr(oc(t),Fi):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?io():this.parent;return n=o&8&&n===hn?null:n,c.get(t,n)}catch(c){let l=_y(c);throw l===-200||l===-201?new C(l,null):c}finally{Pe(a),yt(s)}}resolveInjectorInitializers(){let t=S(null),n=yt(this),r=Pe(void 0),o;try{let i=this.get(En,Qe,{self:!0});for(let s of i)s()}finally{yt(n),Pe(r),S(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Ht(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Se(t);let n=yn(t)?t:Se(t&&t.provide),r=Ry(t);if(!yn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=hr(void 0,Fi,!0),o.factory=()=>rc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=S(null);try{if(n.value===nf)throw hc(Ht(t));return n.value===Fi&&(n.value=nf,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&ky(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{S(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Se(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function oc(e){let t=Vi(e),n=t!==null?t.factory:gn(e);if(n!==null)return n;if(e instanceof T)throw new C(204,!1);if(e instanceof Function)return Ny(e);throw new C(204,!1)}function Ny(e){if(e.length>0)throw new C(204,!1);let n=vy(e);return n!==null?()=>n.factory(e):()=>new e}function Ry(e){if(yf(e))return hr(void 0,e.useValue);{let t=Cc(e);return hr(t,Fi)}}function Cc(e,t,n){let r;if(yn(e)){let o=Se(e);return gn(o)||oc(o)}else if(yf(e))r=()=>Se(e.useValue);else if(Sy(e))r=()=>e.useFactory(...rc(e.deps||[]));else if(My(e))r=(o,i)=>B(Se(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Se(e&&(e.useClass||e.provide));if(Ay(e))r=()=>new o(...rc(e.deps));else return gn(o)||oc(o)}return r}function Jr(e){if(e.destroyed)throw new C(205,!1)}function hr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Ay(e){return!!e.deps}function ky(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Oy(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function ic(e,t){for(let n of e)Array.isArray(n)?ic(n,t):n&&uc(n)?ic(n.\u0275providers,t):t(n)}function yr(e,t){let n;e instanceof vn?(Jr(e),n=e):n=new nc(e);let r,o=yt(n),i=Pe(void 0);try{return t()}finally{yt(o),Pe(i)}}function Df(){return lf()!==void 0||ei()!=null}var ct=0,x=1,R=2,ve=3,Ke=4,Fe=5,wn=6,vr=7,fe=8,St=9,Nt=10,te=11,Dr=12,wc=13,In=14,Le=15,zt=16,Tn=17,vt=18,so=19,Ic=20,Mt=21,qi=22,Rt=23,Ge=24,xn=25,Mn=26,ce=27,bf=1,Tc=6,Gt=7,ao=8,Sn=9,le=10;function Dt(e){return Array.isArray(e)&&typeof e[bf]=="object"}function lt(e){return Array.isArray(e)&&e[bf]===!0}function xc(e){return(e.flags&4)!==0}function Wt(e){return e.componentOffset>-1}function co(e){return(e.flags&1)===1}function bt(e){return!!e.template}function br(e){return(e[R]&512)!==0}function Nn(e){return(e[R]&256)===256}var Mc="svg",_f="math";function Xe(e){for(;Array.isArray(e);)e=e[ct];return e}function Sc(e,t){return Xe(t[e])}function ut(e,t){return Xe(t[e.index])}function lo(e,t){return e.data[t]}function Ef(e,t){return e[t]}function Nc(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Je(e,t){let n=t[e];return Dt(n)?n:n[ct]}function Cf(e){return(e[R]&4)===4}function Zi(e){return(e[R]&128)===128}function wf(e){return lt(e[ve])}function et(e,t){return t==null?null:e[t]}function Rc(e){e[Tn]=0}function Ac(e){e[R]&1024||(e[R]|=1024,Zi(e)&&qt(e))}function If(e,t){for(;e>0;)t=t[In],e--;return t}function uo(e){return!!(e[R]&9216||e[Ge]?.dirty)}function Yi(e){e[Nt].changeDetectionScheduler?.notify(8),e[R]&64&&(e[R]|=1024),uo(e)&&qt(e)}function qt(e){e[Nt].changeDetectionScheduler?.notify(0);let t=$t(e);for(;t!==null&&!(t[R]&8192||(t[R]|=8192,!Zi(t)));)t=$t(t)}function kc(e,t){if(Nn(e))throw new C(911,!1);e[Mt]===null&&(e[Mt]=[]),e[Mt].push(t)}function Tf(e,t){if(e[Mt]===null)return;let n=e[Mt].indexOf(t);n!==-1&&e[Mt].splice(n,1)}function $t(e){let t=e[ve];return lt(t)?t[ve]:t}function Oc(e){return e[vr]??=[]}function Pc(e){return e.cleanup??=[]}function xf(e,t,n,r){let o=Oc(t);o.push(n),e.firstCreatePass&&Pc(e).push(r,o.length-1)}var F={lFrame:jf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var sc=!1;function Mf(){return F.lFrame.elementDepthCount}function Sf(){F.lFrame.elementDepthCount++}function Fc(){F.lFrame.elementDepthCount--}function Lc(){return F.bindingsEnabled}function jc(){return F.skipHydrationRootTNode!==null}function Bc(e){return F.skipHydrationRootTNode===e}function Vc(){F.skipHydrationRootTNode=null}function k(){return F.lFrame.lView}function pe(){return F.lFrame.tView}function H(e){return F.lFrame.contextLView=e,e[fe]}function $(e){return F.lFrame.contextLView=null,e}function Ne(){let e=Hc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Hc(){return F.lFrame.currentTNode}function Nf(){let e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _r(e,t){let n=F.lFrame;n.currentTNode=e,n.isParent=t}function $c(){return F.lFrame.isParent}function Uc(){F.lFrame.isParent=!1}function zc(){return sc}function Er(e){let t=sc;return sc=e,t}function Rf(){let e=F.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Af(e){return F.lFrame.bindingIndex=e}function Rn(){return F.lFrame.bindingIndex++}function Gc(e){let t=F.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function kf(){return F.lFrame.inI18n}function Of(e,t){let n=F.lFrame;n.bindingIndex=n.bindingRootIndex=e,Qi(t)}function Pf(){return F.lFrame.currentDirectiveIndex}function Qi(e){F.lFrame.currentDirectiveIndex=e}function Ff(e){let t=F.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ki(){return F.lFrame.currentQueryIndex}function fo(e){F.lFrame.currentQueryIndex=e}function Py(e){let t=e[x];return t.type===2?t.declTNode:t.type===1?e[Fe]:null}function Wc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Py(i),o===null||(i=i[In],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=F.lFrame=Lf();return r.currentTNode=t,r.lView=e,!0}function Xi(e){let t=Lf(),n=e[x];F.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Lf(){let e=F.lFrame,t=e===null?null:e.child;return t===null?jf(e):t}function jf(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Bf(){let e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var qc=Bf;function Ji(){let e=Bf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Vf(e){return(F.lFrame.contextLView=If(e,F.lFrame.contextLView))[fe]}function At(){return F.lFrame.selectedIndex}function Zt(e){F.lFrame.selectedIndex=e}function es(){let e=F.lFrame;return lo(e.tView,e.selectedIndex)}function Y(){F.lFrame.currentNamespace=Mc}function De(){Fy()}function Fy(){F.lFrame.currentNamespace=null}function Zc(){return F.lFrame.currentNamespace}var Hf=!0;function ts(){return Hf}function ns(e){Hf=e}function ac(e,t=null,n=null,r){let o=$f(e,t,n,r);return o.resolveInjectorInitializers(),o}function $f(e,t=null,n=null,r,o=new Set){let i=[n||Qe,mf(e)];return r=r||(typeof e=="object"?void 0:Ht(e)),new vn(i,t||io(),r||null,o)}var He=class e{static THROW_IF_NOT_FOUND=hn;static NULL=new eo;static create(t,n){if(Array.isArray(t))return ac({name:""},n,t,"");{let r=t.name??"";return ac({name:r},t.parent,t.providers,r)}}static \u0275prov=A({token:e,providedIn:"any",factory:()=>B(vc)});static __NG_ELEMENT_ID__=-1},Ee=new T(""),$e=(()=>{class e{static __NG_ELEMENT_ID__=Ly;static __NG_ENV_ID__=n=>n}return e})(),to=class extends $e{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Nn(this._lView)}onDestroy(t){let n=this._lView;return kc(n,t),()=>Tf(n,t)}};function Ly(){return new to(k())}var ze=class{_console=console;handleError(t){this._console.error("ERROR",t)}},_t=new T("",{providedIn:"root",factory:()=>{let e=m(Ve),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(ze),t.handleError(n))}}}),Uf={provide:En,useValue:()=>{m(ze)},multi:!0};function M(e,t){let[n,r,o]=Na(e,t?.equal),i=n,s=i[_e];return i.set=r,i.update=o,i.asReadonly=Yc.bind(i),i}function Yc(){let e=this[_e];if(e.readonlyFn===void 0){let t=()=>this();t[_e]=e,e.readonlyFn=t}return e.readonlyFn}var Cr=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=jy}return e})();function jy(){return new Cr(k(),Ne())}var at=class{},po=new T("",{providedIn:"root",factory:()=>!1});var Qc=new T(""),Kc=new T(""),Yt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new $r(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new j(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=A({token:e,providedIn:"root",factory:()=>new e})}return e})(),wr=(()=>{class e{internalPendingTasks=m(Yt);scheduler=m(at);errorHandler=m(_t);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=A({token:e,providedIn:"root",factory:()=>new e})}return e})();function An(...e){}var ho=(()=>{class e{static \u0275prov=A({token:e,providedIn:"root",factory:()=>new cc})}return e})(),cc=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};function xs(e){return{toString:e}.toString()}var rs="__parameters__";function Zy(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function vp(e,t,n){return xs(()=>{let r=Zy(t);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(rs)?c[rs]:Object.defineProperty(c,rs,{value:[]})[rs];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Hl=gc(vp("Inject",e=>({token:e})),-1),$l=gc(vp("Optional"),8);function Yy(e){return typeof e=="function"}var ds=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Dp(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Ms=(()=>{let e=()=>bp;return e.ngInherit=!0,e})();function bp(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ky),Qy}function Qy(){let e=Ep(this),t=e?.current;if(t){let n=e.previous;if(n===Ut)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ky(e,t,n,r,o){let i=this.declaredInputs[r],s=Ep(e)||Xy(e,{previous:Ut,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new ds(l&&l.currentValue,n,c===Ut),Dp(e,t,o,n)}var _p="__ngSimpleChanges__";function Ep(e){return e[_p]||null}function Xy(e,t){return e[_p]=t}var zf=[];var G=function(e,t=null,n){for(let r=0;r<zf.length;r++){let o=zf[r];o(e,t,n)}};function Jy(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=bp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Cp(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function ss(e,t,n){wp(e,t,3,n)}function as(e,t,n,r){(e[R]&3)===n&&wp(e,t,n,r)}function Xc(e,t){let n=e[R];(n&3)===t&&(n&=16383,n+=1,e[R]=n)}function wp(e,t,n,r){let o=r!==void 0?e[Tn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Tn]+=65536),(a<i||i==-1)&&(ev(e,n,t,c),e[Tn]=(e[Tn]&4294901760)+c+2),c++}function Gf(e,t){G(4,e,t);let n=S(null);try{t.call(e)}finally{S(n),G(5,e,t)}}function ev(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[R]>>14<e[Tn]>>16&&(e[R]&3)===t&&(e[R]+=16384,Gf(a,i)):Gf(a,i)}var Tr=-1,On=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function tv(e){return(e.flags&8)!==0}function nv(e){return(e.flags&16)!==0}function rv(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];iv(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function ov(e){return e===3||e===4||e===6}function iv(e){return e.charCodeAt(0)===64}function xr(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Wf(e,n,o,null,t[++r]):Wf(e,n,o,null,null))}}return e}function Wf(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function Ip(e){return e!==Tr}function fs(e){return e&32767}function sv(e){return e>>16}function ps(e,t){let n=sv(e),r=t;for(;n>0;)r=r[In],n--;return r}var ll=!0;function hs(e){let t=ll;return ll=e,t}var av=256,Tp=av-1,xp=5,cv=0,Et={};function lv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(_n)&&(r=n[_n]),r==null&&(r=n[_n]=cv++);let o=r&Tp,i=1<<o;t.data[e+(o>>xp)]|=i}function ms(e,t){let n=Mp(e,t);if(n!==-1)return n;let r=t[x];r.firstCreatePass&&(e.injectorIndex=t.length,Jc(r.data,e),Jc(t,null),Jc(r.blueprint,null));let o=Ul(e,t),i=e.injectorIndex;if(Ip(o)){let s=fs(o),a=ps(o,t),c=a[x].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Jc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Mp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ul(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=kp(o),r===null)return Tr;if(n++,o=o[In],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Tr}function ul(e,t,n){lv(e,t,n)}function Sp(e,t,n){if(n&8||e!==void 0)return e;Ui(t,"NodeInjector")}function Np(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[St],i=Pe(void 0);try{return o?o.get(t,r,n&8):mc(t,r,n&8)}finally{Pe(i)}}return Sp(r,t,n)}function Rp(e,t,n,r=0,o){if(e!==null){if(t[R]&2048&&!(r&2)){let s=pv(e,t,n,r,Et);if(s!==Et)return s}let i=Ap(e,t,n,r,Et);if(i!==Et)return i}return Np(t,n,r,o)}function Ap(e,t,n,r,o){let i=dv(n);if(typeof i=="function"){if(!Wc(t,e,r))return r&1?Sp(o,n,r):Np(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Ui(n);else return s}finally{qc()}}else if(typeof i=="number"){let s=null,a=Mp(e,t),c=Tr,l=r&1?t[Le][Fe]:null;for((a===-1||r&4)&&(c=a===-1?Ul(e,t):t[a+8],c===Tr||!Zf(r,!1)?a=-1:(s=t[x],a=fs(c),t=ps(c,t)));a!==-1;){let u=t[x];if(qf(i,a,u.data)){let d=uv(a,t,n,s,r,l);if(d!==Et)return d}c=t[a+8],c!==Tr&&Zf(r,t[x].data[a+8]===l)&&qf(i,a,t)?(s=u,a=fs(c),t=ps(c,t)):a=-1}}return o}function uv(e,t,n,r,o,i){let s=t[x],a=s.data[e+8],c=r==null?Wt(a)&&ll:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=cs(a,s,n,c,l);return u!==null?yo(t,s,u,a,o):Et}function cs(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let g=s[f];if(f<c&&n===g||f>=c&&g.type===n)return f}if(o){let f=s[c];if(f&&bt(f)&&f.type===n)return c}return null}function yo(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof On){let a=i;if(a.resolving){let f=sf(s[n]);throw hc(f)}let c=hs(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?Pe(a.injectImpl):null,p=Wc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Jy(n,s[n],t)}finally{d!==null&&Pe(d),hs(c),a.resolving=!1,qc()}}return i}function dv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(_n)?e[_n]:void 0;return typeof t=="number"?t>=0?t&Tp:fv:t}function qf(e,t,n){let r=1<<e;return!!(n[t+(e>>xp)]&r)}function Zf(e,t){return!(e&2)&&!(e&1&&t)}var kn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Rp(this._tNode,this._lView,t,mn(r),n)}};function fv(){return new kn(Ne(),k())}function pv(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[R]&2048&&!br(s);){let a=Ap(i,s,n,r|2,Et);if(a!==Et)return a;let c=i.parent;if(!c){let l=s[Ic];if(l){let u=l.get(n,Et,r);if(u!==Et)return u}c=kp(s),s=s[In]}i=c}return o}function kp(e){let t=e[x],n=t.type;return n===2?t.declTNode:n===1?e[Fe]:null}function hv(){return Rr(Ne(),k())}function Rr(e,t){return new ht(ut(e,t))}var ht=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=hv}return e})();function Op(e){return e instanceof ht?e.nativeElement:e}function mv(){return this._results[Symbol.iterator]()}var gs=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 ee}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=df(t);(this._changesDetected=!uf(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=mv};function Pp(e){return(e.flags&128)===128}var zl=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(zl||{}),Fp=new Map,gv=0;function yv(){return gv++}function vv(e){Fp.set(e[so],e)}function dl(e){Fp.delete(e[so])}var Yf="__ngContext__";function Mr(e,t){Dt(t)?(e[Yf]=t[so],vv(t)):e[Yf]=t}function Lp(e){return Bp(e[Dr])}function jp(e){return Bp(e[Ke])}function Bp(e){for(;e!==null&&!lt(e);)e=e[Ke];return e}var fl;function Gl(e){fl=e}function Vp(){if(fl!==void 0)return fl;if(typeof document<"u")return document;throw new C(210,!1)}var Ss=new T("",{providedIn:"root",factory:()=>Dv}),Dv="ng",Ns=new T(""),Ln=new T("",{providedIn:"platform",factory:()=>"unknown"});var Rs=new T("",{providedIn:"root",factory:()=>Vp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var bv="h",_v="b";var Hp="r";var $p="di";var Up=!1,zp=new T("",{providedIn:"root",factory:()=>Up});var Ev=(e,t,n,r)=>{};function Cv(e,t,n,r){Ev(e,t,n,r)}function As(e){return(e.flags&32)===32}var wv=()=>null;function Gp(e,t,n=!1){return wv(e,t,n)}function Wp(e,t){let n=e.contentQueries;if(n!==null){let r=S(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];fo(i),a.contentQueries(2,t[s],s)}}}finally{S(r)}}}function pl(e,t,n){fo(0);let r=S(null);try{t(e,n)}finally{S(r)}}function qp(e,t,n){if(xc(t)){let r=S(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{S(r)}}}var kt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(kt||{});var hl=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${lc})`}};function Wl(e){return e instanceof hl?e.changingThisBreaksApplicationSecurity:e}function Iv(e,t){return e.createText(t)}function Tv(e,t,n){e.setValue(t,n)}function Zp(e,t,n){return e.createElement(t,n)}function ys(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Yp(e,t,n){e.appendChild(t,n)}function Qf(e,t,n,r,o){r!==null?ys(e,t,n,r,o):Yp(e,t,n)}function Qp(e,t,n,r){e.removeChild(null,t,n,r)}function xv(e,t,n){e.setAttribute(t,"style",n)}function Mv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Kp(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&rv(e,t,r),o!==null&&Mv(e,t,o),i!==null&&xv(e,t,i)}function Tt(e){return e.ownerDocument}function Sv(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Xp="ng-template";function Nv(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Sv(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(ql(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function ql(e){return e.type===4&&e.value!==Xp}function Rv(e,t,n){let r=e.type===4&&!n?Xp:e.value;return t===r}function Av(e,t,n){let r=4,o=e.attrs,i=o!==null?Pv(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!dt(r)&&!dt(c))return!1;if(s&&dt(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Rv(e,c,n)||c===""&&t.length===1){if(dt(r))return!1;s=!0}}else if(r&8){if(o===null||!Nv(e,o,c,n)){if(dt(r))return!1;s=!0}}else{let l=t[++a],u=kv(c,o,ql(e),n);if(u===-1){if(dt(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(dt(r))return!1;s=!0}}}}return dt(r)||s}function dt(e){return(e&1)===0}function kv(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Fv(t,e)}function Jp(e,t,n=!1){for(let r=0;r<t.length;r++)if(Av(e,t[r],n))return!0;return!1}function Ov(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function Pv(e){for(let t=0;t<e.length;t++){let n=e[t];if(ov(n))return t}return e.length}function Fv(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Lv(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function Kf(e,t){return e?":not("+t.trim()+")":t}function jv(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!dt(s)&&(t+=Kf(i,o),o=""),r=s,i=i||!dt(r);n++}return o!==""&&(t+=Kf(i,o)),t}function Bv(e){return e.map(jv).join(",")}function Vv(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!dt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var tt={};function Zl(e,t,n,r,o,i,s,a,c,l,u){let d=ce+r,p=d+o,f=Hv(d,p),g=typeof l=="function"?l():l;return f[x]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:g,incompleteFirstPass:!1,ssrId:u}}function Hv(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:tt);return n}function $v(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Zl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Yl(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[ct]=o,d[R]=r|4|128|8|64|1024,(l!==null||e&&e[R]&2048)&&(d[R]|=2048),Rc(d),d[ve]=d[In]=e,d[fe]=n,d[Nt]=s||e&&e[Nt],d[te]=a||e&&e[te],d[St]=c||e&&e[St]||null,d[Fe]=i,d[so]=yv(),d[wn]=u,d[Ic]=l,d[Le]=t.type==2?e[Le]:d,d}function Uv(e,t,n){let r=ut(t,e),o=$v(n),i=e[Nt].rendererFactory,s=Ql(e,Yl(e,o,null,eh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function eh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function th(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Ql(e,t){return e[Dr]?e[wc][Ke]=t:e[Dr]=t,e[wc]=t,t}function h(e=1){nh(pe(),k(),At()+e,!1)}function nh(e,t,n,r){if(!r)if((t[R]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ss(t,i,n)}else{let i=e.preOrderHooks;i!==null&&as(t,i,0,n)}Zt(n)}var ks=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(ks||{});function ml(e,t,n,r){let o=S(null);try{let[i,s,a]=e.inputs[n],c=null;(s&ks.SignalBased)!==0&&(c=t[i][_e]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Dp(t,c,i,r)}finally{S(o)}}var Ct=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Ct||{}),zv;function Kl(e,t){return zv(e,t)}var Pn=new Set,Os=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Os||{}),jn=new T(""),Xf=new Set;function Xt(e){Xf.has(e)||(Xf.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var rh=!1,gl=class extends ee{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Df()&&(this.destroyRef=m($e,{optional:!0})??void 0,this.pendingTasks=m(Yt,{optional:!0})??void 0)}emit(t){let n=S(null);try{super.next(t)}finally{S(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof re&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},pt=gl;function oh(e){let t,n;function r(){e=An;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Jf(e){return queueMicrotask(()=>e()),()=>{e=An}}var Xl="isAngularZone",vs=Xl+"_ID",Gv=0,ne=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new pt(!1);onMicrotaskEmpty=new pt(!1);onStable=new pt(!1);onError=new pt(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=rh}=t;if(typeof Zone>"u")throw new C(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,Zv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Xl)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Wv,An,An);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Wv={};function Jl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function qv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){oh(()=>{e.callbackScheduled=!1,yl(e),e.isCheckStableRunning=!0,Jl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),yl(e)}function Zv(e){let t=()=>{qv(e)},n=Gv++;e._inner=e._inner.fork({name:"angular",properties:{[Xl]:!0,[vs]:n,[vs+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Yv(c))return r.invokeTask(i,s,a,c);try{return ep(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),tp(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return ep(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Qv(c)&&t(),tp(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,yl(e),Jl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function yl(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ep(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function tp(e){e._nesting--,Jl(e)}var Ds=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new pt;onMicrotaskEmpty=new pt;onStable=new pt;onError=new pt;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Yv(e){return ih(e,"__ignore_ng_zone__")}function Qv(e){return ih(e,"__scheduler_tick__")}function ih(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var eu=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=A({token:e,providedIn:"root",factory:()=>new e})}return e})(),sh=[0,1,2,3],ah=(()=>{class e{ngZone=m(ne);scheduler=m(at);errorHandler=m(ze,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){m(jn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&G(16),this.executing=!0;for(let r of sh)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&&G(17)}register(n){let{view:r}=n;r!==void 0?((r[xn]??=[]).push(n),qt(r),r[R]|=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(Os.AFTER_NEXT_RENDER,n):n()}static \u0275prov=A({token:e,providedIn:"root",factory:()=>new e})}return e})(),bs=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[xn];t&&(this.view[xn]=t.filter(n=>n!==this))}};function tu(e,t){let n=t?.injector??m(He);return Xt("NgAfterNextRender"),Xv(e,n,t,!0)}function Kv(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Xv(e,t,n,r){let o=t.get(eu);o.impl??=t.get(ah);let i=t.get(jn,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get($e):null,a=t.get(Cr,null,{optional:!0}),c=new bs(o.impl,Kv(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var ch=new T("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function lh(e,t,n){let r=e.get(ch);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function Jv(e,t){let n=e.get(ch);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function eD(e,t){for(let[n,r]of t)lh(e,r.animateFns)}function np(e,t,n,r){let o=e?.[Mn]?.enter;t!==null&&o&&o.has(n.index)&&eD(r,o)}function Ir(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;lt(o)?c=o:Dt(o)&&(l=!0,o=o[ct]);let u=Xe(o);e===0&&r!==null?(np(a,r,i,n),s==null?Yp(t,r,u):ys(t,r,u,s||null,!0)):e===1&&r!==null?(np(a,r,i,n),ys(t,r,u,s||null,!0)):e===2?rp(a,i,n,d=>{Qp(t,u,l,d)}):e===3&&rp(a,i,n,()=>{t.destroyNode(u)}),c!=null&&dD(t,e,n,c,i,r,s)}}function tD(e,t){uh(e,t),t[ct]=null,t[Fe]=null}function nD(e,t,n,r,o,i){r[ct]=o,r[Fe]=t,Fs(e,r,n,1,o,i)}function uh(e,t){t[Nt].changeDetectionScheduler?.notify(9),Fs(e,t,t[te],2,null,null)}function rD(e){let t=e[Dr];if(!t)return el(e[x],e);for(;t;){let n=null;if(Dt(t))n=t[Dr];else{let r=t[le];r&&(n=r)}if(!n){for(;t&&!t[Ke]&&t!==e;)Dt(t)&&el(t[x],t),t=t[ve];t===null&&(t=e),Dt(t)&&el(t[x],t),n=t&&t[Ke]}t=n}}function nu(e,t){let n=e[Sn],r=n.indexOf(t);n.splice(r,1)}function Ps(e,t){if(Nn(t))return;let n=t[te];n.destroyNode&&Fs(e,t,n,3,null,null),rD(t)}function el(e,t){if(Nn(t))return;let n=S(null);try{t[R]&=-129,t[R]|=256,t[Ge]&&sn(t[Ge]),sD(e,t),iD(e,t),t[x].type===1&&t[te].destroy();let r=t[zt];if(r!==null&&lt(t[ve])){r!==t[ve]&&nu(r,t);let o=t[vt];o!==null&&o.detachView(e)}dl(t)}finally{S(n)}}function rp(e,t,n,r){let o=e?.[Mn];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&Pn.add(e),lh(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let l=s.animateFns[c],{promise:u}=l();a.push(u)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),oD(e,r)}else e&&Pn.delete(e),r(!1)},o)}function oD(e,t){let n=e[Mn]?.running;if(n){n.then(()=>{e[Mn].running=void 0,Pn.delete(e),t(!0)});return}t(!1)}function iD(e,t){let n=e.cleanup,r=t[vr];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[vr]=null);let o=t[Mt];if(o!==null){t[Mt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Rt];if(i!==null){t[Rt]=null;for(let s of i)s.destroy()}}function sD(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof On)){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];G(4,a,c);try{c.call(a)}finally{G(5,a,c)}}else{G(4,o,i);try{i.call(o)}finally{G(5,o,i)}}}}}function dh(e,t,n){return aD(e,t.parent,n)}function aD(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ct];if(Wt(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===kt.None||o===kt.Emulated)return null}return ut(r,n)}function fh(e,t,n){return lD(e,t,n)}function cD(e,t,n){return e.type&40?ut(e,n):null}var lD=cD,op;function ru(e,t,n,r){let o=dh(e,r,t),i=t[te],s=r.parent||t[Fe],a=fh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Qf(i,o,n[c],a,!1);else Qf(i,o,n,a,!1);op!==void 0&&op(i,r,t,n,o)}function mo(e,t){if(t!==null){let n=t.type;if(n&3)return ut(t,e);if(n&4)return vl(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return mo(e,r);{let o=e[t.index];return lt(o)?vl(-1,o):Xe(o)}}else{if(n&128)return mo(e,t.next);if(n&32)return Kl(t,e)()||Xe(e[t.index]);{let r=ph(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=$t(e[Le]);return mo(o,r)}else return mo(e,t.next)}}}return null}function ph(e,t){if(t!==null){let r=e[Le][Fe],o=t.projection;return r.projection[o]}return null}function vl(e,t){let n=le+e+1;if(n<t.length){let r=t[n],o=r[x].firstChild;if(o!==null)return mo(r,o)}return t[Gt]}function ou(e,t,n,r,o,i,s){for(;n!=null;){let a=r[St];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&Mr(Xe(c),r),n.flags|=2),!As(n))if(l&8)ou(e,t,n.child,r,o,i,!1),Ir(t,e,a,o,c,n,i,r);else if(l&32){let u=Kl(n,r),d;for(;d=u();)Ir(t,e,a,o,d,n,i,r);Ir(t,e,a,o,c,n,i,r)}else l&16?hh(e,t,r,n,o,i):Ir(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Fs(e,t,n,r,o,i){ou(n,r,e.firstChild,t,o,i,!1)}function uD(e,t,n){let r=t[te],o=dh(e,n,t),i=n.parent||t[Fe],s=fh(i,n,t);hh(r,0,t,n,o,s)}function hh(e,t,n,r,o,i){let s=n[Le],c=s[Fe].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];Ir(t,e,n[St],o,u,r,i,n)}else{let l=c,u=s[ve];Pp(r)&&(l.flags|=128),ou(e,t,l,u,o,i,!0)}}function dD(e,t,n,r,o,i,s){let a=r[Gt],c=Xe(r);a!==c&&Ir(t,e,n,i,a,o,s);for(let l=le;l<r.length;l++){let u=r[l];Fs(u[x],u,e,t,i,a)}}function fD(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Ct.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Ct.Important),e.setStyle(n,r,o,i))}}function mh(e,t,n,r,o){let i=At(),s=r&2;try{Zt(-1),s&&t.length>ce&&nh(e,t,ce,!1),G(s?2:0,o,n),n(r,o)}finally{Zt(i),G(s?3:1,o,n)}}function iu(e,t,n){DD(e,t,n),(n.flags&64)===64&&bD(e,t,n)}function Ls(e,t,n=ut){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function pD(e,t,n,r){let i=r.get(zp,Up)||n===kt.ShadowDom,s=e.selectRootElement(t,i);return hD(s),s}function hD(e){mD(e)}var mD=()=>null;function gD(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function yD(e,t,n,r,o,i){let s=t[x];if(su(e,s,t,n,r)){Wt(e)&&vD(t,e.index);return}e.type&3&&(n=gD(n)),gh(e,t,n,r,o,i)}function gh(e,t,n,r,o,i){if(e.type&3){let s=ut(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function vD(e,t){let n=Je(t,e);n[R]&16||(n[R]|=64)}function DD(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Wt(n)&&Uv(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||ms(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=yo(t,e,s,n);if(Mr(c,t),i!==null&&wD(t,s-r,c,a,n,i),bt(a)){let l=Je(n.index,t);l[fe]=yo(t,e,s,n)}}}function bD(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Pf();try{Zt(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];Qi(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&_D(c,l)}}finally{Zt(-1),Qi(s)}}function _D(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function yh(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Jp(t,i.selectors,!1)&&(r??=[],bt(i)?r.unshift(i):r.push(i))}return r}function ED(e,t,n,r,o,i){let s=ut(e,t);CD(t[te],s,i,e.value,n,r,o)}function CD(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?$i(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function wD(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];ml(r,n,c,l)}}function vh(e,t,n,r,o){let i=ce+n,s=t[x],a=o(s,t,e,r,n);t[i]=a,_r(e,!0);let c=e.type===2;return c?(Kp(t[te],a,e),(Mf()===0||co(e))&&Mr(a,t),Sf()):Mr(a,t),ts()&&(!c||!As(e))&&ru(s,t,a,e),e}function Dh(e){let t=e;return $c()?Uc():(t=t.parent,_r(t,!1)),t}function ID(e,t){let n=e[St];if(!n)return;let r;try{r=n.get(_t,null)}catch{r=null}r?.(t)}function su(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];ml(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];ml(u,l,r,o),a=!0}return a}function TD(e,t){let n=Je(t,e),r=n[x];xD(r,n);let o=n[ct];o!==null&&n[wn]===null&&(n[wn]=Gp(o,n[St])),G(18),au(r,n,n[fe]),G(19,n[fe])}function xD(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function au(e,t,n){Xi(t);try{let r=e.viewQuery;r!==null&&pl(1,r,n);let o=e.template;o!==null&&mh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[vt]?.finishViewCreation(e),e.staticContentQueries&&Wp(e,t),e.staticViewQueries&&pl(2,e.viewQuery,n);let i=e.components;i!==null&&MD(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[R]&=-5,Ji()}}function MD(e,t){for(let n=0;n<t.length;n++)TD(e,t[n])}function To(e,t,n,r){let o=S(null);try{let i=t.tView,a=e[R]&4096?4096:16,c=Yl(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[zt]=l;let u=e[vt];return u!==null&&(c[vt]=u.createEmbeddedView(i)),au(i,c,n),c}finally{S(o)}}function Sr(e,t){return!t||t.firstChild===null||Pp(e)}function vo(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Xe(i)),lt(i)&&bh(i,r);let s=n.type;if(s&8)vo(e,t,n.child,r);else if(s&32){let a=Kl(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=ph(t,n);if(Array.isArray(a))r.push(...a);else{let c=$t(t[Le]);vo(c[x],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function bh(e,t){for(let n=le;n<e.length;n++){let r=e[n],o=r[x].firstChild;o!==null&&vo(r[x],r,o,t)}e[Gt]!==e[ct]&&t.push(e[Gt])}function _h(e){if(e[xn]!==null){for(let t of e[xn])t.impl.addSequence(t);e[xn].length=0}}var Eh=[];function SD(e){return e[Ge]??ND(e)}function ND(e){let t=Eh.pop()??Object.create(AD);return t.lView=e,t}function RD(e){e.lView[Ge]!==e&&(e.lView=null,Eh.push(e))}var AD=ae(K({},rn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{qt(e.lView)},consumerOnSignalRead(){this.lView[Ge]=this}});function kD(e){let t=e[Ge]??Object.create(OD);return t.lView=e,t}var OD=ae(K({},rn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=$t(e.lView);for(;t&&!Ch(t[x]);)t=$t(t);t&&Ac(t)},consumerOnSignalRead(){this.lView[Ge]=this}});function Ch(e){return e.type!==2}function wh(e){if(e[Rt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Rt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[R]&8192)}}var PD=100;function Ih(e,t=0){let r=e[Nt].rendererFactory,o=!1;o||r.begin?.();try{FD(e,t)}finally{o||r.end?.()}}function FD(e,t){let n=zc();try{Er(!0),Dl(e,t);let r=0;for(;uo(e);){if(r===PD)throw new C(103,!1);r++,Dl(e,1)}}finally{Er(n)}}function LD(e,t,n,r){if(Nn(t))return;let o=t[R],i=!1,s=!1;Xi(t);let a=!0,c=null,l=null;i||(Ch(e)?(l=SD(t),c=on(l)):ii()===null?(a=!1,l=kD(t),c=on(l)):t[Ge]&&(sn(t[Ge]),t[Ge]=null));try{Rc(t),Af(e.bindingStartIndex),n!==null&&mh(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&ss(t,f,null)}else{let f=e.preOrderHooks;f!==null&&as(t,f,0,null),Xc(t,0)}if(s||jD(t),wh(t),Th(t,0),e.contentQueries!==null&&Wp(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&ss(t,f)}else{let f=e.contentHooks;f!==null&&as(t,f,1),Xc(t,1)}VD(e,t);let d=e.components;d!==null&&Mh(t,d,0);let p=e.viewQuery;if(p!==null&&pl(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&ss(t,f)}else{let f=e.viewHooks;f!==null&&as(t,f,2),Xc(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[qi]){for(let f of t[qi])f();t[qi]=null}i||(_h(t),t[R]&=-73)}catch(u){throw i||qt(t),u}finally{l!==null&&(tr(l,c),a&&RD(l)),Ji()}}function Th(e,t){for(let n=Lp(e);n!==null;n=jp(n))for(let r=le;r<n.length;r++){let o=n[r];xh(o,t)}}function jD(e){for(let t=Lp(e);t!==null;t=jp(t)){if(!(t[R]&2))continue;let n=t[Sn];for(let r=0;r<n.length;r++){let o=n[r];Ac(o)}}}function BD(e,t,n){G(18);let r=Je(t,e);xh(r,n),G(19,r[fe])}function xh(e,t){Zi(e)&&Dl(e,t)}function Dl(e,t){let r=e[x],o=e[R],i=e[Ge],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&nr(i)),s||=!1,i&&(i.dirty=!1),e[R]&=-9217,s)LD(r,e,r.template,e[fe]);else if(o&8192){let a=S(null);try{wh(e),Th(e,1);let c=r.components;c!==null&&Mh(e,c,1),_h(e)}finally{S(a)}}}function Mh(e,t,n){for(let r=0;r<t.length;r++)BD(e,t[r],n)}function VD(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Zt(~o);else{let i=o,s=n[++r],a=n[++r];Of(s,i);let c=t[i];G(24,c),a(2,c),G(25,c)}}}finally{Zt(-1)}}function cu(e,t){let n=zc()?64:1088;for(e[Nt].changeDetectionScheduler?.notify(t);e;){e[R]|=n;let r=$t(e);if(br(e)&&!r)return e;e=r}return null}function Sh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Nh(e,t){let n=le+t;if(n<e.length)return e[n]}function xo(e,t,n,r=!0){let o=t[x];if(HD(o,t,e,n),r){let s=vl(n,e),a=t[te],c=a.parentNode(e[Gt]);c!==null&&nD(o,e[Fe],a,t,c,s)}let i=t[wn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Rh(e,t){let n=Do(e,t);return n!==void 0&&Ps(n[x],n),n}function Do(e,t){if(e.length<=le)return;let n=le+t,r=e[n];if(r){let o=r[zt];o!==null&&o!==e&&nu(o,r),t>0&&(e[n-1][Ke]=r[Ke]);let i=no(e,le+t);tD(r[x],r);let s=i[vt];s!==null&&s.detachView(i[x]),r[ve]=null,r[Ke]=null,r[R]&=-129}return r}function HD(e,t,n,r){let o=le+r,i=n.length;r>0&&(n[o-1][Ke]=t),r<i-le?(t[Ke]=n[o],yc(n,le+r,t)):(n.push(t),t[Ke]=null),t[ve]=n;let s=t[zt];s!==null&&n!==s&&Ah(s,t);let a=t[vt];a!==null&&a.insertView(e),Yi(t),t[R]|=128}function Ah(e,t){let n=e[Sn],r=t[ve];if(Dt(r))e[R]|=2;else{let o=r[ve][Le];t[Le]!==o&&(e[R]|=2)}n===null?e[Sn]=[t]:n.push(t)}var Qt=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[x];return vo(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[fe]}set context(t){this._lView[fe]=t}get destroyed(){return Nn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ve];if(lt(t)){let n=t[ao],r=n?n.indexOf(this):-1;r>-1&&(Do(t,r),no(n,r))}this._attachedToViewContainer=!1}Ps(this._lView[x],this._lView)}onDestroy(t){kc(this._lView,t)}markForCheck(){cu(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[R]&=-129}reattach(){Yi(this._lView),this._lView[R]|=128}detectChanges(){this._lView[R]|=1024,Ih(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=br(this._lView),n=this._lView[zt];n!==null&&!t&&nu(n,this._lView),uh(this._lView[x],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t;let n=br(this._lView),r=this._lView[zt];r!==null&&!n&&Ah(r,this._lView),Yi(this._lView)}};var Kt=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=$D;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=To(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Qt(i)}}return e})();function $D(){return lu(Ne(),k())}function lu(e,t){return e.type&4?new Kt(t,e,Rr(e,t)):null}function Ar(e,t,n,r,o){let i=e.data[t];if(i===null)i=UD(e,t,n,r,o),kf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Nf();i.injectorIndex=s===null?-1:s.injectorIndex}return _r(i,!0),i}function UD(e,t,n,r,o){let i=Hc(),s=$c(),a=s?i:i&&i.parent,c=e.data[t]=GD(e,a,n,t,r,o);return zD(e,c,i,s),c}function zD(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function GD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return jc()&&(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:Zc(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var k1=new RegExp(`^(\\d+)*(${_v}|${bv})*(.*)`);function WD(e){let t=e[Tc]??[],r=e[ve][te],o=[];for(let i of t)i.data[$p]!==void 0?o.push(i):qD(i,r);e[Tc]=o}function qD(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Hp];for(;n<o;){let i=r.nextSibling;Qp(t,r,!1),r=i,n++}}}var ZD=()=>null,YD=()=>null;function _s(e,t){return ZD(e,t)}function kh(e,t,n){return YD(e,t,n)}var Oh=class{},js=class{},bl=class{resolveComponentFactory(t){throw new C(917,!1)}},Bs=class{static NULL=new bl},wt=class{},Vs=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>QD()}return e})();function QD(){let e=k(),t=Ne(),n=Je(t.index,e);return(Dt(n)?n:e)[te]}var Ph=(()=>{class e{static \u0275prov=A({token:e,providedIn:"root",factory:()=>null})}return e})();var ls={},_l=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,ls,r);return o!==ls||n===ls?o:this.parentInjector.get(t,n,r)}};function Es(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Bi(o,a);else if(i==2){let c=a,l=t[++s];r=Bi(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Ot(e,t=0){let n=k();if(n===null)return B(e,t);let r=Ne();return Rp(r,n,Se(e),t)}function Fh(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}JD(e,t,n,a,i,c,l)}i!==null&&r!==null&&KD(n,r,i)}function KD(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new C(-301,!1);r.push(t[o],i)}}function XD(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function JD(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let f=r[p];!c&&bt(f)&&(c=!0,XD(e,n,p)),ul(ms(n,t),e,f.type)}ib(n,e.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=th(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=xr(n.mergedAttrs,f.hostAttrs),tb(e,n,t,d,f),ob(d,f,o),s!==null&&s.has(f)){let[E,_]=s.get(f);n.directiveToIndex.set(f.type,[d,E+n.directiveStart,_+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let g=f.type.prototype;!l&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}eb(e,n,i)}function eb(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))ip(0,t,o,r),ip(1,t,o,r),ap(t,r,!1);else{let i=n.get(o);sp(0,t,i,r),sp(1,t,i,r),ap(t,r,!0)}}}function ip(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Lh(t,i)}}function sp(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Lh(t,s)}}function Lh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function ap(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||ql(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){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]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function tb(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=gn(o.type,!0)),s=new On(i,bt(o),Ot,null);e.blueprint[r]=s,n[r]=s,nb(e,t,r,th(e,n,o.hostVars,tt),o)}function nb(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;rb(s)!=a&&s.push(a),s.push(n,r,i)}}function rb(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function ob(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;bt(t)&&(n[""]=e)}}function ib(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function jh(e,t,n,r,o,i,s,a){let c=t[x],l=c.consts,u=et(l,s),d=Ar(c,e,n,r,u);return i&&Fh(c,t,d,et(l,a),o),d.mergedAttrs=xr(d.mergedAttrs,d.attrs),d.attrs!==null&&Es(d,d.attrs,!1),d.mergedAttrs!==null&&Es(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Bh(e,t){Cp(e,t),xc(t)&&e.queries.elementEnd(t)}function sb(e,t,n,r,o,i){let s=t.consts,a=et(s,o),c=Ar(t,e,n,r,a);if(c.mergedAttrs=xr(c.mergedAttrs,c.attrs),i!=null){let l=et(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Es(c,c.attrs,!1),c.mergedAttrs!==null&&Es(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function uu(e){return Hh(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Vh(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Hh(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function ab(e,t,n){return e[t]=n}function It(e,t,n){if(n===tt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function cb(e,t,n,r){let o=It(e,t,n);return It(e,t+1,r)||o}function us(e,t,n){return function r(o){let i=Wt(e)?Je(e.index,t):t;cu(i,5);let s=t[fe],a=cp(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=cp(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function cp(e,t,n,r){let o=S(null);try{return G(6,t,n),n(r)!==!1}catch(i){return ID(e,i),!1}finally{G(7,t,n),S(o)}}function $h(e,t,n,r,o,i,s,a){let c=co(e),l=!1,u=null;if(!r&&c&&(u=ub(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=ut(e,n),p=r?r(d):d;Cv(n,p,i,a);let f=o.listen(p,i,a);if(!lb(i)){let g=r?E=>r(Xe(E[e.index])):e.index;Uh(g,t,n,i,a,f,!1)}}return l}function lb(e){return e.startsWith("animation")||e.startsWith("transition")}function ub(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[vr],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Uh(e,t,n,r,o,i,s){let a=t.firstCreatePass?Pc(t):null,c=Oc(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function lp(e,t,n,r,o,i){let s=t[n],a=t[x],l=a.data[n].outputs[r],d=s[l].subscribe(i);Uh(e.index,a,t,o,i,d,!0)}var El=Symbol("BINDING");var Cl=class extends Bs{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Cn(t);return new bo(n,this.ngModule)}};function db(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&ks.SignalBased)!==0};return o&&(i.transform=o),i})}function fb(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function pb(e,t,n){let r=t instanceof Ve?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new _l(n,r):n}function hb(e){let t=e.get(wt,null);if(t===null)throw new C(407,!1);let n=e.get(Ph,null),r=e.get(at,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function mb(e,t){let n=zh(e);return Zp(t,n,n==="svg"?Mc:n==="math"?_f:null)}function gb(e){if(e?.toLowerCase()==="script")throw new C(905,!1)}function zh(e){return(e.selectors[0][0]||"div").toLowerCase()}var bo=class extends js{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=db(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=fb(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Bv(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){G(22);let a=S(null);try{let c=this.componentDef,l=yb(r,c,s,i),u=pb(c,o||this.ngModule,t),d=hb(u),p=d.rendererFactory.createRenderer(null,c),f=r?pD(p,r,c.encapsulation,u):mb(c,p);gb(f?.tagName);let g=s?.some(up)||i?.some(D=>typeof D!="function"&&D.bindings.some(up)),E=Yl(null,l,null,512|eh(c),null,null,d,p,u,null,Gp(f,u,!0));E[ce]=f,Xi(E);let _=null;try{let D=jh(ce,E,2,"#host",()=>l.directiveRegistry,!0,0);Kp(p,f,D),Mr(f,E),iu(l,E,D),qp(l,D,E),Bh(l,D),n!==void 0&&Db(D,this.ngContentSelectors,n),_=Je(D.index,E),E[fe]=_[fe],au(l,E,null)}catch(D){throw _!==null&&dl(_),dl(E),D}finally{G(23),Ji()}return new Cs(this.componentType,E,!!g)}finally{S(a)}}};function yb(e,t,n,r){let o=e?["ng-version","20.3.29"]:Vv(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[El].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 p of d.bindings){a+=p[El].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=bc(d);c.push(p)}return Zl(0,null,vb(i,s),1,a,c,null,null,null,[o],null)}function vb(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function up(e){let t=e[El].kind;return t==="input"||t==="twoWay"}var Cs=class extends Oh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=lo(n[x],ce),this.location=Rr(this._tNode,n),this.instance=Je(this._tNode.index,n)[fe],this.hostView=this.changeDetectorRef=new Qt(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=su(r,o[x],o,t,n);this.previousInputValues.set(t,n);let s=Je(r.index,o);cu(s,1)}get injector(){return new kn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Db(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Bn=(()=>{class e{static __NG_ELEMENT_ID__=bb}return e})();function bb(){let e=Ne();return Wh(e,k())}var _b=Bn,Gh=class extends _b{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Rr(this._hostTNode,this._hostLView)}get injector(){return new kn(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ul(this._hostTNode,this._hostLView);if(Ip(t)){let n=ps(t,this._hostLView),r=fs(t),o=n[x].data[r+8];return new kn(o,n)}else return new kn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=dp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-le}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=_s(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Sr(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!Yy(t),l;if(c)l=n;else{let _=n||{};l=_.index,r=_.injector,o=_.projectableNodes,i=_.environmentInjector||_.ngModuleRef,s=_.directives,a=_.bindings}let u=c?t:new bo(Cn(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let D=(c?d:this.parentInjector).get(Ve,null);D&&(i=D)}let p=Cn(u.componentType??{}),f=_s(this._lContainer,p?.id??null),g=f?.firstChild??null,E=u.create(d,o,g,i,s,a);return this.insertImpl(E.hostView,l,Sr(this._hostTNode,f)),E}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(wf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ve],l=new Gh(c,c[Fe],c[ve]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return xo(s,o,i,r),t.attachToViewContainerRef(),yc(tl(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=dp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Do(this._lContainer,n);r&&(no(tl(this._lContainer),n),Ps(r[x],r))}detach(t){let n=this._adjustIndex(t,-1),r=Do(this._lContainer,n);return r&&no(tl(this._lContainer),n)!=null?new Qt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function dp(e){return e[ao]}function tl(e){return e[ao]||(e[ao]=[])}function Wh(e,t){let n,r=t[e.index];return lt(r)?n=r:(n=Sh(r,t,null,e),t[e.index]=n,Ql(t,n)),Cb(n,t,e,r),new Gh(n,e,t)}function Eb(e,t){let n=e[te],r=n.createComment(""),o=ut(t,e),i=n.parentNode(o);return ys(n,i,r,n.nextSibling(o),!1),r}var Cb=Tb,wb=()=>!1;function Ib(e,t,n){return wb(e,t,n)}function Tb(e,t,n,r){if(e[Gt])return;let o;n.type&8?o=Xe(r):o=Eb(t,n),e[Gt]=o}var wl=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Il=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)fu(t,n).matches!==null&&this.queries[n].setDirty()}},Tl=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=Ab(t):this.predicate=t}},xl=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Ml=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,xb(n,i)),this.matchTNodeWithReadOption(t,n,cs(n,t,i,!1,!1))}else r===Kt?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,cs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===ht||o===Bn||o===Kt&&n.type&4)this.addMatch(n.index,-2);else{let i=cs(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function xb(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function Mb(e,t){return e.type&11?Rr(e,t):e.type&4?lu(e,t):null}function Sb(e,t,n,r){return n===-1?Mb(t,e):n===-2?Nb(e,t,r):yo(e,e[x],n,t)}function Nb(e,t,n){if(n===ht)return Rr(t,e);if(n===Kt)return lu(t,e);if(n===Bn)return Wh(t,e)}function qh(e,t,n,r){let o=t[vt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(Sb(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Sl(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=qh(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let d=le;d<u.length;d++){let p=u[d];p[zt]===p[ve]&&Sl(p[x],p,l,r)}if(u[Sn]!==null){let d=u[Sn];for(let p=0;p<d.length;p++){let f=d[p];Sl(f[x],f,l,r)}}}}}return r}function du(e,t){return e[vt].queries[t].queryList}function Rb(e,t,n){let r=new gs((n&4)===4);return xf(e,t,r,r.destroy),(t[vt]??=new Il).queries.push(new wl(r))-1}function Zh(e,t,n){let r=pe();return r.firstCreatePass&&(kb(r,new Tl(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),Rb(r,k(),t)}function Ab(e){return e.split(",").map(t=>t.trim())}function kb(e,t,n){e.queries===null&&(e.queries=new xl),e.queries.track(new Ml(t,n))}function fu(e,t){return e.queries.getByIndex(t)}function Yh(e,t){let n=e[x],r=fu(n,t);return r.crossesNgTemplate?Sl(n,e,t,[]):qh(n,e,r,t)}function Qh(e,t,n){let r,o=Br(()=>{r._dirtyCounter();let i=Pb(r,e);if(t&&i===void 0)throw new C(-951,!1);return i});return r=o[_e],r._dirtyCounter=M(0),r._flatValue=void 0,o}function Kh(e){return Qh(!0,!1,e)}function Xh(e){return Qh(!0,!0,e)}function Ob(e,t){let n=e[_e];n._lView=k(),n._queryIndex=t,n._queryList=du(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function Pb(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[R]&4)return t?void 0:Qe;let o=du(n,r),i=Yh(n,r);return o.reset(i,Op),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}var _o=class{};var Eo=class extends _o{injector;componentFactoryResolver=new Cl(this);instance=null;constructor(t){super();let n=new vn([...t.providers,{provide:_o,useValue:this},{provide:Bs,useValue:this.componentFactoryResolver}],t.parent||io(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Jh(e,t,n=null){return new Eo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Fb=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=_c(!1,n.type),o=r.length>0?Jh([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=A({token:e,providedIn:"environment",factory:()=>new e(B(Ve))})}return e})();function Ce(e){return xs(()=>{let t=em(e),n=ae(K({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===zl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Fb).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kt.Emulated,styles:e.styles||Qe,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Xt("NgStandalone"),tm(n);let r=e.dependencies;return n.directiveDefs=fp(r,Lb),n.pipeDefs=fp(r,hf),n.id=Vb(n),n})}function Lb(e){return Cn(e)||bc(e)}function jb(e,t){if(e==null)return Ut;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=ks.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function Bb(e){if(e==null)return Ut;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Vn(e){return xs(()=>{let t=em(e);return tm(t),t})}function pu(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function em(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Ut,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Qe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:jb(e.inputs,t),outputs:Bb(e.outputs),debugInfo:null}}function tm(e){e.features?.forEach(t=>t(e))}function fp(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function Vb(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Hb(e){return Object.getPrototypeOf(e.prototype).constructor}function Mo(e){let t=Hb(e.type),n=!0,r=[e];for(;t;){let o;if(bt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new C(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=nl(e.inputs),s.declaredInputs=nl(e.declaredInputs),s.outputs=nl(e.outputs);let a=o.hostBindings;a&&Wb(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&zb(e,c),l&&Gb(e,l),$b(e,o),rf(e.outputs,o.outputs),bt(o)&&o.data.animation){let u=e.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(e),a===Mo&&(n=!1)}}t=Object.getPrototypeOf(t)}Ub(r)}function $b(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function Ub(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=xr(o.hostAttrs,n=xr(n,o.hostAttrs))}}function nl(e){return e===Ut?{}:e===Qe?[]:e}function zb(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Gb(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Wb(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function nm(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=xr(e.mergedAttrs,e.attrs);let u=e.tView=Zl(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),_r(e,!1);let c=Zb(n,t,e,r);ts()&&ru(n,t,c,e),Mr(c,t);let l=Sh(c,t,c,e);t[r+ce]=l,Ql(t,l),Ib(l,e,t)}function qb(e,t,n,r,o,i,s,a,c,l,u){let d=n+ce,p;return t.firstCreatePass?(p=Ar(t,d,4,s||null,a||null),Lc()&&Fh(t,e,p,et(t.consts,l),yh),Cp(t,p)):p=t.data[d],nm(p,e,t,n,r,o,i,c),co(p)&&iu(t,e,p),l!=null&&Ls(e,p,u),p}function Co(e,t,n,r,o,i,s,a,c,l,u){let d=n+ce,p;if(t.firstCreatePass){if(p=Ar(t,d,4,s||null,a||null),l!=null){let f=et(t.consts,l);p.localNames=[];for(let g=0;g<f.length;g+=2)p.localNames.push(f[g],-1)}}else p=t.data[d];return nm(p,e,t,n,r,o,i,c),l!=null&&Ls(e,p,u),p}function Hs(e,t,n,r,o,i,s,a){let c=k(),l=pe(),u=et(l.consts,i);return qb(c,l,e,t,n,r,o,u,void 0,s,a),Hs}var Zb=Yb;function Yb(e,t,n,r){return ns(!0),t[te].createComment("")}var hu=new T("");function $s(e){return!!e&&typeof e.then=="function"}function mu(e){return!!e&&typeof e.subscribe=="function"}var rm=new T("");var gu=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=m(rm,{optional:!0})??[];injector=m(He);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=yr(this.injector,o);if($s(i))n.push(i);else if(mu(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),om=new T("");function im(){Sa(()=>{let e="";throw new C(600,e)})}function sm(e){return e.isBoundToModule}var Qb=10;var Hn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=m(_t);afterRenderManager=m(eu);zonelessEnabled=m(po);rootEffectScheduler=m(ho);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ee;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=m(Yt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Be(n=>!n))}constructor(){m(jn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=m(Ve);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=He.NULL){return this._injector.get(ne).run(()=>{G(10);let s=n instanceof js;if(!this._injector.get(gu).done){let g="";throw new C(405,g)}let c;s?c=n:c=this._injector.get(Bs).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=sm(c)?void 0:this._injector.get(_o),u=r||c.selector,d=c.create(o,[],u,l),p=d.location.nativeElement,f=d.injector.get(hu,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),go(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),G(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){G(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Os.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new C(101,!1);let n=S(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,S(n),this.afterTick.next(),G(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(wt,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Qb;)G(14),this.synchronizeOnce(),G(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&&!uo(o))continue;let i=r&&!this.zonelessEnabled?0:1;Ih(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})=>uo(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;go(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(om,[]).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),()=>go(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function go(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function je(e,t,n,r){let o=k(),i=Rn();if(It(o,i,t)){let s=pe(),a=es();ED(a,o,e,t,n,r)}return je}var B1=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Nl=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function rl(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Kb(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],d=rl(i,l,i,u,n);if(d!==0){d<0&&e.updateValue(i,u),i++;continue}let p=e.at(s),f=t[c],g=rl(s,p,c,f,n);if(g!==0){g<0&&e.updateValue(s,f),s--,c--;continue}let E=n(i,l),_=n(s,p),D=n(i,u);if(Object.is(D,_)){let ie=n(c,f);Object.is(ie,E)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new ws,o??=hp(e,i,s,n),Rl(e,r,i,D))e.updateValue(i,u),i++,s++;else if(o.has(D))r.set(E,e.detach(i)),s--;else{let ie=e.create(i,t[i]);e.attach(i,ie),i++,s++}}for(;i<=c;)pp(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),d=l.value,p=rl(i,u,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,l=c.next();else{r??=new ws,o??=hp(e,i,s,n);let f=n(i,d);if(Rl(e,r,i,f))e.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,l=c.next();else{let g=n(i,u);r.set(g,e.detach(i)),s--}}}for(;!l.done;)pp(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Rl(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function pp(e,t,n,r,o){if(Rl(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function hp(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var ws=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function O(e,t,n,r,o,i,s,a){Xt("NgControlFlow");let c=k(),l=pe(),u=et(l.consts,i);return Co(c,l,e,t,n,r,o,u,256,s,a),yu}function yu(e,t,n,r,o,i,s,a){Xt("NgControlFlow");let c=k(),l=pe(),u=et(l.consts,i);return Co(c,l,e,t,n,r,o,u,512,s,a),yu}function P(e,t){Xt("NgControlFlow");let n=k(),r=Rn(),o=n[r]!==tt?n[r]:-1,i=o!==-1?Is(n,ce+o):void 0,s=0;if(It(n,r,e)){let a=S(null);try{if(i!==void 0&&Rh(i,s),e!==-1){let c=ce+e,l=Is(n,c),u=Pl(n[x],c),d=kh(l,u,n),p=To(n,u,t,{dehydratedView:d});xo(l,p,s,Sr(u,d))}}finally{S(a)}}else if(i!==void 0){let a=Nh(i,s);a!==void 0&&(a[fe]=t)}}var Al=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-le}};function $n(e){return e}var kl=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function We(e,t,n,r,o,i,s,a,c,l,u,d,p){Xt("NgControlFlow");let f=k(),g=pe(),E=c!==void 0,_=k(),D=a?s.bind(_[Le][fe]):s,ie=new kl(E,D);_[ce+e]=ie,Co(f,g,e+1,t,n,r,o,et(g.consts,i),256),E&&Co(f,g,e+2,c,l,u,d,et(g.consts,p),512)}var Ol=class extends Nl{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-le}at(t){return this.getLView(t)[fe].$implicit}attach(t,n){let r=n[wn];this.needsIndexUpdate||=t!==this.length,xo(this.lContainer,n,t,Sr(this.templateTNode,r)),Xb(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Jb(this.lContainer,t),e_(this.lContainer,t)}create(t,n){let r=_s(this.lContainer,this.templateTNode.tView.ssrId),o=To(this.hostLView,this.templateTNode,new Al(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Ps(t[x],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[fe].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[fe].$index=t}getLView(t){return t_(this.lContainer,t)}};function qe(e){let t=S(null),n=At();try{let r=k(),o=r[x],i=r[n],s=n+1,a=Is(r,s);if(i.liveCollection===void 0){let l=Pl(o,s);i.liveCollection=new Ol(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(Kb(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let l=Rn(),u=c.length===0;if(It(r,l,u)){let d=n+2,p=Is(r,d);if(u){let f=Pl(o,d),g=kh(p,f,r),E=To(r,f,void 0,{dehydratedView:g});xo(p,E,0,Sr(f,g))}else o.firstUpdatePass&&WD(p),Rh(p,0)}}}finally{S(t)}}function Is(e,t){return e[t]}function Xb(e,t){if(e.length<=le)return;let n=le+t,r=e[n],o=r?r[Mn]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[St];Jv(i,o),Pn.delete(r),o.detachedLeaveAnimationFns=void 0}}function Jb(e,t){if(e.length<=le)return;let n=le+t,r=e[n],o=r?r[Mn]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function e_(e,t){return Do(e,t)}function t_(e,t){return Nh(e,t)}function Pl(e,t){return lo(e,t)}function Re(e,t,n){let r=k(),o=Rn();if(It(r,o,t)){let i=pe(),s=es();yD(s,r,e,t,r[te],n)}return Re}function Fl(e,t,n,r,o){su(t,e,n,o?"class":"style",r)}function y(e,t,n,r){let o=k(),i=o[x],s=e+ce,a=i.firstCreatePass?jh(s,o,2,t,yh,Lc(),n,r):i.data[s];if(vh(a,o,e,t,am),co(a)){let c=o[x];iu(c,o,a),qp(c,a,o)}return r!=null&&Ls(o,a),y}function v(){let e=pe(),t=Ne(),n=Dh(t);return e.firstCreatePass&&Bh(e,n),Bc(n)&&Vc(),Fc(),n.classesWithoutHost!=null&&tv(n)&&Fl(e,n,k(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&nv(n)&&Fl(e,n,k(),n.stylesWithoutHost,!1),v}function we(e,t,n,r){return y(e,t,n,r),v(),we}function I(e,t,n,r){let o=k(),i=o[x],s=e+ce,a=i.firstCreatePass?sb(s,i,2,t,n,r):i.data[s];return vh(a,o,e,t,am),r!=null&&Ls(o,a),I}function N(){let e=Ne(),t=Dh(e);return Bc(t)&&Vc(),Fc(),N}function be(e,t,n,r){return I(e,t,n,r),N(),be}var am=(e,t,n,r,o)=>(ns(!0),Zp(t[te],r,Zc()));function ue(){return k()}function Ie(e,t,n){let r=k(),o=Rn();if(It(r,o,t)){let i=pe(),s=es();gh(s,r,e,t,r[te],n)}return Ie}var os=void 0;function n_(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var r_=["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"]],os,[["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"]],os,[["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}",os,"{1} 'at' {0}",os],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",n_],ol={};function Ze(e){let t=o_(e),n=mp(t);if(n)return n;let r=t.split("-")[0];if(n=mp(r),n)return n;if(r==="en")return r_;throw new C(701,!1)}function mp(e){if(!(e in ol)){let t=bn.ng&&bn.ng.common&&bn.ng.common.locales&&bn.ng.common.locales[e];return t!==void 0&&(ol[e]=t),t}return ol[e]}var he=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(he||{});function o_(e){return e.toLowerCase().replace(/_/g,"-")}var So="en-US";var i_=So;function cm(e){typeof e=="string"&&(i_=e.toLowerCase().replace(/_/g,"-"))}function z(e,t,n){let r=k(),o=pe(),i=Ne();return s_(o,r,r[te],i,e,t,n),z}function X(e,t,n){let r=k(),o=pe(),i=Ne();return(i.type&3||n)&&$h(i,o,r,n,r[te],e,t,us(i,r,t)),X}function s_(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=us(r,t,i),$h(r,e,t,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 p=u[d],f=u[d+1];c??=us(r,t,i),lp(r,t,p,f,o,c)}if(l&&l.length)for(let d of l)c??=us(r,t,i),lp(r,t,d,o,o,c)}}function w(e=1){return Vf(e)}function a_(e,t){let n=null,r=Ov(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?Jp(e,i,!0):Lv(r,i))return o}return n}function vu(e){let t=k()[Le][Fe];if(!t.projection){let n=e?e.length:1,r=t.projection=ff(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?a_(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function Du(e,t=0,n,r,o,i){let s=k(),a=pe(),c=r?e+1:null;c!==null&&Co(s,a,c,r,o,i,null,n);let l=Ar(a,ce+e,16,null,n||null);l.projection===null&&(l.projection=t),Uc();let d=!s[wn]||jc();s[Le][Fe].projection[l.projection]===null&&c!==null?c_(s,a,c):d&&!As(l)&&uD(a,s,l)}function c_(e,t,n){let r=ce+n,o=t.data[r],i=e[r],s=_s(i,o.tView.ssrId),a=To(e,o,void 0,{dehydratedView:s});xo(i,a,0,Sr(o,s))}function bu(e,t,n){Zh(e,t,n)}function _u(e){let t=k(),n=pe(),r=Ki();fo(r+1);let o=fu(n,r);if(e.dirty&&Cf(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Yh(t,r);e.reset(i,Op),e.notifyOnChanges()}return!0}return!1}function Eu(){return du(k(),Ki())}function Un(e,t,n,r){Ob(e,Zh(t,n,r))}function zn(e=1){fo(Ki()+e)}function is(e,t){return e<<17|t<<2}function Fn(e){return e>>17&32767}function l_(e){return(e&2)==2}function u_(e,t){return e&131071|t<<17}function Ll(e){return e|2}function Nr(e){return(e&131068)>>2}function il(e,t){return e&-131069|t<<2}function d_(e){return(e&1)===1}function jl(e){return e|1}function f_(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Fn(s),c=Nr(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||gr(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=Fn(e[a+1]);e[r+1]=is(p,a),p!==0&&(e[p+1]=il(e[p+1],r)),e[a+1]=u_(e[a+1],r)}else e[r+1]=is(a,0),a!==0&&(e[a+1]=il(e[a+1],r)),a=r;else e[r+1]=is(c,0),a===0?a=r:e[c+1]=il(e[c+1],r),c=r;l&&(e[r+1]=Ll(e[r+1])),gp(e,u,r,!0),gp(e,u,r,!1),p_(t,u,e,r,i),s=is(a,c),i?t.classBindings=s:t.styleBindings=s}function p_(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&gr(i,t)>=0&&(n[r+1]=jl(n[r+1]))}function gp(e,t,n,r){let o=e[n+1],i=t===null,s=r?Fn(o):Nr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];h_(c,t)&&(a=!0,e[s+1]=r?jl(l):Ll(l)),s=r?Fn(l):Nr(l)}a&&(e[n+1]=r?Ll(o):jl(o))}function h_(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?gr(e,t)>=0:!1}var ft={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function m_(e){return e.substring(ft.key,ft.keyEnd)}function g_(e){return y_(e),lm(e,um(e,0,ft.textEnd))}function lm(e,t){let n=ft.textEnd;return n===t?-1:(t=ft.keyEnd=v_(e,ft.key=t,n),um(e,t,n))}function y_(e){ft.key=0,ft.keyEnd=0,ft.value=0,ft.valueEnd=0,ft.textEnd=e.length}function um(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function v_(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function me(e,t,n){return dm(e,t,n,!1),me}function nt(e,t){return dm(e,t,null,!0),nt}function Gn(e){b_(T_,D_,e,!0)}function D_(e,t){for(let n=g_(t);n>=0;n=lm(t,n))Gi(e,m_(t),!0)}function dm(e,t,n,r){let o=k(),i=pe(),s=Gc(2);if(i.firstUpdatePass&&pm(i,e,s,r),t!==tt&&It(o,s,t)){let a=i.data[At()];hm(i,a,o,o[te],e,o[s+1]=M_(t,n),r,s)}}function b_(e,t,n,r){let o=pe(),i=Gc(2);o.firstUpdatePass&&pm(o,null,i,r);let s=k();if(n!==tt&&It(s,i,n)){let a=o.data[At()];if(mm(a,r)&&!fm(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Bi(c,n||"")),Fl(o,a,s,n,r)}else x_(o,a,s,s[te],s[i+1],s[i+1]=I_(e,t,n),r,i)}}function fm(e,t){return t>=e.expandoStartIndex}function pm(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[At()],s=fm(e,n);mm(i,r)&&t===null&&!s&&(t=!1),t=__(o,i,t,r),f_(o,i,t,n,s,r)}}function __(e,t,n,r){let o=Ff(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=sl(null,e,t,n,r),n=wo(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=sl(o,e,t,n,r),i===null){let c=E_(e,t,r);c!==void 0&&Array.isArray(c)&&(c=sl(null,e,t,c[1],r),c=wo(c,t.attrs,r),C_(e,t,r,c))}else i=w_(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function E_(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Nr(r)!==0)return e[Fn(r)]}function C_(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Fn(o)]=r}function w_(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=wo(r,s,n)}return wo(r,t.attrs,n)}function sl(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=wo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function wo(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Gi(e,s,n?!0:t[++i]))}return e===void 0?null:e}function I_(e,t,n){if(n==null||n==="")return Qe;let r=[],o=Wl(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function T_(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Gi(e,r,n)}function x_(e,t,n,r,o,i,s,a){o===tt&&(o=Qe);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 p=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,g=null,E;u===d?(c+=2,l+=2,p!==f&&(g=d,E=f)):d===null||u!==null&&u<d?(c+=2,g=u):(l+=2,g=d,E=f),g!==null&&hm(e,t,n,r,g,E,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function hm(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=d_(l)?yp(c,t,n,o,Nr(l),s):void 0;if(!Ts(u)){Ts(i)||l_(l)&&(i=yp(c,null,n,o,a,s));let d=Sc(At(),n);fD(r,s,d,o,i)}}function yp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===tt&&(p=d?Qe:void 0);let f=d?Wi(p,r):u===r?p:void 0;if(l&&!Ts(f)&&(f=Wi(c,r)),Ts(f)&&(a=f,s))return a;let g=e[o+1];o=s?Fn(g):Nr(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Wi(c,r))}return a}function Ts(e){return e!==void 0}function M_(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ht(Wl(e)))),e}function mm(e,t){return(e.flags&(t?8:16))!==0}function b(e,t=""){let n=k(),r=pe(),o=e+ce,i=r.firstCreatePass?Ar(r,o,1,t,null):r.data[o],s=S_(r,n,i,t,e);n[o]=s,ts()&&ru(r,n,s,i),_r(i,!1)}var S_=(e,t,n,r,o)=>(ns(!0),Iv(t[te],r));function N_(e,t,n,r=""){return It(e,Rn(),n)?t+$i(n)+r:tt}function q(e){return de("",e),q}function de(e,t,n){let r=k(),o=N_(r,e,t,n);return o!==tt&&R_(r,At(),o),de}function R_(e,t,n){let r=Sc(t,e);Tv(e[te],r,n)}function A_(e,t,n){let r=pe();if(r.firstCreatePass){let o=bt(e);Bl(n,r.data,r.blueprint,o,!0),Bl(t,r.data,r.blueprint,o,!1)}}function Bl(e,t,n,r,o){if(e=Se(e),Array.isArray(e))for(let i=0;i<e.length;i++)Bl(e[i],t,n,r,o);else{let i=pe(),s=k(),a=Ne(),c=yn(e)?e:Se(e.provide),l=Cc(e),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(yn(e)||!e.multi){let f=new On(l,o,Ot,null),g=cl(c,t,o?u:u+p,d);g===-1?(ul(ms(a,s),i,c),al(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=cl(c,t,u+p,d),g=cl(c,t,u,u+p),E=f>=0&&n[f],_=g>=0&&n[g];if(o&&!_||!o&&!E){ul(ms(a,s),i,c);let D=P_(o?O_:k_,n.length,o,r,l,e);!o&&_&&(n[g].providerFactory=D),al(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(D),s.push(D)}else{let D=gm(n[o?g:f],l,!o&&r);al(i,e,f>-1?f:g,D)}!o&&r&&_&&n[g].componentProviders++}}}function al(e,t,n,r){let o=yn(t),i=vf(t);if(o||i){let c=(i?Se(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function gm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function cl(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function k_(e,t,n,r,o){return Vl(this.multi,[])}function O_(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=yo(r,r[x],this.providerFactory.index,o);s=c.slice(0,a),Vl(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],Vl(i,s);return s}function Vl(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function P_(e,t,n,r,o,i){let s=new On(e,n,Ot,null);return s.multi=[],s.index=t,s.componentProviders=0,gm(s,o,r&&!n),s}function No(e,t=[]){return n=>{n.providersResolver=(r,o)=>A_(r,o?o(e):e,t)}}function F_(e,t){let n=e[t];return n===tt?void 0:n}function L_(e,t,n,r,o,i,s){let a=t+n;return cb(e,a,o,i)?ab(e,a+2,s?r.call(s,o,i):r(o,i)):F_(e,a+2)}function Ro(e,t){let n=pe(),r,o=e+ce;n.firstCreatePass?(r=j_(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=gn(r.type,!0)),s,a=Pe(Ot);try{let c=hs(!1),l=i();return hs(c),Nc(n,k(),o,l),l}finally{Pe(a)}}function j_(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Ao(e,t,n,r){let o=e+ce,i=k(),s=Ef(i,o);return B_(i,o)?L_(i,Rf(),t,s.transform,n,r,s):s.transform(n,r)}function B_(e,t){return e[x].data[t].pure}var V_=(()=>{class e{zone=m(ne);changeDetectionScheduler=m(at);applicationRef=m(Hn);applicationErrorHandler=m(_t);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ym=new T("",{factory:()=>!1});function Cu({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ne(ae(K({},Iu()),{scheduleInRootZone:n})),[{provide:ne,useFactory:e},{provide:En,multi:!0,useFactory:()=>{let r=m(V_,{optional:!0});return()=>r.initialize()}},{provide:En,multi:!0,useFactory:()=>{let r=m(H_);return()=>{r.initialize()}}},t===!0?{provide:Qc,useValue:!0}:[],{provide:Kc,useValue:n??rh},{provide:_t,useFactory:()=>{let r=m(ne),o=m(Ve),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(ze),i.handleError(s))})}}}]}function wu(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Cu({ngZoneFactory:()=>{let o=Iu(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&Xt("NgZone_CoalesceEvent"),new ne(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return ro([{provide:ym,useValue:!0},{provide:po,useValue:!1},r])}function Iu(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var H_=(()=>{class e{subscription=new re;initialized=!1;zone=m(ne);pendingTasks=m(Yt);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(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var vm=(()=>{class e{applicationErrorHandler=m(_t);appRef=m(Hn);taskService=m(Yt);ngZone=m(ne);zonelessEnabled=m(po);tracing=m(jn,{optional:!0});disableScheduling=m(Qc,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new re;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(vs):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(m(Kc,{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 Ds||!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?Jf:oh;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(vs+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,Jf(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function $_(){return typeof $localize<"u"&&$localize.locale||So}var ko=new T("",{providedIn:"root",factory:()=>m(ko,{optional:!0,skipSelf:!0})||$_()});var Us=class{destroyed=!1;listeners=null;errorHandler=m(ze,{optional:!0});destroyRef=m($e);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new C(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed){console.warn(Dn(953,!1));return}if(this.listeners===null)return;let n=S(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{S(n)}}};function Pt(e){return Xd(e)}function Q(e,t){return Br(e,t?.equal)}var Tu=class{[_e];constructor(t){this[_e]=t}destroy(){this[_e].destroy()}};function Ae(e,t){let n=t?.injector??m(He),r=t?.manualCleanup!==!0?n.get($e):null,o,i=n.get(Cr,null,{optional:!0}),s=n.get(at);return i!==null?(o=G_(i.view,s,e),r instanceof to&&r._lView===i.view&&(r=null)):o=W_(e,n.get(ho),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new Tu(o)}var Dm=ae(K({},Jd),{cleanupFns:void 0,zone:null,onDestroyFn:An,run(){let e=Er(!1);try{ef(this)}finally{Er(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=S(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],S(e)}}}),U_=ae(K({},Dm),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){sn(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),z_=ae(K({},Dm),{consumerMarkedDirty(){this.view[R]|=8192,qt(this.view),this.notifier.notify(13)},destroy(){sn(this),this.onDestroyFn(),this.cleanup(),this.view[Rt]?.delete(this)}});function G_(e,t,n){let r=Object.create(z_);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=bm(r,n),e[Rt]??=new Set,e[Rt].add(r),r.consumerMarkedDirty(r),r}function W_(e,t,n){let r=Object.create(U_);return r.fn=bm(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function bm(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}var Im=Symbol("InputSignalNode#UNSET"),sE=ae(K({},li),{transformFn:void 0,applyValueToInputSignal(e,t){or(e,t)}});function Tm(e,t){let n=Object.create(sE);n.value=e,n.transformFn=t?.transform;function r(){if(er(n),n.value===Im){let o=null;throw new C(-950,o)}return n.value}return r[_e]=n,r}var aE=new T("");aE.__NG_ELEMENT_ID__=e=>{let t=Ne();if(t===null)throw new C(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new C(204,!1)};function ge(e){return new Us}function _m(e,t){return Tm(e,t)}function cE(e){return Tm(Im,e)}var oe=(_m.required=cE,_m);function Em(e,t){return Kh(t)}function lE(e,t){return Xh(t)}var kr=(Em.required=lE,Em);var xu=new T(""),uE=new T("");function Oo(e){return!e.moduleRef}function dE(e){let t=Oo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ne);return n.run(()=>{Oo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(_t),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Oo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(xu);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(xu);s.add(i),e.moduleRef.onDestroy(()=>{go(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return pE(r,n,()=>{let i=t.get(Yt),s=i.add(),a=t.get(gu);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(ko,So);if(cm(c||So),!t.get(uE,!0))return Oo(e)?t.get(Hn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Oo(e)){let u=t.get(Hn);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return fE?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var fE;function pE(e,t,n){try{let r=n();return $s(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var zs=null;function hE(e=[],t){return He.create({name:t,providers:[{provide:oo,useValue:"platform"},{provide:xu,useValue:new Set([()=>zs=null])},...e]})}function mE(e=[]){if(zs)return zs;let t=hE(e);return zs=t,im(),gE(t),t}function gE(e){let t=e.get(Ns,null);yr(e,()=>{t?.forEach(n=>n())})}var Au=(()=>{class e{static __NG_ELEMENT_ID__=yE}return e})();function yE(e){return vE(Ne(),k(),(e&16)===16)}function vE(e,t,n){if(Wt(e)&&!n){let r=Je(e.index,t);return new Qt(r,r)}else if(e.type&175){let r=t[Le];return new Qt(r,t)}return null}var Mu=class{constructor(){}supports(t){return uu(t)}create(t){return new Su(t)}},DE=(e,t)=>t,Su=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||DE}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<Cm(r,o,i)?n:r,a=Cm(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 p=0;p<l;p++){let f=p<i.length?i[p]:i[p]=0,g=f+p;u<=g&&g<l&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!uu(t))throw new C(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,Vh(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Nu(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Gs),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Gs),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Nu=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},Ru=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Gs=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Ru,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Cm(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function wm(){return new qs([new Mu])}var qs=(()=>{class e{factories;static \u0275prov=A({token:e,providedIn:"root",factory:wm});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let r=m(e,{optional:!0,skipSelf:!0});return e.create(n,r||wm())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new C(901,!1)}}return e})();function xm(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;G(8);try{let i=o?.injector??mE(r),s=[Cu({}),{provide:at,useExisting:vm},Uf,...n||[]],a=new Eo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return dE({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{G(9)}}function Mm(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Sm=null;function Fo(){return Sm}function ku(e){Sm??=e}var Po=class{};var ke=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ke||{}),Z=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(Z||{}),Ue=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ue||{}),Lt={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 Rm(e){return Ze(e)[he.LocaleId]}function Am(e,t,n){let r=Ze(e),o=[r[he.DayPeriodsFormat],r[he.DayPeriodsStandalone]],i=rt(o,t);return rt(i,n)}function km(e,t,n){let r=Ze(e),o=[r[he.DaysFormat],r[he.DaysStandalone]],i=rt(o,t);return rt(i,n)}function Om(e,t,n){let r=Ze(e),o=[r[he.MonthsFormat],r[he.MonthsStandalone]],i=rt(o,t);return rt(i,n)}function Pm(e,t){let r=Ze(e)[he.Eras];return rt(r,t)}function Lo(e,t){let n=Ze(e);return rt(n[he.DateFormat],t)}function jo(e,t){let n=Ze(e);return rt(n[he.TimeFormat],t)}function Bo(e,t){let r=Ze(e)[he.DateTimeFormat];return rt(r,t)}function Vo(e,t){let n=Ze(e),r=n[he.NumberSymbols][t];if(typeof r>"u"){if(t===Lt.CurrencyDecimal)return n[he.NumberSymbols][Lt.Decimal];if(t===Lt.CurrencyGroup)return n[he.NumberSymbols][Lt.Group]}return r}function Fm(e){if(!e[he.ExtraData])throw new C(2303,!1)}function Lm(e){let t=Ze(e);return Fm(t),(t[he.ExtraData][2]||[]).map(r=>typeof r=="string"?Ou(r):[Ou(r[0]),Ou(r[1])])}function jm(e,t,n){let r=Ze(e);Fm(r);let o=[r[he.ExtraData][0],r[he.ExtraData][1]],i=rt(o,t)||[];return rt(i,n)||[]}function rt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new C(2304,!1)}function Ou(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var bE=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Zs={},_E=/((?:[^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]*)/,EE=256;function Bm(e,t,n,r){let o=AE(e);CE(t),t=Ft(n,t)||t;let s=[],a;for(;t;)if(a=_E.exec(t),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;t=u}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Hm(r,c),o=RE(o,r));let l="";return s.forEach(u=>{let d=SE(u);l+=d?d(o,n,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function CE(e){if(e.length>EE)throw new C(2300,!1)}function Js(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Ft(e,t){let n=Rm(e);if(Zs[n]??={},Zs[n][t])return Zs[n][t];let r="";switch(t){case"shortDate":r=Lo(e,Ue.Short);break;case"mediumDate":r=Lo(e,Ue.Medium);break;case"longDate":r=Lo(e,Ue.Long);break;case"fullDate":r=Lo(e,Ue.Full);break;case"shortTime":r=jo(e,Ue.Short);break;case"mediumTime":r=jo(e,Ue.Medium);break;case"longTime":r=jo(e,Ue.Long);break;case"fullTime":r=jo(e,Ue.Full);break;case"short":let o=Ft(e,"shortTime"),i=Ft(e,"shortDate");r=Ys(Bo(e,Ue.Short),[o,i]);break;case"medium":let s=Ft(e,"mediumTime"),a=Ft(e,"mediumDate");r=Ys(Bo(e,Ue.Medium),[s,a]);break;case"long":let c=Ft(e,"longTime"),l=Ft(e,"longDate");r=Ys(Bo(e,Ue.Long),[c,l]);break;case"full":let u=Ft(e,"fullTime"),d=Ft(e,"fullDate");r=Ys(Bo(e,Ue.Full),[u,d]);break}return r&&(Zs[n][t]=r),r}function Ys(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function mt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function wE(e,t){return mt(e,3).substring(0,t)}function ye(e,t,n=0,r=!1,o=!1){return function(i,s){let a=IE(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return wE(a,t);let c=Vo(s,Lt.MinusSign);return mt(a,t,c,r,o)}}function IE(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new C(2301,!1)}}function J(e,t,n=ke.Format,r=!1){return function(o,i){return TE(o,i,e,t,n,r)}}function TE(e,t,n,r,o,i){switch(n){case 2:return Om(t,o,r)[e.getMonth()];case 1:return km(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let l=Lm(t),u=jm(t,o,r),d=l.findIndex(p=>{if(Array.isArray(p)){let[f,g]=p,E=s>=f.hours&&a>=f.minutes,_=s<g.hours||s===g.hours&&a<g.minutes;if(f.hours<g.hours){if(E&&_)return!0}else if(E||_)return!0}else if(p.hours===s&&p.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return Am(t,o,r)[s<12?0:1];case 3:return Pm(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new C(2302,!1)}}function Qs(e){return function(t,n,r){let o=-1*r,i=Vo(n,Lt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+mt(s,2,i)+mt(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+mt(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+mt(s,2,i)+":"+mt(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+mt(s,2,i)+":"+mt(Math.abs(o%60),2,i);default:throw new C(2310,!1)}}}var xE=0,Xs=4;function ME(e){let t=Js(e,xE,1).getDay();return Js(e,0,1+(t<=Xs?Xs:Xs+7)-t)}function Vm(e){let t=e.getDay(),n=t===0?-3:Xs-t;return Js(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Pu(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Vm(n),s=ME(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return mt(o,e,Vo(r,Lt.MinusSign))}}function Ks(e,t=!1){return function(n,r){let i=Vm(n).getFullYear();return mt(i,e,Vo(r,Lt.MinusSign),t)}}var Fu={};function SE(e){if(Fu[e])return Fu[e];let t;switch(e){case"G":case"GG":case"GGG":t=J(3,Z.Abbreviated);break;case"GGGG":t=J(3,Z.Wide);break;case"GGGGG":t=J(3,Z.Narrow);break;case"y":t=ye(0,1,0,!1,!0);break;case"yy":t=ye(0,2,0,!0,!0);break;case"yyy":t=ye(0,3,0,!1,!0);break;case"yyyy":t=ye(0,4,0,!1,!0);break;case"Y":t=Ks(1);break;case"YY":t=Ks(2,!0);break;case"YYY":t=Ks(3);break;case"YYYY":t=Ks(4);break;case"M":case"L":t=ye(1,1,1);break;case"MM":case"LL":t=ye(1,2,1);break;case"MMM":t=J(2,Z.Abbreviated);break;case"MMMM":t=J(2,Z.Wide);break;case"MMMMM":t=J(2,Z.Narrow);break;case"LLL":t=J(2,Z.Abbreviated,ke.Standalone);break;case"LLLL":t=J(2,Z.Wide,ke.Standalone);break;case"LLLLL":t=J(2,Z.Narrow,ke.Standalone);break;case"w":t=Pu(1);break;case"ww":t=Pu(2);break;case"W":t=Pu(1,!0);break;case"d":t=ye(2,1);break;case"dd":t=ye(2,2);break;case"c":case"cc":t=ye(7,1);break;case"ccc":t=J(1,Z.Abbreviated,ke.Standalone);break;case"cccc":t=J(1,Z.Wide,ke.Standalone);break;case"ccccc":t=J(1,Z.Narrow,ke.Standalone);break;case"cccccc":t=J(1,Z.Short,ke.Standalone);break;case"E":case"EE":case"EEE":t=J(1,Z.Abbreviated);break;case"EEEE":t=J(1,Z.Wide);break;case"EEEEE":t=J(1,Z.Narrow);break;case"EEEEEE":t=J(1,Z.Short);break;case"a":case"aa":case"aaa":t=J(0,Z.Abbreviated);break;case"aaaa":t=J(0,Z.Wide);break;case"aaaaa":t=J(0,Z.Narrow);break;case"b":case"bb":case"bbb":t=J(0,Z.Abbreviated,ke.Standalone,!0);break;case"bbbb":t=J(0,Z.Wide,ke.Standalone,!0);break;case"bbbbb":t=J(0,Z.Narrow,ke.Standalone,!0);break;case"B":case"BB":case"BBB":t=J(0,Z.Abbreviated,ke.Format,!0);break;case"BBBB":t=J(0,Z.Wide,ke.Format,!0);break;case"BBBBB":t=J(0,Z.Narrow,ke.Format,!0);break;case"h":t=ye(3,1,-12);break;case"hh":t=ye(3,2,-12);break;case"H":t=ye(3,1);break;case"HH":t=ye(3,2);break;case"m":t=ye(4,1);break;case"mm":t=ye(4,2);break;case"s":t=ye(5,1);break;case"ss":t=ye(5,2);break;case"S":t=ye(6,1);break;case"SS":t=ye(6,2);break;case"SSS":t=ye(6,3);break;case"Z":case"ZZ":case"ZZZ":t=Qs(0);break;case"ZZZZZ":t=Qs(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Qs(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=Qs(2);break;default:return null}return Fu[e]=t,t}function Hm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function NE(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function RE(e,t,n){let o=e.getTimezoneOffset(),i=Hm(t,o);return NE(e,-1*(i-o))}function AE(e){if(Nm(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Js(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(bE))return kE(r)}let t=new Date(e);if(!Nm(t))throw new C(2311,!1);return t}function kE(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,l),t}function Nm(e){return e instanceof Date&&!isNaN(e.valueOf())}function OE(e,t){return new C(2100,!1)}var PE="mediumDate",$m=new T(""),Um=new T(""),Ho=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??PE,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Bm(n,s,i||this.locale,a)}catch(s){throw OE(e,s.message)}}static \u0275fac=function(r){return new(r||e)(Ot(ko,16),Ot($m,24),Ot(Um,24))};static \u0275pipe=pu({name:"date",type:e,pure:!0})}return e})();function $o(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var qn=class{};var Lu="browser";function zm(e){return e===Lu}var Uo=class{_doc;constructor(t){this._doc=t}manager},ea=(()=>{class e extends Uo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(B(Ee))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),na=new T(""),$u=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof ea));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof ea);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 C(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(B(na),B(ne))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),ju="ng-app-id";function Gm(e){for(let t of e)t.remove()}function Wm(e,t){let n=t.createElement("style");return n.textContent=e,n}function jE(e,t,n,r){let o=e.head?.querySelectorAll(`style[${ju}="${t}"],link[${ju}="${t}"]`);if(o)for(let i of o)i.removeAttribute(ju),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 Vu(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Uu=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,jE(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Wm);r?.forEach(o=>this.addUsage(o,this.external,Vu))}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&&(Gm(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Gm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Wm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Vu(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(B(Ee),B(Ss),B(Rs,8),B(Ln))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),Bu={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"},zu=/%COMP%/g;var Zm="%COMP%",BE=`_nghost-${Zm}`,VE=`_ngcontent-${Zm}`,HE=!0,$E=new T("",{providedIn:"root",factory:()=>HE});function UE(e){return VE.replace(zu,e)}function zE(e){return BE.replace(zu,e)}function Ym(e,t){return t.map(n=>n.replace(zu,e))}var Gu=(()=>{class e{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 zo(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 ta?o.applyToHost(n):o instanceof Go&&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,p=this.tracingService;switch(r.encapsulation){case kt.Emulated:i=new ta(c,l,r,this.appId,u,s,a,d,p);break;case kt.ShadowDom:return new Hu(c,l,n,r,s,a,this.nonce,d,p);default:i=new Go(c,l,r,u,s,a,d,p);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(B($u),B(Uu),B(Ss),B($E),B(Ee),B(ne),B(Rs),B(jn,8))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),zo=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Bu[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(qm(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(qm(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new C(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Bu[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Bu[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Ct.DashCase|Ct.Important)?t.style.setProperty(n,r,o&Ct.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ct.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=Fo().getGlobalEventTarget(this.doc,t),!t))throw new C(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function qm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Hu=class extends zo{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,l){super(t,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=Ym(o.id,u);for(let p of u){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=p,this.shadowRoot.appendChild(f)}let d=o.getExternalStyles?.();if(d)for(let p of d){let f=Vu(p,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Go=class extends zo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,l){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=l?Ym(l,u):u,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Pn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ta=class extends Go{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,l,u),this.contentAttr=UE(u),this.hostAttr=zE(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var ra=class e extends Po{supportsDOMEvents=!0;static makeCurrent(){ku(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=GE();return n==null?null:WE(n)}resetBaseElement(){Wo=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return $o(document.cookie,t)}},Wo=null;function GE(){return Wo=Wo||document.head.querySelector("base"),Wo?Wo.getAttribute("href"):null}function WE(e){return new URL(e,document.baseURI).pathname}var qE=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),Qm=["alt","control","meta","shift"],ZE={"\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"},YE={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Km=(()=>{class e extends Uo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fo().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Qm.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=ZE[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"),Qm.forEach(s=>{if(s!==o){let a=YE[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(B(Ee))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})();function Wu(e,t,n){let r=K({rootComponent:e,platformRef:n?.platformRef},QE(t));return xm(r)}function QE(e){return{appProviders:[...tC,...e?.providers??[]],platformProviders:eC}}function KE(){ra.makeCurrent()}function XE(){return new ze}function JE(){return Gl(document),document}var eC=[{provide:Ln,useValue:Lu},{provide:Ns,useValue:KE,multi:!0},{provide:Ee,useFactory:JE}];var tC=[{provide:oo,useValue:"root"},{provide:ze,useFactory:XE},{provide:na,useClass:ea,multi:!0,deps:[Ee]},{provide:na,useClass:Km,multi:!0,deps:[Ee]},Gu,Uu,$u,{provide:wt,useExisting:Gu},{provide:qn,useClass:qE},[]];var Yn=class{},qo=class{},Jt=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init();for(let[n,r]of t.headers.entries())this.headers.set(n,r),this.normalizedNames.set(n,t.normalizedNames.get(n))}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=t.op==="a"?(this.headers.get(n)||[]).slice():[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.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(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var ia=class{encodeKey(t){return Xm(t)}encodeValue(t){return Xm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function nC(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var rC=/%(\d[a-f0-9])/gi,oC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Xm(e){return encodeURIComponent(e).replace(rC,(t,n)=>oC[n]??t)}function oa(e){return`${e}`}var ot=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new ia,t.fromString){if(t.fromObject)throw new C(2805,!1);this.map=nC(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(oa):[oa(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,n]of this.cloneFrom.map.entries())this.map.set(t,n);this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=t.op==="a"?(this.map.get(t.param)||[]).slice():[];n.push(oa(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=(this.map.get(t.param)||[]).slice(),o=r.indexOf(oa(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null}}};var sa=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function iC(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Jm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function eg(e){return typeof Blob<"u"&&e instanceof Blob}function tg(e){return typeof FormData<"u"&&e instanceof FormData}function sC(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var ng="Content-Type",rg="Accept",og="X-Request-URL",ig="text/plain",sg="application/json",aC=`${sg}, ${ig}, */*`,Or=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(iC(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 C(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 Jt,this.context??=new sa,!this.params)this.params=new ot,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"||Jm(this.body)||eg(this.body)||tg(this.body)||sC(this.body)?this.body:this.body instanceof ot?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||tg(this.body)?null:eg(this.body)?this.body.type||null:Jm(this.body)?null:typeof this.body=="string"?ig:this.body instanceof ot?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?sg:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer??this.referrer,p=t.integrity||this.integrity,f=t.transferCache??this.transferCache,g=t.timeout??this.timeout,E=t.body!==void 0?t.body:this.body,_=t.withCredentials??this.withCredentials,D=t.reportProgress??this.reportProgress,ie=t.headers||this.headers,Kn=t.params||this.params,xe=t.context??this.context;return t.setHeaders!==void 0&&(ie=Object.keys(t.setHeaders).reduce((tn,nn)=>tn.set(nn,t.setHeaders[nn]),ie)),t.setParams&&(Kn=Object.keys(t.setParams).reduce((tn,nn)=>tn.set(nn,t.setParams[nn]),Kn)),new e(n,r,E,{params:Kn,headers:ie,context:xe,reportProgress:D,responseType:o,withCredentials:_,transferCache:f,keepalive:i,cache:a,priority:s,timeout:g,mode:c,redirect:l,credentials:u,referrer:d,integrity:p})}},Zn=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Zn||{}),Fr=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new Jt,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},aa=class e extends Fr{constructor(t={}){super(t)}type=Zn.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Zo=class e extends Fr{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Zn.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},Pr=class extends Fr{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},cC=200,lC=204;function qu(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var la=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Or)i=n;else{let c;o.headers instanceof Jt?c=o.headers:c=new Jt(o.headers);let l;o.params&&(o.params instanceof ot?l=o.params:l=new ot({fromObject:o.params})),i=new Or(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=Oe(i).pipe(Ga(c=>this.handler.handle(c)));if(n instanceof Or||o.observe==="events")return s;let a=s.pipe(fn(c=>c instanceof Zo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Be(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new C(2806,!1);return c.body}));case"blob":return a.pipe(Be(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new C(2807,!1);return c.body}));case"text":return a.pipe(Be(c=>{if(c.body!==null&&typeof c.body!="string")throw new C(2808,!1);return c.body}));default:return a.pipe(Be(c=>c.body))}case"response":return a;default:throw new C(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 ot().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,qu(o,r))}post(n,r,o={}){return this.request("POST",n,qu(o,r))}put(n,r,o={}){return this.request("PUT",n,qu(o,r))}static \u0275fac=function(r){return new(r||e)(B(Yn))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})();var uC=new T("");function dC(e,t){return t(e)}function fC(e,t,n){return(r,o)=>yr(n,()=>t(r,i=>e(i,o)))}var Yu=new T(""),ag=new T(""),cg=new T("",{providedIn:"root",factory:()=>!0});var ca=(()=>{class e extends Yn{backend;injector;chain=null;pendingTasks=m(wr);contributeToStability=m(cg);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=this.injector.get(Yn,null,{skipSelf:!0}),o=r!==null&&this.backend===r,i=this.injector.get(ag,[],o?{self:!0}:void 0),s=Array.from(new Set([...this.injector.get(Yu),...i]));this.chain=s.reduceRight((a,c)=>fC(a,c,this.injector),dC)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Kr(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(B(qo),B(Ve))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})();var pC=/^\)\]\}',?\n/,hC=RegExp(`^${og}:`,"m");function mC(e){return"responseURL"in e&&e.responseURL?e.responseURL:hC.test(e.getAllResponseHeaders())?e.getResponseHeader(og):null}var Zu=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new C(-2800,!1);let r=this.xhrFactory;return Oe(null).pipe(Xr(()=>new j(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((_,D)=>s.setRequestHeader(_,D.join(","))),n.headers.has(rg)||s.setRequestHeader(rg,aC),!n.headers.has(ng)){let _=n.detectContentTypeHeader();_!==null&&s.setRequestHeader(ng,_)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let _=n.responseType.toLowerCase();s.responseType=_!=="json"?_:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let _=s.statusText||"OK",D=new Jt(s.getAllResponseHeaders()),ie=mC(s)||n.url;return c=new aa({headers:D,status:s.status,statusText:_,url:ie}),c},u=()=>{let{headers:_,status:D,statusText:ie,url:Kn}=l(),xe=null;D!==lC&&(xe=typeof s.response>"u"?s.responseText:s.response),D===0&&(D=xe?cC:0);let tn=D>=200&&D<300;if(n.responseType==="json"&&typeof xe=="string"){let nn=xe;xe=xe.replace(pC,"");try{xe=xe!==""?JSON.parse(xe):null}catch(kg){xe=nn,tn&&(tn=!1,xe={error:kg,text:xe})}}tn?(i.next(new Zo({body:xe,headers:_,status:D,statusText:ie,url:Kn||void 0})),i.complete()):i.error(new Pr({error:xe,headers:_,status:D,statusText:ie,url:Kn||void 0}))},d=_=>{let{url:D}=l(),ie=new Pr({error:_,status:s.status||0,statusText:s.statusText||"Unknown Error",url:D||void 0});i.error(ie)},p=d;n.timeout&&(p=_=>{let{url:D}=l(),ie=new Pr({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:D||void 0});i.error(ie)});let f=!1,g=_=>{f||(i.next(l()),f=!0);let D={type:Zn.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(D.total=_.total),n.responseType==="text"&&s.responseText&&(D.partialText=s.responseText),i.next(D)},E=_=>{let D={type:Zn.UploadProgress,loaded:_.loaded};_.lengthComputable&&(D.total=_.total),i.next(D)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",p),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",g),a!==null&&s.upload&&s.upload.addEventListener("progress",E)),s.send(a),i.next({type:Zn.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",p),n.reportProgress&&(s.removeEventListener("progress",g),a!==null&&s.upload&&s.upload.removeEventListener("progress",E)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(B(qn))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),lg=new T(""),gC="XSRF-TOKEN",yC=new T("",{providedIn:"root",factory:()=>gC}),vC="X-XSRF-TOKEN",DC=new T("",{providedIn:"root",factory:()=>vC}),Yo=class{},bC=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=$o(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(B(Ee),B(yC))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),_C=/^(?:https?:)?\/\//i;function EC(e,t){if(!m(lg)||e.method==="GET"||e.method==="HEAD"||_C.test(e.url))return t(e);let n=m(Yo).getToken(),r=m(DC);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var Qu=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(Qu||{});function CC(e,t){return{\u0275kind:e,\u0275providers:t}}function Ku(...e){let t=[la,Zu,ca,{provide:Yn,useExisting:ca},{provide:qo,useFactory:()=>m(uC,{optional:!0})??m(Zu)},{provide:Yu,useValue:EC,multi:!0},{provide:lg,useValue:!0},{provide:Yo,useClass:bC}];for(let n of e)t.push(...n.\u0275providers);return ro(t)}function Xu(e){return CC(Qu.Interceptors,e.map(t=>({provide:Yu,useValue:t,multi:!0})))}var ug="guitoToken";function dg(){return new URLSearchParams(window.location.search).get(ug)??""}var fg=(e,t)=>{let n=dg();return!n||!e.url.startsWith("/api")?t(e):t(e.clone({setHeaders:{"X-Guito-Token":n}}))};function pg(e){let t=new URL(e,window.location.origin),n=dg();return n&&t.searchParams.set(ug,n),t.toString()}var hg={providers:[wu({eventCoalescing:!0}),Ku(Xu([fg]))]};var jt="__working__";var en=class e{http=m(la);base="/api";getRepoInfo(){return this.http.get(`${this.base}/repo`)}getCommits(t,n=0){let r=new ot;return t!==void 0&&(r=r.set("limit",String(t))),n>0&&(r=r.set("skip",String(n))),this.http.get(`${this.base}/commits`,{params:r})}searchCommits(t){let n=new ot().set("query",t);return this.http.get(`${this.base}/commits/search`,{params:n})}getCommitDetail(t){return this.http.post(`${this.base}/commit/detail`,{hash:t})}getAllBranches(){return this.http.get(`${this.base}/branches/all`)}getCommitDiff(t){return this.http.post(`${this.base}/commit/diff`,{hash:t})}getWorkingChanges(){return this.http.get(`${this.base}/working-changes`)}getFileContent(t,n){return this.http.post(`${this.base}/file-content`,{path:t,ref:n})}fetch(){return this.http.get(`${this.base}/fetch`)}pull(t=!1){return this.http.post(`${this.base}/pull`,{rebase:t})}push(){return this.http.post(`${this.base}/push`,{})}sync(){return this.http.post(`${this.base}/sync`,{})}checkout(t){return this.http.post(`${this.base}/checkout`,{ref:t})}revert(t){return this.http.post(`${this.base}/revert`,{commit:t})}cherryPick(t){return this.http.post(`${this.base}/cherry-pick`,{commit:t})}dropCommit(t){return this.http.post(`${this.base}/commit/drop`,{commit:t})}resetToCommit(t){return this.http.post(`${this.base}/reset-commit`,{commit:t})}commit(t,n){return this.http.post(`${this.base}/commit`,{message:t,description:n})}stage(t){return this.http.post(`${this.base}/stage`,{files:t})}unstage(t){return this.http.post(`${this.base}/unstage`,{files:t})}discard(t){return this.http.post(`${this.base}/discard`,{files:t})}resetWorking(){return this.http.post(`${this.base}/reset`,{})}cleanUntracked(){return this.http.post(`${this.base}/clean`,{})}stashSave(t){return this.http.post(`${this.base}/stash/save`,{message:t})}createBranch(t,n){return this.http.post(`${this.base}/branch/create`,{name:t,startPoint:n})}deleteBranch(t,n=!1){return this.http.post(`${this.base}/branch/delete`,{name:t,force:n})}deleteRemoteBranch(t,n){return this.http.post(`${this.base}/branch/delete-remote`,{remote:t,branch:n})}renameBranch(t,n){return this.http.post(`${this.base}/branch/rename`,{oldName:t,newName:n})}merge(t){return this.http.post(`${this.base}/merge`,{branch:t})}rebase(t){return this.http.post(`${this.base}/rebase`,{branch:t})}createTag(t,n){return this.http.post(`${this.base}/tag/create`,{name:t,commit:n})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})};function Ju(e){let t=[],n=new Int32Array(e.length),r=o=>{let i=t.indexOf(o);return i===-1&&(i=t.indexOf(null),i===-1&&(t.push(null),i=t.length-1),t[i]=o),i};for(let o=0;o<e.length;o++){let{hash:i,parents:s}=e[o],a=t.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++)t[a[l]]=null}else c=r(i);t[c]=s[0]??null;for(let l=1;l<s.length;l++)r(s[l]);n[o]=c}return n}var mg=["#3794ff","#4ec9b0","#d7ba7d","#c586c0","#89d185","#ce9178","#d16969","#569cd6","#b5cea8","#dcdcaa"];function Qo(e){return mg[Math.abs(e)%mg.length]}function gg(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)|0;return Math.abs(t)}var ua=class e{loading=null;load(){return this.loading||(this.loading=new Promise((t,n)=>{let r=window;if(r.monaco){t(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),t(r.monaco)})},o.onerror=()=>{this.loading=null,n(new Error("Failed to load the Monaco editor."))},document.head.appendChild(o)})),this.loading}applyTheme(t){t.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||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})};var wC=["host"];function IC(e,t){if(e&1&&(I(0,"span",6),b(1),N()),e&2){let n=w();h(),de("+",n.file().additions)}}function TC(e,t){if(e&1&&(I(0,"span",7),b(1),N()),e&2){let n=w();h(),de("\u2212",n.file().deletions)}}function xC(e,t){e&1&&(Y(),be(0,"line",11))}function MC(e,t){e&1&&(Y(),be(0,"line",12))}function SC(e,t){e&1&&(I(0,"div",18),b(1,"Loading diff\u2026"),N())}function NC(e,t){if(e&1&&(I(0,"div",19),b(1),N()),e&2){let n=w();h(),q(n.error())}}function RC(e,t){e&1&&(I(0,"div",18),b(1,"Binary file not shown."),N())}var AC=0,da=class e{git=m(en);monacoService=m(ua);file=oe.required();originalRef=oe.required();modifiedRef=oe.required();closed=ge();host=kr.required("host");loading=M(!0);error=M("");binary=M(!1);sideBySide=M(!0);editor=null;models=[];onEscape(){this.closed.emit()}ngAfterViewInit(){return Xn(this,null,function*(){this.loading.set(!0),this.error.set(""),this.binary.set(!1);try{let t=yield this.monacoService.load(),n=this.file(),r=n.status==="added"&&!n.oldPath?"EMPTY":this.originalRef(),[o,i]=yield Promise.all([Oi(this.git.getFileContent(n.oldPath||n.path,r)),Oi(this.git.getFileContent(n.path,this.modifiedRef()))]);if(o.binary||i.binary){this.binary.set(!0),this.loading.set(!1);return}let s=++AC,a=t.editor.createModel(o.content,void 0,t.Uri.parse(`inmemory://diff/${s}/original/${n.oldPath||n.path}`)),c=t.editor.createModel(i.content,void 0,t.Uri.parse(`inmemory://diff/${s}/modified/${n.path}`));this.models=[a,c],this.editor=t.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.editor?.dispose(),this.editor=null;for(let t of this.models)t.dispose();this.models=[]}toggleLayout(){this.sideBySide.update(t=>!t),this.editor?.updateOptions({renderSideBySide:this.sideBySide()})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ce({type:e,selectors:[["app-diff-dialog"]],viewQuery:function(n,r){n&1&&Un(r.host,wC,5),n&2&&zn()},hostBindings:function(n,r){n&1&&z("keydown.escape",function(){return r.onEscape()},Tt)},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=ue();I(0,"div",1),X("click",function(){return H(o),$(r.closed.emit())}),N(),I(1,"div",2)(2,"header",3)(3,"span"),b(4),N(),I(5,"span",4),b(6),N(),I(7,"span",5),O(8,IC,2,1,"span",6),O(9,TC,2,1,"span",7),N(),I(10,"button",8),X("click",function(){return H(o),$(r.toggleLayout())}),Y(),I(11,"svg",9),be(12,"rect",10),O(13,xC,1,0,":svg:line",11)(14,MC,1,0,":svg:line",12),N()(),De(),I(15,"button",13),X("click",function(){return H(o),$(r.closed.emit())}),Y(),I(16,"svg",9),be(17,"line",14)(18,"line",15),N()()(),De(),I(19,"div",16),be(20,"div",17,0),O(22,SC,2,0,"div",18)(23,NC,2,1,"div",19)(24,RC,2,0,"div",18),N()()}n&2&&(h(3),Gn("status status-"+r.file().status),h(),q(r.file().status),h(),Ie("title",r.file().path),h(),q(r.file().path),h(2),P(r.file().additions>0?8:-1),h(),P(r.file().deletions>0?9:-1),h(),je("aria-label",r.sideBySide()?"Switch to inline view":"Switch to side-by-side view"),h(3),P(r.sideBySide()?13:14),h(9),P(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 kC=(e,t)=>t.path;function OC(e,t){if(e&1&&(y(0,"span",15),b(1,"\u2022"),v(),y(2,"span"),b(3),Ro(4,"date"),v(),y(5,"span",15),b(6,"\u2022"),v(),y(7,"code",16),b(8),v()),e&2){let n=w();h(3),q(Ao(4,2,n.commit().date,"d MMM y HH:mm")),h(5),q(n.commit().hash.slice(0,8))}}function PC(e,t){if(e&1&&(y(0,"pre",10),b(1),v()),e&2){let n=w();h(),q(n.body())}}function FC(e,t){e&1&&(y(0,"div",12),b(1,"Loading changes\u2026"),v())}function LC(e,t){if(e&1&&(y(0,"div",13),b(1),v()),e&2){let n=w();h(),q(n.error())}}function jC(e,t){e&1&&(y(0,"div",12),b(1,"No changes."),v())}function BC(e,t){if(e&1&&(y(0,"span",22),b(1),v()),e&2){let n=w().$implicit;h(),de("+",n.additions)}}function VC(e,t){if(e&1&&(y(0,"span",23),b(1),v()),e&2){let n=w().$implicit;h(),de("\u2212",n.deletions)}}function HC(e,t){if(e&1){let n=ue();y(0,"button",19),z("click",function(){let o=H(n).$implicit,i=w(3);return $(i.openFile(o))}),y(1,"span"),b(2),v(),y(3,"span",20),b(4),v(),y(5,"span",21),O(6,BC,2,1,"span",22),O(7,VC,2,1,"span",23),v(),Y(),y(8,"svg",24),we(9,"polyline",25),v()()}if(e&2){let n=t.$implicit;h(),Gn("file-status status-"+n.status),h(),q(n.status),h(),Re("title",n.path),h(),q(n.path),h(2),P(n.additions>0?6:-1),h(),P(n.deletions>0?7:-1)}}function $C(e,t){if(e&1&&(y(0,"div",17),We(1,HC,10,7,"button",18,kC),v()),e&2){let n=w();h(),qe(n.files)}}function UC(e,t){e&1&&O(0,jC,2,0,"div",12)(1,$C,3,0,"div",17),e&2&&P(t.files.length===0?0:1)}function zC(e,t){if(e&1){let n=ue();y(0,"app-diff-dialog",26),z("closed",function(){H(n);let o=w();return $(o.dialogFile.set(null))}),v()}if(e&2){let n=w();Re("file",t)("originalRef",n.originalRef())("modifiedRef",n.modifiedRef())}}var fa=class e{git=m(en);commit=oe.required();closed=ge();diff=M(null);loading=M(!1);error=M("");dialogFile=M(null);body=M("");bodySub=null;workingHash=jt;isWorking=Q(()=>this.commit().hash===this.workingHash);originalRef=Q(()=>this.isWorking()?"HEAD":`${this.commit().hash}^`);modifiedRef=Q(()=>this.isWorking()?"WORKING":this.commit().hash);initials=Q(()=>{let t=this.commit().author_name.trim();if(!t)return"?";let n=t.split(/\s+/),r=n[0].charAt(0),o=n.length>1?n[n.length-1].charAt(0):"";return(r+o).toUpperCase()});avatarColor=Q(()=>Qo(gg(this.commit().author_name)));constructor(){Ae(()=>{this.loadDiff(this.commit().hash),this.loadBody(this.commit())})}ngOnDestroy(){this.bodySub?.unsubscribe()}openFile(t){this.dialogFile.set(t)}loadBody(t){if(this.bodySub?.unsubscribe(),this.body.set(""),t.body!==void 0){this.body.set(t.body);return}this.bodySub=this.git.getCommitDetail(t.hash).subscribe({next:n=>this.body.set(n.body??""),error:()=>this.body.set("")})}loadDiff(t){if(this.loading.set(!0),this.error.set(""),this.diff.set(null),this.dialogFile.set(null),t===jt){this.git.getWorkingChanges().subscribe({next:n=>{this.loading.set(!1),this.diff.set({hash:jt,files:n.files})},error:()=>{this.loading.set(!1),this.error.set("Failed to load the working changes.")}});return}this.git.getCommitDiff(t).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||e)};static \u0275cmp=Ce({type:e,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&&(y(0,"aside",0)(1,"header",1)(2,"button",2),z("click",function(){return r.closed.emit()}),Y(),y(3,"svg",3),we(4,"line",4)(5,"line",5),v()(),De(),y(6,"h2",6),b(7),v(),y(8,"div",7)(9,"span",8),b(10),v(),y(11,"span",9),b(12),v(),O(13,OC,9,5),v(),O(14,PC,2,1,"pre",10),v(),y(15,"div",11),O(16,FC,2,0,"div",12)(17,LC,2,1,"div",13)(18,UC,2,1),v()(),O(19,zC,1,3,"app-diff-dialog",14)),n&2){let o,i;h(7),q(r.commit().message),h(2),me("background",r.avatarColor()),h(),q(r.initials()),h(2),q(r.commit().author_name),h(),P(r.isWorking()?-1:13),h(),P(r.body().trim()?14:-1),h(2),P(r.loading()?16:r.error()?17:(o=r.diff())?18:-1,o),h(3),P((i=r.dialogFile())?19:-1,i)}},dependencies:[da,Ho],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 Ko(e,t=0){return GC(e)?Number(e):arguments.length===2?t:0}function GC(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function yg(e){return e instanceof ht?e.nativeElement:e}var ed;try{ed=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ed=!1}var pa=(()=>{class e{_platformId=m(Ln);isBrowser=this._platformId?zm(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||ed)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var WC=new T("cdk-dir-doc",{providedIn:"root",factory:qC});function qC(){return m(Ee)}var ZC=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function YC(e){let t=e?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?ZC.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var vg=(()=>{class e{get value(){return this.valueSignal()}valueSignal=M("ltr");change=new pt;constructor(){let n=m(WC,{optional:!0});if(n){let r=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.valueSignal.set(YC(r||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var gt=(function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e})(gt||{}),ha,Qn;function Dg(){if(Qn==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Qn=!1,Qn;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Qn=!0;else{let e=Element.prototype.scrollTo;e?Qn=!/\{\s*\[native code\]\s*\}/.test(e.toString()):Qn=!1}}return Qn}function Lr(){if(typeof document!="object"||!document)return gt.NORMAL;if(ha==null){let e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";let n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",e.appendChild(n),document.body.appendChild(e),ha=gt.NORMAL,e.scrollLeft===0&&(e.scrollLeft=1,ha=e.scrollLeft===0?gt.NEGATED:gt.INVERTED),e.remove()}return ha}var ma=class{};function bg(e){return e&&typeof e.connect=="function"&&!(e instanceof Hr)}var ga=class extends ma{_data;constructor(t){super(),this._data=t}connect(){return qr(this._data)?this._data:Oe(this._data)}disconnect(){}},Xo=(function(e){return e[e.REPLACED=0]="REPLACED",e[e.INSERTED=1]="INSERTED",e[e.MOVED=2]="MOVED",e[e.REMOVED=3]="REMOVED",e})(Xo||{}),td=new T("_ViewRepeater"),ya=class{viewCacheSize=20;_viewCache=[];applyChanges(t,n,r,o,i){t.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?Xo.INSERTED:Xo.REPLACED}else c==null?(this._detachAndCacheView(a,n),u=Xo.REMOVED):(l=this._moveView(a,c,n,o(s)),u=Xo.MOVED);i&&i({context:l?.context,operation:u,record:s})})}detach(){for(let t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,n,r,o){let i=this._insertViewFromCache(n,r);if(i){i.context.$implicit=o;return}let s=t();return r.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,n){let r=n.detach(t);this._maybeCacheView(r,n)}_moveView(t,n,r,o){let i=r.get(t);return r.move(i,n),i.context.$implicit=o,i}_maybeCacheView(t,n){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(t);else{let r=n.indexOf(t);r===-1?t.destroy():n.remove(r)}}_insertViewFromCache(t,n){let r=this._viewCache.pop();return r&&n.insert(r,t),r||null}};var QC=["contentWrapper"],KC=["*"],Cg=new T("VIRTUAL_SCROLL_STRATEGY"),nd=class{_scrolledIndexChange=new ee;scrolledIndexChange=this._scrolledIndexChange.pipe(Qr());_viewport=null;_itemSize;_minBufferPx;_maxBufferPx;constructor(t,n,r){this._itemSize=t,this._minBufferPx=n,this._maxBufferPx=r}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,n,r){r<n,this._itemSize=t,this._minBufferPx=n,this._maxBufferPx=r,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,n){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,n)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;let t=this._viewport.getRenderedRange(),n={start:t.start,end:t.end},r=this._viewport.getViewportSize(),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 XC(e){return e._scrollStrategy}var wg=(()=>{class e{get itemSize(){return this._itemSize}set itemSize(n){this._itemSize=Ko(n)}_itemSize=20;get minBufferPx(){return this._minBufferPx}set minBufferPx(n){this._minBufferPx=Ko(n)}_minBufferPx=100;get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(n){this._maxBufferPx=Ko(n)}_maxBufferPx=200;_scrollStrategy=new nd(this.itemSize,this.minBufferPx,this.maxBufferPx);ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Vn({type:e,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[No([{provide:Cg,useFactory:XC,deps:[mr(()=>e)]}]),Ms]})}return e})(),JC=20,e0=(()=>{class e{_ngZone=m(ne);_platform=m(pa);_renderer=m(wt).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new ee;_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=JC){return this._platform.isBrowser?new j(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=n>0?this._scrolled.pipe(Zr(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Oe()}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(fn(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=yg(r),i=n.getElementRef().nativeElement;do if(o==i)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ig=(()=>{class e{elementRef=m(ht);scrollDispatcher=m(e0);ngZone=m(ne);dir=m(vg,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new ee;_renderer=m(Vs);_cleanupScroll;_elementScrolled=new ee;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&&Lr()!=gt.NORMAL?(n.left!=null&&(n.right=r.scrollWidth-r.clientWidth-n.left),Lr()==gt.INVERTED?n.left=n.right:Lr()==gt.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;Dg()?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&&Lr()==gt.INVERTED?n==r?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:s&&Lr()==gt.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||e)};static \u0275dir=Vn({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return e})(),t0=20,n0=(()=>{class e{_platform=m(pa);_listeners;_viewportSize;_change=new ee;_document=m(Ee);constructor(){let n=m(ne),r=m(wt).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=t0){return n>0?this._change.pipe(Zr(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_g=new T("VIRTUAL_SCROLLABLE"),r0=(()=>{class e extends Ig{constructor(){super()}measureViewportSize(n){let r=this.elementRef.nativeElement;return n==="horizontal"?r.clientWidth:r.clientHeight}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Vn({type:e,features:[Mo]})}return e})();function o0(e,t){return e.start==t.start&&e.end==t.end}var i0=typeof requestAnimationFrame<"u"?$a:Ha,Jo=(()=>{class e extends r0{elementRef=m(ht);_changeDetectorRef=m(Au);_scrollStrategy=m(Cg,{optional:!0});scrollable=m(_g,{optional:!0});_platform=m(pa);_detachedSubject=new ee;_renderedRangeSubject=new ee;get orientation(){return this._orientation}set orientation(n){this._orientation!==n&&(this._orientation=n,this._calculateSpacerSize())}_orientation="vertical";appendOnly=!1;scrolledIndexChange=new j(n=>this._scrollStrategy.scrolledIndexChange.subscribe(r=>Promise.resolve().then(()=>this.ngZone.run(()=>n.next(r)))));_contentWrapper;renderedRangeStream=this._renderedRangeSubject;_totalContentSize=0;_totalContentWidth=M("");_totalContentHeight=M("");_renderedContentTransform;_renderedRange={start:0,end:0};_dataLength=0;_viewportSize=0;_forOf;_renderedContentOffset=0;_renderedContentOffsetNeedsRewrite=!1;_changeDetectionNeeded=M(!1);_runAfterChangeDetection=[];_viewportChanges=re.EMPTY;_injector=m(He);_isDestroyed=!1;constructor(){super();let n=m(n0);this._scrollStrategy,this._viewportChanges=n.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this);let r=Ae(()=>{this._changeDetectionNeeded()&&this._doChangeDetection()},{injector:m(Hn).injector});m($e).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(Pi(null),Zr(0,i0),pn(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(pn(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){o0(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),!Pt(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,tu(()=>{this._changeDetectionNeeded.set(!1);let n=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(let r of n)r()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight.set(this.orientation==="horizontal"?"":`${this._totalContentSize}px`),this._totalContentWidth.set(this.orientation==="horizontal"?`${this._totalContentSize}px`:"")}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Ce({type:e,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(r,o){if(r&1&&bu(QC,7),r&2){let i;_u(i=Eu())&&(o._contentWrapper=i.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(r,o){r&2&&nt("cdk-virtual-scroll-orientation-horizontal",o.orientation==="horizontal")("cdk-virtual-scroll-orientation-vertical",o.orientation!=="horizontal")},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",Mm]},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[No([{provide:Ig,useFactory:(n,r)=>n||r,deps:[[new $l,new Hl(_g)],e]}]),Mo],ngContentSelectors:KC,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(r,o){r&1&&(vu(),I(0,"div",1,0),Du(2),N(),be(3,"div",2)),r&2&&(h(3),me("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 e})();function Eg(e,t,n){let r=n;if(!r.getBoundingClientRect)return 0;let o=r.getBoundingClientRect();return e==="horizontal"?t==="start"?o.left:o.right:t==="start"?o.top:o.bottom}var Tg=(()=>{class e{_viewContainerRef=m(Bn);_template=m(Kt);_differs=m(qs);_viewRepeater=m(td);_viewport=m(Jo,{skipSelf:!0});viewChange=new ee;_dataSourceChanges=new ee;get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(n){this._cdkVirtualForOf=n,bg(n)?this._dataSourceChanges.next(n):this._dataSourceChanges.next(new ga(qr(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=Ko(n)}dataStream=this._dataSourceChanges.pipe(Pi(null),Za(),Xr(([n,r])=>this._changeDataSource(n,r)),Qa(1));_differ=null;_data;_renderedItems;_renderedRange;_needsUpdate=!1;_destroyed=new ee;constructor(){let n=m(ne);this.dataStream.subscribe(r=>{this._data=r,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(pn(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?Eg(r,"end",a)-Eg(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):Oe()}_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||e)};static \u0275dir=Vn({type:e,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[No([{provide:td,useClass:ya}])]})}return e})();var s0=2e3,va=class e{worker=null;workerBroken=!1;nextId=0;activeIds=new Set;replies=new ee;compute(t){if(t.length<=s0)return Oe(Ju(t));let n=this.ensureWorker();if(!n)return Oe(Ju(t));let r=++this.nextId;return this.activeIds.add(r),n.postMessage({id:r,hashes:t.map(o=>o.hash),parents:t.map(o=>[...o.parents])}),this.replies.pipe(fn(o=>o.id===r),Be(o=>o.lanes),qa(1),Kr(()=>this.activeIds.delete(r)))}ngOnDestroy(){this.worker?.terminate(),this.worker=null,this.replies.complete()}ensureWorker(){if(this.worker)return this.worker;if(this.workerBroken||typeof Worker>"u")return this.workerBroken=!0,null;try{this.worker=new Worker(new URL("worker-O4G7QTZ6.js",import.meta.url),{type:"module"})}catch{return this.workerBroken=!0,null}return this.worker.onmessage=t=>{this.activeIds.has(t.data.id)&&this.replies.next(t.data)},this.worker.onerror=()=>{this.workerBroken=!0,this.worker?.terminate(),this.worker=null},this.worker}static \u0275fac=function(n){return new(n||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})};function xg(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean).map(t=>t.startsWith("HEAD -> ")?{type:"head",name:t.slice(8)}:t==="HEAD"?{type:"head",name:"HEAD"}:t.startsWith("tag: ")?{type:"tag",name:t.slice(5)}:t.includes("/")?{type:"remote",name:t}:{type:"local",name:t}):[]}function rd(e){let t=e.refs;return t?t==="HEAD"||t.startsWith("HEAD,")||t.startsWith("HEAD ->"):!1}var a0=(e,t)=>t.hash,c0=(e,t)=>t.name;function l0(e,t){if(e&1&&(y(0,"span",29),b(1),v()),e&2){let n=w();h(),de("",n.staged.length," staged")}}function u0(e,t){if(e&1&&(y(0,"span",30),b(1),v()),e&2){let n=w();h(),de("",n.unstaged.length," unstaged")}}function d0(e,t){if(e&1&&(y(0,"span",31),b(1),v()),e&2){let n=w();h(),de("",n.untracked.length," untracked")}}function f0(e,t){if(e&1&&(O(0,l0,2,1,"span",29),O(1,u0,2,1,"span",30),O(2,d0,2,1,"span",31)),e&2){let n=t;P(n.staged.length>0?0:-1),h(),P(n.unstaged.length>0?1:-1),h(),P(n.untracked.length>0?2:-1)}}function p0(e,t){if(e&1){let n=ue();y(0,"div",12),z("click",function(){H(n);let o=w();return $(o.commitClick.emit(o.workingCommit()))})("contextmenu",function(o){H(n);let i=w();return $(i.onWorkingContextMenu(o))}),y(1,"div",13),Y(),y(2,"svg",14),we(3,"path",15)(4,"path",16),v()(),De(),y(5,"div",17)(6,"span",18),Y(),y(7,"svg",19),we(8,"circle",20)(9,"path",21)(10,"path",22)(11,"path",23)(12,"path",24),v(),De(),y(13,"span",25),b(14,"Uncommitted changes"),v()(),O(15,f0,3,3),v(),y(16,"div",26),b(17,"\u2014"),v(),y(18,"div",27),b(19,"You"),v(),y(20,"div",28),b(21,"\u2014"),v()()}if(e&2){let n,r=w();nt("selected",r.selectedHash()===r.workingHash),h(),me("width",r.graphColumnWidth(),"px"),h(14),P((n=r.workingChanges())?15:-1,n),h(),me("width",r.columnWidths().date,"px"),h(2),me("width",r.columnWidths().author,"px"),h(2),me("width",r.columnWidths().commit,"px")}}function h0(e,t){e&1&&(y(0,"div",11),b(1,"No commits to show"),v())}function m0(e,t){if(e&1&&(Y(),we(0,"path",34)),e&2){let n=t.$implicit;je("d",n.d)("stroke",n.color)}}function g0(e,t){if(e&1&&(Y(),we(0,"circle",39)),e&2){let n=w().$implicit;je("cx",n.x)("cy",n.y)("stroke",n.color)}}function y0(e,t){if(e&1&&(Y(),we(0,"circle",40)),e&2){let n=w().$implicit;je("cx",n.x)("cy",n.y)("fill",n.color)}}function v0(e,t){if(e&1&&O(0,g0,1,3,":svg:circle",39)(1,y0,1,3,":svg:circle",40),e&2){let n=t.$implicit;P(n.isHead?0:1)}}function D0(e,t){e&1&&(Y(),y(0,"svg",19),we(1,"line",47)(2,"circle",48)(3,"circle",49)(4,"path",50),v())}function b0(e,t){e&1&&(Y(),y(0,"svg",19),we(1,"path",51)(2,"line",52),v())}function _0(e,t){if(e&1){let n=ue();y(0,"span",46),z("contextmenu",function(o){let i=H(n).$implicit,s=w().$implicit,a=w(2);return $(a.onBranchContextMenu(o,s.commit,i))}),O(1,D0,5,0,":svg:svg",19)(2,b0,3,0,":svg:svg",19),y(3,"span",25),b(4),v()()}if(e&2){let n=t.$implicit;Gn("badge badge-"+n.type),h(),P(n.type==="head"||n.type==="local"?1:n.type==="tag"?2:-1),h(3),q(n.name)}}function E0(e,t){if(e&1&&(y(0,"mark",53),b(1),v()),e&2){let n=w().$implicit;h(),q(n.text)}}function C0(e,t){if(e&1&&b(0),e&2){let n=w().$implicit;de(" ",n.text," ")}}function w0(e,t){if(e&1&&O(0,E0,2,1,"mark",53)(1,C0,1,1),e&2){let n=t.$implicit;P(n.match?0:1)}}function I0(e,t){if(e&1&&(y(0,"mark",53),b(1),v()),e&2){let n=w().$implicit;h(),q(n.text)}}function T0(e,t){if(e&1&&b(0),e&2){let n=w().$implicit;de(" ",n.text," ")}}function x0(e,t){if(e&1&&O(0,I0,2,1,"mark",53)(1,T0,1,1),e&2){let n=t.$implicit;P(n.match?0:1)}}function M0(e,t){if(e&1){let n=ue();y(0,"div",41),z("click",function(){let o=H(n).$implicit,i=w(2);return $(i.commitClick.emit(o.commit))})("contextmenu",function(o){let i=H(n).$implicit,s=w(2);return $(s.onRowContextMenu(o,i.commit))}),we(1,"div",13),y(2,"div",17),We(3,_0,5,4,"span",42,c0),y(5,"span",43),We(6,w0,2,1,null,null,$n),v()(),y(8,"div",26),b(9),Ro(10,"date"),v(),y(11,"div",44),We(12,x0,2,1,null,null,$n),v(),y(14,"div",45),b(15),v()()}if(e&2){let n=t.$implicit,r=w(2);nt("selected",n.commit.hash===r.selectedHash()),h(),me("width",r.graphColumnWidth(),"px"),h(2),qe(r.badges(n.commit)),h(2),nt("head",r.isHead(n.commit)),h(),qe(r.highlight(n.commit.message)),h(2),me("width",r.columnWidths().date,"px"),h(),de(" ",Ao(10,16,n.commit.date,"d MMM y HH:mm")," "),h(2),me("width",r.columnWidths().author,"px"),Re("title",n.commit.author_name),h(),qe(r.highlight(n.commit.author_name)),h(2),me("width",r.columnWidths().commit,"px"),Re("title",n.commit.hash),h(),de(" ",n.commit.hash.slice(0,8)," ")}}function S0(e,t){if(e&1){let n=ue();y(0,"div",37)(1,"button",54),z("click",function(){H(n);let o=w(2);return $(o.onLoadMoreCommits())}),b(2,"Load more commits"),v(),y(3,"button",54),z("click",function(){H(n);let o=w(2);return $(o.onLoadAllCommits())}),b(4),v()()}if(e&2){let n=w(2);h(4),de("Load all (",n.unloaded(),")")}}function N0(e,t){e&1&&(y(0,"div",38),b(1,"Loading history\u2026"),v())}function R0(e,t){if(e&1&&(y(0,"div",32),Y(),y(1,"svg",33)(2,"g"),We(3,m0,1,2,":svg:path",34,$n),We(5,v0,2,1,null,null,a0),v()(),De(),y(7,"cdk-virtual-scroll-viewport",35),Hs(8,M0,16,19,"div",36),v()(),O(9,S0,5,1,"div",37),O(10,N0,2,0,"div",38)),e&2){let n=w();h(),je("width",n.graphWidth()),h(),je("transform","translate(0 "+-n.scrollTop()+")"),h(),qe(n.edges()),h(2),qe(n.nodes()),h(2),Re("itemSize",n.rowHeight),h(),Re("cdkVirtualForOf",n.graphCommits())("cdkVirtualForTrackBy",n.trackByHash),h(),P(n.unloaded()>0&&!n.historyLoading()?9:-1),h(),P(n.historyLoading()?10:-1)}}var xt=34,od=14,Mg=10,A0=72,Sg=10,Da=class e{commits=oe.required();selectedHash=oe.required();search=oe("");selectedBranch=oe("");showRemote=oe(!0);workingChanges=oe(null);unloaded=oe(0);historyLoading=oe(!1);commitClick=ge();contextMenu=ge();loadMoreRequested=ge();loadAllRequested=ge();rowHeight=xt;graph=m(va);viewport=kr(Jo);scrollTop=M(0);viewportHeight=M(0);constructor(){Ae(()=>{let t=this.commits();this.updateGraph(t)}),Ae(()=>{this.search(),this.selectedBranch(),this.viewport()?.scrollToIndex(0)}),Ae(()=>{let t=this.viewport();if(!t)return;let n=t.elementRef.nativeElement,r=new ResizeObserver(()=>this.viewportHeight.set(n.clientHeight));r.observe(n),this.viewportHeight.set(n.clientHeight);let o=t.elementScrolled().subscribe(()=>{this.scrollTop.set(t.measureScrollOffset("top"))});return()=>{r.disconnect(),o.unsubscribe()}})}columnWidths=M({graph:0,date:132,author:150,commit:84});graphCommits=M([]);graphSubscription=null;updateGraph(t){this.graphSubscription?.unsubscribe(),this.graphSubscription=this.graph.compute(t).subscribe(n=>{n.length===t.length&&this.graphCommits.set(t.map((r,o)=>({commit:r,lane:n[o],parents:r.parents??[]})))})}graphWidth=Q(()=>{let t=this.graphCommits().reduce((n,r)=>Math.max(n,r.lane),0)+1;return Math.max(A0,Mg*2+t*od)});graphColumnWidth=Q(()=>Math.max(this.graphWidth(),this.columnWidths().graph));graphHeight=Q(()=>this.graphCommits().length*xt);graphIndex=Q(()=>{let t=this.graphCommits(),n=new Map,r=new Map;return t.forEach((o,i)=>{n.set(o.commit.hash,i),r.set(o.commit.hash,o.lane)}),{rowOf:n,laneOf:r}});visibleRange=Q(()=>{let t=this.graphCommits().length;if(t===0||this.viewportHeight()===0)return{start:0,end:0};let n=Math.max(0,Math.floor(this.scrollTop()/xt)-Sg),r=Math.min(t,Math.ceil((this.scrollTop()+this.viewportHeight())/xt)+Sg);return{start:n,end:r}});nodes=Q(()=>{let{start:t,end:n}=this.visibleRange(),r=[];for(let o=t;o<n;o++){let i=this.graphCommits()[o];r.push({hash:i.commit.hash,x:this.laneX(i.lane),y:o*xt+xt/2,color:Qo(i.lane),isHead:rd(i.commit)})}return r});edges=Q(()=>{let t=this.graphCommits(),{rowOf:n,laneOf:r}=this.graphIndex(),{start:o,end:i}=this.visibleRange(),s=this.graphHeight(),a=[];for(let c=o;c<i;c++){let l=t[c],u=Qo(l.lane),d=this.laneX(l.lane),p=c*xt+xt/2;for(let f of l.parents){let g=n.get(f);if(g===void 0){a.push({d:`M ${d} ${p} L ${d} ${s}`,color:u});continue}let E=this.laneX(r.get(f)??l.lane),_=g*xt+xt/2;if(d===E)a.push({d:`M ${d} ${p} L ${E} ${_}`,color:u});else{let D=(p+_)/2;a.push({d:`M ${d} ${p} C ${d} ${D} ${E} ${D} ${E} ${_}`,color:u})}}}return a});hasWorkingChanges=Q(()=>(this.workingChanges()?.files.length??0)>0);workingHash=jt;workingCommit=Q(()=>({hash:jt,date:new Date().toISOString(),message:"Uncommitted changes",refs:"",body:"",author_name:"You",author_email:"",parents:[]}));resizeState=null;startResize(t,n){n.preventDefault(),n.stopPropagation();let r=t==="graph"?this.graphColumnWidth():this.columnWidths()[t];this.resizeState={column:t,startX:n.clientX,startWidth:r},document.addEventListener("mousemove",this.onResizeMove),document.addEventListener("mouseup",this.onResizeEnd)}onResizeMove=t=>{let n=this.resizeState;if(!n)return;let r=t.clientX-n.startX,o=n.column==="graph"?this.graphWidth():48,i=Math.max(o,n.startWidth+r);this.columnWidths.update(s=>ae(K({},s),{[n.column]:i}))};onResizeEnd=()=>{this.resizeState=null,document.removeEventListener("mousemove",this.onResizeMove),document.removeEventListener("mouseup",this.onResizeEnd)};ngOnDestroy(){this.onResizeEnd(),this.graphSubscription?.unsubscribe()}onRowContextMenu(t,n){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"commit",commit:n}})}onBranchContextMenu(t,n,r){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"branch",commit:n,branch:r}})}onWorkingContextMenu(t){t.preventDefault(),t.stopPropagation(),this.contextMenu.emit({x:t.clientX,y:t.clientY,target:{kind:"working"}})}highlight(t){let n=this.search().trim().toLowerCase();if(!n||!t)return[{text:t,match:!1}];let r=[],o=t.toLowerCase(),i=0,s=o.indexOf(n);for(;s!==-1;)s>i&&r.push({text:t.slice(i,s),match:!1}),r.push({text:t.slice(s,s+n.length),match:!0}),i=s+n.length,s=o.indexOf(n,i);return i<t.length&&r.push({text:t.slice(i),match:!1}),r.length>0?r:[{text:t,match:!1}]}onLoadMoreCommits(){this.loadMoreRequested.emit()}onLoadAllCommits(){this.loadAllRequested.emit()}trackByHash(t,n){return n.commit.hash}badges(t){let n=this.selectedBranch(),r=this.showRemote();return xg(t.refs).filter(o=>o.type==="remote"&&!r?!1:!n||o.type==="tag"?!0:o.name===n)}isHead(t){return rd(t)}laneX(t){return Mg+od/2+t*od}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ce({type:e,selectors:[["app-commit-table"]],viewQuery:function(n,r){n&1&&Un(r.viewport,Jo,5),n&2&&zn()},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"]},outputs:{commitClick:"commitClick",contextMenu:"contextMenu",loadMoreRequested:"loadMoreRequested",loadAllRequested:"loadAllRequested"},decls:25,vars:10,consts:[[1,"table"],[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,"selected"],[1,"table-body"],[1,"empty"],[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,"list-container"],["aria-hidden","true",1,"graph-overlay"],["fill","none","stroke-width","2"],[1,"list-viewport",3,"itemSize"],["class","row",3,"selected","click","contextmenu",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[1,"load-actions"],[1,"history-loading"],["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&&(y(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),b(4,"Graph"),v(),y(5,"div",4),z("mousedown",function(i){return r.startResize("graph",i)}),v()(),y(6,"div",5)(7,"span",3),b(8,"Description"),v()(),y(9,"div",6)(10,"span",3),b(11,"Date"),v(),y(12,"div",4),z("mousedown",function(i){return r.startResize("date",i)}),v()(),y(13,"div",7)(14,"span",3),b(15,"Author"),v(),y(16,"div",4),z("mousedown",function(i){return r.startResize("author",i)}),v()(),y(17,"div",8)(18,"span",3),b(19,"Commit"),v(),y(20,"div",4),z("mousedown",function(i){return r.startResize("commit",i)}),v()()(),O(21,p0,22,11,"div",9),y(22,"div",10),O(23,h0,2,0,"div",11)(24,R0,11,7),v()()),n&2&&(h(2),me("width",r.graphColumnWidth(),"px"),h(7),me("width",r.columnWidths().date,"px"),h(4),me("width",r.columnWidths().author,"px"),h(4),me("width",r.columnWidths().commit,"px"),h(4),P(r.hasWorkingChanges()?21:-1),h(2),P(r.graphCommits().length===0?23:24))},dependencies:[wg,Tg,Jo,Ho],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:-3px;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%]{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}"],changeDetection:0})};function k0(e,t){e&1&&be(0,"div",2)}function O0(e,t){if(e&1){let n=ue();I(0,"button",4),X("click",function(){H(n);let o=w().$implicit,i=w(2);return $(i.onSelect(o))}),b(1),N()}if(e&2){let n=w().$implicit;nt("danger",n.danger),Ie("disabled",n.disabled),h(),de(" ",n.label," ")}}function P0(e,t){if(e&1&&O(0,k0,1,0,"div",2)(1,O0,2,4,"button",3),e&2){let n=t.$implicit;P(n.separator?0:1)}}function F0(e,t){if(e&1){let n=ue();I(0,"div",0),X("click",function(){H(n);let o=w();return $(o.closed.emit())})("contextmenu",function(o){H(n);let i=w();return o.preventDefault(),$(i.closed.emit())}),N(),I(1,"div",1),We(2,P0,2,1,null,null,$n),N()}if(e&2){let n=w();h(),me("left",n.left(),"px")("top",n.top(),"px"),h(),qe(t.items)}}var ba=class e{menu=oe.required();select=ge();closed=ge();left=Q(()=>{let t=this.menu();return t?Math.max(4,Math.min(t.x,window.innerWidth-250)):0});top=Q(()=>{let t=this.menu();if(!t)return 0;let n=t.items.length*30+12;return Math.max(4,Math.min(t.y,window.innerHeight-n-8))});onEscape(){this.menu()&&this.closed.emit()}onSelect(t){t.disabled||!t.action||(this.select.emit(t.action),this.closed.emit())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ce({type:e,selectors:[["app-context-menu"]],hostBindings:function(n,r){n&1&&z("keydown.escape",function(){return r.onEscape()},Tt)},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&&O(0,F0,4,4),n&2){let o;P((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})};var L0=["inputEl"];function j0(e,t){if(e&1&&(I(0,"p",4),b(1),N()),e&2){let n=w();h(),q(n.label)}}function B0(e,t){if(e&1){let n=ue();I(0,"label",8),b(1),N(),I(2,"input",9,0),X("input",function(o){H(n);let i=w(2);return $(i.onInput(o))})("keydown.enter",function(){H(n);let o=w(2);return $(o.confirm())}),N()}if(e&2){let n=w(),r=w();h(),q(n.label||n.title),h(),Ie("value",r.value()),je("placeholder",n.placeholder||" ")("aria-label",n.label||n.title)}}function V0(e,t){if(e&1){let n=ue();I(0,"div",1),X("click",function(){H(n);let o=w();return $(o.cancelled.emit())}),N(),I(1,"div",2)(2,"h3",3),b(3),N(),O(4,j0,2,1,"p",4),O(5,B0,4,4),I(6,"div",5)(7,"button",6),X("click",function(){H(n);let o=w();return $(o.cancelled.emit())}),b(8,"Cancel"),N(),I(9,"button",7),X("click",function(){H(n);let o=w();return $(o.confirm())}),b(10),N()()()}if(e&2){let n=t,r=w();h(3),q(n.title),h(),P(n.label?4:-1),h(),P(n.confirmOnly?-1:5),h(4),nt("btn-danger",n.danger),Ie("disabled",!n.confirmOnly&&!n.allowEmpty&&!r.value().trim()),h(),de(" ",n.okLabel||"OK"," ")}}var _a=class e{state=oe.required();confirmed=ge();cancelled=ge();value=M("");inputEl=kr("inputEl");constructor(){Ae(()=>{let t=this.state();t&&this.value.set(t.value??"");let n=this.inputEl();t&&n&&(n.nativeElement.focus(),n.nativeElement.select())})}onEscape(){this.state()&&this.cancelled.emit()}onInput(t){this.value.set(t.target.value)}confirm(){let t=this.state();t&&(!t.confirmOnly&&!t.allowEmpty&&!this.value().trim()||this.confirmed.emit(t.confirmOnly?"":this.value().trim()))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ce({type:e,selectors:[["app-prompt-dialog"]],viewQuery:function(n,r){n&1&&Un(r.inputEl,L0,5),n&2&&zn()},hostBindings:function(n,r){n&1&&z("keydown.escape",function(){return r.onEscape()},Tt)},inputs:{state:[1,"state"]},outputs:{confirmed:"confirmed",cancelled:"cancelled"},decls:1,vars:1,consts:[["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"],["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&&O(0,V0,11,7),n&2){let o;P((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}.btn-danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#c42b1c}.btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}"],changeDetection:0})};function Ng(e){e||(e=m($e));let t=new j(n=>{if(e.destroyed){n.next();return}return e.onDestroy(n.next.bind(n))});return n=>n.pipe(pn(t))}function Rg(e,t){let n=t?.injector??m(He),r=new un(1),o=Ae(()=>{let i;try{i=e()}catch(s){Pt(()=>r.error(s));return}Pt(()=>r.next(i))},{injector:n,manualCleanup:!0});return n.get($e).onDestroy(()=>{o.destroy(),r.complete()}),r.asObservable()}var H0=(e,t)=>t.name;function $0(e,t){if(e&1&&(I(0,"option",5),b(1),N()),e&2){let n=t.$implicit;Ie("value",n.name),h(),q(n.name)}}function U0(e,t){if(e&1){let n=ue();I(0,"div",20)(1,"button",28),X("click",function(){H(n);let o=w();return $(o.chooseRemoteAction("pull"))}),b(2,"Pull"),N(),I(3,"button",28),X("click",function(){H(n);let o=w();return $(o.chooseRemoteAction("pull-rebase"))}),b(4,"Pull (rebase)"),N()()}}function z0(e,t){if(e&1){let n=ue();I(0,"div",20)(1,"button",28),X("click",function(){H(n);let o=w();return $(o.chooseRemoteAction("push"))}),b(2,"Push"),N(),I(3,"button",28),X("click",function(){H(n);let o=w();return $(o.chooseRemoteAction("sync"))}),b(4,"Sync"),N()()}}var G0=300,Ea=class e{branches=oe.required();selectedBranch=oe.required();showRemote=oe.required();busy=oe.required();branchChange=ge();remoteToggle=ge();searchChange=ge();refresh=ge();remoteAction=ge();openMenu=M(null);searchValue=M("");constructor(){Rg(this.searchValue).pipe(Wa(G0),Qr(),Ng()).subscribe(t=>this.searchChange.emit(t))}visibleBranches=Q(()=>this.branches());onBranchChange(t){this.branchChange.emit(t.target.value)}onRemoteToggle(t){this.remoteToggle.emit(t.target.checked)}onSearch(t){this.searchValue.set(t.target.value)}toggleMenu(t,n){n.stopPropagation(),this.openMenu.update(r=>r===t?null:t)}chooseRemoteAction(t){this.openMenu.set(null),this.remoteAction.emit(t)}closeMenu(){this.openMenu.set(null)}closeMenuOnEscape(){this.openMenu.set(null)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ce({type:e,selectors:[["app-toolbar"]],hostBindings:function(n,r){n&1&&z("click",function(){return r.closeMenu()},Tt)("keydown.escape",function(){return r.closeMenuOnEscape()},Tt)},inputs:{branches:[1,"branches"],selectedBranch:[1,"selectedBranch"],showRemote:[1,"showRemote"],busy:[1,"busy"]},outputs:{branchChange:"branchChange",remoteToggle:"remoteToggle",searchChange:"searchChange",refresh:"refresh",remoteAction:"remoteAction"},decls:41,vars:10,consts:[[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","value"],["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"],["type","button","role","menuitem",3,"click"]],template:function(n,r){n&1&&(I(0,"div",0)(1,"div",1)(2,"label",2),b(3,"Branches:"),N(),I(4,"select",3),X("change",function(i){return r.onBranchChange(i)}),I(5,"option",4),b(6,"Show All"),N(),We(7,$0,2,2,"option",5,H0),N(),I(9,"label",6)(10,"input",7),X("change",function(i){return r.onRemoteToggle(i)}),N(),I(11,"span"),b(12,"Show Remote Branches"),N()()(),I(13,"div",1)(14,"div",8),Y(),I(15,"svg",9),be(16,"circle",10)(17,"line",11),N(),De(),I(18,"input",12),X("input",function(i){return r.onSearch(i)}),N()(),I(19,"button",13),X("click",function(){return r.remoteAction.emit("fetch")}),Y(),I(20,"svg",9),be(21,"path",14),N()(),De(),I(22,"div",15)(23,"button",16),X("click",function(i){return r.toggleMenu("pull",i)}),Y(),I(24,"svg",9),be(25,"circle",17)(26,"polyline",18)(27,"line",19),N()(),O(28,U0,5,0,"div",20),N(),De(),I(29,"div",15)(30,"button",21),X("click",function(i){return r.toggleMenu("push",i)}),Y(),I(31,"svg",9),be(32,"circle",17)(33,"polyline",22)(34,"line",23),N()(),O(35,z0,5,0,"div",20),N(),De(),I(36,"button",24),X("click",function(){return r.refresh.emit()}),Y(),I(37,"svg",9),be(38,"polyline",25)(39,"polyline",26)(40,"path",27),N()()()()),n&2&&(h(4),Ie("value",r.selectedBranch()),h(3),qe(r.visibleBranches()),h(3),Ie("checked",r.showRemote()),h(8),Ie("value",r.searchValue()),h(),Ie("disabled",r.busy()),h(4),Ie("disabled",r.busy()),je("aria-expanded",r.openMenu()==="pull"),h(5),P(r.openMenu()==="pull"?28:-1),h(2),Ie("disabled",r.busy()),je("aria-expanded",r.openMenu()==="push"),h(5),P(r.openMenu()==="push"?35:-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}.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, .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 W0(e,t){if(e&1&&(y(0,"div",12),b(1),v()),e&2){let n=w();h(),q(n.error())}}function q0(e,t){if(e&1){let n=ue();y(0,"app-commit-detail",19),z("closed",function(){H(n);let o=w();return $(o.selectedCommit.set(null))}),v()}e&2&&Re("commit",t)}function Z0(e,t){e&1&&(y(0,"div",18),we(1,"div",20),v())}var Ag=500,Ca=class e{git=m(en);commits=M([]);branches=M([]);selectedBranch=M("");showRemote=M(!0);search=M("");selectedCommit=M(null);loading=M(!1);busy=M(!1);error=M("");repoName=M("");workingChanges=M(null);totalCommits=M(0);historyLoading=M(!1);contextMenuState=M(null);contextMenuTarget=M(null);promptState=M(null);bodyMatches=M(new Set);refreshSub=null;historySub=null;workingSub=null;searchSub=null;unloadedCommits=Q(()=>Math.max(0,this.totalCommits()-this.commits().length));commitIndex=Q(()=>{let t=new Map;for(let n of this.commits())t.set(n.hash,n);return t});filteredCommits=Q(()=>{let t=this.commits(),n=this.selectedBranch(),r=this.branches().filter(s=>this.showRemote()||!s.remote),o=n?r.filter(s=>s.name===n):r;if(o.length>0){let s=new Set;for(let a of o)for(let c of this.ancestorsOf(a.commit))s.add(c);t=t.filter(a=>s.has(a.hash))}else t=[];let i=this.search().trim().toLowerCase();if(i){let s=this.bodyMatches();t=t.filter(a=>a.message.toLowerCase().includes(i)||a.author_name.toLowerCase().includes(i)||a.hash.toLowerCase().startsWith(i)||s.has(a.hash))}return t});constructor(){this.refresh(),Ae(()=>{(this.search().trim()!==""||this.selectedBranch()!=="")&&this.unloadedCommits()>0&&!this.historyLoading()&&this.loadAllCommits()}),Ae(()=>{let t=this.search().trim();if(t===""){this.searchSub?.unsubscribe(),this.bodyMatches.set(new Set);return}Pt(()=>this.fetchBodyMatches(t))})}refresh(){this.historySub?.unsubscribe(),this.workingSub?.unsubscribe(),this.historyLoading.set(!1),this.loading.set(!0),this.error.set(""),this.refreshSub?.unsubscribe(),this.refreshSub=za({history:this.git.getCommits(Ag),branches:this.git.getAllBranches(),repo:this.git.getRepoInfo(),working:this.git.getWorkingChanges().pipe(Yr(()=>Oe({files:[],staged:[],unstaged:[],untracked:[]})))}).subscribe({next:({history:t,branches:n,repo:r,working:o})=>{this.commits.set(t.commits),this.totalCommits.set(Math.max(t.total,t.commits.length)),this.branches.set(n),this.repoName.set(r.name),this.workingChanges.set(o),this.loading.set(!1),this.search().trim()!==""&&this.fetchBodyMatches(this.search().trim())},error:t=>{this.error.set(this.errorMessage(t)),this.loading.set(!1)}})}refreshWorking(){this.workingSub?.unsubscribe(),this.workingSub=this.git.getWorkingChanges().pipe(Yr(()=>Oe({files:[],staged:[],unstaged:[],untracked:[]}))).subscribe({next:t=>this.workingChanges.set(t),error:t=>this.error.set(this.errorMessage(t))})}loadMoreCommits(){this.loadHistory(this.git.getCommits(Ag,this.commits().length))}loadAllCommits(){this.loadHistory(this.git.getCommits(void 0,this.commits().length))}loadHistory(t){if(this.historyLoading())return;let n=this.commits().length;this.historyLoading.set(!0),this.historySub?.unsubscribe(),this.historySub=t.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.historyLoading.set(!1)}})}fetchBodyMatches(t){this.searchSub?.unsubscribe(),this.searchSub=this.git.searchCommits(t).subscribe({next:n=>this.bodyMatches.set(new Set(n.hashes)),error:()=>this.bodyMatches.set(new Set)})}onRemoteToggle(t){this.showRemote.set(t)}runRemoteAction(t){this.busy.set(!0),this.error.set(""),(t==="fetch"?this.git.fetch():t==="pull"?this.git.pull():t==="pull-rebase"?this.git.pull(!0):t==="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))}})}onContextMenu(t){let n=[];t.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"})):t.target.kind==="branch"?(n.push({label:"Checkout Branch...",action:"checkout-branch"}),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"})):(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(t.target),this.contextMenuState.set({x:t.x,y:t.y,items:n})}onContextAction(t){let n=this.contextMenuTarget()?.commit??this.selectedCommit();switch(t){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:"All commits after this commit will be removed from the current branch.",confirmOnly:!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":this.contextMenuTarget()?.commit?.hash&&window.open(pg(`/api/archive?ref=${encodeURIComponent(this.contextMenuTarget().commit.hash)}`),"_blank");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",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:jt,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(t){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(t,r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Create Branch"&&r){this.git.createBranch(t,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){this.git.resetToCommit(r.hash).subscribe({next:()=>this.refresh(),error:o=>this.error.set(this.errorMessage(o))});return}if(n.title==="Stash uncommitted changes"){this.git.stashSave(t||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"){this.error.set("Branch rename is not available from the current menu flow.");return}if(n.title==="Delete branch?"){this.error.set("Branch deletion is not available from the current menu flow.");return}}ancestorsOf(t){let n=this.commitIndex(),r=new Set,o=[t];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(t){let n=t;return n?.status===400&&n.error?.error?n.error.error:"Failed to communicate with the Guito server."}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ce({type:e,selectors:[["app-root"]],decls:20,vars:17,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","refresh","remoteAction","branches","selectedBranch","showRemote","busy"],[1,"error-banner"],[1,"content"],[3,"commitClick","contextMenu","loadMoreRequested","loadAllRequested","commits","selectedHash","search","selectedBranch","showRemote","workingChanges","unloaded","historyLoading"],[3,"commit"],[3,"select","closed","menu"],[3,"confirmed","cancelled","state"],[1,"loading-overlay"],[3,"closed","commit"],[1,"spinner"]],template:function(n,r){if(n&1&&(y(0,"div",0)(1,"header",1)(2,"div",2),Y(),y(3,"svg",3),we(4,"path",4)(5,"path",5)(6,"circle",6)(7,"circle",7)(8,"circle",8)(9,"circle",9),v(),De(),y(10,"span",10),b(11,"Guito"),v()()(),y(12,"app-toolbar",11),z("branchChange",function(i){return r.selectedBranch.set(i)})("remoteToggle",function(i){return r.onRemoteToggle(i)})("searchChange",function(i){return r.search.set(i)})("refresh",function(){return r.refresh()})("remoteAction",function(i){return r.runRemoteAction(i)}),v(),O(13,W0,2,1,"div",12),y(14,"main",13)(15,"app-commit-table",14),z("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(),O(16,q0,1,1,"app-commit-detail",15),v(),y(17,"app-context-menu",16),z("select",function(i){return r.onContextAction(i)})("closed",function(){return r.contextMenuState.set(null)}),v(),y(18,"app-prompt-dialog",17),z("confirmed",function(i){return r.onPromptConfirm(i)})("cancelled",function(){return r.promptState.set(null)}),v(),O(19,Z0,2,0,"div",18),v()),n&2){let o,i;h(12),Re("branches",r.branches())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("busy",r.busy()),h(),P(r.error()?13:-1),h(2),Re("commits",r.filteredCommits())("selectedHash",((o=r.selectedCommit())==null?null:o.hash)??"")("search",r.search())("selectedBranch",r.selectedBranch())("showRemote",r.showRemote())("workingChanges",r.workingChanges())("unloaded",r.unloadedCommits())("historyLoading",r.historyLoading()),h(),P((i=r.selectedCommit())?16:-1,i),h(),Re("menu",r.contextMenuState()),h(),Re("state",r.promptState()),h(),P(r.loading()?19:-1)}},dependencies:[Ea,Da,fa,ba,_a],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})};Wu(Ca,hg).catch(e=>console.error(e));