@lexho111/plainblog 0.6.5 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/Article.js +1 -1
  2. package/Blog.js +64 -14
  3. package/Formatter.js +5 -7
  4. package/package.json +1 -1
  5. package/public/index.html +2 -2
  6. package/public/main-LAI5FAZI.js +7 -0
  7. package/public/main-SKL6R4NB.js +7 -0
  8. package/public/scripts.min.js +2 -2
  9. package/public/styles-I55BTQOK.css +1 -0
  10. package/public/styles.min.css +2 -2
  11. package/src/fetchData.js +50 -26
  12. package/src/styles.css +97 -41
  13. package/.vscode/settings.json +0 -2
  14. package/blog_test_empty.db +0 -0
  15. package/blog_test_load.db +0 -0
  16. package/coverage/clover.xml +0 -1051
  17. package/coverage/coverage-final.json +0 -20
  18. package/coverage/lcov-report/base.css +0 -224
  19. package/coverage/lcov-report/block-navigation.js +0 -87
  20. package/coverage/lcov-report/favicon.png +0 -0
  21. package/coverage/lcov-report/index.html +0 -161
  22. package/coverage/lcov-report/package/Article.js.html +0 -406
  23. package/coverage/lcov-report/package/Blog.js.html +0 -2674
  24. package/coverage/lcov-report/package/Formatter.js.html +0 -379
  25. package/coverage/lcov-report/package/build-scripts.js.html +0 -247
  26. package/coverage/lcov-report/package/build-styles.js.html +0 -367
  27. package/coverage/lcov-report/package/index.html +0 -191
  28. package/coverage/lcov-report/package/model/APIModel.js.html +0 -190
  29. package/coverage/lcov-report/package/model/ArrayList.js.html +0 -382
  30. package/coverage/lcov-report/package/model/ArrayListHashMap.js.html +0 -379
  31. package/coverage/lcov-report/package/model/BinarySearchTree.js.html +0 -856
  32. package/coverage/lcov-report/package/model/BinarySearchTreeHashMap.js.html +0 -346
  33. package/coverage/lcov-report/package/model/DataModel.js.html +0 -325
  34. package/coverage/lcov-report/package/model/DatabaseModel.js.html +0 -235
  35. package/coverage/lcov-report/package/model/FileAdapter.js.html +0 -397
  36. package/coverage/lcov-report/package/model/FileList.js.html +0 -244
  37. package/coverage/lcov-report/package/model/FileModel.js.html +0 -361
  38. package/coverage/lcov-report/package/model/SequelizeAdapter.js.html +0 -538
  39. package/coverage/lcov-report/package/model/SqliteAdapter.js.html +0 -247
  40. package/coverage/lcov-report/package/model/datastructures/ArrayList.js.html +0 -439
  41. package/coverage/lcov-report/package/model/datastructures/ArrayListHashMap.js.html +0 -196
  42. package/coverage/lcov-report/package/model/datastructures/BinarySearchTree.js.html +0 -916
  43. package/coverage/lcov-report/package/model/datastructures/BinarySearchTreeHashMap.js.html +0 -355
  44. package/coverage/lcov-report/package/model/datastructures/FileList.js.html +0 -244
  45. package/coverage/lcov-report/package/model/datastructures/index.html +0 -176
  46. package/coverage/lcov-report/package/model/index.html +0 -206
  47. package/coverage/lcov-report/package/utilities.js.html +0 -511
  48. package/coverage/lcov-report/prettify.css +0 -1
  49. package/coverage/lcov-report/prettify.js +0 -2
  50. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  51. package/coverage/lcov-report/sorter.js +0 -210
  52. package/coverage/lcov.info +0 -2078
  53. package/eslint.config.js +0 -27
  54. package/jest.config.js +0 -15
  55. package/plainblog - Verkn/303/274pfung.lnk +0 -0
  56. package/public/main-EXNUAFJ6.js +0 -6
  57. package/public/styles-OPUTW5UJ.css +0 -1
@@ -1,6 +0,0 @@
1
- var rC=Object.defineProperty,oC=Object.defineProperties;var iC=Object.getOwnPropertyDescriptors;var vp=Object.getOwnPropertySymbols;var sC=Object.prototype.hasOwnProperty,aC=Object.prototype.propertyIsEnumerable;var Dp=(e,t,n)=>t in e?rC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g=(e,t)=>{for(var n in t||={})sC.call(t,n)&&Dp(e,n,t[n]);if(vp)for(var n of vp(t))aC.call(t,n)&&Dp(e,n,t[n]);return e},S=(e,t)=>oC(e,iC(t));var Ie=null,Is=!1,zu=1,cC=null,te=Symbol("SIGNAL");function M(e){let t=Ie;return Ie=e,t}function Ss(){return Ie}var Gt={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 qn(e){if(Is)throw new Error("");if(Ie===null)return;Ie.consumerOnSignalRead(e);let t=Ie.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Ie.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Ie.producers,n!==void 0&&n.producer===e)){Ie.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Ie&&(!r||uC(o,Ie)))return;let i=Vr(Ie),s={producer:e,consumer:Ie,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Ie.producersTail=s,t!==void 0?t.nextProducer=s:Ie.producers=s,i&&_p(e,s)}function Ep(){zu++}function Zn(e){if(!(Vr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===zu)){if(!e.producerMustRecompute(e)&&!jr(e)){Lr(e);return}e.producerRecomputeValue(e),Lr(e)}}function Gu(e){if(e.consumers===void 0)return;let t=Is;Is=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Cp(r)}}finally{Is=t}}function Wu(){return Ie?.consumerAllowSignalWrites!==!1}function Cp(e){e.dirty=!0,Gu(e),e.consumerMarkedDirty?.(e)}function Lr(e){e.dirty=!1,e.lastCleanEpoch=zu}function Wt(e){return e&&bp(e),M(e)}function bp(e){e.producersTail=void 0,e.recomputing=!0}function vn(e,t){M(t),e&&wp(e)}function wp(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Vr(e))do n=qu(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function jr(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Zn(n),r!==n.version))return!0}return!1}function Dn(e){if(Vr(e)){let t=e.producers;for(;t!==void 0;)t=qu(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function _p(e,t){let n=e.consumersTail,r=Vr(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)_p(o.producer,o)}function qu(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,!Vr(t)){let i=t.producers;for(;i!==void 0;)i=qu(i)}return n}function Vr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ko(e){cC?.(e)}function uC(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 Yo(e,t){return Object.is(e,t)}function Ms(e,t){let n=Object.create(lC);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Zn(n),qn(n),n.value===zt)throw n.error;return n.value};return r[te]=n,Ko(n),r}var yn=Symbol("UNSET"),Wn=Symbol("COMPUTING"),zt=Symbol("ERRORED"),lC=S(g({},Gt),{value:yn,dirty:!0,error:null,equal:Yo,kind:"computed",producerMustRecompute(e){return e.value===yn||e.value===Wn},producerRecomputeValue(e){if(e.value===Wn)throw new Error("");let t=e.value;e.value=Wn;let n=Wt(e),r,o=!1;try{r=e.computation(),M(null),o=t!==yn&&t!==zt&&r!==zt&&e.equal(t,r)}catch(i){r=zt,e.error=i}finally{vn(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function dC(){throw new Error}var Ip=dC;function Sp(e){Ip(e)}function Zu(e){Ip=e}var fC=null;function Ku(e,t){let n=Object.create(As);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Mp(n);return r[te]=n,Ko(n),[r,s=>Kn(n,s),s=>Ts(n,s)]}function Mp(e){return qn(e),e.value}function Kn(e,t){Wu()||Sp(e),e.equal(e.value,t)||(e.value=t,hC(e))}function Ts(e,t){Wu()||Sp(e),Kn(e,t(e.value))}var As=S(g({},Gt),{equal:Yo,value:void 0,kind:"signal"});function hC(e){e.version++,Ep(),Gu(e),fC?.(e)}function Yu(e){let t=M(null);try{return e()}finally{M(t)}}var Qu=S(g({},Gt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Ju(e){if(e.dirty=!1,e.version>0&&!jr(e))return;e.version++;let t=Wt(e);try{e.cleanup(),e.fn()}finally{vn(e,t)}}function O(e){return typeof e=="function"}function Br(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 Ns=Br(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 Yn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ge=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(O(r))try{r()}catch(i){t=i instanceof Ns?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Tp(i)}catch(s){t=t??[],s instanceof Ns?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ns(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Tp(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)&&Yn(n,t)}remove(t){let{_finalizers:n}=this;n&&Yn(n,t),t instanceof e&&t._removeParent(this)}};ge.EMPTY=(()=>{let e=new ge;return e.closed=!0,e})();var Xu=ge.EMPTY;function Rs(e){return e instanceof ge||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function Tp(e){O(e)?e():e.unsubscribe()}var dt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ur={setTimeout(e,t,...n){let{delegate:r}=Ur;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Ur;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function xs(e){Ur.setTimeout(()=>{let{onUnhandledError:t}=dt;if(t)t(e);else throw e})}function Qo(){}var Ap=el("C",void 0,void 0);function Np(e){return el("E",void 0,e)}function Rp(e){return el("N",e,void 0)}function el(e,t,n){return{kind:e,value:t,error:n}}var Qn=null;function Hr(e){if(dt.useDeprecatedSynchronousErrorHandling){let t=!Qn;if(t&&(Qn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Qn;if(Qn=null,n)throw r}}else e()}function xp(e){dt.useDeprecatedSynchronousErrorHandling&&Qn&&(Qn.errorThrown=!0,Qn.error=e)}var Jn=class extends ge{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Rs(t)&&t.add(this)):this.destination=mC}static create(t,n,r){return new $r(t,n,r)}next(t){this.isStopped?nl(Rp(t),this):this._next(t)}error(t){this.isStopped?nl(Np(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?nl(Ap,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()}}},pC=Function.prototype.bind;function tl(e,t){return pC.call(e,t)}var rl=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Os(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Os(r)}else Os(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Os(n)}}},$r=class extends Jn{constructor(t,n,r){super();let o;if(O(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&dt.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&tl(t.next,i),error:t.error&&tl(t.error,i),complete:t.complete&&tl(t.complete,i)}):o=t}this.destination=new rl(o)}};function Os(e){dt.useDeprecatedSynchronousErrorHandling?xp(e):xs(e)}function gC(e){throw e}function nl(e,t){let{onStoppedNotification:n}=dt;n&&Ur.setTimeout(()=>n(e,t))}var mC={closed:!0,next:Qo,error:gC,complete:Qo};var zr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ze(e){return e}function ol(...e){return il(e)}function il(e){return e.length===0?ze:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var B=(()=>{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=vC(n)?n:new $r(n,r,o);return Hr(()=>{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=Op(r),new r((o,i)=>{let s=new $r({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)}[zr](){return this}pipe(...n){return il(n)(this)}toPromise(n){return n=Op(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 Op(e){var t;return(t=e??dt.Promise)!==null&&t!==void 0?t:Promise}function yC(e){return e&&O(e.next)&&O(e.error)&&O(e.complete)}function vC(e){return e&&e instanceof Jn||yC(e)&&Rs(e)}function DC(e){return O(e?.lift)}function U(e){return t=>{if(DC(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function H(e,t,n,r,o){return new sl(e,t,n,r,o)}var sl=class extends Jn{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))}}};var kp=Br(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ne=(()=>{class e extends B{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new ks(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new kp}next(n){Hr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Hr(()=>{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(){Hr(()=>{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?Xu:(this.currentObservers=null,i.push(n),new ge(()=>{this.currentObservers=null,Yn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new B;return n.source=this,n}}return e.create=(t,n)=>new ks(t,n),e})(),ks=class extends ne{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:Xu}};var be=class extends ne{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 Jo={now(){return(Jo.delegate||Date).now()},delegate:void 0};var Xo=class extends ne{constructor(t=1/0,n=1/0,r=Jo){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 Fs=class extends ge{constructor(t,n){super()}schedule(t,n=0){return this}};var ei={setInterval(e,t,...n){let{delegate:r}=ei;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=ei;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Ps=class extends Fs{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 ei.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&&ei.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,Yn(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Gr=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)}};Gr.now=Jo.now;var Ls=class extends Gr{constructor(t,n=Gr.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 Fp=new Ls(Ps);var we=new B(e=>e.complete());function Pp(e){return e&&O(e.schedule)}function Lp(e){return e[e.length-1]}function js(e){return O(Lp(e))?e.pop():void 0}function En(e){return Pp(Lp(e))?e.pop():void 0}function Vp(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function jp(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 Xn(e){return this instanceof Xn?(this.v=e,this):new Xn(e)}function Bp(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(m){return Promise.resolve(m).then(f,d)}}function a(f,m){r[f]&&(o[f]=function(D){return new Promise(function(v,b){i.push([f,D,v,b])>1||c(f,D)})},m&&(o[f]=m(o[f])))}function c(f,m){try{u(r[f](m))}catch(D){h(i[0][3],D)}}function u(f){f.value instanceof Xn?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,m){f(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Up(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 jp=="function"?jp(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var Vs=e=>e&&typeof e.length=="number"&&typeof e!="function";function Bs(e){return O(e?.then)}function Us(e){return O(e[zr])}function Hs(e){return Symbol.asyncIterator&&O(e?.[Symbol.asyncIterator])}function $s(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 EC(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var zs=EC();function Gs(e){return O(e?.[zs])}function Ws(e){return Bp(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Xn(n.read());if(o)return yield Xn(void 0);yield yield Xn(r)}}finally{n.releaseLock()}})}function qs(e){return O(e?.getReader)}function ue(e){if(e instanceof B)return e;if(e!=null){if(Us(e))return CC(e);if(Vs(e))return bC(e);if(Bs(e))return wC(e);if(Hs(e))return Hp(e);if(Gs(e))return _C(e);if(qs(e))return IC(e)}throw $s(e)}function CC(e){return new B(t=>{let n=e[zr]();if(O(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bC(e){return new B(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function wC(e){return new B(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,xs)})}function _C(e){return new B(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Hp(e){return new B(t=>{SC(e,t).catch(n=>t.error(n))})}function IC(e){return Hp(Ws(e))}function SC(e,t){var n,r,o,i;return Vp(this,void 0,void 0,function*(){try{for(n=Up(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 Ve(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 Zs(e,t=0){return U((n,r)=>{n.subscribe(H(r,o=>Ve(r,e,()=>r.next(o),t),()=>Ve(r,e,()=>r.complete(),t),o=>Ve(r,e,()=>r.error(o),t)))})}function Ks(e,t=0){return U((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function $p(e,t){return ue(e).pipe(Ks(t),Zs(t))}function zp(e,t){return ue(e).pipe(Ks(t),Zs(t))}function Gp(e,t){return new B(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Wp(e,t){return new B(n=>{let r;return Ve(n,t,()=>{r=e[zs](),Ve(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)}),()=>O(r?.return)&&r.return()})}function Ys(e,t){if(!e)throw new Error("Iterable cannot be null");return new B(n=>{Ve(n,t,()=>{let r=e[Symbol.asyncIterator]();Ve(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function qp(e,t){return Ys(Ws(e),t)}function Zp(e,t){if(e!=null){if(Us(e))return $p(e,t);if(Vs(e))return Gp(e,t);if(Bs(e))return zp(e,t);if(Hs(e))return Ys(e,t);if(Gs(e))return Wp(e,t);if(qs(e))return qp(e,t)}throw $s(e)}function le(e,t){return t?Zp(e,t):ue(e)}function P(...e){let t=En(e);return le(e,t)}function al(e,t){let n=O(e)?e:()=>e,r=o=>o.error(n());return new B(t?o=>t.schedule(r,0,o):r)}function Qs(e){return!!e&&(e instanceof B||O(e.lift)&&O(e.subscribe))}var qt=Br(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function er(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=!1,s;e.subscribe({next:a=>{s=a,i=!0},error:o,complete:()=>{i?r(s):n?r(t.defaultValue):o(new qt)}})})}function $(e,t){return U((n,r)=>{let o=0;n.subscribe(H(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:MC}=Array;function TC(e,t){return MC(t)?e(...t):e(t)}function Js(e){return $(t=>TC(e,t))}var{isArray:AC}=Array,{getPrototypeOf:NC,prototype:RC,keys:xC}=Object;function Xs(e){if(e.length===1){let t=e[0];if(AC(t))return{args:t,keys:null};if(OC(t)){let n=xC(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function OC(e){return e&&typeof e=="object"&&NC(e)===RC}function ea(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function cl(...e){let t=En(e),n=js(e),{args:r,keys:o}=Xs(e);if(r.length===0)return le([],t);let i=new B(kC(r,t,o?s=>ea(o,s):ze));return n?i.pipe(Js(n)):i}function kC(e,t,n=ze){return r=>{Kp(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Kp(t,()=>{let u=le(e[c],t),l=!1;u.subscribe(H(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Kp(e,t,n){e?Ve(n,e,t):t()}function Yp(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=D=>u<r?m(D):c.push(D),m=D=>{i&&t.next(D),u++;let v=!1;ue(n(D,l++)).subscribe(H(t,b=>{o?.(b),i?f(b):t.next(b)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&u<r;){let b=c.shift();s?Ve(t,s,()=>m(b)):m(b)}h()}catch(b){t.error(b)}}))};return e.subscribe(H(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Re(e,t,n=1/0){return O(t)?Re((r,o)=>$((i,s)=>t(r,i,o,s))(ue(e(r,o))),n):(typeof t=="number"&&(n=t),U((r,o)=>Yp(r,o,e,n)))}function Qp(e=1/0){return Re(ze,e)}function Jp(){return Qp(1)}function Wr(...e){return Jp()(le(e,En(e)))}function ti(e){return new B(t=>{ue(e()).subscribe(t)})}function ul(...e){let t=js(e),{args:n,keys:r}=Xs(e),o=new B(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;ue(n[l]).subscribe(H(i,h=>{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?ea(r,a):a),i.complete())}))}});return t?o.pipe(Js(t)):o}function ft(e,t){return U((n,r)=>{let o=0;n.subscribe(H(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Zt(e){return U((t,n)=>{let r=null,o=!1,i;r=t.subscribe(H(n,void 0,void 0,s=>{i=ue(e(s,Zt(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function qr(e,t){return O(t)?Re(e,t,1):Re(e,1)}function ll(e,t=Fp){return U((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}n.subscribe(H(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Xp(e){return U((t,n)=>{let r=!1;t.subscribe(H(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Kt(e){return e<=0?()=>we:U((t,n)=>{let r=0;t.subscribe(H(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function dl(e,t=ze){return e=e??FC,U((n,r)=>{let o,i=!0;n.subscribe(H(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function FC(e,t){return e===t}function eg(e=PC){return U((t,n)=>{let r=!1;t.subscribe(H(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function PC(){return new qt}function Zr(e){return U((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Yt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ft((o,i)=>e(o,i,r)):ze,Kt(1),n?Xp(t):eg(()=>new qt))}function ta(e){return e<=0?()=>we:U((t,n)=>{let r=[];t.subscribe(H(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function fl(...e){let t=En(e);return U((n,r)=>{(t?Wr(e,n,t):Wr(e,n)).subscribe(r)})}function ht(e,t){return U((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(H(r,c=>{o?.unsubscribe();let u=0,l=i++;ue(e(c,l)).subscribe(o=H(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ni(e){return U((t,n)=>{ue(e).subscribe(H(n,()=>n.complete(),Qo)),!n.closed&&t.subscribe(n)})}function xe(e,t,n){let r=O(e)||t||n?{next:e,error:t,complete:n}:e;return r?U((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(H(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):ze}var hl;function na(){return hl}function Nt(e){let t=hl;return hl=e,t}var tg=Symbol("NotFound");function Kr(e){return e===tg||e?.name==="\u0275NotFound"}function pl(e,t,n){let r=Object.create(LC);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(Zn(r),qn(r),r.value===zt)throw r.error;return r.value};return i[te]=r,Ko(r),i}function ng(e,t){Zn(e),Kn(e,t),Lr(e)}function rg(e,t){Zn(e),Ts(e,t),Lr(e)}var LC=S(g({},Gt),{value:yn,dirty:!0,error:null,equal:Yo,kind:"linkedSignal",producerMustRecompute(e){return e.value===yn||e.value===Wn},producerRecomputeValue(e){if(e.value===Wn)throw new Error("");let t=e.value;e.value=Wn;let n=Wt(e),r;try{let o=e.source(),i=t===yn||t===zt?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o}catch(o){r=zt,e.error=o}finally{vn(e,n)}if(t!==yn&&r!==zt&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});var ua="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",y=class extends Error{code;constructor(t,n){super(In(t,n)),this.code=t}};function jC(e){return`NG0${Math.abs(e)}`}function In(e,t){return`${jC(e)}${t?": "+t:""}`}var Xt=globalThis;function N(e){for(let t in e)if(e[t]===N)return t;throw Error("")}function Jt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Jt).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 la(e,t){return e?t?`${e} ${t}`:e:t||""}var VC=N({__forward_ref__:N});function ui(e){return e.__forward_ref__=ui,e.toString=function(){return Jt(this())},e}function _e(e){return Ml(e)?e():e}function Ml(e){return typeof e=="function"&&e.hasOwnProperty(VC)&&e.__forward_ref__===ui}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function tt(e){return{providers:e.providers||[],imports:e.imports||[]}}function li(e){return BC(e,da)}function Tl(e){return li(e)!==null}function BC(e,t){return e.hasOwnProperty(t)&&e[t]||null}function UC(e){let t=e?.[da]??null;return t||null}function ml(e){return e&&e.hasOwnProperty(oa)?e[oa]:null}var da=N({\u0275prov:N}),oa=N({\u0275inj:N}),E=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=C({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Al(e){return e&&!!e.\u0275providers}var Nl=N({\u0275cmp:N}),Rl=N({\u0275dir:N}),xl=N({\u0275pipe:N}),Ol=N({\u0275mod:N}),oi=N({\u0275fac:N}),ir=N({__NG_ELEMENT_ID__:N}),og=N({__NG_ENV_ID__:N});function kl(e){return fa(e,"@NgModule"),e[Ol]||null}function Sn(e){return fa(e,"@Component"),e[Nl]||null}function Fl(e){return fa(e,"@Directive"),e[Rl]||null}function cg(e){return fa(e,"@Pipe"),e[xl]||null}function fa(e,t){if(e==null)throw new y(-919,!1)}function di(e){return typeof e=="string"?e:e==null?"":String(e)}function ug(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():di(e)}var lg=N({ngErrorCode:N}),HC=N({ngErrorMessage:N}),$C=N({ngTokenPath:N});function Pl(e,t){return dg("",-200,t)}function ha(e,t){throw new y(-201,!1)}function dg(e,t,n){let r=new y(t,e);return r[lg]=t,r[HC]=e,n&&(r[$C]=n),r}function zC(e){return e[lg]}var yl;function fg(){return yl}function Oe(e){let t=yl;return yl=e,t}function Ll(e,t,n){let r=li(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;ha(e,"")}var GC={},tr=GC,WC="__NG_DI_FLAG__",vl=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=nr(n)||0;try{return this.injector.get(t,r&8?null:tr,r)}catch(o){if(Kr(o))return o;throw o}}};function qC(e,t=0){let n=na();if(n===void 0)throw new y(-203,!1);if(n===null)return Ll(e,void 0,t);{let r=ZC(t),o=n.retrieve(e,r);if(Kr(o)){if(r.optional)return null;throw o}return o}}function T(e,t=0){return(fg()||qC)(_e(e),t)}function p(e,t){return T(e,nr(t))}function nr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ZC(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Dl(e){let t=[];for(let n=0;n<e.length;n++){let r=_e(e[n]);if(Array.isArray(r)){if(r.length===0)throw new y(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=KC(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(T(o,i))}else t.push(T(r))}return t}function KC(e){return e[WC]}function Cn(e,t){let n=e.hasOwnProperty(oi);return n?e[oi]:null}function hg(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 pg(e){return e.flat(Number.POSITIVE_INFINITY)}function pa(e,t){e.forEach(n=>Array.isArray(n)?pa(n,t):t(n))}function jl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function gg(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 ga(e,t,n){let r=Qr(e,t);return r>=0?e[r|1]=n:(r=~r,gg(e,r,t,n)),r}function ma(e,t){let n=Qr(e,t);if(n>=0)return e[n|1]}function Qr(e,t){return YC(e,t,1)}function YC(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 sr={},Be=[],Jr=new E(""),Vl=new E("",-1),Bl=new E(""),ii=class{get(t,n=tr){if(n===tr){let o=dg("",-201);throw o.name="\u0275NotFound",o}return n}};function Xr(e){return{\u0275providers:e}}function mg(...e){return{\u0275providers:Ul(!0,e),\u0275fromNgModule:!0}}function Ul(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return pa(t,s=>{let a=s;ia(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&yg(o,i),n}function yg(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Hl(o,i=>{t(i,r)})}}function ia(e,t,n,r){if(e=_e(e),!e)return!1;let o=null,i=ml(e),s=!i&&Sn(e);if(!i&&!s){let c=e.ngModule;if(i=ml(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)ia(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;pa(i.imports,l=>{ia(l,t,n,r)&&(u||=[],u.push(l))}),u!==void 0&&yg(u,t)}if(!a){let u=Cn(o)||(()=>new o);t({provide:o,useFactory:u,deps:Be},o),t({provide:Bl,useValue:o,multi:!0},o),t({provide:Jr,useValue:()=>T(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Hl(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Hl(e,t){for(let n of e)Al(n)&&(n=n.\u0275providers),Array.isArray(n)?Hl(n,t):t(n)}var QC=N({provide:String,useValue:N});function vg(e){return e!==null&&typeof e=="object"&&QC in e}function JC(e){return!!(e&&e.useExisting)}function XC(e){return!!(e&&e.useFactory)}function rr(e){return typeof e=="function"}function Dg(e){return!!e.useClass}var hi=new E(""),ra={},ig={},gl;function pi(){return gl===void 0&&(gl=new ii),gl}var J=class{},or=class extends J{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,Cl(t,s=>this.processProvider(s)),this.records.set(Vl,Yr(void 0,this)),o.has("environment")&&this.records.set(J,Yr(void 0,this));let i=this.records.get(hi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Bl,Be,{self:!0}))}retrieve(t,n){let r=nr(n)||0;try{return this.get(t,tr,r)}catch(o){if(Kr(o))return o;throw o}}destroy(){ri(this),this._destroyed=!0;let t=M(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(),M(t)}}onDestroy(t){return ri(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){ri(this);let n=Nt(this),r=Oe(void 0),o;try{return t()}finally{Nt(n),Oe(r)}}get(t,n=tr,r){if(ri(this),t.hasOwnProperty(og))return t[og](this);let o=nr(r),i,s=Nt(this),a=Oe(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=ob(t)&&li(t);l&&this.injectableDefInScope(l)?u=Yr(El(t),ra):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?pi():this.parent;return n=o&8&&n===tr?null:n,c.get(t,n)}catch(c){let u=zC(c);throw u===-200||u===-201?new y(u,null):c}finally{Oe(a),Nt(s)}}resolveInjectorInitializers(){let t=M(null),n=Nt(this),r=Oe(void 0),o;try{let i=this.get(Jr,Be,{self:!0});for(let s of i)s()}finally{Nt(n),Oe(r),M(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Jt(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=_e(t);let n=rr(t)?t:_e(t&&t.provide),r=tb(t);if(!rr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Yr(void 0,ra,!0),o.factory=()=>Dl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=M(null);try{if(n.value===ig)throw Pl(Jt(t));return n.value===ra&&(n.value=ig,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&rb(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{M(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=_e(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 El(e){let t=li(e),n=t!==null?t.factory:Cn(e);if(n!==null)return n;if(e instanceof E)throw new y(204,!1);if(e instanceof Function)return eb(e);throw new y(204,!1)}function eb(e){if(e.length>0)throw new y(204,!1);let n=UC(e);return n!==null?()=>n.factory(e):()=>new e}function tb(e){if(vg(e))return Yr(void 0,e.useValue);{let t=$l(e);return Yr(t,ra)}}function $l(e,t,n){let r;if(rr(e)){let o=_e(e);return Cn(o)||El(o)}else if(vg(e))r=()=>_e(e.useValue);else if(XC(e))r=()=>e.useFactory(...Dl(e.deps||[]));else if(JC(e))r=(o,i)=>T(_e(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=_e(e&&(e.useClass||e.provide));if(nb(e))r=()=>new o(...Dl(e.deps));else return Cn(o)||El(o)}return r}function ri(e){if(e.destroyed)throw new y(205,!1)}function Yr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function nb(e){return!!e.deps}function rb(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ob(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Cl(e,t){for(let n of e)Array.isArray(n)?Cl(n,t):n&&Al(n)?Cl(n.\u0275providers,t):t(n)}function se(e,t){let n;e instanceof or?(ri(e),n=e):n=new vl(e);let r,o=Nt(n),i=Oe(void 0);try{return t()}finally{Nt(o),Oe(i)}}function Eg(){return fg()!==void 0||na()!=null}var pt=0,I=1,R=2,me=3,nt=4,rt=5,eo=6,to=7,ae=8,en=9,xt=10,q=11,no=12,zl=13,ar=14,Ge=15,Mn=16,cr=17,Ot=18,tn=19,Gl=20,Qt=21,ya=22,bn=23,We=24,va=25,ur=26,re=27,Cg=1,Wl=6,Tn=7,gi=8,lr=9,oe=10;function kt(e){return Array.isArray(e)&&typeof e[Cg]=="object"}function gt(e){return Array.isArray(e)&&e[Cg]===!0}function ql(e){return(e.flags&4)!==0}function nn(e){return e.componentOffset>-1}function ro(e){return(e.flags&1)===1}function An(e){return!!e.template}function oo(e){return(e[R]&512)!==0}function dr(e){return(e[R]&256)===256}var Zl="svg",bg="math";function ot(e){for(;Array.isArray(e);)e=e[pt];return e}function Kl(e,t){return ot(t[e])}function Se(e,t){return ot(t[e.index])}function mi(e,t){return e.data[t]}function Da(e,t){return e[t]}function Yl(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function it(e,t){let n=t[e];return kt(n)?n:n[pt]}function wg(e){return(e[R]&4)===4}function Ea(e){return(e[R]&128)===128}function _g(e){return gt(e[me])}function Ft(e,t){return t==null?null:e[t]}function Ql(e){e[cr]=0}function Jl(e){e[R]&1024||(e[R]|=1024,Ea(e)&&io(e))}function Ig(e,t){for(;e>0;)t=t[ar],e--;return t}function yi(e){return!!(e[R]&9216||e[We]?.dirty)}function Ca(e){e[xt].changeDetectionScheduler?.notify(8),e[R]&64&&(e[R]|=1024),yi(e)&&io(e)}function io(e){e[xt].changeDetectionScheduler?.notify(0);let t=wn(e);for(;t!==null&&!(t[R]&8192||(t[R]|=8192,!Ea(t)));)t=wn(t)}function Xl(e,t){if(dr(e))throw new y(911,!1);e[Qt]===null&&(e[Qt]=[]),e[Qt].push(t)}function Sg(e,t){if(e[Qt]===null)return;let n=e[Qt].indexOf(t);n!==-1&&e[Qt].splice(n,1)}function wn(e){let t=e[me];return gt(t)?t[me]:t}function ed(e){return e[to]??=[]}function td(e){return e.cleanup??=[]}function nd(e,t,n,r){let o=ed(t);o.push(n),e.firstCreatePass&&td(e).push(r,o.length-1)}var k={lFrame:$g(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var bl=!1;function Mg(){return k.lFrame.elementDepthCount}function Tg(){k.lFrame.elementDepthCount++}function Ag(){k.lFrame.elementDepthCount--}function ba(){return k.bindingsEnabled}function Ng(){return k.skipHydrationRootTNode!==null}function Rg(e){return k.skipHydrationRootTNode===e}function xg(){k.skipHydrationRootTNode=null}function F(){return k.lFrame.lView}function Q(){return k.lFrame.tView}function mt(e){return k.lFrame.contextLView=e,e[ae]}function yt(e){return k.lFrame.contextLView=null,e}function Me(){let e=rd();for(;e!==null&&e.type===64;)e=e.parent;return e}function rd(){return k.lFrame.currentTNode}function Og(){let e=k.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function so(e,t){let n=k.lFrame;n.currentTNode=e,n.isParent=t}function od(){return k.lFrame.isParent}function kg(){k.lFrame.isParent=!1}function Fg(){return k.lFrame.contextLView}function id(){return bl}function si(e){let t=bl;return bl=e,t}function sd(){let e=k.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Pg(){return k.lFrame.bindingIndex}function Lg(e){return k.lFrame.bindingIndex=e}function Nn(){return k.lFrame.bindingIndex++}function ad(e){let t=k.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function jg(){return k.lFrame.inI18n}function Vg(e,t){let n=k.lFrame;n.bindingIndex=n.bindingRootIndex=e,wa(t)}function Bg(){return k.lFrame.currentDirectiveIndex}function wa(e){k.lFrame.currentDirectiveIndex=e}function Ug(e){let t=k.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function cd(){return k.lFrame.currentQueryIndex}function _a(e){k.lFrame.currentQueryIndex=e}function ib(e){let t=e[I];return t.type===2?t.declTNode:t.type===1?e[rt]:null}function ud(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=ib(i),o===null||(i=i[ar],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=k.lFrame=Hg();return r.currentTNode=t,r.lView=e,!0}function Ia(e){let t=Hg(),n=e[I];k.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Hg(){let e=k.lFrame,t=e===null?null:e.child;return t===null?$g(e):t}function $g(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 zg(){let e=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ld=zg;function Sa(){let e=zg();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 Gg(e){return(k.lFrame.contextLView=Ig(e,k.lFrame.contextLView))[ae]}function rn(){return k.lFrame.selectedIndex}function Rn(e){k.lFrame.selectedIndex=e}function vi(){let e=k.lFrame;return mi(e.tView,e.selectedIndex)}function Di(){k.lFrame.currentNamespace=Zl}function Ma(){sb()}function sb(){k.lFrame.currentNamespace=null}function Wg(){return k.lFrame.currentNamespace}var qg=!0;function Ta(){return qg}function Ei(e){qg=e}function wl(e,t=null,n=null,r){let o=dd(e,t,n,r);return o.resolveInjectorInitializers(),o}function dd(e,t=null,n=null,r,o=new Set){let i=[n||Be,mg(e)];return r=r||(typeof e=="object"?void 0:Jt(e)),new or(i,t||pi(),r||null,o)}var de=class e{static THROW_IF_NOT_FOUND=tr;static NULL=new ii;static create(t,n){if(Array.isArray(t))return wl({name:""},n,t,"");{let r=t.name??"";return wl({name:r},t.parent,t.providers,r)}}static \u0275prov=C({token:e,providedIn:"any",factory:()=>T(Vl)});static __NG_ELEMENT_ID__=-1},fe=new E(""),Fe=(()=>{class e{static __NG_ELEMENT_ID__=ab;static __NG_ENV_ID__=n=>n}return e})(),sa=class extends Fe{_lView;constructor(t){super(),this._lView=t}get destroyed(){return dr(this._lView)}onDestroy(t){let n=this._lView;return Xl(n,t),()=>Sg(n,t)}};function ab(){return new sa(F())}var Zg=!1,Kg=new E(""),on=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new be(!1);debugTaskTracker=p(Kg,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new B(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=C({token:e,providedIn:"root",factory:()=>new e})}return e})(),_l=class extends ne{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Eg()&&(this.destroyRef=p(Fe,{optional:!0})??void 0,this.pendingTasks=p(on,{optional:!0})??void 0)}emit(t){let n=M(null);try{super.next(t)}finally{M(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 ge&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},ve=_l;function aa(...e){}function fd(e){let t,n;function r(){e=aa;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 Yg(e){return queueMicrotask(()=>e()),()=>{e=aa}}var hd="isAngularZone",ai=hd+"_ID",cb=0,ke=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ve(!1);onMicrotaskEmpty=new ve(!1);onStable=new ve(!1);onError=new ve(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Zg}=t;if(typeof Zone>"u")throw new y(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,db(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(hd)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new y(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new y(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,ub,aa,aa);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)}},ub={};function pd(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 lb(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){fd(()=>{e.callbackScheduled=!1,Il(e),e.isCheckStableRunning=!0,pd(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Il(e)}function db(e){let t=()=>{lb(e)},n=cb++;e._inner=e._inner.fork({name:"angular",properties:{[hd]:!0,[ai]:n,[ai+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(fb(c))return r.invokeTask(i,s,a,c);try{return sg(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),ag(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return sg(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!hb(c)&&t(),ag(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Il(e),pd(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 Il(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function sg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ag(e){e._nesting--,pd(e)}var ci=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ve;onMicrotaskEmpty=new ve;onStable=new ve;onError=new ve;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function fb(e){return Qg(e,"__ignore_ng_zone__")}function hb(e){return Qg(e,"__scheduler_tick__")}function Qg(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Rt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},st=new E("",{factory:()=>{let e=p(ke),t=p(J),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Rt),n.handleError(r))})}}}),Jg={provide:Jr,useValue:()=>{let e=p(Rt,{optional:!0})},multi:!0};function z(e,t){let[n,r,o]=Ku(e,t?.equal),i=n,s=i[te];return i.set=r,i.update=o,i.asReadonly=Aa.bind(i),i}function Aa(){let e=this[te];if(e.readonlyFn===void 0){let t=()=>this();t[te]=e,e.readonlyFn=t}return e.readonlyFn}var Na=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=pb}return e})();function pb(){return new Na(F(),Me())}var _n=class{},Ci=new E("",{factory:()=>!0});var gd=new E(""),fr=(()=>{class e{internalPendingTasks=p(on);scheduler=p(_n);errorHandler=p(st);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=C({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ra=(()=>{class e{static \u0275prov=C({token:e,providedIn:"root",factory:()=>new Sl})}return e})(),Sl=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}},ca=class{[te];constructor(t){this[te]=t}destroy(){this[te].destroy()}};function vt(e,t){let n=t?.injector??p(de),r=t?.manualCleanup!==!0?n.get(Fe):null,o,i=n.get(Na,null,{optional:!0}),s=n.get(_n);return i!==null?(o=yb(i.view,s,e),r instanceof sa&&r._lView===i.view&&(r=null)):o=vb(e,n.get(Ra),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new ca(o)}var Xg=S(g({},Qu),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=si(!1);try{Ju(this)}finally{si(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=M(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],M(e)}}}),gb=S(g({},Xg),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Dn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),mb=S(g({},Xg),{consumerMarkedDirty(){this.view[R]|=8192,io(this.view),this.notifier.notify(13)},destroy(){if(Dn(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[bn]?.delete(this)}});function yb(e,t,n){let r=Object.create(mb);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=em(r,n),e[bn]??=new Set,e[bn].add(r),r.consumerMarkedDirty(r),r}function vb(e,t,n){let r=Object.create(gb);return r.fn=em(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 em(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}function L(e){return Yu(e)}function xi(e){return{toString:e}.toString()}function _b(e){return typeof e=="function"}function km(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var ja=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},Er=(()=>{let e=()=>Fm;return e.ngInherit=!0,e})();function Fm(e){return e.type.prototype.ngOnChanges&&(e.setInput=Sb),Ib}function Ib(){let e=Lm(this),t=e?.current;if(t){let n=e.previous;if(n===sr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Sb(e,t,n,r,o){let i=this.declaredInputs[r],s=Lm(e)||Mb(e,{previous:sr,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new ja(u&&u.currentValue,n,c===sr),km(e,t,o,n)}var Pm="__ngSimpleChanges__";function Lm(e){return e[Pm]||null}function Mb(e,t){return e[Pm]=t}var tm=[];var Z=function(e,t=null,n){for(let r=0;r<tm.length;r++){let o=tm[r];o(e,t,n)}},G=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(G||{});function Tb(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Fm(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 jm(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function ka(e,t,n){Vm(e,t,3,n)}function Fa(e,t,n,r){(e[R]&3)===n&&Vm(e,t,n,r)}function md(e,t){let n=e[R];(n&3)===t&&(n&=16383,n+=1,e[R]=n)}function Vm(e,t,n,r){let o=r!==void 0?e[cr]&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[cr]+=65536),(a<i||i==-1)&&(Ab(e,n,t,c),e[cr]=(e[cr]&4294901760)+c+2),c++}function nm(e,t){Z(G.LifecycleHookStart,e,t);let n=M(null);try{t.call(e)}finally{M(n),Z(G.LifecycleHookEnd,e,t)}}function Ab(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[cr]>>16&&(e[R]&3)===t&&(e[R]+=16384,nm(a,i)):nm(a,i)}var co=-1,gr=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 Nb(e){return(e.flags&8)!==0}function Rb(e){return(e.flags&16)!==0}function xb(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];Ob(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function ef(e){return e===3||e===4||e===6}function Ob(e){return e.charCodeAt(0)===64}function tf(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?rm(e,n,o,null,t[++r]):rm(e,n,o,null,null))}}return e}function rm(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 Bm(e){return e!==co}function Va(e){return e&32767}function kb(e){return e>>16}function Ba(e,t){let n=kb(e),r=t;for(;n>0;)r=r[ar],n--;return r}var Sd=!0;function Ua(e){let t=Sd;return Sd=e,t}var Fb=256,Um=Fb-1,Hm=5,Pb=0,Pt={};function Lb(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(ir)&&(r=n[ir]),r==null&&(r=n[ir]=Pb++);let o=r&Um,i=1<<o;t.data[e+(o>>Hm)]|=i}function Ha(e,t){let n=$m(e,t);if(n!==-1)return n;let r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,yd(r.data,e),yd(t,null),yd(r.blueprint,null));let o=nf(e,t),i=e.injectorIndex;if(Bm(o)){let s=Va(o),a=Ba(o,t),c=a[I].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function yd(e,t){e.push(0,0,0,0,0,0,0,0,t)}function $m(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function nf(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=Zm(o),r===null)return co;if(n++,o=o[ar],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return co}function Md(e,t,n){Lb(e,t,n)}function jb(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(ef(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===t)return n[o+1];o=o+2}}}return null}function zm(e,t,n){if(n&8||e!==void 0)return e;ha(t,"NodeInjector")}function Gm(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[en],i=Oe(void 0);try{return o?o.get(t,r,n&8):Ll(t,r,n&8)}finally{Oe(i)}}return zm(r,t,n)}function Wm(e,t,n,r=0,o){if(e!==null){if(t[R]&2048&&!(r&2)){let s=Hb(e,t,n,r,Pt);if(s!==Pt)return s}let i=qm(e,t,n,r,Pt);if(i!==Pt)return i}return Gm(t,n,r,o)}function qm(e,t,n,r,o){let i=Bb(n);if(typeof i=="function"){if(!ud(t,e,r))return r&1?zm(o,n,r):Gm(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ha(n);else return s}finally{ld()}}else if(typeof i=="number"){let s=null,a=$m(e,t),c=co,u=r&1?t[Ge][rt]:null;for((a===-1||r&4)&&(c=a===-1?nf(e,t):t[a+8],c===co||!im(r,!1)?a=-1:(s=t[I],a=Va(c),t=Ba(c,t)));a!==-1;){let l=t[I];if(om(i,a,l.data)){let d=Vb(a,t,n,s,r,u);if(d!==Pt)return d}c=t[a+8],c!==co&&im(r,t[I].data[a+8]===u)&&om(i,a,t)?(s=l,a=Va(c),t=Ba(c,t)):a=-1}}return o}function Vb(e,t,n,r,o,i){let s=t[I],a=s.data[e+8],c=r==null?nn(a)&&Sd:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=Pa(a,s,n,c,u);return l!==null?Ii(t,s,l,a,o):Pt}function Pa(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f<h;f++){let m=s[f];if(f<c&&n===m||f>=c&&m.type===n)return f}if(o){let f=s[c];if(f&&An(f)&&f.type===n)return c}return null}function Ii(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof gr){let a=i;if(a.resolving){let f=ug(s[n]);throw Pl(f)}let c=Ua(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?Oe(a.injectImpl):null,h=ud(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Tb(n,s[n],t)}finally{d!==null&&Oe(d),Ua(c),a.resolving=!1,ld()}}return i}function Bb(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ir)?e[ir]:void 0;return typeof t=="number"?t>=0?t&Um:Ub:t}function om(e,t,n){let r=1<<e;return!!(n[t+(e>>Hm)]&r)}function im(e,t){return!(e&2)&&!(e&1&&t)}var hr=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Wm(this._tNode,this._lView,t,nr(r),n)}};function Ub(){return new hr(Me(),F())}function nc(e){return xi(()=>{let t=e.prototype.constructor,n=t[oi]||Td(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[oi]||Td(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Td(e){return Ml(e)?()=>{let t=Td(_e(e));return t&&t()}:Cn(e)}function Hb(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[R]&2048&&!oo(s);){let a=qm(i,s,n,r|2,Pt);if(a!==Pt)return a;let c=i.parent;if(!c){let u=s[Gl];if(u){let l=u.get(n,Pt,r);if(l!==Pt)return l}c=Zm(s),s=s[ar]}i=c}return o}function Zm(e){let t=e[I],n=t.type;return n===2?t.declTNode:n===1?e[rt]:null}function Oi(e){return jb(Me(),e)}function $b(){return go(Me(),F())}function go(e,t){return new at(Se(e,t))}var at=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=$b}return e})();function zb(e){return e instanceof at?e.nativeElement:e}function Gb(){return this._results[Symbol.iterator]()}var $a=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 ne}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=pg(t);(this._changesDetected=!hg(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]=Gb};function Km(e){return(e.flags&128)===128}var rf=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(rf||{}),Ym=new Map,Wb=0;function qb(){return Wb++}function Zb(e){Ym.set(e[tn],e)}function Ad(e){Ym.delete(e[tn])}var sm="__ngContext__";function uo(e,t){kt(t)?(e[sm]=t[tn],Zb(t)):e[sm]=t}function Qm(e){return Xm(e[no])}function Jm(e){return Xm(e[nt])}function Xm(e){for(;e!==null&&!gt(e);)e=e[nt];return e}var Kb;function of(e){Kb=e}var mo=new E("",{factory:()=>Yb}),Yb="ng";var rc=new E(""),Cr=new E("",{providedIn:"platform",factory:()=>"unknown"}),sf=new E(""),yo=new E("",{factory:()=>p(fe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var ey="r";var ty="di";var ny=!1,ry=new E("",{factory:()=>ny});var Qb=(e,t,n,r)=>{};function Jb(e,t,n,r){Qb(e,t,n,r)}function af(e){return(e.flags&32)===32}var Xb=()=>null;function oy(e,t,n=!1){return Xb(e,t,n)}function iy(e,t){let n=e.contentQueries;if(n!==null){let r=M(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];_a(i),a.contentQueries(2,t[s],s)}}}finally{M(r)}}}function Nd(e,t,n){_a(0);let r=M(null);try{t(e,n)}finally{M(r)}}function cf(e,t,n){if(ql(t)){let r=M(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{M(r)}}}var Ct=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Ct||{});var xa;function ew(){if(xa===void 0&&(xa=null,Xt.trustedTypes))try{xa=Xt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return xa}function am(e){return ew()?.createScriptURL(e)||e}var za=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ua})`}};function ki(e){return e instanceof za?e.changingThisBreaksApplicationSecurity:e}function uf(e,t){let n=sy(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ua})`)}return n===t}function sy(e){return e instanceof za&&e.getTypeName()||null}var tw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ay(e){return e=String(e),e.match(tw)?e:"unsafe:"+e}var nw=/^>|^->|<!--|-->|--!>|<!-$/g,rw=/(<|>)/g,ow="\u200B$1\u200B";function iw(e){return e.replace(nw,t=>t.replace(rw,ow))}function sw(e,t){return e.createText(t)}function aw(e,t,n){e.setValue(t,n)}function cw(e,t){return e.createComment(iw(t))}function cy(e,t,n){return e.createElement(t,n)}function Ga(e,t,n,r,o){e.insertBefore(t,n,r,o)}function uy(e,t,n){e.appendChild(t,n)}function cm(e,t,n,r,o){r!==null?Ga(e,t,n,r,o):uy(e,t,n)}function ly(e,t,n,r){e.removeChild(null,t,n,r)}function uw(e,t,n){e.setAttribute(t,"style",n)}function lw(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function dy(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&xb(e,t,r),o!==null&&lw(e,t,o),i!==null&&uw(e,t,i)}var oc=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e})(oc||{});function fy(e){let t=py();return t?t.sanitize(oc.URL,e)||"":uf(e,"URL")?ki(e):ay(di(e))}function hy(e){let t=py();if(t)return am(t.sanitize(oc.RESOURCE_URL,e)||"");if(uf(e,"ResourceURL"))return am(ki(e));throw new y(904,!1)}var dw=new Set(["embed","frame","iframe","media","script"]),fw=new Set(["base","link","script"]);function hw(e,t){return t==="src"&&dw.has(e)||t==="href"&&fw.has(e)||t==="xlink:href"&&e==="script"?hy:fy}function lf(e,t,n){return hw(t,n)(e)}function py(){let e=F();return e&&e[xt].sanitizer}function gy(e){return e instanceof Function?e():e}function pw(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 my="ng-template";function gw(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&pw(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(df(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 df(e){return e.type===4&&e.value!==my}function mw(e,t,n){let r=e.type===4&&!n?my:e.value;return t===r}function yw(e,t,n){let r=4,o=e.attrs,i=o!==null?Ew(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!==""&&!mw(e,c,n)||c===""&&t.length===1){if(Dt(r))return!1;s=!0}}else if(r&8){if(o===null||!gw(e,o,c,n)){if(Dt(r))return!1;s=!0}}else{let u=t[++a],l=vw(c,o,df(e),n);if(l===-1){if(Dt(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(Dt(r))return!1;s=!0}}}}return Dt(r)||s}function Dt(e){return(e&1)===0}function vw(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 Cw(t,e)}function Dw(e,t,n=!1){for(let r=0;r<t.length;r++)if(yw(e,t[r],n))return!0;return!1}function Ew(e){for(let t=0;t<e.length;t++){let n=e[t];if(ef(n))return t}return e.length}function Cw(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 um(e,t){return e?":not("+t.trim()+")":t}function bw(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+=um(i,o),o=""),r=s,i=i||!Dt(r);n++}return o!==""&&(t+=um(i,o)),t}function ww(e){return e.map(bw).join(",")}function _w(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 qe={};function ff(e,t,n,r,o,i,s,a,c,u,l){let d=re+r,h=d+o,f=Iw(d,h),m=typeof u=="function"?u():u;return f[I]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,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:m,incompleteFirstPass:!1,ssrId:l}}function Iw(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:qe);return n}function Sw(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=ff(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function hf(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[pt]=o,d[R]=r|4|128|8|64|1024,(u!==null||e&&e[R]&2048)&&(d[R]|=2048),Ql(d),d[me]=d[ar]=e,d[ae]=n,d[xt]=s||e&&e[xt],d[q]=a||e&&e[q],d[en]=c||e&&e[en]||null,d[rt]=i,d[tn]=qb(),d[eo]=l,d[Gl]=u,d[Ge]=t.type==2?e[Ge]:d,d}function Mw(e,t,n){let r=Se(t,e),o=Sw(n),i=e[xt].rendererFactory,s=pf(e,hf(e,o,null,yy(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function yy(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function vy(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 pf(e,t){return e[no]?e[zl][nt]=t:e[no]=t,e[zl]=t,t}function V(e=1){Dy(Q(),F(),rn()+e,!1)}function Dy(e,t,n,r){if(!r)if((t[R]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ka(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Fa(t,i,0,n)}Rn(n)}var ic=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(ic||{});function Si(e,t,n,r){let o=M(null);try{let[i,s,a]=e.inputs[n],c=null;(s&ic.SignalBased)!==0&&(c=t[i][te]),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):km(t,c,i,r)}finally{M(o)}}var Lt=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Lt||{}),Tw;function gf(e,t){return Tw(e,t)}var mr=new Set,mf=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(mf||{}),br=new E(""),lm=new Set;function On(e){lm.has(e)||(lm.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Ey=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=C({token:e,providedIn:"root",factory:()=>new e})}return e})();var Cy=new E("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(J)})});function by(e,t,n){let r=e.get(Cy);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 Aw(e,t){let n=e.get(Cy);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function Nw(e,t){for(let[n,r]of t)by(e,r.animateFns)}function dm(e,t,n,r){let o=e?.[ur]?.enter;t!==null&&o&&o.has(n.index)&&Nw(r,o)}function ao(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;gt(o)?c=o:kt(o)&&(u=!0,o=o[pt]);let l=ot(o);e===0&&r!==null?(dm(a,r,i,n),s==null?uy(t,r,l):Ga(t,r,l,s||null,!0)):e===1&&r!==null?(dm(a,r,i,n),Ga(t,r,l,s||null,!0)):e===2?fm(a,i,n,d=>{ly(t,l,u,d)}):e===3&&fm(a,i,n,()=>{t.destroyNode(l)}),c!=null&&$w(t,e,n,c,i,r,s)}}function Rw(e,t){wy(e,t),t[pt]=null,t[rt]=null}function xw(e,t,n,r,o,i){r[pt]=o,r[rt]=t,ac(e,r,n,1,o,i)}function wy(e,t){t[xt].changeDetectionScheduler?.notify(9),ac(e,t,t[q],2,null,null)}function Ow(e){let t=e[no];if(!t)return vd(e[I],e);for(;t;){let n=null;if(kt(t))n=t[no];else{let r=t[oe];r&&(n=r)}if(!n){for(;t&&!t[nt]&&t!==e;)kt(t)&&vd(t[I],t),t=t[me];t===null&&(t=e),kt(t)&&vd(t[I],t),n=t&&t[nt]}t=n}}function yf(e,t){let n=e[lr],r=n.indexOf(t);n.splice(r,1)}function sc(e,t){if(dr(t))return;let n=t[q];n.destroyNode&&ac(e,t,n,3,null,null),Ow(t)}function vd(e,t){if(dr(t))return;let n=M(null);try{t[R]&=-129,t[R]|=256,t[We]&&Dn(t[We]),Pw(e,t),Fw(e,t),t[I].type===1&&t[q].destroy();let r=t[Mn];if(r!==null&&gt(t[me])){r!==t[me]&&yf(r,t);let o=t[Ot];o!==null&&o.detachView(e)}Ad(t)}finally{M(n)}}function fm(e,t,n,r){let o=e?.[ur];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&mr.add(e[tn]),by(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),kw(e,r)}else e&&mr.delete(e[tn]),r(!1)},o)}function kw(e,t){let n=e[ur]?.running;if(n){n.then(()=>{e[ur].running=void 0,mr.delete(e[tn]),t(!0)});return}t(!1)}function Fw(e,t){let n=e.cleanup,r=t[to];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[to]=null);let o=t[Qt];if(o!==null){t[Qt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[bn];if(i!==null){t[bn]=null;for(let s of i)s.destroy()}}function Pw(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 gr)){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];Z(G.LifecycleHookStart,a,c);try{c.call(a)}finally{Z(G.LifecycleHookEnd,a,c)}}else{Z(G.LifecycleHookStart,o,i);try{i.call(o)}finally{Z(G.LifecycleHookEnd,o,i)}}}}}function Lw(e,t,n){return jw(e,t.parent,n)}function jw(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[pt];if(nn(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ct.None||o===Ct.Emulated)return null}return Se(r,n)}function Vw(e,t,n){return Uw(e,t,n)}function Bw(e,t,n){return e.type&40?Se(e,n):null}var Uw=Bw,hm;function vf(e,t,n,r){let o=Lw(e,r,t),i=t[q],s=r.parent||t[rt],a=Vw(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)cm(i,o,n[c],a,!1);else cm(i,o,n,a,!1);hm!==void 0&&hm(i,r,t,n,o)}function wi(e,t){if(t!==null){let n=t.type;if(n&3)return Se(t,e);if(n&4)return Rd(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return wi(e,r);{let o=e[t.index];return gt(o)?Rd(-1,o):ot(o)}}else{if(n&128)return wi(e,t.next);if(n&32)return gf(t,e)()||ot(e[t.index]);{let r=_y(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=wn(e[Ge]);return wi(o,r)}else return wi(e,t.next)}}}return null}function _y(e,t){if(t!==null){let r=e[Ge][rt],o=t.projection;return r.projection[o]}return null}function Rd(e,t){let n=oe+e+1;if(n<t.length){let r=t[n],o=r[I].firstChild;if(o!==null)return wi(r,o)}return t[Tn]}function Df(e,t,n,r,o,i,s){for(;n!=null;){let a=r[en];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&uo(ot(c),r),n.flags|=2),!af(n))if(u&8)Df(e,t,n.child,r,o,i,!1),ao(t,e,a,o,c,n,i,r);else if(u&32){let l=gf(n,r),d;for(;d=l();)ao(t,e,a,o,d,n,i,r);ao(t,e,a,o,c,n,i,r)}else u&16?Hw(e,t,r,n,o,i):ao(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function ac(e,t,n,r,o,i){Df(n,r,e.firstChild,t,o,i,!1)}function Hw(e,t,n,r,o,i){let s=n[Ge],c=s[rt].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];ao(t,e,n[en],o,l,r,i,n)}else{let u=c,l=s[me];Km(r)&&(u.flags|=128),Df(e,t,u,l,o,i,!0)}}function $w(e,t,n,r,o,i,s){let a=r[Tn],c=ot(r);a!==c&&ao(t,e,n,i,a,o,s);for(let u=oe;u<r.length;u++){let l=r[u];ac(l[I],l,e,t,i,a)}}function zw(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Lt.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Lt.Important),e.setStyle(n,r,o,i))}}function Iy(e,t,n,r,o){let i=rn(),s=r&2;try{Rn(-1),s&&t.length>re&&Dy(e,t,re,!1);let a=s?G.TemplateUpdateStart:G.TemplateCreateStart;Z(a,o,n),n(r,o)}finally{Rn(i);let a=s?G.TemplateUpdateEnd:G.TemplateCreateEnd;Z(a,o,n)}}function cc(e,t,n){Qw(e,t,n),(n.flags&64)===64&&Jw(e,t,n)}function uc(e,t,n=Se){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 Gw(e,t,n,r){let i=r.get(ry,ny)||n===Ct.ShadowDom||n===Ct.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return Ww(s),s}function Ww(e){qw(e)}var qw=()=>null;function Zw(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Sy(e,t,n,r,o,i){let s=t[I];if(Cf(e,s,t,n,r)){nn(e)&&Yw(t,e.index);return}e.type&3&&(n=Zw(n)),Kw(e,t,n,r,o,i)}function Kw(e,t,n,r,o,i){if(e.type&3){let s=Se(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function Yw(e,t){let n=it(t,e);n[R]&16||(n[R]|=64)}function Qw(e,t,n){let r=n.directiveStart,o=n.directiveEnd;nn(n)&&Mw(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Ha(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Ii(t,e,s,n);if(uo(c,t),i!==null&&n_(t,s-r,c,a,n,i),An(a)){let u=it(n.index,t);u[ae]=Ii(t,e,s,n)}}}function Jw(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Bg();try{Rn(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];wa(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Xw(c,u)}}finally{Rn(-1),wa(s)}}function Xw(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Ef(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Dw(t,i.selectors,!1)&&(r??=[],An(i)?r.unshift(i):r.push(i))}return r}function e_(e,t,n,r,o,i){let s=Se(e,t);t_(t[q],s,i,e.value,n,r,o)}function t_(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?di(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function n_(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Si(r,n,c,u)}}function My(e,t,n,r,o){let i=re+n,s=t[I],a=o(s,t,e,r,n);t[i]=a,so(e,!0);let c=e.type===2;return c?(dy(t[q],a,e),(Mg()===0||ro(e))&&uo(a,t),Tg()):uo(a,t),Ta()&&(!c||!af(e))&&vf(s,t,a,e),e}function Ty(e){let t=e;return od()?kg():(t=t.parent,so(t,!1)),t}function r_(e,t){let n=e[en];if(!n)return;let r;try{r=n.get(st,null)}catch{r=null}r?.(t)}function Cf(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];Si(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];Si(l,u,r,o),a=!0}return a}function o_(e,t){let n=it(t,e),r=n[I];i_(r,n);let o=n[pt];o!==null&&n[eo]===null&&(n[eo]=oy(o,n[en])),Z(G.ComponentStart);try{bf(r,n,n[ae])}finally{Z(G.ComponentEnd,n[ae])}}function i_(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function bf(e,t,n){Ia(t);try{let r=e.viewQuery;r!==null&&Nd(1,r,n);let o=e.template;o!==null&&Iy(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ot]?.finishViewCreation(e),e.staticContentQueries&&iy(e,t),e.staticViewQueries&&Nd(2,e.viewQuery,n);let i=e.components;i!==null&&s_(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[R]&=-5,Sa()}}function s_(e,t){for(let n=0;n<t.length;n++)o_(e,t[n])}function lc(e,t,n,r){let o=M(null);try{let i=t.tView,a=e[R]&4096?4096:16,c=hf(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Mn]=u;let l=e[Ot];return l!==null&&(c[Ot]=l.createEmbeddedView(i)),bf(i,c,n),c}finally{M(o)}}function Mi(e,t){return!t||t.firstChild===null||Km(e)}function Ti(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(ot(i)),gt(i)&&Ay(i,r);let s=n.type;if(s&8)Ti(e,t,n.child,r);else if(s&32){let a=gf(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=_y(t,n);if(Array.isArray(a))r.push(...a);else{let c=wn(t[Ge]);Ti(c[I],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Ay(e,t){for(let n=oe;n<e.length;n++){let r=e[n],o=r[I].firstChild;o!==null&&Ti(r[I],r,o,t)}e[Tn]!==e[pt]&&t.push(e[Tn])}function Ny(e){if(e[va]!==null){for(let t of e[va])t.impl.addSequence(t);e[va].length=0}}var Ry=[];function a_(e){return e[We]??c_(e)}function c_(e){let t=Ry.pop()??Object.create(l_);return t.lView=e,t}function u_(e){e.lView[We]!==e&&(e.lView=null,Ry.push(e))}var l_=S(g({},Gt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{io(e.lView)},consumerOnSignalRead(){this.lView[We]=this}});function d_(e){let t=e[We]??Object.create(f_);return t.lView=e,t}var f_=S(g({},Gt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=wn(e.lView);for(;t&&!xy(t[I]);)t=wn(t);t&&Jl(t)},consumerOnSignalRead(){this.lView[We]=this}});function xy(e){return e.type!==2}function Oy(e){if(e[bn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[bn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[R]&8192)}}var h_=100;function ky(e,t=0){let r=e[xt].rendererFactory,o=!1;o||r.begin?.();try{p_(e,t)}finally{o||r.end?.()}}function p_(e,t){let n=id();try{si(!0),xd(e,t);let r=0;for(;yi(e);){if(r===h_)throw new y(103,!1);r++,xd(e,1)}}finally{si(n)}}function g_(e,t,n,r){if(dr(t))return;let o=t[R],i=!1,s=!1;Ia(t);let a=!0,c=null,u=null;i||(xy(e)?(u=a_(t),c=Wt(u)):Ss()===null?(a=!1,u=d_(t),c=Wt(u)):t[We]&&(Dn(t[We]),t[We]=null));try{Ql(t),Lg(e.bindingStartIndex),n!==null&&Iy(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&ka(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Fa(t,f,0,null),md(t,0)}if(s||m_(t),Oy(t),Fy(t,0),e.contentQueries!==null&&iy(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&ka(t,f)}else{let f=e.contentHooks;f!==null&&Fa(t,f,1),md(t,1)}v_(e,t);let d=e.components;d!==null&&Ly(t,d,0);let h=e.viewQuery;if(h!==null&&Nd(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&ka(t,f)}else{let f=e.viewHooks;f!==null&&Fa(t,f,2),md(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ya]){for(let f of t[ya])f();t[ya]=null}i||(Ny(t),t[R]&=-73)}catch(l){throw i||io(t),l}finally{u!==null&&(vn(u,c),a&&u_(u)),Sa()}}function Fy(e,t){for(let n=Qm(e);n!==null;n=Jm(n))for(let r=oe;r<n.length;r++){let o=n[r];Py(o,t)}}function m_(e){for(let t=Qm(e);t!==null;t=Jm(t)){if(!(t[R]&2))continue;let n=t[lr];for(let r=0;r<n.length;r++){let o=n[r];Jl(o)}}}function y_(e,t,n){Z(G.ComponentStart);let r=it(t,e);try{Py(r,n)}finally{Z(G.ComponentEnd,r[ae])}}function Py(e,t){Ea(e)&&xd(e,t)}function xd(e,t){let r=e[I],o=e[R],i=e[We],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&jr(i)),s||=!1,i&&(i.dirty=!1),e[R]&=-9217,s)g_(r,e,r.template,e[ae]);else if(o&8192){let a=M(null);try{Oy(e),Fy(e,1);let c=r.components;c!==null&&Ly(e,c,1),Ny(e)}finally{M(a)}}}function Ly(e,t,n){for(let r=0;r<t.length;r++)y_(e,t[r],n)}function v_(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)Rn(~o);else{let i=o,s=n[++r],a=n[++r];Vg(s,i);let c=t[i];Z(G.HostBindingsUpdateStart,c);try{a(2,c)}finally{Z(G.HostBindingsUpdateEnd,c)}}}}finally{Rn(-1)}}function wf(e,t){let n=id()?64:1088;for(e[xt].changeDetectionScheduler?.notify(t);e;){e[R]|=n;let r=wn(e);if(oo(e)&&!r)return e;e=r}return null}function jy(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Vy(e,t){let n=oe+t;if(n<e.length)return e[n]}function dc(e,t,n,r=!0){let o=t[I];if(D_(o,t,e,n),r){let s=Rd(n,e),a=t[q],c=a.parentNode(e[Tn]);c!==null&&xw(o,e[rt],a,t,c,s)}let i=t[eo];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function By(e,t){let n=Ai(e,t);return n!==void 0&&sc(n[I],n),n}function Ai(e,t){if(e.length<=oe)return;let n=oe+t,r=e[n];if(r){let o=r[Mn];o!==null&&o!==e&&yf(o,r),t>0&&(e[n-1][nt]=r[nt]);let i=fi(e,oe+t);Rw(r[I],r);let s=i[Ot];s!==null&&s.detachView(i[I]),r[me]=null,r[nt]=null,r[R]&=-129}return r}function D_(e,t,n,r){let o=oe+r,i=n.length;r>0&&(n[o-1][nt]=t),r<i-oe?(t[nt]=n[o],jl(n,oe+r,t)):(n.push(t),t[nt]=null),t[me]=n;let s=t[Mn];s!==null&&n!==s&&Uy(s,t);let a=t[Ot];a!==null&&a.insertView(e),Ca(t),t[R]|=128}function Uy(e,t){let n=e[lr],r=t[me];if(kt(r))e[R]|=2;else{let o=r[me][Ge];t[Ge]!==o&&(e[R]|=2)}n===null?e[lr]=[t]:n.push(t)}var xn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[I];return Ti(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[ae]}set context(t){this._lView[ae]=t}get destroyed(){return dr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[me];if(gt(t)){let n=t[gi],r=n?n.indexOf(this):-1;r>-1&&(Ai(t,r),fi(n,r))}this._attachedToViewContainer=!1}sc(this._lView[I],this._lView)}onDestroy(t){Xl(this._lView,t)}markForCheck(){wf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[R]&=-129}reattach(){Ca(this._lView),this._lView[R]|=128}detectChanges(){this._lView[R]|=1024,ky(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=oo(this._lView),n=this._lView[Mn];n!==null&&!t&&yf(n,this._lView),wy(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new y(902,!1);this._appRef=t;let n=oo(this._lView),r=this._lView[Mn];r!==null&&!n&&Uy(r,this._lView),Ca(this._lView)}};var lo=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=E_;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=lc(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new xn(i)}}return e})();function E_(){return fc(Me(),F())}function fc(e,t){return e.type&4?new lo(t,e,go(e,t)):null}function hc(e,t,n,r,o){let i=e.data[t];if(i===null)i=C_(e,t,n,r,o),jg()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Og();i.injectorIndex=s===null?-1:s.injectorIndex}return so(i,!0),i}function C_(e,t,n,r,o){let i=rd(),s=od(),a=s?i:i&&i.parent,c=e.data[t]=w_(e,a,n,t,r,o);return b_(e,c,i,s),c}function b_(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 w_(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Ng()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,fieldIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function __(e){let t=e[Wl]??[],r=e[me][q],o=[];for(let i of t)i.data[ty]!==void 0?o.push(i):I_(i,r);e[Wl]=o}function I_(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[ey];for(;n<o;){let i=r.nextSibling;ly(t,r,!1),r=i,n++}}}var S_=()=>null,M_=()=>null;function Od(e,t){return S_(e,t)}function Hy(e,t,n){return M_(e,t,n)}var $y=class{},pc=class{},kd=class{resolveComponentFactory(t){throw new y(917,!1)}},Fi=class{static NULL=new kd},yr=class{},gc=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>T_()}return e})();function T_(){let e=F(),t=Me(),n=it(t.index,e);return(kt(n)?n:e)[q]}var zy=(()=>{class e{static \u0275prov=C({token:e,providedIn:"root",factory:()=>null})}return e})();var La={},Fd=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,La,r);return o!==La||n===La?o:this.parentInjector.get(t,n,r)}};function pm(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=la(o,a);else if(i==2){let c=a,u=t[++s];r=la(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Te(e,t=0){let n=F();if(n===null)return T(e,t);let r=Me();return Wm(r,n,_e(e),t)}function Gy(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}R_(e,t,n,a,i,c,u)}i!==null&&r!==null&&A_(n,r,i)}function A_(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 y(-301,!1);r.push(t[o],i)}}function N_(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function R_(e,t,n,r,o,i,s){let a=r.length,c=null;for(let h=0;h<a;h++){let f=r[h];c===null&&An(f)&&(c=f,N_(e,n,h)),Md(Ha(n,t),e,f.type)}L_(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let h=0;h<a;h++){let f=r[h];f.providersResolver&&f.providersResolver(f)}let u=!1,l=!1,d=vy(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(n.mergedAttrs=tf(n.mergedAttrs,f.hostAttrs),O_(e,n,t,d,f),P_(d,f,o),s!==null&&s.has(f)){let[D,v]=s.get(f);n.directiveToIndex.set(f.type,[d,D+n.directiveStart,v+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 m=f.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}x_(e,n,i)}function x_(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))gm(0,t,o,r),gm(1,t,o,r),ym(t,r,!1);else{let i=n.get(o);mm(0,t,i,r),mm(1,t,i,r),ym(t,r,!0)}}}function gm(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),Wy(t,i)}}function mm(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),Wy(t,s)}}function Wy(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function ym(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||df(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function O_(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Cn(o.type,!0)),s=new gr(i,An(o),Te,null);e.blueprint[r]=s,n[r]=s,k_(e,t,r,vy(e,n,o.hostVars,qe),o)}function k_(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;F_(s)!=a&&s.push(a),s.push(n,r,i)}}function F_(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function P_(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;An(t)&&(n[""]=e)}}function L_(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function _f(e,t,n,r,o,i,s,a){let c=t[I],u=c.consts,l=Ft(u,s),d=hc(c,e,n,r,l);return i&&Gy(c,t,d,Ft(u,a),o),d.mergedAttrs=tf(d.mergedAttrs,d.attrs),d.attrs!==null&&pm(d,d.attrs,!1),d.mergedAttrs!==null&&pm(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function If(e,t){jm(e,t),ql(t)&&e.queries.elementEnd(t)}function qy(e,t,n){return e[t]=n}function bt(e,t,n){if(n===qe)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function j_(e,t,n,r){let o=bt(e,t,n);return bt(e,t+1,r)||o}var mc=Symbol("CONTROL");function pr(e,t,n){return function r(o){let i=nn(e)?it(e.index,t):t;wf(i,5);let s=t[ae],a=vm(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=vm(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function vm(e,t,n,r){let o=M(null);try{return Z(G.OutputStart,t,n),n(r)!==!1}catch(i){return r_(e,i),!1}finally{Z(G.OutputEnd,t,n),M(o)}}function Pd(e,t,n,r,o,i,s,a){let c=ro(e),u=!1,l=null;if(!r&&c&&(l=B_(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=Se(e,n),h=r?r(d):d;Jb(n,h,i,a);let f=o.listen(h,i,a);if(!V_(i)){let m=r?D=>r(ot(D[e.index])):e.index;Zy(m,t,n,i,a,f,!1)}}return u}function V_(e){return e.startsWith("animation")||e.startsWith("transition")}function B_(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[to],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Zy(e,t,n,r,o,i,s){let a=t.firstCreatePass?td(t):null,c=ed(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function Wa(e,t,n,r,o,i){let s=t[n],a=t[I],u=a.data[n].outputs[r],d=s[u].subscribe(i);Zy(e.index,a,t,o,i,d,!0)}var Ld=Symbol("BINDING");var qa=class extends Fi{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Sn(t);return new fo(n,this.ngModule)}};function U_(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&ic.SignalBased)!==0};return o&&(i.transform=o),i})}function H_(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function $_(e,t,n){let r=t instanceof J?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Fd(n,r):n}function z_(e){let t=e.get(yr,null);if(t===null)throw new y(407,!1);let n=e.get(zy,null),r=e.get(_n,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function G_(e,t){let n=Ky(e);return cy(t,n,n==="svg"?Zl:n==="math"?bg:null)}function Ky(e){return(e.selectors[0][0]||"div").toLowerCase()}var fo=class extends pc{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=U_(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=H_(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=ww(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){Z(G.DynamicComponentStart);let a=M(null);try{let c=this.componentDef,u=W_(r,c,s,i),l=$_(c,o||this.ngModule,t),d=z_(l),h=d.rendererFactory.createRenderer(null,c),f=r?Gw(h,r,c.encapsulation,l):G_(c,h),m=s?.some(Dm)||i?.some(b=>typeof b!="function"&&b.bindings.some(Dm)),D=hf(null,u,null,512|yy(c),null,null,d,h,l,null,oy(f,l,!0));D[re]=f,Ia(D);let v=null;try{let b=_f(re,D,2,"#host",()=>u.directiveRegistry,!0,0);dy(h,f,b),uo(f,D),cc(u,D,b),cf(u,b,D),If(u,b),n!==void 0&&Z_(b,this.ngContentSelectors,n),v=it(b.index,D),D[ae]=v[ae],bf(u,D,null)}catch(b){throw v!==null&&Ad(v),Ad(D),b}finally{Z(G.DynamicComponentEnd),Sa()}return new Za(this.componentType,D,!!m)}finally{M(a)}}};function W_(e,t,n,r){let o=e?["ng-version","21.1.0"]:_w(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[Ld].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let h of d.bindings){a+=h[Ld].requiredVars;let f=l+1;h.create&&(h.targetIdx=f,(i??=[]).push(h)),h.update&&(h.targetIdx=f,(s??=[]).push(h))}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,h=Fl(d);c.push(h)}return ff(0,null,q_(i,s),1,a,c,null,null,null,[o],null)}function q_(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 Dm(e){let t=e[Ld].kind;return t==="input"||t==="twoWay"}var Za=class extends $y{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=mi(n[I],re),this.location=go(this._tNode,n),this.instance=it(this._tNode.index,n)[ae],this.hostView=this.changeDetectorRef=new xn(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=Cf(r,o[I],o,t,n);this.previousInputValues.set(t,n);let s=it(r.index,o);wf(s,1)}get injector(){return new hr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Z_(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 kn=(()=>{class e{static __NG_ELEMENT_ID__=K_}return e})();function K_(){let e=Me();return Qy(e,F())}var Y_=kn,Yy=class extends Y_{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return go(this._hostTNode,this._hostLView)}get injector(){return new hr(this._hostTNode,this._hostLView)}get parentInjector(){let t=nf(this._hostTNode,this._hostLView);if(Bm(t)){let n=Ba(t,this._hostLView),r=Va(t),o=n[I].data[r+8];return new hr(o,n)}else return new hr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Em(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-oe}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Od(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Mi(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!_b(t),u;if(c)u=n;else{let v=n||{};u=v.index,r=v.injector,o=v.projectableNodes,i=v.environmentInjector||v.ngModuleRef,s=v.directives,a=v.bindings}let l=c?t:new fo(Sn(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let b=(c?d:this.parentInjector).get(J,null);b&&(i=b)}let h=Sn(l.componentType??{}),f=Od(this._lContainer,h?.id??null),m=f?.firstChild??null,D=l.create(d,o,m,i,s,a);return this.insertImpl(D.hostView,u,Mi(this._hostTNode,f)),D}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(_g(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[me],u=new Yy(c,c[rt],c[me]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return dc(s,o,i,r),t.attachToViewContainerRef(),jl(Dd(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Em(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ai(this._lContainer,n);r&&(fi(Dd(this._lContainer),n),sc(r[I],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ai(this._lContainer,n);return r&&fi(Dd(this._lContainer),n)!=null?new xn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Em(e){return e[gi]}function Dd(e){return e[gi]||(e[gi]=[])}function Qy(e,t){let n,r=t[e.index];return gt(r)?n=r:(n=jy(r,t,null,e),t[e.index]=n,pf(t,n)),J_(n,t,e,r),new Yy(n,e,t)}function Q_(e,t){let n=e[q],r=n.createComment(""),o=Se(t,e),i=n.parentNode(o);return Ga(n,i,r,n.nextSibling(o),!1),r}var J_=tI,X_=()=>!1;function eI(e,t,n){return X_(e,t,n)}function tI(e,t,n,r){if(e[Tn])return;let o;n.type&8?o=ot(r):o=Q_(t,n),e[Tn]=o}var jd=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Vd=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++)Sf(t,n).matches!==null&&this.queries[n].setDirty()}},Bd=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=uI(t):this.predicate=t}},Ud=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)}},Hd=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,nI(n,i)),this.matchTNodeWithReadOption(t,n,Pa(n,t,i,!1,!1))}else r===lo?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Pa(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===at||o===kn||o===lo&&n.type&4)this.addMatch(n.index,-2);else{let i=Pa(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 nI(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 rI(e,t){return e.type&11?go(e,t):e.type&4?fc(e,t):null}function oI(e,t,n,r){return n===-1?rI(t,e):n===-2?iI(e,t,r):Ii(e,e[I],n,t)}function iI(e,t,n){if(n===at)return go(t,e);if(n===lo)return fc(t,e);if(n===kn)return Qy(t,e)}function Jy(e,t,n,r){let o=t[Ot].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{let l=i[u];a.push(oI(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function $d(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Jy(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];for(let d=oe;d<l.length;d++){let h=l[d];h[Mn]===h[me]&&$d(h[I],h,u,r)}if(l[lr]!==null){let d=l[lr];for(let h=0;h<d.length;h++){let f=d[h];$d(f[I],f,u,r)}}}}}return r}function sI(e,t){return e[Ot].queries[t].queryList}function aI(e,t,n){let r=new $a((n&4)===4);return nd(e,t,r,r.destroy),(t[Ot]??=new Vd).queries.push(new jd(r))-1}function cI(e,t,n){let r=Q();return r.firstCreatePass&&(lI(r,new Bd(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),aI(r,F(),t)}function uI(e){return e.split(",").map(t=>t.trim())}function lI(e,t,n){e.queries===null&&(e.queries=new Ud),e.queries.track(new Hd(t,n))}function Sf(e,t){return e.queries.getByIndex(t)}function dI(e,t){let n=e[I],r=Sf(n,t);return r.crossesNgTemplate?$d(n,e,t,[]):Jy(n,e,r,t)}var vr=class{},yc=class{};var Ka=class extends vr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new qa(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=kl(t);this._bootstrapComponents=gy(i.bootstrap),this._r3Injector=dd(t,n,[{provide:vr,useValue:this},{provide:Fi,useValue:this.componentFactoryResolver},...r],Jt(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Ya=class extends yc{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Ka(this.moduleType,t,[])}};var Ni=class extends vr{injector;componentFactoryResolver=new qa(this);instance=null;constructor(t){super();let n=new or([...t.providers,{provide:vr,useValue:this},{provide:Fi,useValue:this.componentFactoryResolver}],t.parent||pi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Pi(e,t,n=null){return new Ni({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var fI=(()=>{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=Ul(!1,n.type),o=r.length>0?Pi([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=C({token:e,providedIn:"environment",factory:()=>new e(T(J))})}return e})();function Pe(e){return xi(()=>{let t=Xy(e),n=S(g({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===rf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(fI).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||Be,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&On("NgStandalone"),ev(n);let r=e.dependencies;return n.directiveDefs=Cm(r,hI),n.pipeDefs=Cm(r,cg),n.id=mI(n),n})}function hI(e){return Sn(e)||Fl(e)}function wt(e){return xi(()=>({type:e.type,bootstrap:e.bootstrap||Be,declarations:e.declarations||Be,imports:e.imports||Be,exports:e.exports||Be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function pI(e,t){if(e==null)return sr;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=ic.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function gI(e){if(e==null)return sr;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function jt(e){return xi(()=>{let t=Xy(e);return ev(t),t})}function vc(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 Xy(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||sr,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Be,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:pI(e.inputs,t),outputs:gI(e.outputs),debugInfo:null}}function ev(e){e.features?.forEach(t=>t(e))}function Cm(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 mI(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 tv(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=tf(e.mergedAttrs,e.attrs);let l=e.tView=ff(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),so(e,!1);let c=vI(n,t,e,r);Ta()&&vf(n,t,c,e),uo(c,t);let u=jy(c,t,c,e);t[r+re]=u,pf(t,u),eI(u,e,t)}function yI(e,t,n,r,o,i,s,a,c,u,l){let d=n+re,h;return t.firstCreatePass?(h=hc(t,d,4,s||null,a||null),ba()&&Gy(t,e,h,Ft(t.consts,u),Ef),jm(t,h)):h=t.data[d],tv(h,e,t,n,r,o,i,c),ro(h)&&cc(t,e,h),u!=null&&uc(e,h,l),h}function Qa(e,t,n,r,o,i,s,a,c,u,l){let d=n+re,h;if(t.firstCreatePass){if(h=hc(t,d,4,s||null,a||null),u!=null){let f=Ft(t.consts,u);h.localNames=[];for(let m=0;m<f.length;m+=2)h.localNames.push(f[m],-1)}}else h=t.data[d];return tv(h,e,t,n,r,o,i,c),u!=null&&uc(e,h,l),h}function Dc(e,t,n,r,o,i,s,a){let c=F(),u=Q(),l=Ft(u.consts,i);return yI(c,u,e,t,n,r,o,l,void 0,s,a),Dc}var vI=DI;function DI(e,t,n,r){return Ei(!0),t[q].createComment("")}var Mf=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Ec(e){return typeof e=="function"&&e[te]!==void 0}var Tf=new E("");function sn(e){return!!e&&typeof e.then=="function"}function Af(e){return!!e&&typeof e.subscribe=="function"}var nv=new E("");var Nf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p(nv,{optional:!0})??[];injector=p(de);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=se(this.injector,o);if(sn(i))n.push(i);else if(Af(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Cc=new E("");function rv(){Zu(()=>{let e="";throw new y(600,e)})}function ov(e){return e.isBoundToModule}var EI=10;var wr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(st);afterRenderManager=p(Ey);zonelessEnabled=p(Ci);rootEffectScheduler=p(Ra);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ne;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(on);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe($(n=>!n))}constructor(){p(br,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(J);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=de.NULL){return this._injector.get(ke).run(()=>{Z(G.BootstrapComponentStart);let s=n instanceof pc;if(!this._injector.get(Nf).done){let m="";throw new y(405,m)}let c;s?c=n:c=this._injector.get(Fi).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=ov(c)?void 0:this._injector.get(vr),l=r||c.selector,d=c.create(o,[],l,u),h=d.location.nativeElement,f=d.injector.get(Tf,null);return f?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),_i(this.components,d),f?.unregisterApplication(h)}),this._loadComponent(d),Z(G.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Z(G.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(mf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Z(G.ChangeDetectionEnd),new y(101,!1);let n=M(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,M(n),this.afterTick.next(),Z(G.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(yr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<EI;){Z(G.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{Z(G.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!yi(o))continue;let i=r&&!this.zonelessEnabled?0:1;ky(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})=>yi(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;_i(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(Cc,[]).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),()=>_i(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new y(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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _i(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function _t(e,t,n,r){let o=F(),i=Nn();if(bt(o,i,t)){let s=Q(),a=vi();e_(a,o,e,t,n,r)}return _t}var BL=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function Le(){let e=F(),t=Q(),n=Me();t.firstCreatePass&&CI(t,n,e);let r=sv(n,e);r&&(On("NgSignalForms"),n.flags&1024?wm(e,n,r,"value"):n.flags&2048?wm(e,n,r,"checked"):n.flags&4096?SI(r):n.flags&8192&&TI(e,n,r),r.\u0275register())}function Ze(e,t,n){let r=F(),o=vi(),i=Nn();if(bt(r,i,e)){let s=Q();Sy(o,r,t,e,r[q],n)}iv(r,o)}function Rf(){let e=F(),t=vi();iv(e,t)}function iv(e,t){let n=sv(t,e);n&&(RI(e,t,n),t.flags&1024?_m(t,e,n,"value"):t.flags&2048?_m(t,e,n,"checked"):t.flags&4096?xI(t,e,n):OI(t,e,n)),Nn()}function CI(e,t,n){let r=t.inputs?.formField;if(!r||nn(t)&&r.includes(t.directiveStart+t.componentOffset))return;let o=r.find(s=>mc in n[s]);if(o===void 0)return;t.fieldIndex=o;let i=bI(t,n)||wI(e,t);if(!(_I(t)||i))throw new y(318,!1)}function bI(e,t){return t[e.fieldIndex].\u0275interopControl?(e.flags|=4096,!0):!1}function wI(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(bm(r,"value"))return t.flags|=1024,t.customControlIndex=n,!0;if(bm(r,"checked"))return t.flags|=2048,t.customControlIndex=n,!0}return!1}function _I(e){return MI(e)?(e.flags|=8192,kI(e)&&(e.flags|=16384),FI(e)&&(e.flags|=32768),!0):!1}function sv(e,t){let n=e.fieldIndex;return n===-1?null:t[n]}function bm(e,t){return II(e,t)&&av(e,t+"Change")}function II(e,t){return t in e.inputs}function av(e,t){return t in e.outputs}function wm(e,t,n,r){let o=Q(),i=t.customControlIndex,s=r+"Change";Wa(t,e,i,s,s,pr(t,e,l=>n.state().setControlValue(l)));let a=o.data[i],c="touchedChange";av(a,c)&&Wa(t,e,i,c,c,pr(t,e,()=>n.state().markAsTouched()));let u=e[i];n.focus=()=>u.focus?u.focus():n.element.focus()}function SI(e){let t=e.\u0275interopControl;t.registerOnChange(n=>e.state().setControlValue(n)),t.registerOnTouched(()=>e.state().markAsTouched()),e.focus=()=>e.element.focus()}function MI(e){if(e.type!==2)return!1;let t=e.value;return t==="input"||t==="textarea"||t==="select"}function TI(e,t,n){let r=Q(),o=e[q],i=Se(t,e),s=()=>{let c=n.state();c.setControlValue(PI(i,c.value))};Pd(t,r,e,void 0,o,"input",s,pr(t,e,s));let a=()=>{n.state().markAsTouched()};if(Pd(t,r,e,void 0,o,"blur",a,pr(t,e,a)),t.type===2&&t.value==="select"&&typeof MutationObserver=="function"){let c=AI(i,n);nd(r,e,c,c.disconnect)}n.focus=()=>i.focus()}function AI(e,t){let n=new MutationObserver(r=>{r.some(o=>NI(o))&&(e.value=t.state().value())});return n.observe(e,{attributes:!0,attributeFilter:["value"],characterData:!0,childList:!0,subtree:!0}),n}function NI(e){if(e.type==="childList"||e.type==="characterData"){if(e.target instanceof Comment)return!1;for(let t of e.addedNodes)if(!(t instanceof Comment))return!0;for(let t of e.removedNodes)if(!(t instanceof Comment))return!0;return!1}return e.type==="attributes"&&e.target instanceof HTMLOptionElement}function RI(e,t,n){if(n.classes){let r=wc(e);r.classes??={},n.state();let o=e[q],i=Se(t,e);for(let[s,a]of n.classes){let c=a();GI(r.classes,s,c)&&(c?o.addClass(i,s):o.removeClass(i,s))}}}function _m(e,t,n,r){let o=Q(),i=e.customControlIndex,s=t[i],a=o.data[i],c=n.state(),u=wc(t),l=c.controlValue();ho(u,kf,l)&&Si(a,s,r,l);let d=(e.flags&8192)!==0,h=d?Se(e,t):null,f=t[q];for(let m of Ff){let D=c[m]?.();if(ho(u,m,D)){let v=bc[m];xf(e,t,v,D),d&&!(v in a.inputs)&&Of(e,f,h,m,D,v)}}}function xI(e,t,n){let r=n.\u0275interopControl,o=wc(t),i=n.state(),s=(e.flags&8192)!==0,a=s?Se(e,t):null,c=t[q],u=i.value();ho(o,kf,u)&&L(()=>r.writeValue(u));for(let l of Ff){let d=i[l]?.();if(ho(o,l,d)){let h=bc[l],f=xf(e,t,h,d);l===uv?r.setDisabledState&&L(()=>r.setDisabledState(d)):s&&!f&&Of(e,c,a,l,d,h)}}}function OI(e,t,n){let r=Se(e,t),o=t[q],i=n.state(),s=wc(t),a=i.controlValue();ho(s,kf,a)&&LI(r,a);for(let c of Ff){let u=i[c]?.();if(ho(s,c,u)){let l=bc[c];Of(e,o,r,c,u,l),xf(e,t,l,u)}}}function xf(e,t,n,r){let o=e.inputs?.[n];if(o){let i=Q();for(let s of o){let a=i.data[s],c=t[s];Si(a,c,n,r)}return!0}return!1}function Of(e,t,n,r,o,i){switch(r){case HI:t.setAttribute(n,i,o);break;case uv:case $I:case zI:WI(t,n,i,o);break;case jI:case BI:e.flags&16384&&Sm(t,n,i,o);break;case VI:case UI:e.flags&32768&&Sm(t,n,i,o);break}}function cv(e){return e===null||e instanceof Date}function kI(e){if(!e.attrs||e.value!=="input")return!1;for(let t=0;t<e.attrs.length;t+=2){let n=e.attrs[t];if(ef(n))break;if(n==="type"){let r=e.attrs[t+1];return r==="date"||r==="datetime-local"||r==="month"||r==="number"||r==="range"||r==="time"||r==="week"}}return!1}function FI(e){return e.value!=="select"}function PI(e,t){switch(e.type){case"checkbox":return e.checked;case"number":case"range":case"datetime-local":if(typeof t()=="number")return e.valueAsNumber;break;case"date":case"month":case"time":case"week":let n=t();if(cv(n))return e.valueAsDate;if(typeof n=="number")return e.valueAsNumber;break}return e.value}function LI(e,t){switch(e.type){case"checkbox":e.checked=t;return;case"radio":e.checked=t===e.value;return;case"number":case"range":case"datetime-local":if(typeof t=="number"){Im(e,t);return}break;case"date":case"month":case"time":case"week":if(cv(t)){e.valueAsDate=t;return}else if(typeof t=="number"){Im(e,t);return}}e.value=t}function Im(e,t){isNaN(t)?e.value="":e.valueAsNumber=t}var uv=N({disabled:N}),jI=N({max:N}),VI=N({maxLength:N}),BI=N({min:N}),UI=N({minLength:N}),HI=N({name:N}),$I=N({readonly:N}),zI=N({required:N}),kf=N({controlValue:N}),bc={disabled:"disabled",disabledReasons:"disabledReasons",dirty:"dirty",errors:"errors",hidden:"hidden",invalid:"invalid",max:"max",maxLength:"maxLength",min:"min",minLength:"minLength",name:"name",pattern:"pattern",pending:"pending",readonly:"readonly",required:"required",touched:"touched"},Ff=Object.keys(bc);function wc(e){let t=Pg(),n=e[t];return n===qe&&(n=e[t]={}),n}function ho(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function GI(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function WI(e,t,n,r){r?e.setAttribute(t,n,""):e.removeAttribute(t,n)}function Sm(e,t,n,r){r!==void 0?e.setAttribute(t,n,r.toString()):e.removeAttribute(t,n)}var zd=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 Ed(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function qI(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){M(r);let u=t.length-1;for(M(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],h=Ed(s,l,s,d,n);if(h!==0){h<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),m=t[u],D=Ed(a,f,u,m,n);if(D!==0){D<0&&e.updateValue(a,m),a--,u--;continue}let v=n(s,l),b=n(a,f),ee=n(s,d);if(Object.is(ee,b)){let et=n(u,m);Object.is(et,v)?(e.swap(s,a),e.updateValue(a,m),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Ja,i??=Tm(e,s,a,n),Gd(e,o,s,ee))e.updateValue(s,d),s++,a++;else if(i.has(ee))o.set(v,e.detach(s)),a--;else{let et=e.create(s,t[s]);e.attach(s,et),s++,a++}}for(;s<=u;)Mm(e,o,n,s,t[s]),s++}else if(t!=null){M(r);let u=t[Symbol.iterator]();M(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),h=l.value,f=Ed(s,d,s,h,n);if(f!==0)f<0&&e.updateValue(s,h),s++,l=u.next();else{o??=new Ja,i??=Tm(e,s,a,n);let m=n(s,h);if(Gd(e,o,s,m))e.updateValue(s,h),s++,a++,l=u.next();else if(!i.has(m))e.attach(s,e.create(s,h)),s++,a++,l=u.next();else{let D=n(s,d);o.set(D,e.detach(s)),a--}}}for(;!l.done;)Mm(e,o,n,e.length,l.value),l=u.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u)})}function Gd(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Mm(e,t,n,r,o){if(Gd(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Tm(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 Ja=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 Ue(e,t,n,r,o,i,s,a){On("NgControlFlow");let c=F(),u=Q(),l=Ft(u.consts,i);return Qa(c,u,e,t,n,r,o,l,256,s,a),Pf}function Pf(e,t,n,r,o,i,s,a){On("NgControlFlow");let c=F(),u=Q(),l=Ft(u.consts,i);return Qa(c,u,e,t,n,r,o,l,512,s,a),Pf}function He(e,t){On("NgControlFlow");let n=F(),r=Nn(),o=n[r]!==qe?n[r]:-1,i=o!==-1?Xa(n,re+o):void 0,s=0;if(bt(n,r,e)){let a=M(null);try{if(i!==void 0&&By(i,s),e!==-1){let c=re+e,u=Xa(n,c),l=Kd(n[I],c),d=Hy(u,l,n),h=lc(n,l,t,{dehydratedView:d});dc(u,h,s,Mi(l,d))}}finally{M(a)}}else if(i!==void 0){let a=Vy(i,s);a!==void 0&&(a[ae]=t)}}var Wd=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-oe}};var qd=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Lf(e,t,n,r,o,i,s,a,c,u,l,d,h){On("NgControlFlow");let f=F(),m=Q(),D=c!==void 0,v=F(),b=a?s.bind(v[Ge][ae]):s,ee=new qd(D,b);v[re+e]=ee,Qa(f,m,e+1,t,n,r,o,Ft(m.consts,i),256),D&&Qa(f,m,e+2,c,u,l,d,Ft(m.consts,h),512)}var Zd=class extends zd{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-oe}at(t){return this.getLView(t)[ae].$implicit}attach(t,n){let r=n[eo];this.needsIndexUpdate||=t!==this.length,dc(this.lContainer,n,t,Mi(this.templateTNode,r)),ZI(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,KI(this.lContainer,t),YI(this.lContainer,t)}create(t,n){let r=Od(this.lContainer,this.templateTNode.tView.ssrId);return lc(this.hostLView,this.templateTNode,new Wd(this.lContainer,n,t),{dehydratedView:r})}destroy(t){sc(t[I],t)}updateValue(t,n){this.getLView(t)[ae].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ae].$index=t}getLView(t){return QI(this.lContainer,t)}};function jf(e){let t=M(null),n=rn();try{let r=F(),o=r[I],i=r[n],s=n+1,a=Xa(r,s);if(i.liveCollection===void 0){let u=Kd(o,s);i.liveCollection=new Zd(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(qI(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Nn(),l=c.length===0;if(bt(r,u,l)){let d=n+2,h=Xa(r,d);if(l){let f=Kd(o,d),m=Hy(h,f,r),D=lc(r,f,void 0,{dehydratedView:m});dc(h,D,0,Mi(f,m))}else o.firstUpdatePass&&__(h),By(h,0)}}}finally{M(t)}}function Xa(e,t){return e[t]}function ZI(e,t){if(e.length<=oe)return;let n=oe+t,r=e[n],o=r?r[ur]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[en];Aw(i,o),mr.delete(r[tn]),o.detachedLeaveAnimationFns=void 0}}function KI(e,t){if(e.length<=oe)return;let n=oe+t,r=e[n],o=r?r[ur]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function YI(e,t){return Ai(e,t)}function QI(e,t){return Vy(e,t)}function Kd(e,t){return mi(e,t)}function vo(e,t,n){let r=F(),o=Nn();if(bt(r,o,t)){let i=Q(),s=vi();Sy(s,r,e,t,r[q],n)}return vo}function Yd(e,t,n,r,o){Cf(t,e,n,o?"class":"style",r)}function _(e,t,n,r){let o=F(),i=o[I],s=e+re,a=i.firstCreatePass?_f(s,o,2,t,Ef,ba(),n,r):i.data[s];if(My(a,o,e,t,JI),ro(a)){let c=o[I];cc(c,o,a),cf(c,a,o)}return r!=null&&uc(o,a),_}function w(){let e=Q(),t=Me(),n=Ty(t);return e.firstCreatePass&&If(e,n),Rg(n)&&xg(),Ag(),n.classesWithoutHost!=null&&Nb(n)&&Yd(e,n,F(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Rb(n)&&Yd(e,n,F(),n.stylesWithoutHost,!1),w}function X(e,t,n,r){return _(e,t,n,r),w(),X}var JI=(e,t,n,r,o)=>(Ei(!0),cy(t[q],r,Wg()));function Vf(e,t,n){let r=F(),o=r[I],i=e+re,s=o.firstCreatePass?_f(i,r,8,"ng-container",Ef,ba(),t,n):o.data[i];if(My(s,r,e,"ng-container",XI),ro(s)){let a=r[I];cc(a,r,s),cf(a,s,r)}return n!=null&&uc(r,s),Vf}function Bf(){let e=Q(),t=Me(),n=Ty(t);return e.firstCreatePass&&If(e,n),Bf}function Do(e,t,n){return Vf(e,t,n),Bf(),Do}var XI=(e,t,n,r,o)=>(Ei(!0),cw(t[q],""));function _r(){return F()}var bi=void 0;function eS(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var tS=["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"]],bi,[["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"]],bi,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",bi,bi,bi],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",eS],Cd={};function Ke(e){let t=nS(e),n=Am(t);if(n)return n;let r=t.split("-")[0];if(n=Am(r),n)return n;if(r==="en")return tS;throw new y(701,!1)}function Am(e){return e in Cd||(Cd[e]=Xt.ng&&Xt.ng.common&&Xt.ng.common.locales&&Xt.ng.common.locales[e]),Cd[e]}var ce=(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})(ce||{});function nS(e){return e.toLowerCase().replace(/_/g,"-")}var Li="en-US";var rS=Li;function lv(e){typeof e=="string"&&(rS=e.toLowerCase().replace(/_/g,"-"))}function he(e,t,n){let r=F(),o=Q(),i=Me();return oS(o,r,r[q],i,e,t,n),he}function oS(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=pr(r,t,i),Pd(r,e,t,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let h=l[d],f=l[d+1];c??=pr(r,t,i),Wa(r,t,h,f,o,c)}if(u&&u.length)for(let d of u)c??=pr(r,t,i),Wa(r,t,d,o,o,c)}}function De(e=1){return Gg(e)}function _c(e,t,n){return cI(e,t,n),_c}function Ic(e){let t=F(),n=Q(),r=cd();_a(r+1);let o=Sf(n,r);if(e.dirty&&wg(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=dI(t,r);e.reset(i,zb),e.notifyOnChanges()}return!0}return!1}function Sc(){return sI(F(),cd())}function Uf(e){let t=Fg();return Da(t,re+e)}function Oa(e,t){return e<<17|t<<2}function Dr(e){return e>>17&32767}function iS(e){return(e&2)==2}function sS(e,t){return e&131071|t<<17}function Qd(e){return e|2}function po(e){return(e&131068)>>2}function bd(e,t){return e&-131069|t<<2}function aS(e){return(e&1)===1}function Jd(e){return e|1}function cS(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Dr(s),c=po(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Qr(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=Dr(e[a+1]);e[r+1]=Oa(h,a),h!==0&&(e[h+1]=bd(e[h+1],r)),e[a+1]=sS(e[a+1],r)}else e[r+1]=Oa(a,0),a!==0&&(e[a+1]=bd(e[a+1],r)),a=r;else e[r+1]=Oa(c,0),a===0?a=r:e[c+1]=bd(e[c+1],r),c=r;u&&(e[r+1]=Qd(e[r+1])),Nm(e,l,r,!0),Nm(e,l,r,!1),uS(t,l,e,r,i),s=Oa(a,c),i?t.classBindings=s:t.styleBindings=s}function uS(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Qr(i,t)>=0&&(n[r+1]=Jd(n[r+1]))}function Nm(e,t,n,r){let o=e[n+1],i=t===null,s=r?Dr(o):po(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];lS(c,t)&&(a=!0,e[s+1]=r?Jd(u):Qd(u)),s=r?Dr(u):po(u)}a&&(e[n+1]=r?Qd(o):Jd(o))}function lS(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Qr(e,t)>=0:!1}var Et={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function dS(e){return e.substring(Et.key,Et.keyEnd)}function fS(e){return hS(e),dv(e,fv(e,0,Et.textEnd))}function dv(e,t){let n=Et.textEnd;return n===t?-1:(t=Et.keyEnd=pS(e,Et.key=t,n),fv(e,t,n))}function hS(e){Et.key=0,Et.keyEnd=0,Et.value=0,Et.valueEnd=0,Et.textEnd=e.length}function fv(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function pS(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Eo(e,t,n){return hv(e,t,n,!1),Eo}function Mc(e,t){return hv(e,t,null,!0),Mc}function Hf(e){mS(bS,gS,e,!0)}function gS(e,t){for(let n=fS(t);n>=0;n=dv(t,n))ga(e,dS(t),!0)}function hv(e,t,n,r){let o=F(),i=Q(),s=ad(2);if(i.firstUpdatePass&&gv(i,e,s,r),t!==qe&&bt(o,s,t)){let a=i.data[rn()];mv(i,a,o,o[q],e,o[s+1]=_S(t,n),r,s)}}function mS(e,t,n,r){let o=Q(),i=ad(2);o.firstUpdatePass&&gv(o,null,i,r);let s=F();if(n!==qe&&bt(s,i,n)){let a=o.data[rn()];if(yv(a,r)&&!pv(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=la(c,n||"")),Yd(o,a,s,n,r)}else wS(o,a,s,s[q],s[i+1],s[i+1]=CS(e,t,n),r,i)}}function pv(e,t){return t>=e.expandoStartIndex}function gv(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[rn()],s=pv(e,n);yv(i,r)&&t===null&&!s&&(t=!1),t=yS(o,i,t,r),cS(o,i,t,n,s,r)}}function yS(e,t,n,r){let o=Ug(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=wd(null,e,t,n,r),n=Ri(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=wd(o,e,t,n,r),i===null){let c=vS(e,t,r);c!==void 0&&Array.isArray(c)&&(c=wd(null,e,t,c[1],r),c=Ri(c,t.attrs,r),DS(e,t,r,c))}else i=ES(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function vS(e,t,n){let r=n?t.classBindings:t.styleBindings;if(po(r)!==0)return e[Dr(r)]}function DS(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Dr(o)]=r}function ES(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Ri(r,s,n)}return Ri(r,t.attrs,n)}function wd(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=Ri(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Ri(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]),ga(e,s,n?!0:t[++i]))}return e===void 0?null:e}function CS(e,t,n){if(n==null||n==="")return Be;let r=[],o=ki(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 bS(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ga(e,r,n)}function wS(e,t,n,r,o,i,s,a){o===qe&&(o=Be);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let h=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,m=null,D;l===d?(c+=2,u+=2,h!==f&&(m=d,D=f)):d===null||l!==null&&l<d?(c+=2,m=l):(u+=2,m=d,D=f),m!==null&&mv(e,t,n,r,m,D,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null}}function mv(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=aS(u)?Rm(c,t,n,o,po(u),s):void 0;if(!ec(l)){ec(i)||iS(u)&&(i=Rm(c,null,n,o,a,s));let d=Kl(rn(),n);zw(r,s,d,o,i)}}function Rm(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===qe&&(h=d?Be:void 0);let f=d?ma(h,r):l===r?h:void 0;if(u&&!ec(f)&&(f=ma(c,r)),ec(f)&&(a=f,s))return a;let m=e[o+1];o=s?Dr(m):po(m)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=ma(c,r))}return a}function ec(e){return e!==void 0}function _S(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Jt(ki(e)))),e}function yv(e,t){return(e.flags&(t?8:16))!==0}function j(e,t=""){let n=F(),r=Q(),o=e+re,i=r.firstCreatePass?hc(r,o,1,t,null):r.data[o],s=IS(r,n,i,t,e);n[o]=s,Ta()&&vf(r,n,s,i),so(i,!1)}var IS=(e,t,n,r,o)=>(Ei(!0),sw(t[q],r));function SS(e,t,n,r=""){return bt(e,Nn(),n)?t+di(n)+r:qe}function je(e){return $f("",e),je}function $f(e,t,n){let r=F(),o=SS(r,e,t,n);return o!==qe&&MS(r,rn(),o),$f}function MS(e,t,n){let r=Kl(t,e);aw(e[q],r,n)}function xm(e,t,n){let r=Q();r.firstCreatePass&&vv(t,r.data,r.blueprint,An(e),n)}function vv(e,t,n,r,o){if(e=_e(e),Array.isArray(e))for(let i=0;i<e.length;i++)vv(e[i],t,n,r,o);else{let i=Q(),s=F(),a=Me(),c=rr(e)?e:_e(e.provide),u=$l(e),l=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(rr(e)||!e.multi){let f=new gr(u,o,Te,null),m=Id(c,t,o?l:l+h,d);m===-1?(Md(Ha(a,s),i,c),_d(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[m]=f,s[m]=f)}else{let f=Id(c,t,l+h,d),m=Id(c,t,l,l+h),D=f>=0&&n[f],v=m>=0&&n[m];if(o&&!v||!o&&!D){Md(Ha(a,s),i,c);let b=NS(o?AS:TS,n.length,o,r,u,e);!o&&v&&(n[m].providerFactory=b),_d(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(b),s.push(b)}else{let b=Dv(n[o?m:f],u,!o&&r);_d(i,e,f>-1?f:m,b)}!o&&r&&v&&n[m].componentProviders++}}}function _d(e,t,n,r){let o=rr(t),i=Dg(t);if(o||i){let c=(i?_e(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Dv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Id(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function TS(e,t,n,r,o){return Xd(this.multi,[])}function AS(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Ii(r,r[I],this.providerFactory.index,o);s=c.slice(0,a),Xd(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],Xd(i,s);return s}function Xd(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function NS(e,t,n,r,o,i){let s=new gr(e,n,Te,null);return s.multi=[],s.index=t,s.componentProviders=0,Dv(s,o,r&&!n),s}function Vt(e,t){return n=>{n.providersResolver=(r,o)=>xm(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>xm(r,o?o(t):t,!0))}}function Ev(e,t){let n=e[t];return n===qe?void 0:n}function RS(e,t,n,r,o,i){let s=t+n;return bt(e,s,o)?qy(e,s+1,i?r.call(i,o):r(o)):Ev(e,s+1)}function xS(e,t,n,r,o,i,s){let a=t+n;return j_(e,a,o,i)?qy(e,a+2,s?r.call(s,o,i):r(o,i)):Ev(e,a+2)}function Bt(e,t){let n=Q(),r,o=e+re;n.firstCreatePass?(r=OS(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=Cn(r.type,!0)),s,a=Oe(Te);try{let c=Ua(!1),u=i();return Ua(c),Yl(n,F(),o,u),u}finally{Oe(a)}}function OS(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Fn(e,t,n){let r=e+re,o=F(),i=Da(o,r);return Cv(o,r)?RS(o,sd(),t,i.transform,n,i):i.transform(n)}function zf(e,t,n,r){let o=e+re,i=F(),s=Da(i,o);return Cv(i,o)?xS(i,sd(),t,s.transform,n,r,s):s.transform(n,r)}function Cv(e,t){return e[I].data[t].pure}function Gf(e,t){return fc(e,t)}var tc=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Wf=(()=>{class e{compileModuleSync(n){return new Ya(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=kl(n),i=gy(o.declarations).reduce((s,a)=>{let c=Sn(a);return c&&s.push(new fo(c)),s},[]);return new tc(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var bv=(()=>{class e{applicationErrorHandler=p(st);appRef=p(wr);taskService=p(on);ngZone=p(ke);zonelessEnabled=p(Ci);tracing=p(br,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ge;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ai):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(gd,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Yg:fd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ai+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wv(){return[{provide:_n,useExisting:bv},{provide:ke,useClass:ci},{provide:Ci,useValue:!0}]}function kS(){return typeof $localize<"u"&&$localize.locale||Li}var ji=new E("",{factory:()=>p(ji,{optional:!0,skipSelf:!0})||kS()});function A(e,t){return Ms(e,t?.equal)}var FS=e=>e;function Ir(e,t){if(typeof e=="function"){let n=pl(e,FS,t?.equal);return _v(n,t?.debugName)}else{let n=pl(e.source,e.computation,e.equal);return _v(n,e.debugName)}}function _v(e,t){let n=e[te],r=e;return r.set=o=>ng(n,o),r.update=o=>rg(n,o),r.asReadonly=Aa.bind(e),r}var Sv=Symbol("InputSignalNode#UNSET"),XS=S(g({},As),{transformFn:void 0,applyValueToInputSignal(e,t){Kn(e,t)}});function Mv(e,t){let n=Object.create(XS);n.value=e,n.transformFn=t?.transform;function r(){if(qn(n),n.value===Sv){let o=null;throw new y(-950,o)}return n.value}return r[te]=n,r}var Ac=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Oi(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};function Iv(e,t){return Mv(e,t)}function eM(e){return Mv(Sv,e)}var Nc=(Iv.required=eM,Iv);var qf=new E(""),tM=new E("");function Vi(e){return!e.moduleRef}function nM(e){let t=Vi(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ke);return n.run(()=>{Vi(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(st),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Vi(e)){let i=()=>t.destroy(),s=e.platformInjector.get(qf);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(qf);s.add(i),e.moduleRef.onDestroy(()=>{_i(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return oM(r,n,()=>{let i=t.get(on),s=i.add(),a=t.get(Nf);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(ji,Li);if(lv(c||Li),!t.get(tM,!0))return Vi(e)?t.get(wr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Vi(e)){let l=t.get(wr);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return rM?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var rM;function oM(e,t,n){try{let r=n();return sn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Tc=null;function iM(e=[],t){return de.create({name:t,providers:[{provide:hi,useValue:"platform"},{provide:qf,useValue:new Set([()=>Tc=null])},...e]})}function sM(e=[]){if(Tc)return Tc;let t=iM(e);return Tc=t,rv(),aM(t),t}function aM(e){let t=e.get(rc,null);se(e,()=>{t?.forEach(n=>n())})}var cM=1e4;var nH=cM-1e3;var Ui=(()=>{class e{static __NG_ELEMENT_ID__=uM}return e})();function uM(e){return lM(Me(),F(),(e&16)===16)}function lM(e,t,n){if(nn(e)&&!n){let r=it(e.index,t);return new xn(r,r)}else if(e.type&175){let r=t[Ge];return new xn(r,t)}return null}function Tv(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;Z(G.BootstrapApplicationStart);try{let i=o?.injector??sM(r),s=[wv(),Jg,...n||[]],a=new Ni({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return nM({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{Z(G.BootstrapApplicationEnd)}}function Hi(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Rc(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Av=null;function an(){return Av}function Kf(e){Av??=e}var $i=class{},Co=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>p(Nv),providedIn:"platform"})}return e})();var Nv=(()=>{class e extends Co{_location;_history;_doc=p(fe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return an().getBaseHref(this._doc)}onPopState(n){let r=an().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=an().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Ov(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Rv(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Pn(e){return e&&e[0]!=="?"?`?${e}`:e}var bo=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>p(fM),providedIn:"root"})}return e})(),dM=new E(""),fM=(()=>{class e extends bo{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(fe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Ov(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Pn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Pn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Pn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(T(Co),T(dM,8))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wo=(()=>{class e{_subject=new ne;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=gM(Rv(xv(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Pn(r))}normalize(n){return e.stripTrailingSlash(pM(this._basePath,xv(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Pn;static joinWithSlash=Ov;static stripTrailingSlash=Rv;static \u0275fac=function(r){return new(r||e)(T(bo))};static \u0275prov=C({token:e,factory:()=>hM(),providedIn:"root"})}return e})();function hM(){return new wo(T(bo))}function pM(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function xv(e){return e.replace(/\/index.html$/,"")}function gM(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Ae=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Ae||{}),K=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(K||{}),$e=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})($e||{}),un={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 Fv(e){return Ke(e)[ce.LocaleId]}function Pv(e,t,n){let r=Ke(e),o=[r[ce.DayPeriodsFormat],r[ce.DayPeriodsStandalone]],i=ct(o,t);return ct(i,n)}function Lv(e,t,n){let r=Ke(e),o=[r[ce.DaysFormat],r[ce.DaysStandalone]],i=ct(o,t);return ct(i,n)}function jv(e,t,n){let r=Ke(e),o=[r[ce.MonthsFormat],r[ce.MonthsStandalone]],i=ct(o,t);return ct(i,n)}function Vv(e,t){let r=Ke(e)[ce.Eras];return ct(r,t)}function zi(e,t){let n=Ke(e);return ct(n[ce.DateFormat],t)}function Gi(e,t){let n=Ke(e);return ct(n[ce.TimeFormat],t)}function Wi(e,t){let r=Ke(e)[ce.DateTimeFormat];return ct(r,t)}function qi(e,t){let n=Ke(e),r=n[ce.NumberSymbols][t];if(typeof r>"u"){if(t===un.CurrencyDecimal)return n[ce.NumberSymbols][un.Decimal];if(t===un.CurrencyGroup)return n[ce.NumberSymbols][un.Group]}return r}function Bv(e){if(!e[ce.ExtraData])throw new y(2303,!1)}function Uv(e){let t=Ke(e);return Bv(t),(t[ce.ExtraData][2]||[]).map(r=>typeof r=="string"?Yf(r):[Yf(r[0]),Yf(r[1])])}function Hv(e,t,n){let r=Ke(e);Bv(r);let o=[r[ce.ExtraData][0],r[ce.ExtraData][1]],i=ct(o,t)||[];return ct(i,n)||[]}function ct(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new y(2304,!1)}function Yf(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var mM=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xc={},yM=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function $v(e,t,n,r){let o=SM(e);t=cn(n,t)||t;let s=[],a;for(;t;)if(a=yM.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Gv(r,c),o=IM(o,r));let u="";return s.forEach(l=>{let d=wM(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Lc(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function cn(e,t){let n=Fv(e);if(xc[n]??={},xc[n][t])return xc[n][t];let r="";switch(t){case"shortDate":r=zi(e,$e.Short);break;case"mediumDate":r=zi(e,$e.Medium);break;case"longDate":r=zi(e,$e.Long);break;case"fullDate":r=zi(e,$e.Full);break;case"shortTime":r=Gi(e,$e.Short);break;case"mediumTime":r=Gi(e,$e.Medium);break;case"longTime":r=Gi(e,$e.Long);break;case"fullTime":r=Gi(e,$e.Full);break;case"short":let o=cn(e,"shortTime"),i=cn(e,"shortDate");r=Oc(Wi(e,$e.Short),[o,i]);break;case"medium":let s=cn(e,"mediumTime"),a=cn(e,"mediumDate");r=Oc(Wi(e,$e.Medium),[s,a]);break;case"long":let c=cn(e,"longTime"),u=cn(e,"longDate");r=Oc(Wi(e,$e.Long),[c,u]);break;case"full":let l=cn(e,"fullTime"),d=cn(e,"fullDate");r=Oc(Wi(e,$e.Full),[l,d]);break}return r&&(xc[n][t]=r),r}function Oc(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function It(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 vM(e,t){return It(e,3).substring(0,t)}function pe(e,t,n=0,r=!1,o=!1){return function(i,s){let a=DM(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return vM(a,t);let c=qi(s,un.MinusSign);return It(a,t,c,r,o)}}function DM(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 y(2301,!1)}}function Y(e,t,n=Ae.Format,r=!1){return function(o,i){return EM(o,i,e,t,n,r)}}function EM(e,t,n,r,o,i){switch(n){case 2:return jv(t,o,r)[e.getMonth()];case 1:return Lv(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Uv(t),l=Hv(t,o,r),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,m]=h,D=s>=f.hours&&a>=f.minutes,v=s<m.hours||s===m.hours&&a<m.minutes;if(f.hours<m.hours){if(D&&v)return!0}else if(D||v)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return Pv(t,o,r)[s<12?0:1];case 3:return Vv(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new y(2302,!1)}}function kc(e){return function(t,n,r){let o=-1*r,i=qi(n,un.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+It(s,2,i)+It(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+It(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+It(s,2,i)+":"+It(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+It(s,2,i)+":"+It(Math.abs(o%60),2,i);default:throw new y(2310,!1)}}}var CM=0,Pc=4;function bM(e){let t=Lc(e,CM,1).getDay();return Lc(e,0,1+(t<=Pc?Pc:Pc+7)-t)}function zv(e){let t=e.getDay(),n=t===0?-3:Pc-t;return Lc(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Qf(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=zv(n),s=bM(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return It(o,e,qi(r,un.MinusSign))}}function Fc(e,t=!1){return function(n,r){let i=zv(n).getFullYear();return It(i,e,qi(r,un.MinusSign),t)}}var Jf={};function wM(e){if(Jf[e])return Jf[e];let t;switch(e){case"G":case"GG":case"GGG":t=Y(3,K.Abbreviated);break;case"GGGG":t=Y(3,K.Wide);break;case"GGGGG":t=Y(3,K.Narrow);break;case"y":t=pe(0,1,0,!1,!0);break;case"yy":t=pe(0,2,0,!0,!0);break;case"yyy":t=pe(0,3,0,!1,!0);break;case"yyyy":t=pe(0,4,0,!1,!0);break;case"Y":t=Fc(1);break;case"YY":t=Fc(2,!0);break;case"YYY":t=Fc(3);break;case"YYYY":t=Fc(4);break;case"M":case"L":t=pe(1,1,1);break;case"MM":case"LL":t=pe(1,2,1);break;case"MMM":t=Y(2,K.Abbreviated);break;case"MMMM":t=Y(2,K.Wide);break;case"MMMMM":t=Y(2,K.Narrow);break;case"LLL":t=Y(2,K.Abbreviated,Ae.Standalone);break;case"LLLL":t=Y(2,K.Wide,Ae.Standalone);break;case"LLLLL":t=Y(2,K.Narrow,Ae.Standalone);break;case"w":t=Qf(1);break;case"ww":t=Qf(2);break;case"W":t=Qf(1,!0);break;case"d":t=pe(2,1);break;case"dd":t=pe(2,2);break;case"c":case"cc":t=pe(7,1);break;case"ccc":t=Y(1,K.Abbreviated,Ae.Standalone);break;case"cccc":t=Y(1,K.Wide,Ae.Standalone);break;case"ccccc":t=Y(1,K.Narrow,Ae.Standalone);break;case"cccccc":t=Y(1,K.Short,Ae.Standalone);break;case"E":case"EE":case"EEE":t=Y(1,K.Abbreviated);break;case"EEEE":t=Y(1,K.Wide);break;case"EEEEE":t=Y(1,K.Narrow);break;case"EEEEEE":t=Y(1,K.Short);break;case"a":case"aa":case"aaa":t=Y(0,K.Abbreviated);break;case"aaaa":t=Y(0,K.Wide);break;case"aaaaa":t=Y(0,K.Narrow);break;case"b":case"bb":case"bbb":t=Y(0,K.Abbreviated,Ae.Standalone,!0);break;case"bbbb":t=Y(0,K.Wide,Ae.Standalone,!0);break;case"bbbbb":t=Y(0,K.Narrow,Ae.Standalone,!0);break;case"B":case"BB":case"BBB":t=Y(0,K.Abbreviated,Ae.Format,!0);break;case"BBBB":t=Y(0,K.Wide,Ae.Format,!0);break;case"BBBBB":t=Y(0,K.Narrow,Ae.Format,!0);break;case"h":t=pe(3,1,-12);break;case"hh":t=pe(3,2,-12);break;case"H":t=pe(3,1);break;case"HH":t=pe(3,2);break;case"m":t=pe(4,1);break;case"mm":t=pe(4,2);break;case"s":t=pe(5,1);break;case"ss":t=pe(5,2);break;case"S":t=pe(6,1);break;case"SS":t=pe(6,2);break;case"SSS":t=pe(6,3);break;case"Z":case"ZZ":case"ZZZ":t=kc(0);break;case"ZZZZZ":t=kc(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=kc(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=kc(2);break;default:return null}return Jf[e]=t,t}function Gv(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function _M(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function IM(e,t,n){let o=e.getTimezoneOffset(),i=Gv(t,o);return _M(e,-1*(i-o))}function SM(e){if(kv(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 Lc(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(mM))return MM(r)}let t=new Date(e);if(!kv(t))throw new y(2311,!1);return t}function MM(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function kv(e){return e instanceof Date&&!isNaN(e.valueOf())}var Xf=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(Te(kn))};static \u0275dir=jt({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Er]})}return e})();function TM(e,t){return new y(2100,!1)}var AM="mediumDate",Wv=new E(""),qv=new E(""),eh=(()=>{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??AM,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return $v(n,s,i||this.locale,a)}catch(s){throw TM(e,s.message)}}static \u0275fac=function(r){return new(r||e)(Te(ji,16),Te(Wv,24),Te(qv,24))};static \u0275pipe=vc({name:"date",type:e,pure:!0})}return e})();var Zi=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=vc({name:"json",type:e,pure:!1})}return e})();var ut=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=wt({type:e});static \u0275inj=tt({})}return e})();function Ki(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 Sr=class{};var th="browser";function Zv(e){return e===th}var Yi=class{_doc;constructor(t){this._doc=t}manager},Vc=(()=>{class e extends Yi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(T(fe))};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),Hc=new E(""),ih=(()=>{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 Vc));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Vc);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 y(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(T(Hc),T(ke))};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),nh="ng-app-id";function Kv(e){for(let t of e)t.remove()}function Yv(e,t){let n=t.createElement("style");return n.textContent=e,n}function RM(e,t,n,r){let o=e.head?.querySelectorAll(`style[${nh}="${t}"],link[${nh}="${t}"]`);if(o)for(let i of o)i.removeAttribute(nh),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 oh(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var sh=(()=>{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,RM(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Yv);r?.forEach(o=>this.addUsage(o,this.external,oh))}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&&(Kv(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Kv(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Yv(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,oh(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(T(fe),T(mo),T(yo,8),T(Cr))};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),rh={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"},ah=/%COMP%/g;var Jv="%COMP%",xM=`_nghost-${Jv}`,OM=`_ngcontent-${Jv}`,kM=!0,FM=new E("",{factory:()=>kM});function PM(e){return OM.replace(ah,e)}function LM(e){return xM.replace(ah,e)}function Xv(e,t){return t.map(n=>n.replace(ah,e))}var ch=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new Qi(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Uc?o.applyToHost(n):o instanceof Ji&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case Ct.Emulated:i=new Uc(c,u,r,this.appId,l,s,a,d);break;case Ct.ShadowDom:return new Bc(c,n,r,s,a,this.nonce,d,u);case Ct.ExperimentalIsolatedShadowDom:return new Bc(c,n,r,s,a,this.nonce,d);default:i=new Ji(c,u,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(T(ih),T(sh),T(mo),T(FM),T(fe),T(ke),T(yo),T(br,8))};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),Qi=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(rh[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Qv(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Qv(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 y(-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=rh[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=rh[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&(Lt.DashCase|Lt.Important)?t.style.setProperty(n,r,o&Lt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Lt.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=an().getGlobalEventTarget(this.doc,t),!t))throw new y(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 Qv(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Bc=class extends Qi{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=Xv(r.id,u);for(let d of u){let h=document.createElement("style");s&&h.setAttribute("nonce",s),h.textContent=d,this.shadowRoot.appendChild(h)}let l=r.getExternalStyles?.();if(l)for(let d of l){let h=oh(d,o);s&&h.setAttribute("nonce",s),this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Ji=class extends Qi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?Xv(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&mr.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Uc=class extends Ji{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=PM(u),this.hostAttr=LM(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 $c=class e extends $i{supportsDOMEvents=!0;static makeCurrent(){Kf(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=jM();return n==null?null:VM(n)}resetBaseElement(){Xi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ki(document.cookie,t)}},Xi=null;function jM(){return Xi=Xi||document.head.querySelector("base"),Xi?Xi.getAttribute("href"):null}function VM(e){return new URL(e,document.baseURI).pathname}var BM=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),eD=["alt","control","meta","shift"],UM={"\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"},HM={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},tD=(()=>{class e extends Yi{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(()=>an().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."),eD.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=UM[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"),eD.forEach(s=>{if(s!==o){let a=HM[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(T(fe))};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})();async function uh(e,t,n){let r=g({rootComponent:e},$M(t,n));return Tv(r)}function $M(e,t){return{platformRef:t?.platformRef,appProviders:[...ZM,...e?.providers??[]],platformProviders:qM}}function zM(){$c.makeCurrent()}function GM(){return new Rt}function WM(){return of(document),document}var qM=[{provide:Cr,useValue:th},{provide:rc,useValue:zM,multi:!0},{provide:fe,useFactory:WM}];var ZM=[{provide:hi,useValue:"root"},{provide:Rt,useFactory:GM},{provide:Hc,useClass:Vc,multi:!0},{provide:Hc,useClass:tD,multi:!0},ch,sh,ih,{provide:yr,useExisting:ch},{provide:Sr,useClass:BM},[]];var Ln=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
- `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Gc=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()}},Wc=class{encodeKey(t){return nD(t)}encodeValue(t){return nD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function KM(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 YM=/%(\d[a-f0-9])/gi,QM={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function nD(e){return encodeURIComponent(e).replace(YM,(t,n)=>QM[n]??t)}function zc(e){return`${e}`}var St=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Wc,t.fromString){if(t.fromObject)throw new y(2805,!1);this.map=KM(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(zc):[zc(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(zc(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(zc(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function JM(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function rD(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function oD(e){return typeof Blob<"u"&&e instanceof Blob}function iD(e){return typeof FormData<"u"&&e instanceof FormData}function XM(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var sD="Content-Type",aD="Accept",uD="text/plain",lD="application/json",eT=`${lD}, ${uD}, */*`,_o=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(JM(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 y(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&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new Ln,this.context??=new Gc,!this.params)this.params=new St,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"||rD(this.body)||oD(this.body)||iD(this.body)||XM(this.body)?this.body:this.body instanceof St?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||iD(this.body)?null:oD(this.body)?this.body.type||null:rD(this.body)?null:typeof this.body=="string"?uD:this.body instanceof St?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?lD:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer||this.referrer,h=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,m=t.transferCache??this.transferCache,D=t.timeout??this.timeout,v=t.body!==void 0?t.body:this.body,b=t.withCredentials??this.withCredentials,ee=t.reportProgress??this.reportProgress,et=t.headers||this.headers,ye=t.params||this.params,qo=t.context??this.context;return t.setHeaders!==void 0&&(et=Object.keys(t.setHeaders).reduce((Zo,Gn)=>Zo.set(Gn,t.setHeaders[Gn]),et)),t.setParams&&(ye=Object.keys(t.setParams).reduce((Zo,Gn)=>Zo.set(Gn,t.setParams[Gn]),ye)),new e(n,r,v,{params:ye,headers:et,context:qo,reportProgress:ee,responseType:o,withCredentials:b,transferCache:m,keepalive:i,cache:a,priority:s,timeout:D,mode:c,redirect:u,credentials:l,referrer:d,integrity:h,referrerPolicy:f})}},Mr=(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})(Mr||{}),So=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new Ln,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},qc=class e extends So{constructor(t={}){super(t)}type=Mr.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})}},es=class e extends So{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Mr.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},Io=class extends So{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}},tT=200,nT=204;var rT=new E("");var oT=/^\)\]\}',?\n/;var dh=(()=>{class e{xhrFactory;tracingService=p(br,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new y(-2800,!1);let r=this.xhrFactory;return P(null).pipe(ht(()=>new B(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((v,b)=>s.setRequestHeader(v,b.join(","))),n.headers.has(aD)||s.setRequestHeader(aD,eT),!n.headers.has(sD)){let v=n.detectContentTypeHeader();v!==null&&s.setRequestHeader(sD,v)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let v=n.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let v=s.statusText||"OK",b=new Ln(s.getAllResponseHeaders()),ee=s.responseURL||n.url;return c=new qc({headers:b,status:s.status,statusText:v,url:ee}),c},l=this.maybePropagateTrace(()=>{let{headers:v,status:b,statusText:ee,url:et}=u(),ye=null;b!==nT&&(ye=typeof s.response>"u"?s.responseText:s.response),b===0&&(b=ye?tT:0);let qo=b>=200&&b<300;if(n.responseType==="json"&&typeof ye=="string"){let Zo=ye;ye=ye.replace(oT,"");try{ye=ye!==""?JSON.parse(ye):null}catch(Gn){ye=Zo,qo&&(qo=!1,ye={error:Gn,text:ye})}}qo?(i.next(new es({body:ye,headers:v,status:b,statusText:ee,url:et||void 0})),i.complete()):i.error(new Io({error:ye,headers:v,status:b,statusText:ee,url:et||void 0}))}),d=this.maybePropagateTrace(v=>{let{url:b}=u(),ee=new Io({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:b||void 0});i.error(ee)}),h=d;n.timeout&&(h=this.maybePropagateTrace(v=>{let{url:b}=u(),ee=new Io({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:b||void 0});i.error(ee)}));let f=!1,m=this.maybePropagateTrace(v=>{f||(i.next(u()),f=!0);let b={type:Mr.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(b.total=v.total),n.responseType==="text"&&s.responseText&&(b.partialText=s.responseText),i.next(b)}),D=this.maybePropagateTrace(v=>{let b={type:Mr.UploadProgress,loaded:v.loaded};v.lengthComputable&&(b.total=v.total),i.next(b)});return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",m),a!==null&&s.upload&&s.upload.addEventListener("progress",D)),s.send(a),i.next({type:Mr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",h),n.reportProgress&&(s.removeEventListener("progress",m),a!==null&&s.upload&&s.upload.removeEventListener("progress",D)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(T(Sr))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function dD(e,t){return t(e)}function iT(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function sT(e,t,n){return(r,o)=>se(n,()=>t(r,i=>e(i,o)))}var fD=new E(""),fh=new E("",{factory:()=>[]}),hD=new E(""),hh=new E("",{factory:()=>!0});function aT(){let e=null;return(t,n)=>{e===null&&(e=(p(fD,{optional:!0})??[]).reduceRight(iT,dD));let r=p(fr);if(p(hh)){let i=r.add();return e(t,n).pipe(Zr(i))}else return e(t,n)}}var ph=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(dh),o},providedIn:"root"})}return e})();var Zc=(()=>{class e{backend;injector;chain=null;pendingTasks=p(fr);contributeToStability=p(hh);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(fh),...this.injector.get(hD,[])]));this.chain=r.reduceRight((o,i)=>sT(o,i,this.injector),dD)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Zr(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(T(ph),T(J))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(Zc),o},providedIn:"root"})}return e})();function lh(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}var Kc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof _o)i=n;else{let c;o.headers instanceof Ln?c=o.headers:c=new Ln(o.headers);let u;o.params&&(o.params instanceof St?u=o.params:u=new St({fromObject:o.params})),i=new _o(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=P(i).pipe(qr(c=>this.handler.handle(c)));if(n instanceof _o||o.observe==="events")return s;let a=s.pipe(ft(c=>c instanceof es));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe($(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new y(2806,!1);return c.body}));case"blob":return a.pipe($(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new y(2807,!1);return c.body}));case"text":return a.pipe($(c=>{if(c.body!==null&&typeof c.body!="string")throw new y(2808,!1);return c.body}));default:return a.pipe($(c=>c.body))}case"response":return a;default:throw new y(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 St().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,lh(o,r))}post(n,r,o={}){return this.request("POST",n,lh(o,r))}put(n,r,o={}){return this.request("PUT",n,lh(o,r))}static \u0275fac=function(r){return new(r||e)(T(gh))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var cT=new E("",{factory:()=>!0}),uT="XSRF-TOKEN",lT=new E("",{factory:()=>uT}),dT="X-XSRF-TOKEN",fT=new E("",{factory:()=>dT}),hT=(()=>{class e{cookieName=p(lT);doc=p(fe);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ki(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),pD=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=T(hT),o},providedIn:"root"})}return e})();function pT(e,t){if(!p(cT)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=p(Co).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch{return t(e)}let n=p(pD).getToken(),r=p(fT);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}var mh=(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})(mh||{});function gT(e,t){return{\u0275kind:e,\u0275providers:t}}function yh(...e){let t=[Kc,Zc,{provide:gh,useExisting:Zc},{provide:ph,useFactory:()=>p(rT,{optional:!0})??p(dh)},{provide:fh,useValue:pT,multi:!0}];for(let n of e)t.push(...n.\u0275providers);return Xr(t)}var cD=new E("");function vh(){return gT(mh.LegacyInterceptors,[{provide:cD,useFactory:aT},{provide:fh,useExisting:cD,multi:!0}])}var gD=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(T(fe))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var x="primary",fs=Symbol("RouteTitle"),wh=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Nr(e){return new wh(e)}function Dh(e,t,n){for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(o[0]===":")n[o.substring(1)]=i;else if(o!==i.path)return!1}return!0}function ID(e,t,n){let r=n.path.split("/"),o=r.indexOf("**");if(o===-1){if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return Dh(r,u,c)?{consumed:u,posParams:c}:null}if(o!==r.lastIndexOf("**"))return null;let i=r.slice(0,o),s=r.slice(o+1);if(i.length+s.length>e.length||n.pathMatch==="full"&&t.hasChildren()&&n.path!=="**")return null;let a={};return!Dh(i,e.slice(0,i.length),a)||!Dh(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function tu(e){return new Promise((t,n)=>{e.pipe(Yt()).subscribe({next:r=>t(r),error:r=>n(r)})})}function yT(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Ut(e[n],t[n]))return!1;return!0}function Ut(e,t){let n=e?_h(e):void 0,r=t?_h(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!SD(e[o],t[o]))return!1;return!0}function _h(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function SD(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function vT(e){return e.length>0?e[e.length-1]:null}function Or(e){return Qs(e)?e:sn(e)?le(Promise.resolve(e)):P(e)}function MD(e){return Qs(e)?tu(e):Promise.resolve(e)}var DT={exact:AD,subset:ND},TD={exact:ET,subset:CT,ignored:()=>!0};function mD(e,t,n){return DT[n.paths](e.root,t.root,n.matrixParams)&&TD[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function ET(e,t){return Ut(e,t)}function AD(e,t,n){if(!Tr(e.segments,t.segments)||!Jc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!AD(e.children[r],t.children[r],n))return!1;return!0}function CT(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>SD(e[n],t[n]))}function ND(e,t,n){return RD(e,t,t.segments,n)}function RD(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Tr(o,n)||t.hasChildren()||!Jc(o,n,r))}else if(e.segments.length===n.length){if(!Tr(e.segments,n)||!Jc(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!ND(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Tr(e.segments,o)||!Jc(e.segments,o,r)||!e.children[x]?!1:RD(e.children[x],t,i,r)}}function Jc(e,t,n){return t.every((r,o)=>TD[n](e[o].parameters,r.parameters))}var Tt=class{root;queryParams;fragment;_queryParamMap;constructor(t=new W([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Nr(this.queryParams),this._queryParamMap}toString(){return _T.serialize(this)}},W=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Xc(this)}},jn=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Nr(this.parameters),this._parameterMap}toString(){return OD(this)}};function bT(e,t){return Tr(e,t)&&e.every((n,r)=>Ut(n.parameters,t[r].parameters))}function Tr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function wT(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===x&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==x&&(n=n.concat(t(o,r)))}),n}var hs=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>new Vn,providedIn:"root"})}return e})(),Vn=class{parse(t){let n=new Sh(t);return new Tt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${ts(t.root,!0)}`,r=MT(t.queryParams),o=typeof t.fragment=="string"?`#${IT(t.fragment)}`:"";return`${n}${r}${o}`}},_T=new Vn;function Xc(e){return e.segments.map(t=>OD(t)).join("/")}function ts(e,t){if(!e.hasChildren())return Xc(e);if(t){let n=e.children[x]?ts(e.children[x],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==x&&r.push(`${o}:${ts(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=wT(e,(r,o)=>o===x?[ts(e.children[x],!1)]:[`${o}:${ts(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[x]!=null?`${Xc(e)}/${n[0]}`:`${Xc(e)}/(${n.join("//")})`}}function xD(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Yc(e){return xD(e).replace(/%3B/gi,";")}function IT(e){return encodeURI(e)}function Ih(e){return xD(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function eu(e){return decodeURIComponent(e)}function yD(e){return eu(e.replace(/\+/g,"%20"))}function OD(e){return`${Ih(e.path)}${ST(e.parameters)}`}function ST(e){return Object.entries(e).map(([t,n])=>`;${Ih(t)}=${Ih(n)}`).join("")}function MT(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Yc(n)}=${Yc(o)}`).join("&"):`${Yc(n)}=${Yc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var TT=/^[^\/()?;#]+/;function Eh(e){let t=e.match(TT);return t?t[0]:""}var AT=/^[^\/()?;=#]+/;function NT(e){let t=e.match(AT);return t?t[0]:""}var RT=/^[^=?&#]+/;function xT(e){let t=e.match(RT);return t?t[0]:""}var OT=/^[^&#]+/;function kT(e){let t=e.match(OT);return t?t[0]:""}var Sh=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new W([],{}):new W([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[x]=new W(t,n)),r}parseSegment(){let t=Eh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(t),new jn(eu(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=NT(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Eh(this.remaining);o&&(r=o,this.capture(r))}t[eu(n)]=eu(r)}parseQueryParam(t){let n=xT(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=kT(this.remaining);s&&(r=s,this.capture(r))}let o=yD(n),i=yD(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Eh(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new y(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=x);let s=this.parseChildren();n[i??x]=Object.keys(s).length===1&&s[x]?s[x]:new W([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new y(4011,!1)}};function kD(e){return e.segments.length>0?new W([],{[x]:e}):e}function FD(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=FD(o);if(r===x&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new W(e.segments,t);return FT(n)}function FT(e){if(e.numberOfChildren===1&&e.children[x]){let t=e.children[x];return new W(e.segments.concat(t.segments),t.children)}return e}function Bn(e){return e instanceof Tt}function PD(e,t,n=null,r=null,o=new Vn){let i=LD(e);return jD(i,t,n,r,o)}function LD(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new W(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=kD(r);return t??o}function jD(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Ch(i,i,i,n,r,o);let s=PT(t);if(s.toRoot())return Ch(i,i,new W([],{}),n,r,o);let a=LT(s,i,e),c=a.processChildren?rs(a.segmentGroup,a.index,s.commands):BD(a.segmentGroup,a.index,s.commands);return Ch(i,a.segmentGroup,c,n,r,o)}function nu(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ss(e){return typeof e=="object"&&e!=null&&e.outlets}function vD(e,t,n){e||="\u0275";let r=new Tt;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function Ch(e,t,n,r,o,i){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(d=>vD(u,d,i)):vD(u,l,i);let a;e===t?a=n:a=VD(e,t,n);let c=kD(FD(a));return new Tt(c,s,o)}function VD(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=VD(i,t,n)}),new W(e.segments,r)}var ru=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&nu(r[0]))throw new y(4003,!1);let o=r.find(ss);if(o&&o!==vT(r))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function PT(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ru(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new ru(n,t,r)}var To=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function LT(e,t,n){if(e.isAbsolute)return new To(t,!0,0);if(!n)return new To(t,!1,NaN);if(n.parent===null)return new To(n,!0,0);let r=nu(e.commands[0])?0:1,o=n.segments.length-1+r;return jT(n,o,e.numberOfDoubleDots)}function jT(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new y(4005,!1);o=r.segments.length}return new To(r,!1,o-i)}function VT(e){return ss(e[0])?e[0].outlets:{[x]:e}}function BD(e,t,n){if(e??=new W([],{}),e.segments.length===0&&e.hasChildren())return rs(e,t,n);let r=BT(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new W(e.segments.slice(0,r.pathIndex),{});return i.children[x]=new W(e.segments.slice(r.pathIndex),e.children),rs(i,0,o)}else return r.match&&o.length===0?new W(e.segments,{}):r.match&&!e.hasChildren()?Mh(e,t,n):r.match?rs(e,0,o):Mh(e,t,n)}function rs(e,t,n){if(n.length===0)return new W(e.segments,{});{let r=VT(n),o={};if(Object.keys(r).some(i=>i!==x)&&e.children[x]&&e.numberOfChildren===1&&e.children[x].segments.length===0){let i=rs(e.children[x],t,n);return new W(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=BD(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new W(e.segments,o)}}function BT(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(ss(a))break;let c=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!ED(c,u,s))return i;r+=2}else{if(!ED(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Mh(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(ss(i)){let c=UT(i.outlets);return new W(r,c)}if(o===0&&nu(n[0])){let c=e.segments[t];r.push(new jn(c.path,DD(n[0]))),o++;continue}let s=ss(i)?i.outlets[x]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&nu(a)?(r.push(new jn(s,DD(a))),o+=2):(r.push(new jn(s,{})),o++)}return new W(r,{})}function UT(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Mh(new W([],{}),0,r))}),t}function DD(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function ED(e,t,n){return e==n.path&&Ut(t,n.parameters)}var os="imperative",Ee=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(Ee||{}),Qe=class{id;url;constructor(t,n){this.id=t,this.url=n}},Rr=class extends Qe{type=Ee.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ht=class extends Qe{urlAfterRedirects;type=Ee.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ne=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Ne||{}),as=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(as||{}),lt=class extends Qe{reason;code;type=Ee.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function UD(e){return e instanceof lt&&(e.code===Ne.Redirect||e.code===Ne.SupersededByNewNavigation)}var dn=class extends Qe{reason;code;type=Ee.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},xr=class extends Qe{error;target;type=Ee.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},No=class extends Qe{urlAfterRedirects;state;type=Ee.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ou=class extends Qe{urlAfterRedirects;state;type=Ee.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},iu=class extends Qe{urlAfterRedirects;state;shouldActivate;type=Ee.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},su=class extends Qe{urlAfterRedirects;state;type=Ee.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},au=class extends Qe{urlAfterRedirects;state;type=Ee.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},cu=class{route;type=Ee.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},uu=class{route;type=Ee.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},lu=class{snapshot;type=Ee.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},du=class{snapshot;type=Ee.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},fu=class{snapshot;type=Ee.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},hu=class{snapshot;type=Ee.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ro=class{},xo=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function HT(e){return!(e instanceof Ro)&&!(e instanceof xo)}var pu=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new Fo(this.rootInjector)}},Fo=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new pu(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(T(J))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),gu=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Th(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Th(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Ah(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Ah(t,this._root).map(n=>n.value)}};function Th(e,t){if(e===t.value)return t;for(let n of t.children){let r=Th(e,n);if(r)return r}return null}function Ah(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Ah(e,n);if(r.length)return r.unshift(t),r}return[]}var Ye=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Mo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var cs=class extends gu{snapshot;constructor(t,n){super(t),this.snapshot=n,Lh(this,t)}toString(){return this.snapshot.toString()}};function HD(e,t){let n=$T(e,t),r=new be([new jn("",{})]),o=new be({}),i=new be({}),s=new be({}),a=new be(""),c=new At(r,o,s,a,i,x,e,n.root);return c.snapshot=n.root,new cs(new Ye(c,[]),n)}function $T(e,t){let n={},r={},o={},s=new Ar([],n,o,"",r,x,e,null,{},t);return new us("",new Ye(s,[]))}var At=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe($(u=>u[fs]))??P(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe($(t=>Nr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe($(t=>Nr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function mu(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:g(g({},t.params),e.params),data:g(g({},t.data),e.data),resolve:g(g(g(g({},e.data),t.data),o?.data),e._resolvedData)}:r={params:g({},e.params),data:g({},e.data),resolve:g(g({},e.data),e._resolvedData??{})},o&&zD(o)&&(r.resolve[fs]=o.title),r}var Ar=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[fs]}constructor(t,n,r,o,i,s,a,c,u,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Nr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Nr(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},us=class extends gu{url;constructor(t,n){super(n),this.url=t,Lh(this,n)}toString(){return $D(this._root)}};function Lh(e,t){t.value._routerState=e,t.children.forEach(n=>Lh(e,n))}function $D(e){let t=e.children.length>0?` { ${e.children.map($D).join(", ")} } `:"";return`${e.value}${t}`}function bh(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ut(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Ut(t.params,n.params)||e.paramsSubject.next(n.params),yT(t.url,n.url)||e.urlSubject.next(n.url),Ut(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Nh(e,t){let n=Ut(e.params,t.params)&&bT(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Nh(e.parent,t.parent))}function zD(e){return typeof e.title=="string"||e.title===null}var GD=new E(""),ps=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=x;activateEvents=new ve;deactivateEvents=new ve;attachEvents=new ve;detachEvents=new ve;routerOutletData=Nc();parentContexts=p(Fo);location=p(kn);changeDetector=p(Ui);inputBinder=p(Eu,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Rh(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=jt({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Er]})}return e})(),Rh=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===At?this.route:t===Fo?this.childContexts:t===GD?this.outletData:this.parent.get(t,n)}},Eu=new E("");var jh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Pe({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&X(0,"router-outlet")},dependencies:[ps],encapsulation:2})}return e})();function Vh(e){let t=e.children&&e.children.map(Vh),n=t?S(g({},e),{children:t}):g({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==x&&(n.component=jh),n}function zT(e,t,n){let r=ls(e,t._root,n?n._root:void 0);return new cs(r,t)}function ls(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=GT(e,t,n);return new Ye(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ls(e,a)),s}}let r=WT(t.value),o=t.children.map(i=>ls(e,i));return new Ye(r,o)}}function GT(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ls(e,r,o);return ls(e,r)})}function WT(e){return new At(new be(e.url),new be(e.params),new be(e.queryParams),new be(e.fragment),new be(e.data),e.outlet,e.component,e)}var Oo=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},WD="ngNavigationCancelingError";function yu(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Bn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=qD(!1,Ne.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function qD(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[WD]=!0,n.cancellationCode=t,n}function qT(e){return ZD(e)&&Bn(e.url)}function ZD(e){return!!e&&e[WD]}var xh=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),bh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Mo(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Mo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Mo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Mo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new hu(i.value.snapshot))}),t.children.length&&this.forwardEvent(new du(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(bh(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),bh(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},vu=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Ao=class{component;route;constructor(t,n){this.component=t,this.route=n}};function ZT(e,t,n){let r=e._root,o=t?t._root:null;return ns(r,o,n,[r.value])}function KT(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Po(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Tl(e)?e:t.get(e):r}function ns(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Mo(t);return e.children.forEach(s=>{YT(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>is(a,n.getContext(s),o)),o}function YT(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=QT(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new vu(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?ns(e,t,a?a.children:null,r,o):ns(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ao(a.outlet.component,s))}else s&&is(t,a,o),o.canActivateChecks.push(new vu(r)),i.component?ns(e,null,a?a.children:null,r,o):ns(e,null,n,r,o);return o}function QT(e,t,n){if(typeof n=="function")return se(t._environmentInjector,()=>n(e,t));switch(n){case"pathParamsChange":return!Tr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Tr(e.url,t.url)||!Ut(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Nh(e,t)||!Ut(e.queryParams,t.queryParams);default:return!Nh(e,t)}}function is(e,t,n){let r=Mo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?is(s,t.children.getContext(i),n):is(s,null,n):is(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Ao(t.outlet.component,o)):n.canDeactivateChecks.push(new Ao(null,o)):n.canDeactivateChecks.push(new Ao(null,o))}function gs(e){return typeof e=="function"}function JT(e){return typeof e=="boolean"}function XT(e){return e&&gs(e.canLoad)}function e0(e){return e&&gs(e.canActivate)}function t0(e){return e&&gs(e.canActivateChild)}function n0(e){return e&&gs(e.canDeactivate)}function r0(e){return e&&gs(e.canMatch)}function KD(e){return e instanceof qt||e?.name==="EmptyError"}var Qc=Symbol("INITIAL_VALUE");function ko(){return ht(e=>cl(e.map(t=>t.pipe(Kt(1),fl(Qc)))).pipe($(t=>{for(let n of t)if(n!==!0){if(n===Qc)return Qc;if(n===!1||o0(n))return n}return!0}),ft(t=>t!==Qc),Kt(1)))}function o0(e){return Bn(e)||e instanceof Oo}function YD(e){return e.aborted?P(void 0).pipe(Kt(1)):new B(t=>{let n=()=>{t.next(),t.complete()};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function QD(e){return ni(YD(e))}function i0(e){return Re(t=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=t;return i.length===0&&o.length===0?P(S(g({},t),{guardsResult:!0})):s0(i,n,r).pipe(Re(s=>s&&JT(s)?a0(n,o,e):P(s)),$(s=>S(g({},t),{guardsResult:s})))})}function s0(e,t,n){return le(e).pipe(Re(r=>f0(r.component,r.route,n,t)),Yt(r=>r!==!0,!0))}function a0(e,t,n){return le(t).pipe(qr(r=>Wr(u0(r.route.parent,n),c0(r.route,n),d0(e,r.path),l0(e,r.route))),Yt(r=>r!==!0,!0))}function c0(e,t){return e!==null&&t&&t(new fu(e)),P(!0)}function u0(e,t){return e!==null&&t&&t(new lu(e)),P(!0)}function l0(e,t){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return P(!0);let r=n.map(o=>ti(()=>{let i=t._environmentInjector,s=Po(o,i),a=e0(s)?s.canActivate(t,e):se(i,()=>s(t,e));return Or(a).pipe(Yt())}));return P(r).pipe(ko())}function d0(e,t){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(i=>KT(i)).filter(i=>i!==null).map(i=>ti(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,u=Po(a,c),l=t0(u)?u.canActivateChild(n,e):se(c,()=>u(n,e));return Or(l).pipe(Yt())});return P(s).pipe(ko())}));return P(o).pipe(ko())}function f0(e,t,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return P(!0);let i=o.map(s=>{let a=t._environmentInjector,c=Po(s,a),u=n0(c)?c.canDeactivate(e,t,n,r):se(a,()=>c(e,t,n,r));return Or(u).pipe(Yt())});return P(i).pipe(ko())}function h0(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return P(!0);let s=i.map(a=>{let c=Po(a,e),u=XT(c)?c.canLoad(t,n):se(e,()=>c(t,n)),l=Or(u);return o?l.pipe(QD(o)):l});return P(s).pipe(ko(),JD(r))}function JD(e){return ol(xe(t=>{if(typeof t!="boolean")throw yu(e,t)}),$(t=>t===!0))}function p0(e,t,n,r,o){let i=t.canMatch;if(!i||i.length===0)return P(!0);let s=i.map(a=>{let c=Po(a,e),u=r0(c)?c.canMatch(t,n):se(e,()=>c(t,n));return Or(u).pipe(QD(o))});return P(s).pipe(ko(),JD(r))}var ln=class e extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,e.prototype)}},ds=class e extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,e.prototype)}};function g0(e){throw new y(4e3,!1)}function m0(e){throw qD(!1,Ne.GuardRejected)}var Oh=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}async lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[x])throw g0(`${t.redirectTo}`);o=o.children[x]}}async applyRedirectCommands(t,n,r,o,i){let s=await y0(n,o,i);if(s instanceof Tt)throw new ds(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new ds(a);return a}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Tt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new W(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new y(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}};function y0(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e,{queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,params:u,data:l,title:d,paramMap:h,queryParamMap:f}=t;return tu(Or(se(n,()=>r({params:u,data:l,queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,title:d,paramMap:h,queryParamMap:f}))))}function v0(e,t){return e.providers&&!e._injector&&(e._injector=Pi(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Mt(e){return e.outlet||x}function D0(e,t){let n=e.filter(r=>Mt(r)===t);return n.push(...e.filter(r=>Mt(r)!==t)),n}var kh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function E0(e,t,n,r,o,i){let s=XD(e,t,n);return s.matched?(r=v0(t,r),p0(r,t,n,o,i).pipe($(a=>a===!0?s:g({},kh)))):P(s)}function XD(e,t,n){if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?g({},kh):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||ID)(n,e,t);if(!o)return g({},kh);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?g(g({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function CD(e,t,n,r){return n.length>0&&w0(e,n,r)?{segmentGroup:new W(t,b0(r,new W(n,e.children))),slicedSegments:[]}:n.length===0&&_0(e,n,r)?{segmentGroup:new W(e.segments,C0(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new W(e.segments,e.children),slicedSegments:n}}function C0(e,t,n,r){let o={};for(let i of n)if(Cu(e,t,i)&&!r[Mt(i)]){let s=new W([],{});o[Mt(i)]=s}return g(g({},r),o)}function b0(e,t){let n={};n[x]=t;for(let r of e)if(r.path===""&&Mt(r)!==x){let o=new W([],{});n[Mt(r)]=o}return n}function w0(e,t,n){return n.some(r=>Cu(e,t,r)&&Mt(r)!==x)}function _0(e,t,n){return n.some(r=>Cu(e,t,r))}function Cu(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function I0(e,t,n){return t.length===0&&!e.children[n]}var Fh=class{};async function S0(e,t,n,r,o,i,s="emptyOnly",a){return new Ph(e,t,n,r,o,s,i,a).recognize()}var M0=31,Ph=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new Oh(this.urlSerializer,this.urlTree)}noMatchError(t){return new y(4002,`'${t.segmentGroup}'`)}async recognize(){let t=CD(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=await this.match(t),o=new Ye(r,n),i=new us("",o),s=PD(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}async match(t){let n=new Ar([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),x,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,t,x,n),rootSnapshot:n}}catch(r){if(r instanceof ds)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof ln?this.noMatchError(r):r}}async processSegmentGroup(t,n,r,o,i){if(r.segments.length===0&&r.hasChildren())return this.processChildren(t,n,r,i);let s=await this.processSegment(t,n,r,r.segments,o,!0,i);return s instanceof Ye?[s]:[]}async processChildren(t,n,r,o){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let u=r.children[c],l=D0(n,c),d=await this.processSegmentGroup(t,l,u,c,o);s.push(...d)}let a=eE(s);return T0(a),a}async processSegment(t,n,r,o,i,s,a){for(let c of n)try{return await this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a)}catch(u){if(u instanceof ln||KD(u))continue;throw u}if(I0(r,o,i))return new Fh;throw new ln(r)}async processSegmentAgainstRoute(t,n,r,o,i,s,a,c){if(Mt(r)!==s&&(s===x||!Cu(o,i,r)))throw new ln(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c);throw new ln(o)}async expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=XD(n,o,i);if(!c)throw new ln(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>M0&&(this.allowRedirects=!1));let f=new Ar(i,u,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,bD(o),Mt(o),o.component??o._loadedComponent??null,o,wD(o),t),m=mu(f,a,this.paramsInheritanceStrategy);if(f.params=Object.freeze(m.params),f.data=Object.freeze(m.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let D=await this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t),v=await this.applyRedirects.lineralizeSegments(o,D);return this.processSegment(t,r,n,v.concat(h),s,!1,a)}async matchSegmentAgainstRoute(t,n,r,o,i,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=await tu(E0(n,r,o,t,this.urlSerializer,this.abortSignal));if(r.path==="**"&&(n.children={}),!a?.matched)throw new ln(n);t=r._injector??t;let{routes:c}=await this.getChildConfig(t,r,o),u=r._loadedInjector??t,{parameters:l,consumedSegments:d,remainingSegments:h}=a,f=new Ar(d,l,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,bD(r),Mt(r),r.component??r._loadedComponent??null,r,wD(r),t),m=mu(f,s,this.paramsInheritanceStrategy);f.params=Object.freeze(m.params),f.data=Object.freeze(m.data);let{segmentGroup:D,slicedSegments:v}=CD(n,d,h,c);if(v.length===0&&D.hasChildren()){let et=await this.processChildren(u,c,D,f);return new Ye(f,et)}if(c.length===0&&v.length===0)return new Ye(f,[]);let b=Mt(r)===i,ee=await this.processSegment(u,c,D,v,b?x:i,!0,f);return new Ye(f,ee instanceof Ye?[ee]:[])}async getChildConfig(t,n,r){if(n.children)return{routes:n.children,injector:t};if(n.loadChildren){if(n._loadedRoutes!==void 0){let i=n._loadedNgModuleFactory;return i&&!n._loadedInjector&&(n._loadedInjector=i.create(t).injector),{routes:n._loadedRoutes,injector:n._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await tu(h0(t,n,r,this.urlSerializer,this.abortSignal))){let i=await this.configLoader.loadChildren(t,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,n._loadedNgModuleFactory=i.factory,i}throw m0(n)}return{routes:[],injector:t}}};function T0(e){e.sort((t,n)=>t.value.outlet===x?-1:n.value.outlet===x?1:t.value.outlet.localeCompare(n.value.outlet))}function A0(e){let t=e.value.routeConfig;return t&&t.path===""}function eE(e){let t=[],n=new Set;for(let r of e){if(!A0(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=eE(r.children);t.push(new Ye(r.value,o))}return t.filter(r=>!n.has(r))}function bD(e){return e.data||{}}function wD(e){return e.resolve||{}}function N0(e,t,n,r,o,i,s){return Re(async a=>{let{state:c,tree:u}=await S0(e,t,n,r,a.extractedUrl,o,i,s);return S(g({},a),{targetSnapshot:c,urlAfterRedirects:u})})}function R0(e){return Re(t=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return P(t);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of tE(a))i.add(c);let s=0;return le(i).pipe(qr(a=>o.has(a)?x0(a,n,e):(a.data=mu(a,a.parent,e).resolve,P(void 0))),xe(()=>s++),ta(1),Re(a=>s===i.size?P(t):we))})}function tE(e){let t=e.children.map(n=>tE(n)).flat();return[e,...t]}function x0(e,t,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!zD(r)&&(o[fs]=r.title),ti(()=>(e.data=mu(e,e.parent,n).resolve,O0(o,e,t).pipe($(i=>(e._resolvedData=i,e.data=g(g({},e.data),i),null)))))}function O0(e,t,n){let r=_h(e);if(r.length===0)return P({});let o={};return le(r).pipe(Re(i=>k0(e[i],t,n).pipe(Yt(),xe(s=>{if(s instanceof Oo)throw yu(new Vn,s);o[i]=s}))),ta(1),$(()=>o),Zt(i=>KD(i)?we:al(i)))}function k0(e,t,n){let r=t._environmentInjector,o=Po(e,r),i=o.resolve?o.resolve(t,n):se(r,()=>o(t,n));return Or(i)}function _D(e){return ht(t=>{let n=e(t);return n?le(n).pipe($(()=>t)):P(t)})}var Bh=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===x);return r}getResolvedTitleForRoute(n){return n.data[fs]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>p(nE),providedIn:"root"})}return e})(),nE=(()=>{class e extends Bh{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(T(gD))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Lo=new E("",{factory:()=>({})}),ms=new E(""),rE=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(Wf);async loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await MD(se(n,()=>r.loadComponent())),s=await sE(iE(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await oE(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function oE(e,t,n,r){let o=await MD(se(n,()=>e.loadChildren())),i=await sE(iE(o)),s;i instanceof yc||Array.isArray(i)?s=i:s=await t.compileModuleAsync(i),r&&r(e);let a,c,u=!1,l;return Array.isArray(s)?(c=s,u=!0):(a=s.create(n).injector,l=s,c=a.get(ms,[],{optional:!0,self:!0}).flat()),{routes:c.map(Vh),injector:a,factory:l}}function F0(e){return e&&typeof e=="object"&&"default"in e}function iE(e){return F0(e)?e.default:e}async function sE(e){return e}var bu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>p(P0),providedIn:"root"})}return e})(),P0=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),aE=new E("");var L0=()=>{},cE=new E(""),uE=(()=>{class e{currentNavigation=z(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=z(null);events=new ne;transitionAbortWithErrorSubject=new ne;configLoader=p(rE);environmentInjector=p(J);destroyRef=p(Fe);urlSerializer=p(hs);rootContexts=p(Fo);location=p(wo);inputBindingEnabled=p(Eu,{optional:!0})!==null;titleStrategy=p(Bh);options=p(Lo,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(bu);createViewTransition=p(aE,{optional:!0});navigationErrorHandler=p(cE,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>P(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new cu(o)),r=o=>this.events.next(new uu(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;L(()=>{this.transitions?.next(S(g({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))})}setupNavigations(n){return this.transitions=new be(null),this.transitions.pipe(ft(r=>r!==null),ht(r=>{let o=!1,i=new AbortController,s=()=>!o&&this.currentTransition?.id===r.id;return P(r).pipe(ht(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Ne.SupersededByNewNavigation),we;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?S(g({},c),{previousNavigation:null}):null,abort:()=>i.abort()});let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&l!=="reload")return this.events.next(new dn(a.id,this.urlSerializer.serialize(a.rawUrl),"",as.IgnoredSameUrlNavigation)),a.resolve(!1),we;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return P(a).pipe(ht(d=>(this.events.next(new Rr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?we:Promise.resolve(d))),N0(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,i.signal),xe(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=d.urlAfterRedirects,f));let h=new No(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:m,extras:D}=a,v=new Rr(d,this.urlSerializer.serialize(h),f,m);this.events.next(v);let b=HD(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=S(g({},a),{targetSnapshot:b,urlAfterRedirects:h,extras:S(g({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(ee=>(ee.finalUrl=h,ee)),P(r)}else return this.events.next(new dn(a.id,this.urlSerializer.serialize(a.extractedUrl),"",as.IgnoredByUrlHandlingStrategy)),a.resolve(!1),we}),$(a=>{let c=new ou(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=S(g({},a),{guards:ZT(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),i0(a=>this.events.next(a)),ht(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw yu(this.urlSerializer,a.guardsResult);let c=new iu(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return we;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",Ne.GuardRejected),we;if(a.guards.canActivateChecks.length===0)return P(a);let u=new su(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return we;let l=!1;return P(a).pipe(R0(this.paramsInheritanceStrategy),xe({next:()=>{l=!0;let d=new au(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>{l||this.cancelNavigationTransition(a,"",Ne.NoDataFromResolver)}}))}),_D(a=>{let c=l=>{let d=[];if(l.routeConfig?._loadedComponent)l.component=l.routeConfig?._loadedComponent;else if(l.routeConfig?.loadComponent){let h=l._environmentInjector;d.push(this.configLoader.loadComponent(h,l.routeConfig).then(f=>{l.component=f}))}for(let h of l.children)d.push(...c(h));return d},u=c(a.targetSnapshot.root);return u.length===0?P(a):le(Promise.all(u).then(()=>a))}),_D(()=>this.afterPreactivation()),ht(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?le(u).pipe($(()=>r)):P(r)}),Kt(1),$(a=>{let c=zT(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=S(g({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new Ro),s()&&(new xh(n.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s()&&(o=!0,this.currentNavigation.update(u=>(u.abort=L0,u)),this.lastSuccessfulNavigation.set(L(this.currentNavigation)),this.events.next(new Ht(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)))}),ni(YD(i.signal).pipe(ft(()=>!o&&!r.targetRouterState),xe(()=>{this.cancelNavigationTransition(r,i.signal.reason+"",Ne.Aborted)}))),xe({complete:()=>{o=!0}}),ni(this.transitionAbortWithErrorSubject.pipe(xe(a=>{throw a}))),Zr(()=>{i.abort(),o||this.cancelNavigationTransition(r,"",Ne.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Zt(a=>{if(o=!0,this.destroyed)return r.resolve(!1),we;if(ZD(a))this.events.next(new lt(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),qT(a)?this.events.next(new xo(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new xr(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=se(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof Oo){let{message:l,cancellationCode:d}=yu(this.urlSerializer,u);this.events.next(new lt(r.id,this.urlSerializer.serialize(r.extractedUrl),l,d)),this.events.next(new xo(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return we}))}))}cancelNavigationTransition(n,r,o){let i=new lt(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=L(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function j0(e){return e!==os}var lE=new E("");var dE=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>p(V0),providedIn:"root"})}return e})(),Du=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}shouldDestroyInjector(t){return!0}},V0=(()=>{class e extends Du{static \u0275fac=(()=>{let n;return function(o){return(n||(n=nc(e)))(o||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Uh=(()=>{class e{urlSerializer=p(hs);options=p(Lo,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(wo);urlHandlingStrategy=p(bu);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Tt;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Tt?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=HD(null,p(J));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:()=>p(B0),providedIn:"root"})}return e})(),B0=(()=>{class e extends Uh{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate")})})}handleRouterEvent(n,r){n instanceof Rr?this.updateStateMemento():n instanceof dn?this.commitTransition(r):n instanceof No?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Ro?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof lt&&!UD(n)?this.restoreHistory(r):n instanceof xr?this.restoreHistory(r,!0):n instanceof Ht&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||i){let a=this.browserPageId,c=g(g({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=g(g({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=nc(e)))(o||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Hh(e,t){e.events.pipe(ft(n=>n instanceof Ht||n instanceof lt||n instanceof xr||n instanceof dn),$(n=>n instanceof Ht||n instanceof dn?0:(n instanceof lt?n.code===Ne.Redirect||n.code===Ne.SupersededByNewNavigation:!1)?2:1),ft(n=>n!==2),Kt(1)).subscribe(()=>{t()})}var fE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hE={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Je=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(Mf);stateManager=p(Uh);options=p(Lo,{optional:!0})||{};pendingTasks=p(on);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(uE);urlSerializer=p(hs);location=p(wo);urlHandlingStrategy=p(bu);injector=p(J);_events=new ne;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(dE);injectorCleanup=p(lE,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(ms,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Eu,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new ge;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=L(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof lt&&r.code!==Ne.Redirect&&r.code!==Ne.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ht)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof xo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=g({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||j0(o.source)},s);this.scheduleNavigation(a,os,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}HT(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),os,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o)=>{this.navigateToSyncWithBrowser(n,o,r)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=g({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i).catch(c=>{this.disposed||this.injector.get(st)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return L(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Vh),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=g(g({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=LD(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return jD(d,n,l,u??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Bn(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,os,null,r)}navigate(n,r={skipLocationChange:!1}){return U0(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.console.warn(In(4018,!1)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=g({},fE):r===!1?o=g({},hE):o=r,Bn(n))return mD(this.currentUrlTree,n,o);let i=this.parseUrl(n);return mD(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return Hh(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function U0(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new y(4008,!1)}var jo=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=z(null);get href(){return L(this.reactiveHref)}set href(n){this.reactiveHref.set(n)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ne;applicationErrorHandler=p(st);options=p(Lo,{optional:!0});constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.reactiveHref.set(p(new Ac("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement&&(this.setTabIndexIfNotOnNativeEl("0"),this.subscribeToNavigationEventsIfNecessary())}subscribeToNavigationEventsIfNecessary(){this.subscription===void 0&&(this.subscription=this.router.events.subscribe(n=>{n instanceof Ht&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Bn(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.reactiveHref.set(n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n))??"":null)}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return this.routerLinkInput===null?null:Bn(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||e)(Te(Je),Te(At),Oi("tabindex"),Te(gc),Te(at),Te(bo))};static \u0275dir=jt({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&he("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&_t("href",o.reactiveHref(),lf)("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Hi],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Hi],replaceUrl:[2,"replaceUrl","replaceUrl",Hi],routerLink:"routerLink"},features:[Er]})}return e})();var z0=new E("");function $h(e,...t){return Xr([{provide:ms,multi:!0,useValue:e},[],{provide:At,useFactory:G0},{provide:Cc,multi:!0,useFactory:W0},t.map(n=>n.\u0275providers)])}function G0(){return p(Je).routerState.root}function W0(){let e=p(de);return t=>{let n=e.get(wr);if(t!==n.components[0])return;let r=e.get(Je),o=e.get(q0);e.get(Z0)===1&&r.initialNavigation(),e.get(K0,null,{optional:!0})?.setUpPreloading(),e.get(z0,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var q0=new E("",{factory:()=>new ne}),Z0=new E("",{factory:()=>1});var K0=new E("");var Vo=class e{sampleEntries={articles:[{id:1,title:"First Article",content:"This is the content of the first article.",createdAt:new Date().toISOString()},{id:2,title:"Second Article",content:"Here is some more content for the second article.",createdAt:new Date().toISOString()}]};http=p(Kc);apiUrl="/api";getArticles(t){let n=new St().set("limit","20");return t&&(n=n.set("q",t)),this.http.get(`${this.apiUrl}/articles`,{params:n}).pipe($(r=>r&&r.articles&&r.articles.length>0?r:this.sampleEntries),Zt(()=>P(this.sampleEntries)))}getArticle(t){return this.http.get(`${this.apiUrl}/articles/${t}`)}createArticle(t){return this.http.post(`${this.apiUrl}/articles`,t,{withCredentials:!0}).pipe(Zt(()=>{let n=Math.max(...this.sampleEntries.articles.map(o=>o.id),0)+1,r=S(g({},t),{id:n,createdAt:new Date().toISOString()});return this.sampleEntries.articles.push(r),P(r)}))}updateArticle(t,n){return this.http.put(`${this.apiUrl}/articles/${t}`,n,{withCredentials:!0})}deleteArticle(t){return this.http.delete(`${this.apiUrl}/articles/${t}`,{withCredentials:!0})}login(t,n){let r=new URLSearchParams;return r.set("password",n),this.http.post(`${this.apiUrl}/login`,r.toString(),{headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"text",withCredentials:!0}).pipe(xe(()=>console.log("\u2705 Login Success")),Zt(o=>(console.error("\u274C Login Failed:",o),P({error:!0,message:o.message}))))}logout(){return this.http.post(`${this.apiUrl}/logout`,{},{withCredentials:!0,responseType:"text"})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})};var Un=class e{constructor(t){this.router=t}apiService=p(Vo);isLoggedIn=z(!1);login(t,n){return this.apiService.login(t,n).pipe(xe(r=>{if(r&&r.error){console.error("Login failed",r.message);return}this.isLoggedIn.set(!0),this.router.navigate(["/"])}))}logout(){this.apiService.logout().subscribe({next:()=>{this.isLoggedIn.set(!1),this.router.navigate(["/login"])},error:t=>console.error("Logout failed",t)})}static \u0275fac=function(n){return new(n||e)(T(Je))};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})};function pE(e,t){let n=t?.injector??p(de),r=new Xo(1),o=vt(()=>{let i;try{i=e()}catch(s){L(()=>r.error(s));return}L(()=>r.next(i))},{injector:n,manualCleanup:!0});return n.get(Fe).onDestroy(()=>{o.destroy(),r.complete()}),r.asObservable()}var yE=new E("");function Wh(e){return e==null||qh(e)===0}function qh(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var Q0=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_u=class{static min(t){return J0(t)}static max(t){return X0(t)}static required(t){return eA(t)}static requiredTrue(t){return tA(t)}static email(t){return nA(t)}static minLength(t){return rA(t)}static maxLength(t){return oA(t)}static pattern(t){return iA(t)}static nullValidator(t){return vE()}static compose(t){return _E(t)}static composeAsync(t){return SE(t)}};function J0(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function X0(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function eA(e){return Wh(e.value)?{required:!0}:null}function tA(e){return e.value===!0?null:{required:!0}}function nA(e){return Wh(e.value)||Q0.test(e.value)?null:{email:!0}}function rA(e){return t=>{let n=t.value?.length??qh(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function oA(e){return t=>{let n=t.value?.length??qh(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function iA(e){if(!e)return vE;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Wh(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function vE(e){return null}function DE(e){return e!=null}function EE(e){return sn(e)?le(e):e}function CE(e){let t={};return e.forEach(n=>{t=n!=null?g(g({},t),n):t}),Object.keys(t).length===0?null:t}function bE(e,t){return t.map(n=>n(e))}function sA(e){return!e.validate}function wE(e){return e.map(t=>sA(t)?t:n=>t.validate(n))}function _E(e){if(!e)return null;let t=e.filter(DE);return t.length==0?null:function(n){return CE(bE(n,t))}}function IE(e){return e!=null?_E(wE(e)):null}function SE(e){if(!e)return null;let t=e.filter(DE);return t.length==0?null:function(n){let r=bE(n,t).map(EE);return ul(r).pipe($(CE))}}function ME(e){return e!=null?SE(wE(e)):null}function zh(e){return e?Array.isArray(e)?e:[e]:[]}function Iu(e,t){return Array.isArray(e)?e.includes(t):e===t}function gE(e,t){let n=zh(t);return zh(e).forEach(o=>{Iu(n,o)||n.push(o)}),n}function mE(e,t){return zh(t).filter(n=>!Iu(e,n))}var Gh=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=IE(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=ME(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}};var Su=class extends Gh{_parent=null;name=null;valueAccessor=null};var ys="VALID",wu="INVALID",Bo="PENDING",vs="DISABLED",Ho=class{},Mu=class extends Ho{value;source;constructor(t,n){super(),this.value=t,this.source=n}},Ds=class extends Ho{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},Es=class extends Ho{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Uo=class extends Ho{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function aA(e){return Array.isArray(e)?IE(e):e||null}function cA(e){return Array.isArray(e)?ME(e):e||null}function uA(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Tu=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return L(this.statusReactive)}set status(t){L(()=>this.statusReactive.set(t))}_status=A(()=>this.statusReactive());statusReactive=z(void 0);get valid(){return this.status===ys}get invalid(){return this.status===wu}get pending(){return this.status==Bo}get disabled(){return this.status===vs}get enabled(){return this.status!==vs}errors;get pristine(){return L(this.pristineReactive)}set pristine(t){L(()=>this.pristineReactive.set(t))}_pristine=A(()=>this.pristineReactive());pristineReactive=z(!0);get dirty(){return!this.pristine}get touched(){return L(this.touchedReactive)}set touched(t){L(()=>this.touchedReactive.set(t))}_touched=A(()=>this.touchedReactive());touchedReactive=z(!1);get untouched(){return!this.touched}_events=new ne;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(gE(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(gE(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(mE(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(mE(t,this._rawAsyncValidators))}hasValidator(t){return Iu(this._rawValidators,t)}hasAsyncValidator(t){return Iu(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(S(g({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Es(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Es(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(S(g({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Ds(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Ds(!0,r))}markAsPending(t={}){this.status=Bo;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Uo(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(S(g({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=vs,this.errors=null,this._forEachChild(o=>{o.disable(S(g({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Mu(this.value,r)),this._events.next(new Uo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(S(g({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ys,this._forEachChild(r=>{r.enable(S(g({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(S(g({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ys||this.status===Bo)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Mu(this.value,n)),this._events.next(new Uo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(S(g({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?vs:ys}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Bo,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=EE(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Uo(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new ve,this.statusChanges=new ve}_calculateStatus(){return this._allControlsDisabled()?vs:this.errors?wu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bo)?Bo:this._anyControlsHaveStatus(wu)?wu:ys}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new Ds(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Es(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){uA(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=aA(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=cA(this._rawAsyncValidators)}};var Zh=0;function lA(){return Zh}function Hn(e,t){return(...n)=>{try{return Zh=t,e(...n)}finally{Zh=0}}}function dA(e){return!e}function TE(e){return e}function $t(e){return Array.isArray(e)}function $o(e){return(typeof e=="object"||typeof e=="function")&&e!=null}var kr=Symbol(),Pu=Symbol(),bs=class{predicates;fns=[];constructor(t){this.predicates=t}push(t){this.fns.push(AE(this.predicates,t))}mergeIn(t){let n=this.predicates?t.fns.map(r=>AE(this.predicates,r)):t.fns;this.fns.push(...n)}},Nu=class extends bs{get defaultValue(){return!1}compute(t){return this.fns.some(n=>{let r=n(t);return r&&r!==Pu})}},zo=class e extends bs{ignore;static ignoreNull(t){return new e(t,n=>n===null)}constructor(t,n){super(t),this.ignore=n}get defaultValue(){return[]}compute(t){return this.fns.reduce((n,r)=>{let o=r(t);return o===void 0||o===Pu?n:$t(o)?[...n,...this.ignore?o.filter(i=>!this.ignore(i)):o]:this.ignore&&this.ignore(o)?n:[...n,o]},[])}},Kh=class extends zo{constructor(t){super(t,void 0)}},Yh=class extends bs{key;get defaultValue(){return this.key.reducer.getInitial()}constructor(t,n){super(t),this.key=n}compute(t){if(this.fns.length===0)return this.key.reducer.getInitial();let n=this.key.reducer.getInitial();for(let r=0;r<this.fns.length;r++){let o=this.fns[r](t);o!==Pu&&(n=this.key.reducer.reduce(n,o))}return n}};function AE(e,t){return e.length===0?t:n=>{for(let r of e){let o=n.stateOf(r.path),i=L(o.structure.pathKeys).length-r.depth;for(let s=0;s<i;s++)o=o.structure.parent;if(!r.fn(o.context))return Pu}return t(n)}}var Go=class{predicates;hidden;disabledReasons;readonly;syncErrors;syncTreeErrors;asyncErrors;metadata=new Map;constructor(t){this.predicates=t,this.hidden=new Nu(t),this.disabledReasons=new Kh(t),this.readonly=new Nu(t),this.syncErrors=zo.ignoreNull(t),this.syncTreeErrors=zo.ignoreNull(t),this.asyncErrors=zo.ignoreNull(t)}hasMetadata(t){return this.metadata.has(t)}getMetadataKeys(){return this.metadata.keys()}getMetadata(t){return this.metadata.has(t)||this.metadata.set(t,new Yh(this.predicates,t)),this.metadata.get(t)}mergeIn(t){this.hidden.mergeIn(t.hidden),this.disabledReasons.mergeIn(t.disabledReasons),this.readonly.mergeIn(t.readonly),this.syncErrors.mergeIn(t.syncErrors),this.syncTreeErrors.mergeIn(t.syncTreeErrors),this.asyncErrors.mergeIn(t.asyncErrors);for(let n of t.getMetadataKeys()){let r=t.metadata.get(n);this.getMetadata(n).mergeIn(r)}}},Ru=class{depth;constructor(t){this.depth=t}build(){return new xu(this,[],0)}},Wo=class e extends Ru{constructor(t){super(t)}current;all=[];addHiddenRule(t){this.getCurrent().addHiddenRule(t)}addDisabledReasonRule(t){this.getCurrent().addDisabledReasonRule(t)}addReadonlyRule(t){this.getCurrent().addReadonlyRule(t)}addSyncErrorRule(t){this.getCurrent().addSyncErrorRule(t)}addSyncTreeErrorRule(t){this.getCurrent().addSyncTreeErrorRule(t)}addAsyncErrorRule(t){this.getCurrent().addAsyncErrorRule(t)}addMetadataRule(t,n){this.getCurrent().addMetadataRule(t,n)}getChild(t){if(t===kr){let n=this.getCurrent().children;n.size>(n.has(kr)?1:0)&&(this.current=void 0)}return this.getCurrent().getChild(t)}hasLogic(t){return this===t?!0:this.all.some(({builder:n})=>n.hasLogic(t))}mergeIn(t,n){n?this.all.push({builder:t,predicate:{fn:Hn(n.fn,this.depth),path:n.path}}):this.all.push({builder:t}),this.current=void 0}getCurrent(){return this.current===void 0&&(this.current=new ws(this.depth),this.all.push({builder:this.current})),this.current}static newRoot(){return new e(0)}},ws=class extends Ru{logic=new Go([]);children=new Map;constructor(t){super(t)}addHiddenRule(t){this.logic.hidden.push(Hn(t,this.depth))}addDisabledReasonRule(t){this.logic.disabledReasons.push(Hn(t,this.depth))}addReadonlyRule(t){this.logic.readonly.push(Hn(t,this.depth))}addSyncErrorRule(t){this.logic.syncErrors.push(Hn(t,this.depth))}addSyncTreeErrorRule(t){this.logic.syncTreeErrors.push(Hn(t,this.depth))}addAsyncErrorRule(t){this.logic.asyncErrors.push(Hn(t,this.depth))}addMetadataRule(t,n){this.logic.getMetadata(t).push(Hn(n,this.depth))}getChild(t){return this.children.has(t)||this.children.set(t,new Wo(this.depth+1)),this.children.get(t)}hasLogic(t){return this===t}},xu=class e{builder;predicates;depth;logic;constructor(t,n,r){this.builder=t,this.predicates=n,this.depth=r,this.logic=t?fA(t,n,r):new Go([])}getChild(t){let n=this.builder?RE(this.builder,t):[];if(n.length===0)return new e(void 0,[],this.depth+1);if(n.length===1){let{builder:r,predicates:o}=n[0];return new e(r,[...this.predicates,...o.map(i=>Jh(i,this.depth))],this.depth+1)}else{let r=n.map(({builder:o,predicates:i})=>new e(o,[...this.predicates,...i.map(s=>Jh(s,this.depth))],this.depth+1));return new Qh(r)}}hasLogic(t){return this.builder?.hasLogic(t)??!1}},Qh=class e{all;logic;constructor(t){this.all=t,this.logic=new Go([]);for(let n of t)this.logic.mergeIn(n.logic)}getChild(t){return new e(this.all.flatMap(n=>n.getChild(t)))}hasLogic(t){return this.all.some(n=>n.hasLogic(t))}};function RE(e,t){if(e instanceof Wo)return e.all.flatMap(({builder:n,predicate:r})=>{let o=RE(n,t);return r?o.map(({builder:i,predicates:s})=>({builder:i,predicates:[...s,r]})):o});if(e instanceof ws)return[...t!==kr&&e.children.has(kr)?[{builder:e.getChild(kr),predicates:[]}]:[],...e.children.has(t)?[{builder:e.getChild(t),predicates:[]}]:[]];throw new y(1909,!1)}function fA(e,t,n){let r=new Go(t);if(e instanceof Wo){let o=e.all.map(({builder:i,predicate:s})=>new xu(i,s?[...t,Jh(s,n)]:t,n));for(let i of o)r.mergeIn(i.logic)}else if(e instanceof ws)r.mergeIn(e.logic);else throw new y(1909,!1);return r}function Jh(e,t){return S(g({},e),{depth:t})}var xE=Symbol("PATH"),fn=class e{keys;parent;keyInParent;root;children=new Map;fieldPathProxy=new Proxy(this,hA);logicBuilder;constructor(t,n,r,o){this.keys=t,this.parent=r,this.keyInParent=o,this.root=n??this,r||(this.logicBuilder=Wo.newRoot())}get builder(){return this.logicBuilder?this.logicBuilder:this.parent.builder.getChild(this.keyInParent)}getChild(t){return this.children.has(t)||this.children.set(t,new e([...this.keys,t],this.root,this,t)),this.children.get(t)}mergeIn(t,n){let r=t.compile();this.builder.mergeIn(r.builder,n)}static unwrapFieldPath(t){return t[xE]}static newRoot(){return new e([],void 0,void 0,void 0)}},hA={get(e,t){return t===xE?e:e.getChild(t).fieldPathProxy}},Au,Cs=new Map,Ou=class e{schemaFn;constructor(t){this.schemaFn=t}compile(){if(Cs.has(this))return Cs.get(this);let t=fn.newRoot();Cs.set(this,t);let n=Au;try{Au=t,this.schemaFn(t.fieldPathProxy)}finally{Au=n}return t}static create(t){return t instanceof e?t:new e(t)}static rootCompile(t){try{return Cs.clear(),t===void 0?fn.newRoot():t instanceof e?t.compile():new e(t).compile()}finally{Cs.clear()}}};function pA(e){return e instanceof Ou||typeof e=="function"}function up(e){if(Au!==fn.unwrapFieldPath(e).root)throw new y(1908,!1)}function lp(e,t,n){return up(e),fn.unwrapFieldPath(e).builder.addMetadataRule(t,n),t}var $n={list(){return{reduce:(e,t)=>t===void 0?e:[...e,t],getInitial:()=>[]}},min(){return{reduce:(e,t)=>e===void 0||t===void 0?e??t:Math.min(e,t),getInitial:()=>{}}},max(){return{reduce:(e,t)=>e===void 0||t===void 0?e??t:Math.max(e,t),getInitial:()=>{}}},or(){return{reduce:(e,t)=>e||t,getInitial:()=>!1}},and(){return{reduce:(e,t)=>e&&t,getInitial:()=>!0}},override:gA};function gA(e){return{reduce:(t,n)=>n,getInitial:()=>e?.()}}var ku=class{reducer;create;brand;constructor(t,n){this.reducer=t,this.create=n}};function hn(e){return new ku(e??$n.override())}var dp=hn($n.or()),OE=hn($n.max()),kE=hn($n.min()),FE=hn($n.max()),PE=hn($n.min()),LE=hn($n.list());function mA(e){return e.errors().length>0?"invalid":e.pending()?"unknown":"valid"}var Xh=class{node;constructor(t){this.node=t}rawSyncTreeErrors=A(()=>this.shouldSkipValidation()?[]:[...this.node.logicNode.logic.syncTreeErrors.compute(this.node.context),...this.node.structure.parent?.validationState.rawSyncTreeErrors()??[]]);syncErrors=A(()=>this.shouldSkipValidation()?[]:[...this.node.logicNode.logic.syncErrors.compute(this.node.context),...this.syncTreeErrors(),...yA(this.node.submitState.submissionErrors())]);syncValid=A(()=>this.shouldSkipValidation()?!0:this.node.structure.reduceChildren(this.syncErrors().length===0,(t,n)=>n&&t.validationState.syncValid(),dA));syncTreeErrors=A(()=>this.rawSyncTreeErrors().filter(t=>t.fieldTree===this.node.fieldProxy));rawAsyncErrors=A(()=>this.shouldSkipValidation()?[]:[...this.node.logicNode.logic.asyncErrors.compute(this.node.context),...this.node.structure.parent?.validationState.rawAsyncErrors()??[]]);asyncErrors=A(()=>this.shouldSkipValidation()?[]:this.rawAsyncErrors().filter(t=>t==="pending"||t.fieldTree===this.node.fieldProxy));errors=A(()=>[...this.syncErrors(),...this.asyncErrors().filter(t=>t!=="pending")]);errorSummary=A(()=>this.node.structure.reduceChildren(this.errors(),(t,n)=>[...n,...t.errorSummary()]));pending=A(()=>this.node.structure.reduceChildren(this.asyncErrors().includes("pending"),(t,n)=>n||t.validationState.asyncErrors().includes("pending")));status=A(()=>{if(this.shouldSkipValidation())return"valid";let t=mA(this);return this.node.structure.reduceChildren(t,(n,r)=>r==="invalid"||n.validationState.status()==="invalid"?"invalid":r==="unknown"||n.validationState.status()==="unknown"?"unknown":"valid",n=>n==="invalid")});valid=A(()=>this.status()==="valid");invalid=A(()=>this.status()==="invalid");shouldSkipValidation=A(()=>this.node.hidden()||this.node.disabled()||this.node.readonly())};function yA(e){return e===void 0?[]:$t(e)?e:[e]}function fp(e,t){if($t(e))for(let n of e)n.fieldTree??=t;else e&&(e.fieldTree??=t);return e}var ep=hn(),tp=class{node;cache=new WeakMap;constructor(t){this.node=t}resolve(t){if(!this.cache.has(t)){let n=A(()=>{let r=fn.unwrapFieldPath(t),o=this.node,i=lA();for(;i>0||!o.structure.logic.hasLogic(r.root.builder);)if(i--,o=o.structure.parent,o===void 0)throw new y(1900,!1);for(let s of r.keys)if(o=o.structure.getChild(s),o===void 0)throw new y(1901,!1);return o.fieldProxy});this.cache.set(t,n)}return this.cache.get(t)()}get fieldTree(){return this.node.fieldProxy}get state(){return this.node}get value(){return this.node.structure.value}get key(){return this.node.structure.keyInParent}get pathKeys(){return this.node.structure.pathKeys}index=A(()=>{let t=this.key();if(!$t(L(this.node.structure.parent.value)))throw new y(1906,!1);return Number(t)});fieldTreeOf=t=>this.resolve(t);stateOf=t=>this.resolve(t)();valueOf=t=>{let n=this.resolve(t)().value();if(n instanceof Tu)throw new y(1907,!1);return n}},np=class{node;metadata=new Map;constructor(t){this.node=t;for(let n of this.node.logicNode.logic.getMetadataKeys())if(n.create){let r=this.node.logicNode.logic.getMetadata(n),o=L(()=>se(this.node.structure.injector,()=>n.create(A(()=>r.compute(this.node.context)))));this.metadata.set(n,o)}}get(t){if(this.has(t)&&!this.metadata.has(t)){if(t.create)throw new y(1912,!1);let n=this.node.logicNode.logic.getMetadata(t);this.metadata.set(t,A(()=>n.compute(this.node.context)))}return this.metadata.get(t)}has(t){return this.node.logicNode.logic.hasMetadata(t)}},vA={get(e,t,n){let r=e(),o=r.structure.getChild(t);if(o!==void 0)return o.fieldProxy;let i=L(r.value);if($t(i)){if(t==="length")return r.value().length;if(t===Symbol.iterator)return()=>(r.value(),Array.prototype[Symbol.iterator].apply(r.fieldProxy))}if($o(i)&&t===Symbol.iterator)return function*(){for(let s in n)yield[s,n[s]]}},getOwnPropertyDescriptor(e,t){let n=L(e().value),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&!r.configurable&&(r.configurable=!0),r},ownKeys(e){let t=L(e().value);return typeof t=="object"&&t!==null?Reflect.ownKeys(t):[]}};function DA(e,t){let n=A(()=>e()[t()]);return n[te]=e[te],n.set=r=>{e.update(o=>EA(o,r,t()))},n.update=r=>{n.set(r(L(n)))},n.asReadonly=()=>n,n}function EA(e,t,n){if($t(e)){let r=[...e];return r[n]=t,r}else return S(g({},e),{[n]:t})}var Fu=class{logic;node;createChildNode;identitySymbol=Symbol();_injector=void 0;get injector(){return this._injector??=de.create({providers:[],parent:this.fieldManager.injector}),this._injector}constructor(t,n,r){this.logic=t,this.node=n,this.createChildNode=r}children(){let t=this.childrenMap();return t===void 0?[]:Array.from(t.byPropertyKey.values()).map(n=>L(n.reader))}getChild(t){let n=t.toString(),r=L(this.childrenMap)?.byPropertyKey.get(n)?.reader;return r||(r=this.createReader(n)),r()}reduceChildren(t,n,r){let o=this.childrenMap();if(!o)return t;let i=t;for(let s of o.byPropertyKey.values()){if(r?.(i))break;i=n(L(s.reader),i)}return i}destroy(){this.injector.destroy()}createKeyInParent(t,n,r){if(t.kind==="root")return jE;if(n===void 0){let o=r;return A(()=>{if(this.parent.structure.getChild(o)!==this.node)throw new y(1902,!1);return o})}else{let o=r;return A(()=>{let i=this.parent.structure.value();if(!$t(i))throw new y(1903,!1);let s=i[o];if($o(s)&&s.hasOwnProperty(this.parent.structure.identitySymbol)&&s[this.parent.structure.identitySymbol]===n)return o;for(let a=0;a<i.length;a++){let c=i[a];if($o(c)&&c.hasOwnProperty(this.parent.structure.identitySymbol)&&c[this.parent.structure.identitySymbol]===n)return o=a.toString()}throw new y(1904,!1)})}}createChildrenMap(){return Ir({source:this.value,computation:(t,n)=>{if(!$o(t))return;let r=n?.value??{byPropertyKey:new Map},o,i=$t(t);r!==void 0&&(i?o=bA(r,t,this.identitySymbol):o=wA(r,t));for(let s of Object.keys(t)){let a,c=t[s];if(c===void 0){r.byPropertyKey.has(s)&&(o??=g({},r),o.byPropertyKey.delete(s));continue}i&&$o(c)&&!$t(c)&&(a=c[this.identitySymbol]??=Symbol(""));let u;a&&(r.byTrackingKey?.has(a)||(o??=g({},r),o.byTrackingKey??=new Map,o.byTrackingKey.set(a,this.createChildNode(s,a,i))),u=(o??r).byTrackingKey.get(a));let l=r.byPropertyKey.get(s);l===void 0?(o??=g({},r),o.byPropertyKey.set(s,{reader:this.createReader(s),node:u??this.createChildNode(s,a,i)})):u&&u!==l.node&&(o??=g({},r),l.node=u)}return o??r}})}createReader(t){return A(()=>this.childrenMap()?.byPropertyKey.get(t)?.node)}},rp=class extends Fu{fieldManager;value;get parent(){}get root(){return this.node}get pathKeys(){return CA}get keyInParent(){return jE}childrenMap;constructor(t,n,r,o,i){super(n,t,i),this.fieldManager=r,this.value=o,this.childrenMap=this.createChildrenMap()}},op=class extends Fu{logic;parent;root;pathKeys;keyInParent;value;childrenMap;get fieldManager(){return this.root.structure.fieldManager}constructor(t,n,r,o,i,s){super(n,t,s),this.logic=n,this.parent=r,this.root=this.parent.structure.root,this.keyInParent=this.createKeyInParent({kind:"child",parent:r,pathNode:void 0,logic:n,initialKeyInParent:i,identityInParent:o,fieldAdapter:void 0},o,i),this.pathKeys=A(()=>[...r.structure.pathKeys(),this.keyInParent()]),this.value=DA(this.parent.structure.value,this.keyInParent),this.childrenMap=this.createChildrenMap(),this.fieldManager.structures.add(this)}};var CA=A(()=>[]),jE=A(()=>{throw new y(1905,!1)});function bA(e,t,n){let r,o=new Set(e.byPropertyKey.keys()),i=new Set(e.byTrackingKey?.keys());for(let s=0;s<t.length;s++){let a=t[s];o.delete(s.toString()),$o(a)&&a.hasOwnProperty(n)&&i.delete(a[n])}if(o.size>0){r??=g({},e);for(let s of o)r.byPropertyKey.delete(s)}if(i.size>0){r??=g({},e);for(let s of i)r.byTrackingKey?.delete(s)}return r}function wA(e,t){let n;for(let r of e.byPropertyKey.keys())t.hasOwnProperty(r)||(n??=g({},e),n.byPropertyKey.delete(r));return n}var ip=class{node;selfSubmitting=z(!1);submissionErrors;constructor(t){this.node=t,this.submissionErrors=Ir({source:this.node.structure.value,computation:()=>[]})}submitting=A(()=>this.selfSubmitting()||(this.node.structure.parent?.submitting()??!1))},_s=class{structure;validationState;metadataState;nodeState;submitState;fieldAdapter;_context=void 0;get context(){return this._context??=new tp(this)}fieldProxy=new Proxy(()=>this,vA);pathNode;constructor(t){this.pathNode=t.pathNode,this.fieldAdapter=t.fieldAdapter,this.structure=this.fieldAdapter.createStructure(this,t),this.validationState=this.fieldAdapter.createValidationState(this,t),this.nodeState=this.fieldAdapter.createNodeState(this,t),this.metadataState=new np(this),this.submitState=new ip(this)}focusBoundControl(){this.getBindingForFocus()?.focus()}getBindingForFocus(){let t=this.formFieldBindings().filter(n=>n.focus!==void 0).reduce(NE,void 0);return t||this.structure.children().map(n=>n.getBindingForFocus()).reduce(NE,void 0)}pendingSync=Ir({source:()=>this.value(),computation:(t,n)=>{n?.value?.abort()}});get logicNode(){return this.structure.logic}get value(){return this.structure.value}_controlValue=Ir(()=>this.value());get controlValue(){return this._controlValue.asReadonly()}get keyInParent(){return this.structure.keyInParent}get errors(){return this.validationState.errors}get errorSummary(){return this.validationState.errorSummary}get pending(){return this.validationState.pending}get valid(){return this.validationState.valid}get invalid(){return this.validationState.invalid}get dirty(){return this.nodeState.dirty}get touched(){return this.nodeState.touched}get disabled(){return this.nodeState.disabled}get disabledReasons(){return this.nodeState.disabledReasons}get hidden(){return this.nodeState.hidden}get readonly(){return this.nodeState.readonly}get formFieldBindings(){return this.nodeState.formFieldBindings}get submitting(){return this.submitState.submitting}get name(){return this.nodeState.name}get max(){return this.metadata(kE)}get maxLength(){return this.metadata(PE)}get min(){return this.metadata(OE)}get minLength(){return this.metadata(FE)}get pattern(){return this.metadata(LE)??_A}get required(){return this.metadata(dp)??IA}metadata(t){return this.metadataState.get(t)}hasMetadata(t){return this.metadataState.has(t)}markAsTouched(){this.nodeState.markAsTouched(),this.pendingSync()?.abort(),this.sync()}markAsDirty(){this.nodeState.markAsDirty()}reset(t){L(()=>this._reset(t))}_reset(t){t!==void 0&&this.value.set(t),this.nodeState.markAsUntouched(),this.nodeState.markAsPristine();for(let n of this.structure.children())n._reset()}setControlValue(t){this._controlValue.set(t),this.markAsDirty(),this.debounceSync()}sync(){this.value.set(this.controlValue())}async debounceSync(){this.pendingSync()?.abort();let t=this.nodeState.debouncer();if(t){let n=new AbortController,r=t(n.signal);if(r&&(this.pendingSync.set(n),await r,n.signal.aborted))return}this.sync()}static newRoot(t,n,r,o){return o.newRoot(t,n,r,o)}createStructure(t){return t.kind==="root"?new rp(this,t.logic,t.fieldManager,t.value,this.newChild.bind(this)):new op(this,t.logic,t.parent,t.identityInParent,t.initialKeyInParent,this.newChild.bind(this))}newChild(t,n,r){let o,i;return r?(o=this.pathNode.getChild(kr),i=this.structure.logic.getChild(kr)):(o=this.pathNode.getChild(t),i=this.structure.logic.getChild(t)),this.fieldAdapter.newChild({kind:"child",parent:this,pathNode:o,logic:i,initialKeyInParent:t,identityInParent:n,fieldAdapter:this.fieldAdapter})}},_A=A(()=>[]),IA=A(()=>!1);function NE(e,t){return e?t&&e.element.compareDocumentPosition(t.element)&Node.DOCUMENT_POSITION_PRECEDING?t:e:t}var sp=class{node;selfTouched=z(!1);selfDirty=z(!1);markAsTouched(){this.selfTouched.set(!0)}markAsDirty(){this.selfDirty.set(!0)}markAsPristine(){this.selfDirty.set(!1)}markAsUntouched(){this.selfTouched.set(!1)}formFieldBindings=z([]);constructor(t){this.node=t}dirty=A(()=>{let t=this.selfDirty()&&!this.isNonInteractive();return this.node.structure.reduceChildren(t,(n,r)=>r||n.nodeState.dirty(),TE)});touched=A(()=>{let t=this.selfTouched()&&!this.isNonInteractive();return this.node.structure.reduceChildren(t,(n,r)=>r||n.nodeState.touched(),TE)});disabledReasons=A(()=>[...this.node.structure.parent?.nodeState.disabledReasons()??[],...this.node.logicNode.logic.disabledReasons.compute(this.node.context)]);disabled=A(()=>!!this.disabledReasons().length);readonly=A(()=>(this.node.structure.parent?.nodeState.readonly()||this.node.logicNode.logic.readonly.compute(this.node.context))??!1);hidden=A(()=>(this.node.structure.parent?.nodeState.hidden()||this.node.logicNode.logic.hidden.compute(this.node.context))??!1);name=A(()=>{let t=this.node.structure.parent;return t?`${t.name()}.${this.node.structure.keyInParent()}`:this.node.structure.fieldManager.rootName});debouncer=A(()=>{if(this.node.logicNode.logic.hasMetadata(ep)){let n=this.node.logicNode.logic.getMetadata(ep).compute(this.node.context);if(n)return r=>n(this.node.context,r)}return this.node.structure.parent?.nodeState.debouncer?.()});isNonInteractive=A(()=>this.hidden()||this.disabled()||this.readonly())},ap=class{newRoot(t,n,r,o){return new _s({kind:"root",fieldManager:t,value:n,pathNode:r,logic:r.builder.build(),fieldAdapter:o})}newChild(t){return new _s(t)}createNodeState(t){return new sp(t)}createValidationState(t){return new Xh(t)}createStructure(t,n){return t.createStructure(n)}},cp=class{injector;rootName;constructor(t,n){this.injector=t,this.rootName=n??`${this.injector.get(mo)}.form${SA++}`}structures=new Set;createFieldManagementEffect(t){vt(()=>{let n=new Set;this.markStructuresLive(t,n);for(let r of this.structures)n.has(r)||(this.structures.delete(r),L(()=>r.destroy()))},{injector:this.injector})}markStructuresLive(t,n){n.add(t);for(let r of t.children())this.markStructuresLive(r.structure,n)}},SA=0;function MA(e){let t,n,r;return e.length===3?[t,n,r]=e:e.length===2?pA(e[1])?[t,n]=e:[t,r]=e:[t]=e,[t,n,r]}function pn(...e){let[t,n,r]=MA(e),o=r?.injector??p(de),i=se(o,()=>Ou.rootCompile(n)),s=new cp(o,r?.name),a=r?.adapter??new ap,c=_s.newRoot(s,t,i,a);return s.createFieldManagementEffect(c.structure),c.fieldProxy}async function Fr(e,t){let n=e();if(VE(n),!n.invalid()){n.submitState.selfSubmitting.set(!0);try{let r=await t(e);r&&TA(n,r)}finally{n.submitState.selfSubmitting.set(!1)}}}function TA(e,t){$t(t)||(t=[t]);let n=new Map;for(let r of t){let o=fp(r,e.fieldProxy),i=o.fieldTree(),s=n.get(i);s||(s=[],n.set(i,s)),s.push(o)}for(let[r,o]of n)r.submitState.submissionErrors.set(o)}function VE(e){e.markAsTouched();for(let t of e.structure.children())VE(t)}var AA=new E("");var hp=class{field;constructor(t){this.field=t}control=this;get value(){return this.field().value()}get valid(){return this.field().valid()}get invalid(){return this.field().invalid()}get pending(){return this.field().pending()}get disabled(){return this.field().disabled()}get enabled(){return!this.field().disabled()}get errors(){let t=this.field().errors();if(t.length===0)return null;let n={};for(let r of t)n[r.kind]=r;return n}get pristine(){return!this.field().dirty()}get dirty(){return this.field().dirty()}get touched(){return this.field().touched()}get untouched(){return!this.field().touched()}get status(){if(this.field().disabled())return"DISABLED";if(this.field().valid())return"VALID";if(this.field().invalid())return"INVALID";if(this.field().pending())return"PENDING";throw new y(1910,!1)}valueAccessor=null;hasValidator(t){return t===_u.required?this.field().required():!1}updateValueAndValidity(){}},NA=new E(""),RA={create:Le,update:Rf},zn=(()=>{class e{element=p(at).nativeElement;injector=p(de);formField=Nc.required();state=A(()=>this.formField()());[mc]=RA;config=p(AA,{optional:!0});classes=Object.entries(this.config?.classes??{}).map(([n,r])=>[n,A(()=>r(this))]);controlValueAccessors=p(yE,{optional:!0,self:!0});interopNgControl;get \u0275interopControl(){return this.controlValueAccessors?.[0]??this.interopNgControl?.valueAccessor??void 0}getOrCreateNgControl(){return this.interopNgControl??=new hp(this.state)}\u0275register(){vt(n=>{let r=this.state();r.nodeState.formFieldBindings.update(o=>[...o,this]),n(()=>{r.nodeState.formFieldBindings.update(o=>o.filter(i=>i!==this))})},{injector:this.injector})}static \u0275fac=function(r){return new(r||e)};static \u0275dir=jt({type:e,selectors:[["","formField",""]],inputs:{formField:[1,"formField"]},features:[Vt([{provide:NA,useExisting:e},{provide:Su,useFactory:()=>p(e).getOrCreateNgControl()}])]})}return e})();function BE(e,t){return e instanceof Function?e(t):e}function xA(e){return typeof e=="number"?isNaN(e):e===""||e===!1||e==null}function OA(e,t){up(e),fn.unwrapFieldPath(e).builder.addSyncErrorRule(r=>fp(t(r),r.fieldTree))}function kA(e){return new gp(e)}var pp=class{__brand=void 0;kind="";fieldTree;message;constructor(t){t&&Object.assign(this,t)}},gp=class extends pp{kind="required"};function gn(e,t){let n=lp(e,hn(),r=>t?.when?t.when(r):!0);lp(e,dp,({state:r})=>r.metadata(n)()),OA(e,r=>{if(r.state.metadata(n)()&&xA(r.value()))return t?.error?BE(t.error,r):kA({message:BE(t?.message,r)})})}var UE=Symbol("");function HE(e){return new Proxy(e,{has(t,n){return!!this.get(t,n,void 0)},get(t,n){let r=L(t);return!PA(r)||!(n in r)?(Ec(t[n])&&t[n][UE]&&delete t[n],t[n]):(Ec(t[n])||(Object.defineProperty(t,n,{value:A(()=>t()[n]),configurable:!0}),t[n][UE]=!0),HE(t[n]))}})}var FA=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function PA(e){if(e===null||typeof e!="object"||LA(e))return!1;let t=Object.getPrototypeOf(e);if(t===Object.prototype)return!0;for(;t&&t!==Object.prototype;){if(FA.includes(t.constructor))return!1;t=Object.getPrototypeOf(t)}return t===Object.prototype}function LA(e){return typeof e?.[Symbol.iterator]=="function"}var jA=new WeakMap,Xe=Symbol("");function Ce(e,...t){let n=L(()=>$E(e)),r=t.reduce((s,a)=>g(g({},s),typeof a=="function"?a(s):a),n),o=e[Xe],i=Reflect.ownKeys(e[Xe]);for(let s of Reflect.ownKeys(r))if(i.includes(s)){let a=s;n[a]!==r[a]&&o[a].set(r[a])}BA(e)}function $E(e){let t=e[Xe];return Reflect.ownKeys(e[Xe]).reduce((n,r)=>{let o=t[r]();return S(g({},n),{[r]:o})},{})}function VA(e){return jA.get(e[Xe])||[]}function BA(e){let t=VA(e);for(let n of t){let r=L(()=>$E(e));n(r)}}function zE(...e){let t=[...e],n=typeof t[0]=="function"?{}:t.shift(),r=t;return(()=>{class i{constructor(){let a=r.reduce((D,v)=>v(D),UA()),{stateSignals:c,props:u,methods:l,hooks:d}=a,h=g(g(g({},c),u),l);this[Xe]=a[Xe];for(let D of Reflect.ownKeys(h))this[D]=h[D];let{onInit:f,onDestroy:m}=d;f&&f(),m&&p(Fe).onDestroy(m)}static \u0275fac=function(c){return new(c||i)};static \u0275prov=C({token:i,factory:i.\u0275fac,providedIn:n.providedIn||null})}return i})()}function UA(){return{[Xe]:{},stateSignals:{},props:{},methods:{},hooks:{}}}function GE(e){return t=>{let n=e(g(g(g({[Xe]:t[Xe]},t.stateSignals),t.props),t.methods));return S(g({},t),{props:g(g({},t.props),n)})}}function WE(e){return t=>{let n=e(g(g(g({[Xe]:t[Xe]},t.stateSignals),t.props),t.methods));return S(g({},t),{methods:g(g({},t.methods),n)})}}function qE(e){return t=>{let n=typeof e=="function"?e():e,r=Reflect.ownKeys(n),o=t[Xe],i={};for(let s of r)o[s]=z(n[s]),i[s]=HE(o[s]);return S(g({},t),{stateSignals:g(g({},t.stateSignals),i)})}}var mn=zE({providedIn:"root"},qE({filter:{id:0},articles:[],article:void 0,isLoading:!1,error:null}),GE(()=>({_apiService:p(Vo)})),WE(e=>({async loadArticles(t){Ce(e,{isLoading:!0,error:null});try{let n=await er(e._apiService.getArticles(t));Ce(e,{articles:n.articles,isLoading:!1})}catch{Ce(e,{isLoading:!1,error:"Failed to load articles"})}},async load(t){Ce(e,{isLoading:!0,error:null});try{let n=await er(e._apiService.getArticle(t));Ce(e,{article:n,isLoading:!1})}catch(n){Ce(e,{error:n.message||"Failed to load article",isLoading:!1})}},async createArticle(t){Ce(e,{isLoading:!0,error:null});try{let n=await er(e._apiService.createArticle(t));return Ce(e,r=>({articles:[...r.articles,n],isLoading:!1})),{status:"success"}}catch(n){return Ce(e,{error:n.message||"Failed to create article"}),{status:"error",error:n}}finally{Ce(e,{isLoading:!1})}},async saveArticle(t){console.log("store: saveArticle!"),Ce(e,{isLoading:!0,error:null});try{let n=e.article();if(n){let r=await er(e._apiService.updateArticle(n.id,t));Ce(e,{article:r})}return{status:"success"}}catch(n){return Ce(e,{error:n.message||"Failed to save article"}),{status:"error",error:n}}finally{Ce(e,{isLoading:!1})}},async deleteArticle(t){Ce(e,{isLoading:!0,error:null});try{await er(e._apiService.deleteArticle(t)),Ce(e,n=>({articles:n.articles.filter(r=>r.id!==t),isLoading:!1}))}catch{Ce(e,{error:"Failed to delete article",isLoading:!1})}},update(t,n){return e._apiService.updateArticle(t,n)}})));var HA=(e,t)=>t.id;function $A(e,t){e&1&&(_(0,"a",2),j(1,"Create New"),w())}function zA(e,t){if(e&1){let n=_r();_(0,"div")(1,"button",7),he("click",function(){mt(n);let o=De().$implicit,i=De();return yt(i.editArticle(o.id))}),j(2,"Edit"),w(),_(3,"button",7),he("click",function(){mt(n);let o=De().$implicit,i=De();return yt(i.deleteArticle(o.id))}),j(4,"Delete"),w()()}}function GA(e,t){if(e&1&&(_(0,"article",4)(1,"h2"),j(2),w(),_(3,"p",6),j(4),Bt(5,"date"),w(),_(6,"p"),j(7),w(),Ue(8,zA,5,0,"div"),w()),e&2){let n=t.$implicit,r=De();V(2),je(n.title),V(2),je(zf(5,4,n.createdAt,"yyyy/MM/dd HH:mm")),V(3),je(n.content),V(),He(r.authService.isLoggedIn()?8:-1)}}function WA(e,t){e&1&&(_(0,"p"),j(1,"No articles found."),w())}function qA(e,t){e&1&&(_(0,"div",5),j(1,"Loading..."),w())}var Lu=class e{authService=p(Un);router=p(Je);store=p(mn);searchSignal=z({query:""});searchForm=pn(this.searchSignal);querySignal=A(()=>this.searchSignal().query);constructor(){pE(this.querySignal).pipe(ll(300),dl()).subscribe(t=>{this.store.loadArticles(t)})}ngOnInit(){this.store.loadArticles()}search(t){t.preventDefault()}editArticle(t){this.router.navigate(["/edit",t])}deleteArticle(t){confirm("Are you sure you want to delete this article?")&&this.store.deleteArticle(t)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Pe({type:e,selectors:[["app-home"]],features:[Vt([mn])],decls:13,vars:5,consts:[[2,"margin-top","1rem",3,"submit"],["type","text","placeholder","Search articles...",2,"padding","0.5rem","margin-right","0.5rem",3,"formField"],["routerLink","/new",2,"margin-left","1rem"],[1,"articles-container"],[1,"article-card"],[1,"loading"],[1,"date"],[3,"click"]],template:function(n,r){n&1&&(_(0,"header")(1,"h1"),j(2,"My Blog"),w(),_(3,"form",0),he("submit",function(i){return r.search(i)}),j(4," Search "),X(5,"input",1),Le(),Ue(6,$A,2,0,"a",2),w()(),_(7,"main")(8,"section",3),Lf(9,GA,9,7,"article",4,HA,!1,WA,2,0,"p"),w()(),Ue(12,qA,2,0,"div",5)),n&2&&(V(5),Ze(r.searchForm.query,"formField"),V(),He(r.authService.isLoggedIn()?6:-1),V(3),jf(r.store.articles()),V(3),He(r.store.isLoading()?12:-1))},dependencies:[ut,zn,jo,eh],styles:["header[_ngcontent-%COMP%]{background-color:#333;color:#fff;padding:2rem;text-align:center;margin-bottom:2rem}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0}.articles-container[_ngcontent-%COMP%]{max-width:800px;margin:0 auto;padding:0 1rem 2rem;display:flex;flex-direction:column;gap:1.5rem}.article-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:1.5rem;box-shadow:0 2px 4px #0000000d;transition:transform .2s}.article-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0000001a}.article-card[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:0;color:#2c3e50}.date[_ngcontent-%COMP%]{color:#666;font-size:.85rem;margin-bottom:1rem}button[_ngcontent-%COMP%]{margin-right:.5rem;padding:.5rem 1rem;border:none;border-radius:4px;cursor:pointer;background-color:#007bff;color:#fff;font-size:.9rem}"]})};function ZA(e,t){if(e&1&&(_(0,"div",1),j(1),w()),e&2){let n=De();V(),je(n.errorMessage())}}var ju=class e{authService=p(Un);credentials=z({username:"",password:""});errorMessage=z("");loginForm=pn(this.credentials,t=>{gn(t.username),gn(t.password)});onLogin(t){t.preventDefault(),Fr(this.loginForm,async()=>{let{username:n,password:r}=this.credentials();this.errorMessage.set(""),this.authService.login(n,r).subscribe(o=>{o&&o.error&&this.errorMessage.set(o.message||"Login failed")})})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Pe({type:e,selectors:[["app-login"]],decls:15,vars:5,consts:[[1,"login-container"],[1,"error-message"],[3,"submit"],[1,"form-group"],["for","username"],["type","text","id","username",3,"formField"],["for","password"],["type","password","id","password",3,"formField"],["type","submit",3,"disabled"]],template:function(n,r){n&1&&(_(0,"div",0)(1,"h2"),j(2,"Login"),w(),Ue(3,ZA,2,1,"div",1),_(4,"form",2),he("submit",function(i){return r.onLogin(i)}),_(5,"div",3)(6,"label",4),j(7,"Username"),w(),X(8,"input",5),Le(),w(),_(9,"div",3)(10,"label",6),j(11,"Password"),w(),X(12,"input",7),Le(),w(),_(13,"button",8),j(14,"Sign In"),w()()()),n&2&&(V(3),He(r.errorMessage()?3:-1),V(5),Ze(r.loginForm.username,"formField"),V(4),Ze(r.loginForm.password,"formField"))},dependencies:[ut,zn],styles:[".login-container[_ngcontent-%COMP%]{max-width:400px;margin:2rem auto;padding:2rem;border:1px solid #ddd;border-radius:8px}.form-group[_ngcontent-%COMP%]{margin-bottom:1rem}label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem}input[_ngcontent-%COMP%]{width:100%;padding:.5rem;box-sizing:border-box}button[_ngcontent-%COMP%]{padding:.5rem 1rem;background:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer}.error-message[_ngcontent-%COMP%]{color:#721c24;background-color:#f8d7da;border:1px solid #f5c6cb;padding:.75rem;margin-bottom:1rem;border-radius:4px}"]})};var mp;try{mp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{mp=!1}var ZE=(()=>{class e{_platformId=p(Cr);isBrowser=this._platformId?Zv(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||mp)&&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=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var KE=new Set,Pr,yp=(()=>{class e{_platform=p(ZE);_nonce=p(yo,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):YA}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&KA(n,this._nonce),this._matchMedia(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function KA(e,t){if(!KE.has(e))try{Pr||(Pr=document.createElement("style"),t&&Pr.setAttribute("nonce",t),Pr.setAttribute("type","text/css"),document.head.appendChild(Pr)),Pr.sheet&&(Pr.sheet.insertRule(`@media ${e} {body{ }}`,0),KE.add(e))}catch(n){console.error(n)}}function YA(e){return{matches:e==="all"||e==="",media:e,addListener:()=>{},removeListener:()=>{}}}var QA=new E("MATERIAL_ANIMATIONS"),YE=null;function QE(){return p(QA,{optional:!0})?.animationsDisabled||p(sf,{optional:!0})==="NoopAnimations"?"di-disabled":(YE??=p(yp).matchMedia("(prefers-reduced-motion)").matches,YE?"reduced-motion":"enabled")}var JE=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=wt({type:e});static \u0275inj=tt({})}return e})();var JA=["determinateSpinner"];function XA(e,t){if(e&1&&(Di(),_(0,"svg",11),X(1,"circle",12),w()),e&2){let n=De();_t("viewBox",n._viewBox()),V(),Eo("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeCircumference()/2,"px")("stroke-width",n._circleStrokeWidth(),"%"),_t("r",n._circleRadius())}}var eN=new E("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:XE})}),XE=100,tN=10,Vu=(()=>{class e{_elementRef=p(at);_noopAnimations;get color(){return this._color||this._defaultColor}set color(n){this._color=n}_color;_defaultColor="primary";_determinateCircle;constructor(){let n=p(eN),r=QE(),o=this._elementRef.nativeElement;this._noopAnimations=r==="di-disabled"&&!!n&&!n._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&r==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),n&&(n.color&&(this.color=this._defaultColor=n.color),n.diameter&&(this.diameter=n.diameter),n.strokeWidth&&(this.strokeWidth=n.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,n||0))}_value=0;get diameter(){return this._diameter}set diameter(n){this._diameter=n||0}_diameter=XE;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(n){this._strokeWidth=n||0}_strokeWidth;_circleRadius(){return(this.diameter-tN)/2}_viewBox(){let n=this._circleRadius()*2+this.strokeWidth;return`0 0 ${n} ${n}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Pe({type:e,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(r,o){if(r&1&&_c(JA,5),r&2){let i;Ic(i=Sc())&&(o._determinateCircle=i.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(r,o){r&2&&(_t("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Hf("mat-"+o.color),Eo("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),Mc("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Rc],diameter:[2,"diameter","diameter",Rc],strokeWidth:[2,"strokeWidth","strokeWidth",Rc]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(r,o){if(r&1&&(Dc(0,XA,2,8,"ng-template",null,0,Gf),_(2,"div",2,1),Di(),_(4,"svg",3),X(5,"circle",4),w()(),Ma(),_(6,"div",5)(7,"div",6)(8,"div",7),Do(9,8),w(),_(10,"div",9),Do(11,8),w(),_(12,"div",10),Do(13,8),w()()()),r&2){let i=Uf(1);V(4),_t("viewBox",o._viewBox()),V(),Eo("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),_t("r",o._circleRadius()),V(4),vo("ngTemplateOutlet",i),V(2),vo("ngTemplateOutlet",i),V(2),vo("ngTemplateOutlet",i)}},dependencies:[Xf],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}
6
- `],encapsulation:2,changeDetection:0})}return e})();var Bu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=wt({type:e});static \u0275inj=tt({imports:[JE]})}return e})();function nN(e,t){if(e&1){let n=_r();_(0,"pre"),j(1),Bt(2,"json"),w(),_(3,"div",1)(4,"h2"),j(5,"Edit Article"),w(),_(6,"form",2),he("ngSubmit",function(){mt(n);let o=De();return yt(o.save())}),_(7,"div",3)(8,"label",4),j(9,"id"),w(),X(10,"input",5),Le(),w(),_(11,"pre"),j(12),Bt(13,"json"),w(),_(14,"div",3)(15,"label",6),j(16,"Title"),w(),X(17,"input",7),Le(),w(),_(18,"pre"),j(19),Bt(20,"json"),w(),_(21,"div",3)(22,"label",8),j(23,"Content"),w(),X(24,"textarea",9),Le(),w(),_(25,"button",10),he("click",function(){mt(n);let o=De();return yt(o.save())}),j(26,"Save"),w(),_(27,"button",11),he("click",function(){mt(n);let o=De();return yt(o.cancel())}),j(28,"Cancel"),w()()()}if(e&2){let n=De();V(),je(Fn(2,9,n.editForm().errorSummary())),V(9),Ze(n.editForm.id,"formField"),V(2),je(Fn(13,11,n.editForm.title().errors())),V(5),Ze(n.editForm.title,"formField"),V(2),je(Fn(20,13,n.editForm.content().errors())),V(5),Ze(n.editForm.content,"formField")}}function rN(e,t){e&1&&(_(0,"div",0),X(1,"mat-progress-spinner",12),w())}var Uu=class e{route=p(At);router=p(Je);store=p(mn);articleModel=z({id:0,title:"",content:""});editForm=pn(this.articleModel,t=>{gn(t.title,{message:"Title is required"}),gn(t.content,{message:"Content is required"})});id=null;isPending=this.store.isLoading;constructor(){vt(()=>{let t=this.store.article();t&&this.articleModel.set({id:t.id,title:t.title,content:t.content})})}ngOnInit(){let t=this.route.snapshot.paramMap.get("id");t&&(this.id=t,this.store.load(+t))}save(){Fr(this.editForm,async t=>{let n=await this.store.saveArticle(t().value());return n.status==="error"?{kind:"processing_error",error:n.error}:(this.router.navigate(["/"]),null)})}cancel(){this.router.navigate(["/"])}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Pe({type:e,selectors:[["app-edit"]],features:[Vt([mn])],decls:2,vars:2,consts:[[1,"overlay"],[1,"edit-container"],[3,"ngSubmit"],[1,"form-group"],["for","id"],["type","number","id","title",3,"formField"],["for","title"],["type","text","id","title",3,"formField"],["for","content"],["id","content","rows","10",3,"formField"],["type","button",1,"btn","btn-default",3,"click"],["type","button",3,"click"],["mode","indeterminate","diameter","60"]],template:function(n,r){n&1&&(Ue(0,nN,29,15),Ue(1,rN,2,0,"div",0)),n&2&&(He(r.editForm.id().value()!==0?0:-1),V(),He(r.isPending()?1:-1))},dependencies:[ut,Bu,Vu,zn,Zi],styles:[".edit-container[_ngcontent-%COMP%]{max-width:600px;margin:2rem auto;padding:2rem}.form-group[_ngcontent-%COMP%]{margin-bottom:1rem}label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{width:100%;padding:.5rem;box-sizing:border-box}button[_ngcontent-%COMP%]{margin-right:.5rem;padding:.5rem 1rem;cursor:pointer}.error-message[_ngcontent-%COMP%]{color:red;font-size:.875rem;margin-top:.25rem}.error[_ngcontent-%COMP%]{color:red}"]})};function oN(e,t){e&1&&(_(0,"div",9),X(1,"mat-progress-spinner",10),w())}var Hu=class e{router=p(Je);store=p(mn);articleModel=z({title:"",content:""});createForm=pn(this.articleModel,t=>{gn(t.title,{message:"Title is required"}),gn(t.content,{message:"Content is required"})});save(){Fr(this.createForm,async t=>{let n=await this.store.createArticle(t().value());return n.status==="error"?{kind:"processing_error",error:n.error}:(this.router.navigate(["/"]),null)})}cancel(){this.router.navigate(["/"])}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Pe({type:e,selectors:[["app-create"]],features:[Vt([mn])],decls:23,vars:11,consts:[[1,"create-container"],[3,"ngSubmit"],[1,"form-group"],["for","title"],["type","text","id","title",3,"formField"],["for","content"],["id","content","rows","10",3,"formField"],["type","button",1,"btn","btn-default",3,"click"],["type","button",3,"click"],[1,"overlay"],["mode","indeterminate","diameter","60"]],template:function(n,r){n&1&&(_(0,"div",0)(1,"h2"),j(2,"Create New Article"),w(),_(3,"form",1),he("ngSubmit",function(){return r.save()}),_(4,"div",2)(5,"label",3),j(6,"Title"),w(),X(7,"input",4),Le(),w(),_(8,"pre"),j(9),Bt(10,"json"),w(),_(11,"div",2)(12,"label",5),j(13,"Content"),w(),X(14,"textarea",6),Le(),w(),_(15,"pre"),j(16),Bt(17,"json"),w(),_(18,"button",7),he("click",function(){return r.save()}),j(19,"Create"),w(),_(20,"button",8),he("click",function(){return r.cancel()}),j(21,"Cancel"),w()()(),Ue(22,oN,2,0,"div",9)),n&2&&(V(7),Ze(r.createForm.title,"formField"),V(2),je(Fn(10,7,r.createForm.title().errors())),V(5),Ze(r.createForm.content,"formField"),V(2),je(Fn(17,9,r.createForm.content().errors())),V(6),He(r.store.isLoading()?22:-1))},dependencies:[ut,Bu,Vu,zn,Zi],styles:[".create-container[_ngcontent-%COMP%]{max-width:600px;margin:2rem auto;padding:2rem}.form-group[_ngcontent-%COMP%]{margin-bottom:1rem}label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{width:100%;padding:.5rem;box-sizing:border-box}button[_ngcontent-%COMP%]{margin-right:.5rem;padding:.5rem 1rem;cursor:pointer}.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#ffffffb3;display:flex;justify-content:center;align-items:center}"]})};var tC=[{path:"",component:Lu},{path:"login",component:ju},{path:"edit/:id",component:Uu},{path:"new",component:Hu},{path:"**",redirectTo:""}];var nC={providers:[yh(vh()),$h(tC)]};function iN(e,t){if(e&1){let n=_r();_(0,"button",3),he("click",function(){mt(n);let o=De();return yt(o.authService.logout())}),j(1,"Logout"),w()}}function sN(e,t){e&1&&(_(0,"a",2),j(1,"Login"),w())}var $u=class e{authService=p(Un);static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Pe({type:e,selectors:[["app-root"]],decls:7,vars:1,consts:[[2,"padding","1rem","background","#f8f9fa","display","flex","justify-content","space-between","align-items","center","margin-bottom","1rem"],["routerLink","/",2,"text-decoration","none","font-weight","bold","color","#333"],["routerLink","/login"],[3,"click"]],template:function(n,r){n&1&&(_(0,"nav",0)(1,"a",1),j(2,"My Blog"),w(),_(3,"div"),Ue(4,iN,2,0,"button")(5,sN,2,0,"a",2),w()(),X(6,"router-outlet")),n&2&&(V(4),He(r.authService.isLoggedIn()?4:5))},dependencies:[ut,ps,jo],styles:["[_nghost-%COMP%]{display:block;font-family:Arial,sans-serif;color:#333}header[_ngcontent-%COMP%]{background-color:#f4f4f4;padding:20px;text-align:center;border-bottom:1px solid #ddd}main[_ngcontent-%COMP%]{padding:20px;max-width:800px;margin:0 auto}.articles-container[_ngcontent-%COMP%]{display:grid;gap:20px}.article-card[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:5px;padding:15px;background-color:#fff;box-shadow:0 2px 4px #0000001a}.article-card[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:0;color:#0056b3}.article-card[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{font-size:.9em;color:#777;margin-bottom:10px}"]})};uh($u,nC).catch(e=>console.error(e));