diff --git a/404.html b/404.html index 8187488..c87ff04 100644 --- a/404.html +++ b/404.html @@ -17,5 +17,5 @@ Fork me on GitHub - + diff --git a/index.html b/index.html index 8187488..c87ff04 100644 --- a/index.html +++ b/index.html @@ -17,5 +17,5 @@ Fork me on GitHub - + diff --git a/main-WNEP3OHW.js b/main-WNEP3OHW.js deleted file mode 100644 index 62da52c..0000000 --- a/main-WNEP3OHW.js +++ /dev/null @@ -1,87 +0,0 @@ -var Lp=Object.defineProperty,Vp=Object.defineProperties;var jp=Object.getOwnPropertyDescriptors;var Ec=Object.getOwnPropertySymbols;var $p=Object.prototype.hasOwnProperty,Up=Object.prototype.propertyIsEnumerable;var bc=(t,e,r)=>e in t?Lp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,p=(t,e)=>{for(var r in e||={})$p.call(e,r)&&bc(t,r,e[r]);if(Ec)for(var r of Ec(e))Up.call(e,r)&&bc(t,r,e[r]);return t},k=(t,e)=>Vp(t,jp(e));var ns=(t,e,r)=>new Promise((n,i)=>{var o=u=>{try{a(r.next(u))}catch(c){i(c)}},s=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,s);a((r=r.apply(t,e)).next())});var Ic=null;var rs=1;function ye(t){let e=Ic;return Ic=t,e}var Mc={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Bp(t){if(!(ss(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===rs)){if(!t.producerMustRecompute(t)&&!is(t)){t.dirty=!1,t.lastCleanEpoch=rs;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=rs}}function _c(t){return t&&(t.nextProducerIndex=0),ye(t)}function Sc(t,e){if(ye(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(ss(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function is(t){Yr(t);for(let e=0;e0}function Yr(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Hp(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function zp(){throw new Error}var Gp=zp;function xc(t){Gp=t}function I(t){return typeof t=="function"}function rn(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Qr=rn(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: -${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=r});function qn(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ee=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(I(n))try{n()}catch(o){e=o instanceof Qr?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Ac(o)}catch(s){e=e??[],s instanceof Qr?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Qr(e)}}add(e){var r;if(e&&e!==this)if(this.closed)Ac(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&qn(r,e)}remove(e){let{_finalizers:r}=this;r&&qn(r,e),e instanceof t&&e._removeParent(this)}};ee.EMPTY=(()=>{let t=new ee;return t.closed=!0,t})();var as=ee.EMPTY;function Kr(t){return t instanceof ee||t&&"closed"in t&&I(t.remove)&&I(t.add)&&I(t.unsubscribe)}function Ac(t){I(t)?t():t.unsubscribe()}var Ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var on={setTimeout(t,e,...r){let{delegate:n}=on;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=on;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Jr(t){on.setTimeout(()=>{let{onUnhandledError:e}=Ae;if(e)e(t);else throw t})}function Zn(){}var Nc=(()=>us("C",void 0,void 0))();function Oc(t){return us("E",void 0,t)}function Rc(t){return us("N",t,void 0)}function us(t,e,r){return{kind:t,value:e,error:r}}var Ot=null;function sn(t){if(Ae.useDeprecatedSynchronousErrorHandling){let e=!Ot;if(e&&(Ot={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=Ot;if(Ot=null,r)throw n}}else t()}function Fc(t){Ae.useDeprecatedSynchronousErrorHandling&&Ot&&(Ot.errorThrown=!0,Ot.error=t)}var Rt=class extends ee{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Kr(e)&&e.add(this)):this.destination=Zp}static create(e,r,n){return new Ke(e,r,n)}next(e){this.isStopped?ls(Rc(e),this):this._next(e)}error(e){this.isStopped?ls(Oc(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?ls(Nc,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Wp=Function.prototype.bind;function cs(t,e){return Wp.call(t,e)}var ds=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Xr(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Xr(n)}else Xr(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Xr(r)}}},Ke=class extends Rt{constructor(e,r,n){super();let i;if(I(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&Ae.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&cs(e.next,o),error:e.error&&cs(e.error,o),complete:e.complete&&cs(e.complete,o)}):i=e}this.destination=new ds(i)}};function Xr(t){Ae.useDeprecatedSynchronousErrorHandling?Fc(t):Jr(t)}function qp(t){throw t}function ls(t,e){let{onStoppedNotification:r}=Ae;r&&on.setTimeout(()=>r(t,e))}var Zp={closed:!0,next:Zn,error:qp,complete:Zn};var an=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")();function se(t){return t}function Yn(...t){return fs(t)}function fs(t){return t.length===0?se:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var R=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=Qp(r)?r:new Ke(r,n,i);return sn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Pc(n),new n((i,o)=>{let s=new Ke({next:a=>{try{r(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[an](){return this}pipe(...r){return fs(r)(this)}toPromise(r){return r=Pc(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function Pc(t){var e;return(e=t??Ae.Promise)!==null&&e!==void 0?e:Promise}function Yp(t){return t&&I(t.next)&&I(t.error)&&I(t.complete)}function Qp(t){return t&&t instanceof Rt||Yp(t)&&Kr(t)}function hs(t){return I(t?.lift)}function A(t){return e=>{if(hs(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function N(t,e,r,n,i){return new ps(t,e,r,n,i)}var ps=class extends Rt{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function un(){return A((t,e)=>{let r=null;t._refCount++;let n=N(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var cn=class extends R{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,hs(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ee;let r=this.getSubject();e.add(this.source.subscribe(N(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ee.EMPTY)}return e}refCount(){return un()(this)}};var kc=rn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var re=(()=>{class t extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new ei(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new kc}next(r){sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?as:(this.currentObservers=null,o.push(r),new ee(()=>{this.currentObservers=null,qn(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new R;return r.source=this,r}}return t.create=(e,r)=>new ei(e,r),t})(),ei=class extends re{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:as}};var Q=class extends re{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var le=new R(t=>t.complete());function Lc(t){return t&&I(t.schedule)}function gs(t){return t[t.length-1]}function ti(t){return I(gs(t))?t.pop():void 0}function Ve(t){return Lc(gs(t))?t.pop():void 0}function Vc(t,e){return typeof gs(t)=="number"?t.pop():e}function $c(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function jc(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ft(t){return this instanceof Ft?(this.v=t,this):new Ft(t)}function Uc(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(m,M){o.push([f,h,m,M])>1||a(f,h)})})}function a(f,h){try{u(n[f](h))}catch(m){d(o[0][3],m)}}function u(f){f.value instanceof Ft?Promise.resolve(f.value.v).then(c,l):d(o[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Bc(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof jc=="function"?jc(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var ni=t=>t&&typeof t.length=="number"&&typeof t!="function";function ri(t){return I(t?.then)}function ii(t){return I(t[an])}function oi(t){return Symbol.asyncIterator&&I(t?.[Symbol.asyncIterator])}function si(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Kp(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ai=Kp();function ui(t){return I(t?.[ai])}function ci(t){return Uc(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield Ft(r.read());if(i)return yield Ft(void 0);yield yield Ft(n)}}finally{r.releaseLock()}})}function li(t){return I(t?.getReader)}function U(t){if(t instanceof R)return t;if(t!=null){if(ii(t))return Jp(t);if(ni(t))return Xp(t);if(ri(t))return eg(t);if(oi(t))return Hc(t);if(ui(t))return tg(t);if(li(t))return ng(t)}throw si(t)}function Jp(t){return new R(e=>{let r=t[an]();if(I(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Xp(t){return new R(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Jr)})}function tg(t){return new R(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function Hc(t){return new R(e=>{rg(t,e).catch(r=>e.error(r))})}function ng(t){return Hc(ci(t))}function rg(t,e){var r,n,i,o;return $c(this,void 0,void 0,function*(){try{for(r=Bc(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function de(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function di(t,e=0){return A((r,n)=>{r.subscribe(N(n,i=>de(n,t,()=>n.next(i),e),()=>de(n,t,()=>n.complete(),e),i=>de(n,t,()=>n.error(i),e)))})}function fi(t,e=0){return A((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function zc(t,e){return U(t).pipe(fi(e),di(e))}function Gc(t,e){return U(t).pipe(fi(e),di(e))}function Wc(t,e){return new R(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function qc(t,e){return new R(r=>{let n;return de(r,e,()=>{n=t[ai](),de(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>I(n?.return)&&n.return()})}function hi(t,e){if(!t)throw new Error("Iterable cannot be null");return new R(r=>{de(r,e,()=>{let n=t[Symbol.asyncIterator]();de(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function Zc(t,e){return hi(ci(t),e)}function Yc(t,e){if(t!=null){if(ii(t))return zc(t,e);if(ni(t))return Wc(t,e);if(ri(t))return Gc(t,e);if(oi(t))return hi(t,e);if(ui(t))return qc(t,e);if(li(t))return Zc(t,e)}throw si(t)}function B(t,e){return e?Yc(t,e):U(t)}function E(...t){let e=Ve(t);return B(t,e)}function ln(t,e){let r=I(t)?t:()=>t,n=i=>i.error(r());return new R(e?i=>e.schedule(n,0,i):n)}function ms(t){return!!t&&(t instanceof R||I(t.lift)&&I(t.subscribe))}var Je=rn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function x(t,e){return A((r,n)=>{let i=0;r.subscribe(N(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:ig}=Array;function og(t,e){return ig(e)?t(...e):t(e)}function pi(t){return x(e=>og(t,e))}var{isArray:sg}=Array,{getPrototypeOf:ag,prototype:ug,keys:cg}=Object;function gi(t){if(t.length===1){let e=t[0];if(sg(e))return{args:e,keys:null};if(lg(e)){let r=cg(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function lg(t){return t&&typeof t=="object"&&ag(t)===ug}function mi(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function yi(...t){let e=Ve(t),r=ti(t),{args:n,keys:i}=gi(t);if(n.length===0)return B([],e);let o=new R(dg(n,e,i?s=>mi(i,s):se));return r?o.pipe(pi(r)):o}function dg(t,e,r=se){return n=>{Qc(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let c=B(t[u],e),l=!1;c.subscribe(N(n,d=>{o[u]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Qc(t,e,r){t?de(r,t,e):e()}function Kc(t,e,r,n,i,o,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&e.complete()},h=M=>c{o&&e.next(M),c++;let b=!1;U(r(M,l++)).subscribe(N(e,y=>{i?.(y),o?h(y):e.next(y)},()=>{b=!0},void 0,()=>{if(b)try{for(c--;u.length&&cm(y)):m(y)}f()}catch(y){e.error(y)}}))};return t.subscribe(N(e,h,()=>{d=!0,f()})),()=>{a?.()}}function K(t,e,r=1/0){return I(e)?K((n,i)=>x((o,s)=>e(n,o,i,s))(U(t(n,i))),r):(typeof e=="number"&&(r=e),A((n,i)=>Kc(n,i,t,r)))}function Qn(t=1/0){return K(se,t)}function Jc(){return Qn(1)}function dn(...t){return Jc()(B(t,Ve(t)))}function vi(t){return new R(e=>{U(t()).subscribe(e)})}function ys(...t){let e=ti(t),{args:r,keys:n}=gi(t),i=new R(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(n?mi(n,a):a),o.complete())}))}});return e?i.pipe(pi(e)):i}function vs(...t){let e=Ve(t),r=Vc(t,1/0),n=t;return n.length?n.length===1?U(n[0]):Qn(r)(B(n,e)):le}function ie(t,e){return A((r,n)=>{let i=0;r.subscribe(N(n,o=>t.call(e,o,i++)&&n.next(o)))})}function pt(t){return A((e,r)=>{let n=null,i=!1,o;n=e.subscribe(N(r,void 0,void 0,s=>{o=U(t(s,pt(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function Xc(t,e,r,n,i){return(o,s)=>{let a=r,u=e,c=0;o.subscribe(N(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function gt(t,e){return I(e)?K(t,e,1):K(t,1)}function mt(t){return A((e,r)=>{let n=!1;e.subscribe(N(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function Xe(t){return t<=0?()=>le:A((e,r)=>{let n=0;e.subscribe(N(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function Ds(t){return x(()=>t)}function Cs(t,e=se){return t=t??fg,A((r,n)=>{let i,o=!0;r.subscribe(N(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function fg(t,e){return t===e}function Di(t=hg){return A((e,r)=>{let n=!1;e.subscribe(N(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function hg(){return new Je}function Pt(t){return A((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function je(t,e){let r=arguments.length>=2;return n=>n.pipe(t?ie((i,o)=>t(i,o,n)):se,Xe(1),r?mt(e):Di(()=>new Je))}function fn(t){return t<=0?()=>le:A((e,r)=>{let n=[];e.subscribe(N(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function ws(t,e){let r=arguments.length>=2;return n=>n.pipe(t?ie((i,o)=>t(i,o,n)):se,fn(1),r?mt(e):Di(()=>new Je))}function Es(t,e){return A(Xc(t,e,arguments.length>=2,!0))}function hn(t={}){let{connector:e=()=>new re,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,u,c=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,l=d=!1},m=()=>{let M=s;h(),M?.unsubscribe()};return A((M,b)=>{c++,!d&&!l&&f();let y=u=u??e();b.add(()=>{c--,c===0&&!d&&!l&&(a=bs(m,i))}),y.subscribe(b),!s&&c>0&&(s=new Ke({next:Z=>y.next(Z),error:Z=>{d=!0,f(),a=bs(h,r,Z),y.error(Z)},complete:()=>{l=!0,f(),a=bs(h,n),y.complete()}}),U(M).subscribe(s))})(o)}}function bs(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new Ke({next:()=>{n.unsubscribe(),t()}});return U(e(...r)).subscribe(n)}function Is(...t){let e=Ve(t);return A((r,n)=>{(e?dn(t,r,e):dn(t,r)).subscribe(n)})}function ae(t,e){return A((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(N(n,u=>{i?.unsubscribe();let c=0,l=o++;U(t(u,l)).subscribe(i=N(n,d=>n.next(e?e(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Ms(t){return A((e,r)=>{U(t).subscribe(N(r,()=>r.complete(),Zn)),!r.closed&&e.subscribe(r)})}function J(t,e,r){let n=I(t)||e||r?{next:t,error:e,complete:r}:t;return n?A((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(N(o,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),o.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),o.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):se}function $(t){for(let e in t)if(t[e]===$)return e;throw Error("Could not find renamed property on target object.")}function Ci(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function oe(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(oe).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r===-1?e:e.substring(0,r)}function el(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var pg=$({__forward_ref__:$});function Gt(t){return t.__forward_ref__=Gt,t.toString=function(){return oe(this())},t}function ue(t){return jl(t)?t():t}function jl(t){return typeof t=="function"&&t.hasOwnProperty(pg)&&t.__forward_ref__===Gt}function $l(t){return t&&!!t.\u0275providers}var Ul="https://g.co/ng/security#xss",v=class extends Error{constructor(e,r){super(Qi(e,r)),this.code=e}};function Qi(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var gg=$({\u0275cmp:$}),mg=$({\u0275dir:$}),yg=$({\u0275pipe:$}),vg=$({\u0275mod:$}),Ni=$({\u0275fac:$}),Kn=$({__NG_ELEMENT_ID__:$}),tl=$({__NG_ENV_ID__:$});function cr(t){return typeof t=="string"?t:t==null?"":String(t)}function Dg(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():cr(t)}function Cg(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new v(-200,`Circular dependency in DI detected for ${t}${r}`)}function Ma(t,e){let r=e?` in ${e}`:"";throw new v(-201,!1)}function wg(t,e){t==null&&Eg(e,t,null,"!=")}function Eg(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function C(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function it(t){return{providers:t.providers||[],imports:t.imports||[]}}function Ki(t){return nl(t,Hl)||nl(t,zl)}function Bl(t){return Ki(t)!==null}function nl(t,e){return t.hasOwnProperty(e)?t[e]:null}function bg(t){let e=t&&(t[Hl]||t[zl]);return e||null}function rl(t){return t&&(t.hasOwnProperty(il)||t.hasOwnProperty(Ig))?t[il]:null}var Hl=$({\u0275prov:$}),il=$({\u0275inj:$}),zl=$({ngInjectableDef:$}),Ig=$({ngInjectorDef:$}),O=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(O||{}),Us;function Mg(){return Us}function $e(t){let e=Us;return Us=t,e}function Gl(t,e,r){let n=Ki(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&O.Optional)return null;if(e!==void 0)return e;Ma(oe(t),"Injector")}var et=globalThis;var w=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=C({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};var _g={},er=_g,Sg="__NG_DI_FLAG__",Oi="ngTempTokenPath",Tg="ngTokenPath",xg=/\n/gm,Ag="\u0275",ol="__source",Jn;function pn(t){let e=Jn;return Jn=t,e}function Ng(t,e=O.Default){if(Jn===void 0)throw new v(-203,!1);return Jn===null?Gl(t,void 0,e):Jn.get(t,e&O.Optional?null:void 0,e)}function D(t,e=O.Default){return(Mg()||Ng)(ue(t),e)}function g(t,e=O.Default){return D(t,Ji(e))}function Ji(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Bs(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):oe(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(xg,` - `)}`}function Xi(t){return{toString:t}.toString()}var Wl=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Wl||{}),He=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(He||{}),Dn={},we=[];function ql(t,e,r){let n=t.length;for(;;){let i=t.indexOf(e,r);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===n||t.charCodeAt(i+o)<=32)return i}r=i+1}}function Hs(t,e,r){let n=0;for(;ne){s=o-1;break}}}for(;oo?f="":f=i[d+1].toLowerCase();let h=n&8?f:null;if(h&&ql(h,c,0)!==-1||n&2&&c!==f){if(Ne(n))return!1;s=!0}}}}return Ne(n)||s}function Ne(t){return(t&1)===0}function jg(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Ne(s)&&(e+=al(o,i),i=""),n=s,o=o||!Ne(n);r++}return i!==""&&(e+=al(o,i)),e}function Gg(t){return t.map(zg).join(",")}function Wg(t){let e=[],r=[],n=1,i=2;for(;n{let e=nd(t),r=k(p({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Wl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||He.Emulated,styles:t.styles||we,_:null,schemas:t.schemas||null,tView:null,id:""});rd(r);let n=t.dependencies;return r.directiveDefs=cl(n,!1),r.pipeDefs=cl(n,!0),r.id=Yg(r),r})}function qg(t){return Lt(t)||Jl(t)}function Zg(t){return t!==null}function ot(t){return Xi(()=>({type:t.type,bootstrap:t.bootstrap||we,declarations:t.declarations||we,imports:t.imports||we,exports:t.exports||we,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function ul(t,e){if(t==null)return Dn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),r[i]=n,e&&(e[i]=o)}return r}function ve(t){return Xi(()=>{let e=nd(t);return rd(e),e})}function Lt(t){return t[gg]||null}function Jl(t){return t[mg]||null}function Xl(t){return t[yg]||null}function ed(t){let e=Lt(t)||Jl(t)||Xl(t);return e!==null?e.standalone:!1}function td(t,e){let r=t[vg]||null;if(!r&&e===!0)throw new Error(`Type ${oe(t)} does not have '\u0275mod' property.`);return r}function nd(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Dn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||we,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ul(t.inputs,e),outputs:ul(t.outputs),debugInfo:null}}function rd(t){t.features?.forEach(e=>e(t))}function cl(t,e){if(!t)return null;let r=e?Xl:qg;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Zg)}function Yg(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483647+1,"c"+e}var st=0,F=1,T=2,X=3,Oe=4,De=5,Ri=6,nr=7,ze=8,Cn=9,wn=10,Y=11,rr=12,ll=13,Sn=14,Re=15,eo=16,gn=17,ir=18,to=19,id=20,Xn=21,_s=22,Vt=23,Ge=25,od=1,sd=2,zs=6,jt=7,Fi=8,Pi=9;var Ee=11;function yt(t){return Array.isArray(t)&&typeof t[od]=="object"}function Fe(t){return Array.isArray(t)&&t[od]===!0}function _a(t){return(t.flags&4)!==0}function no(t){return t.componentOffset>-1}function ro(t){return(t.flags&1)===1}function vt(t){return!!t.template}function Qg(t){return(t[T]&512)!==0}function En(t,e){let r=t.hasOwnProperty(Ni);return r?t[Ni]:null}var Gs=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function at(){return ad}function ad(t){return t.type.prototype.ngOnChanges&&(t.setInput=Jg),Kg}at.ngInherit=!0;function Kg(){let t=cd(this),e=t?.current;if(e){let r=t.previous;if(r===Dn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function Jg(t,e,r,n){let i=this.declaredInputs[r],o=cd(t)||Xg(t,{previous:Dn,current:null}),s=o.current||(o.current={}),a=o.previous,u=a[i];s[i]=new Gs(u&&u.currentValue,e,a===Dn),t[n]=e}var ud="__ngSimpleChanges__";function cd(t){return t[ud]||null}function Xg(t,e){return t[ud]=e}var dl=null;var Ue=function(t,e,r){dl?.(t,e,r)},em="svg",tm="math";function We(t){for(;Array.isArray(t);)t=t[st];return t}function ld(t,e){return We(e[t])}function Ie(t,e){return We(e[t.index])}function dd(t,e){return t.data[e]}function wt(t,e){let r=e[t];return yt(r)?r:r[st]}function Sa(t){return(t[T]&128)===128}function nm(t){return Fe(t[X])}function bn(t,e){return e==null?null:t[e]}function fd(t){t[gn]=0}function rm(t){t[T]&1024||(t[T]|=1024,Sa(t)&&io(t))}function im(t,e){for(;t>0;)e=e[Sn],t--;return e}function hd(t){t[T]&9216&&io(t)}function io(t){let e=t[X];for(;e!==null&&!(Fe(e)&&e[zs]||yt(e)&&e[T]&8192);){if(Fe(e))e[zs]=!0;else if(e[T]|=8192,!Sa(e))break;e=e[X]}}function om(t,e){if((t[T]&256)===256)throw new v(911,!1);t[Xn]===null&&(t[Xn]=[]),t[Xn].push(e)}var P={lFrame:Cd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function sm(){return P.lFrame.elementDepthCount}function am(){P.lFrame.elementDepthCount++}function um(){P.lFrame.elementDepthCount--}function pd(){return P.bindingsEnabled}function gd(){return P.skipHydrationRootTNode!==null}function cm(t){return P.skipHydrationRootTNode===t}function lm(){P.skipHydrationRootTNode=null}function G(){return P.lFrame.lView}function he(){return P.lFrame.tView}function pe(){let t=md();for(;t!==null&&t.type===64;)t=t.parent;return t}function md(){return P.lFrame.currentTNode}function dm(){let t=P.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Wt(t,e){let r=P.lFrame;r.currentTNode=t,r.isParent=e}function Ta(){return P.lFrame.isParent}function xa(){P.lFrame.isParent=!1}function fm(t){return P.lFrame.bindingIndex=t}function Aa(){return P.lFrame.bindingIndex++}function hm(t){let e=P.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function pm(){return P.lFrame.inI18n}function gm(t,e){let r=P.lFrame;r.bindingIndex=r.bindingRootIndex=t,Ws(e)}function mm(){return P.lFrame.currentDirectiveIndex}function Ws(t){P.lFrame.currentDirectiveIndex=t}function ym(t){let e=P.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function yd(t){P.lFrame.currentQueryIndex=t}function vm(t){let e=t[F];return e.type===2?e.declTNode:e.type===1?t[De]:null}function vd(t,e,r){if(r&O.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&O.Host);)if(i=vm(o),i===null||(o=o[Sn],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=P.lFrame=Dd();return n.currentTNode=e,n.lView=t,!0}function Na(t){let e=Dd(),r=t[F];P.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function Dd(){let t=P.lFrame,e=t===null?null:t.child;return e===null?Cd(t):e}function Cd(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function wd(){let t=P.lFrame;return P.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ed=wd;function Oa(){let t=wd();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Dm(t){return(P.lFrame.contextLView=im(t,P.lFrame.contextLView))[ze]}function Tn(){return P.lFrame.selectedIndex}function $t(t){P.lFrame.selectedIndex=t}function bd(){let t=P.lFrame;return dd(t.tView,t.selectedIndex)}function Cm(){return P.lFrame.currentNamespace}var Id=!0;function oo(){return Id}function so(t){Id=t}function wm(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=ad(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function ao(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[u]<0&&(t[gn]+=65536),(a>14>16&&(t[T]&3)===e&&(t[T]+=16384,fl(a,o)):fl(a,o)}var vn=-1,Ut=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function bm(t){return t instanceof Ut}function Im(t){return(t.flags&8)!==0}function Mm(t){return(t.flags&16)!==0}function _d(t){return t!==vn}function ki(t){let e=t&32767;return t&32767}function _m(t){return t>>16}function Li(t,e){let r=_m(t),n=e;for(;r>0;)n=n[Sn],r--;return n}var qs=!0;function hl(t){let e=qs;return qs=t,e}var Sm=256,Sd=Sm-1,Td=5,Tm=0,Be={};function xm(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Kn)&&(n=r[Kn]),n==null&&(n=r[Kn]=Tm++);let i=n&Sd,o=1<>Td)]|=o}function Vi(t,e){let r=xd(t,e);if(r!==-1)return r;let n=e[F];n.firstCreatePass&&(t.injectorIndex=e.length,Ts(n.data,t),Ts(e,null),Ts(n.blueprint,null));let i=Ra(t,e),o=t.injectorIndex;if(_d(i)){let s=ki(i),a=Li(i,e),u=a[F].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function Ts(t,e){t.push(0,0,0,0,0,0,0,0,e)}function xd(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Ra(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Fd(i),n===null)return vn;if(r++,i=i[Sn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return vn}function Zs(t,e,r){xm(t,e,r)}function Am(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:c;for(let h=d;h=u&&m.type===r)return h}if(i){let h=s[u];if(h&&vt(h)&&h.type===r)return u}return null}function In(t,e,r,n){let i=t[r],o=e.data;if(bm(i)){let s=i;s.resolving&&Cg(Dg(o[r]));let a=hl(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?$e(s.injectImpl):null,l=vd(t,n,O.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&wm(r,o[r],e)}finally{c!==null&&$e(c),hl(a),s.resolving=!1,Ed()}}return i}function Rm(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Kn)?t[Kn]:void 0;return typeof e=="number"?e>=0?e&Sd:Fm:e}function pl(t,e,r){let n=1<>Td)]&n)}function gl(t,e){return!(t&O.Self)&&!(t&O.Host&&e)}var kt=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Od(this._tNode,this._lView,e,Ji(n),r)}};function Fm(){return new kt(pe(),G())}function lr(t){return Xi(()=>{let e=t.prototype.constructor,r=e[Ni]||Ys(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[Ni]||Ys(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Ys(t){return jl(t)?()=>{let e=Ys(ue(t));return e&&e()}:En(t)}function Pm(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[T]&2048&&!(s[T]&512);){let a=Rd(o,s,r,n|O.Self,Be);if(a!==Be)return a;let u=o.parent;if(!u){let c=s[id];if(c){let l=c.get(r,Be,n);if(l!==Be)return l}u=Fd(s),s=s[Sn]}o=u}return i}function Fd(t){let e=t[F],r=e.type;return r===2?e.declTNode:r===1?t[De]:null}function Fa(t){return Am(pe(),t)}function km(t){return typeof t=="function"}function Pa(t,e){t.forEach(r=>Array.isArray(r)?Pa(r,e):e(r))}function Pd(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function ji(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function kd(t,e){let r=[];for(let n=0;ne;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function Vm(t,e,r){let n=dr(t,e);return n>=0?t[n|1]=r:(n=~n,Lm(t,n,e,r)),n}function xs(t,e){let r=dr(t,e);if(r>=0)return t[r|1]}function dr(t,e){return jm(t,e,1)}function jm(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<{r.push(s)};return Pa(e,s=>{let a=s;Qs(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&$d(i,o),r}function $d(t,e){for(let r=0;r{e(o,n)})}}function Qs(t,e,r,n){if(t=ue(t),!t)return!1;let i=null,o=rl(t),s=!o&&Lt(t);if(!o&&!s){let u=t.ngModule;if(o=rl(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Qs(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{Pa(o.imports,l=>{Qs(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&$d(c,e)}if(!a){let c=En(i)||(()=>new i);e({provide:i,useFactory:c,deps:we},i),e({provide:Vd,useValue:i,multi:!0},i),e({provide:fr,useValue:()=>D(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;ka(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function ka(t,e){for(let r of t)$l(r)&&(r=r.\u0275providers),Array.isArray(r)?ka(r,e):e(r)}var Um=$({provide:String,useValue:$});function Ud(t){return t!==null&&typeof t=="object"&&Um in t}function Bm(t){return!!(t&&t.useExisting)}function Hm(t){return!!(t&&t.useFactory)}function Mn(t){return typeof t=="function"}function zm(t){return!!t.useClass}var uo=new w("Set Injector scope."),Ti={},Gm={},As;function La(){return As===void 0&&(As=new $i),As}var fe=class{},Ui=class extends fe{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Js(e,s=>this.processProvider(s)),this.records.set(Ld,mn(void 0,this)),i.has("environment")&&this.records.set(fe,mn(void 0,this));let o=this.records.get(uo);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Vd,we,O.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=pn(this),n=$e(void 0),i;try{return e()}finally{pn(r),$e(n)}}get(e,r=er,n=O.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(tl))return e[tl](this);n=Ji(n);let i,o=pn(this),s=$e(void 0);try{if(!(n&O.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=Qm(e)&&Ki(e);c&&this.injectableDefInScope(c)?u=mn(Ks(e),Ti):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&O.Self?La():this.parent;return r=n&O.Optional&&r===er?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Oi]=a[Oi]||[]).unshift(oe(e)),o)throw a;return Rg(a,e,"R3InjectorError",this.source)}else throw a}finally{$e(s),pn(o)}}resolveInjectorInitializers(){let e=pn(this),r=$e(void 0),n;try{let i=this.get(fr,we,O.Self);for(let o of i)o()}finally{pn(e),$e(r)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(oe(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(e){e=ue(e);let r=Mn(e)?e:ue(e&&e.provide),n=qm(e);if(!Mn(e)&&e.multi===!0){let i=this.records.get(r);i||(i=mn(void 0,Ti,!0),i.factory=()=>Bs(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}else{let i=this.records.get(r)}this.records.set(r,n)}hydrate(e,r){return r.value===Ti&&(r.value=Gm,r.value=r.factory()),typeof r.value=="object"&&r.value&&Ym(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(e){if(!e.providedIn)return!1;let r=ue(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Ks(t){let e=Ki(t),r=e!==null?e.factory:En(t);if(r!==null)return r;if(t instanceof w)throw new v(204,!1);if(t instanceof Function)return Wm(t);throw new v(204,!1)}function Wm(t){let e=t.length;if(e>0){let n=kd(e,"?");throw new v(204,!1)}let r=bg(t);return r!==null?()=>r.factory(t):()=>new t}function qm(t){if(Ud(t))return mn(void 0,t.useValue);{let e=Bd(t);return mn(e,Ti)}}function Bd(t,e,r){let n;if(Mn(t)){let i=ue(t);return En(i)||Ks(i)}else if(Ud(t))n=()=>ue(t.useValue);else if(Hm(t))n=()=>t.useFactory(...Bs(t.deps||[]));else if(Bm(t))n=()=>D(ue(t.useExisting));else{let i=ue(t&&(t.useClass||t.provide));if(Zm(t))n=()=>new i(...Bs(t.deps));else return En(i)||Ks(i)}return n}function mn(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Zm(t){return!!t.deps}function Ym(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Qm(t){return typeof t=="function"||typeof t=="object"&&t instanceof w}function Js(t,e){for(let r of t)Array.isArray(r)?Js(r,e):r&&$l(r)?Js(r.\u0275providers,e):e(r)}function ml(t,e=null,r=null,n){let i=Hd(t,e,r,n);return i.resolveInjectorInitializers(),i}function Hd(t,e=null,r=null,n,i=new Set){let o=[r||we,$m(t)];return n=n||(typeof t=="object"?void 0:oe(t)),new Ui(o,e||La(),n||null,i)}var bt=(()=>{let e=class e{static create(n,i){if(Array.isArray(n))return ml({name:""},i,n,"");{let o=n.name??"";return ml({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=er,e.NULL=new $i,e.\u0275prov=C({token:e,providedIn:"any",factory:()=>D(Ld)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var Xs;function zd(t){Xs=t}function Gd(){if(Xs!==void 0)return Xs;if(typeof document<"u")return document;throw new v(210,!1)}var Va=new w("AppId",{providedIn:"root",factory:()=>Km}),Km="ng",ja=new w("Platform Initializer"),It=new w("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var $a=new w("CSP nonce",{providedIn:"root",factory:()=>Gd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Wd(t){return t instanceof Function?t():t}function qd(t){return(t.flags&128)===128}var tt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(tt||{}),Jm=/^>|^->||--!>|)/g,ey="\u200B$1\u200B";function ty(t){return t.replace(Jm,e=>e.replace(Xm,ey))}var Zd=new Map,ny=0;function ry(){return ny++}function iy(t){Zd.set(t[to],t)}function oy(t){Zd.delete(t[to])}var yl="__ngContext__";function Dt(t,e){yt(e)?(t[yl]=e[to],iy(e)):t[yl]=e}var sy;function Ua(t,e){return sy(t,e)}function Ba(t){let e=t[X];return Fe(e)?e[X]:e}function Yd(t){return Kd(t[rr])}function Qd(t){return Kd(t[Oe])}function Kd(t){for(;t!==null&&!Fe(t);)t=t[Oe];return t}function yn(t,e,r,n,i){if(n!=null){let o,s=!1;Fe(n)?o=n:yt(n)&&(s=!0,n=n[st]);let a=We(n);t===0&&r!==null?i==null?nf(e,r,a):Bi(e,r,a,i||null,!0):t===1&&r!==null?Bi(e,r,a,i||null,!0):t===2?by(e,a,s):t===3&&e.destroyNode(a),o!=null&&My(e,t,o,r,i)}}function ay(t,e){return t.createText(e)}function uy(t,e,r){t.setValue(e,r)}function cy(t,e){return t.createComment(ty(e))}function Jd(t,e,r){return t.createElement(e,r)}function ly(t,e){let r=e[Y];hr(t,e,r,2,null,null),e[st]=null,e[De]=null}function dy(t,e,r,n,i,o){n[st]=i,n[De]=e,hr(t,n,r,1,i,o)}function fy(t,e){hr(t,e,e[Y],2,null,null)}function hy(t){let e=t[rr];if(!e)return Ns(t[F],t);for(;e;){let r=null;if(yt(e))r=e[rr];else{let n=e[Ee];n&&(r=n)}if(!r){for(;e&&!e[Oe]&&e!==t;)yt(e)&&Ns(e[F],e),e=e[X];e===null&&(e=t),yt(e)&&Ns(e[F],e),r=e&&e[Oe]}e=r}}function py(t,e,r,n){let i=Ee+n,o=r.length;n>0&&(r[i-1][Oe]=e),n0&&(t[r-1][Oe]=n[Oe]);let o=ji(t,Ee+e);ly(n[F],n);let s=o[ir];s!==null&&s.detachView(o[F]),n[X]=null,n[Oe]=null,n[T]&=-129}return n}function ef(t,e){if(!(e[T]&256)){let r=e[Y];e[Vt]&&Tc(e[Vt]),r.destroyNode&&hr(t,e,r,3,null,null),hy(e)}}function Ns(t,e){if(!(e[T]&256)){e[T]&=-129,e[T]|=256,yy(t,e),my(t,e),e[F].type===1&&e[Y].destroy();let r=e[eo];if(r!==null&&Fe(e[X])){r!==e[X]&&Xd(r,e);let n=e[ir];n!==null&&n.detachView(t)}oy(e)}}function my(t,e){let r=t.cleanup,n=e[nr];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[nr]=null);let i=e[Xn];if(i!==null){e[Xn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===He.None||o===He.Emulated)return null}return Ie(n,r)}}function Bi(t,e,r,n,i){t.insertBefore(e,r,n,i)}function nf(t,e,r){t.appendChild(e,r)}function vl(t,e,r,n,i){n!==null?Bi(t,e,r,n,i):nf(t,e,r)}function Dy(t,e,r,n){t.removeChild(e,r,n)}function Ha(t,e){return t.parentNode(e)}function Cy(t,e){return t.nextSibling(e)}function rf(t,e,r){return Ey(t,e,r)}function wy(t,e,r){return t.type&40?Ie(t,r):null}var Ey=wy,Dl;function co(t,e,r,n){let i=tf(t,n,e),o=e[Y],s=n.parent||e[De],a=rf(s,n,e);if(i!=null)if(Array.isArray(r))for(let u=0;ut,createScript:t=>t,createScriptURL:t=>t})}catch{}return wi}function lo(t){return Ty()?.createHTML(t)||t}var Ei;function cf(){if(Ei===void 0&&(Ei=null,et.trustedTypes))try{Ei=et.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ei}function Cl(t){return cf()?.createHTML(t)||t}function wl(t){return cf()?.createScriptURL(t)||t}var nt=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ul})`}},na=class extends nt{getTypeName(){return"HTML"}},ra=class extends nt{getTypeName(){return"Style"}},ia=class extends nt{getTypeName(){return"Script"}},oa=class extends nt{getTypeName(){return"URL"}},sa=class extends nt{getTypeName(){return"ResourceURL"}};function Pe(t){return t instanceof nt?t.changingThisBreaksApplicationSecurity:t}function ut(t,e){let r=xy(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Ul})`)}return r===e}function xy(t){return t instanceof nt&&t.getTypeName()||null}function lf(t){return new na(t)}function df(t){return new ra(t)}function ff(t){return new ia(t)}function hf(t){return new oa(t)}function pf(t){return new sa(t)}function Ay(t){let e=new ua(t);return Ny()?new aa(e):e}var aa=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(lo(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},ua=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=lo(e),r}};function Ny(){try{return!!new window.DOMParser().parseFromString(lo(""),"text/html")}catch{return!1}}var Oy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function fo(t){return t=String(t),t.match(Oy)?t:"unsafe:"+t}function ct(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function pr(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var gf=ct("area,br,col,hr,img,wbr"),mf=ct("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yf=ct("rp,rt"),Ry=pr(yf,mf),Fy=pr(mf,ct("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Py=pr(yf,ct("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),El=pr(gf,Fy,Py,Ry),vf=ct("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ky=ct("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ly=ct("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Vy=pr(vf,ky,Ly),jy=ct("script,style,template"),ca=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0;for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){r=r.firstChild;continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let i=this.checkClobberedElement(r,r.nextSibling);if(i){r=i;break}r=this.checkClobberedElement(r,r.parentNode)}}return this.buf.join("")}startElement(e){let r=e.nodeName.toLowerCase();if(!El.hasOwnProperty(r))return this.sanitizedSomething=!0,!jy.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let i=0;i"),!0}endElement(e){let r=e.nodeName.toLowerCase();El.hasOwnProperty(r)&&!gf.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(bl(e))}checkClobberedElement(e,r){if(r&&(e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return r}},$y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Uy=/([^\#-~ |!])/g;function bl(t){return t.replace(/&/g,"&").replace($y,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(Uy,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var bi;function Ga(t,e){let r=null;try{bi=bi||Ay(t);let n=e?String(e):"";r=bi.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=bi.getInertBodyElement(n)}while(n!==o);let a=new ca().sanitizeChildren(Il(r)||r);return lo(a)}finally{if(r){let n=Il(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Il(t){return"content"in t&&By(t)?t.content:null}function By(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var ke=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(ke||{});function ho(t){let e=Wa();return e?Cl(e.sanitize(ke.HTML,t)||""):ut(t,"HTML")?Cl(Pe(t)):Ga(Gd(),cr(t))}function Hy(t){let e=Wa();return e?e.sanitize(ke.URL,t)||"":ut(t,"URL")?Pe(t):fo(cr(t))}function zy(t){let e=Wa();if(e)return wl(e.sanitize(ke.RESOURCE_URL,t)||"");if(ut(t,"ResourceURL"))return wl(Pe(t));throw new v(904,!1)}function Gy(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?zy:Hy}function Df(t,e,r){return Gy(e,r)(t)}function Wa(){let t=G();return t&&t[wn].sanitizer}var Wy="h",qy="b";var Zy=(t,e,r)=>null;function qa(t,e,r=!1){return Zy(t,e,r)}var la=class{},Hi=class{};function Yy(t){let e=Error(`No component factory found for ${oe(t)}.`);return e[Qy]=t,e}var Qy="ngComponent";var da=class{resolveComponentFactory(e){throw Yy(e)}},po=(()=>{let e=class e{};e.NULL=new da;let t=e;return t})();function Ky(){return go(pe(),G())}function go(t,e){return new qe(Ie(t,e))}var qe=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Ky;let t=e;return t})();var or=class{},qt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>Jy();let t=e;return t})();function Jy(){let t=G(),e=pe(),r=wt(e.index,t);return(yt(r)?r:t)[Y]}var Xy=(()=>{let e=class e{};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Bt=class{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}},ev=new Bt("17.0.1"),Os={};function zi(t,e,r,n,i=!1){for(;r!==null;){let o=e[r.index];o!==null&&n.push(We(o)),Fe(o)&&tv(o,n);let s=r.type;if(s&8)zi(t,e,r.child,n);else if(s&32){let a=Ua(r,e),u;for(;u=a();)n.push(u)}else if(s&16){let a=of(e,r);if(Array.isArray(a))n.push(...a);else{let u=Ba(e[Re]);zi(u[F],u,a,n,!0)}}r=i?r.projectionNext:r.next}return n}function tv(t,e){for(let r=Ee;r{io(t.lView)},consumerOnSignalRead(){this.lView[Vt]=this}}),sv="ngOriginalError";function Rs(t){return t[sv]}var rt=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Rs(e);for(;r&&Rs(r);)r=Rs(r);return r||null}};var wf=!1,av=new w("",{providedIn:"root",factory:()=>wf});var xn={};function ge(t){Ef(he(),G(),Tn()+t,!1)}function Ef(t,e,r,n){if(!n)if((e[T]&3)===3){let o=t.preOrderCheckHooks;o!==null&&_i(e,o,r)}else{let o=t.preOrderHooks;o!==null&&Si(e,o,0,r)}$t(r)}function _(t,e=O.Default){let r=G();if(r===null)return D(t,e);let n=pe();return Od(n,r,ue(t),e)}function uv(t,e){let r=t.hostBindingOpCodes;if(r!==null)try{for(let n=0;nGe&&Ef(t,e,Ge,!1),Ue(s?2:0,i),r(n,i)}finally{$t(o),Ue(s?3:1,i)}}function Za(t,e,r){if(_a(e)){let n=ye(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function pv(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return gd()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Ml(t,e,r,n){for(let i in t)if(t.hasOwnProperty(i)){r=r===null?{}:r;let o=t[i];n===null?_l(r,e,i,o):n.hasOwnProperty(i)&&_l(r,e,n[i],o)}return r}function _l(t,e,r,n){t.hasOwnProperty(r)?t[r].push(e,n):t[r]=[e,n]}function gv(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function wv(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;no(r)&&Tv(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||Vi(r,e),Dt(n,e);let s=r.initialInputs;for(let a=i;a-1&&(ea(e,n),ji(r,n))}this._attachedToViewContainer=!1}ef(this._lView[F],this._lView)}onDestroy(e){om(this._lView,e)}markForCheck(){eu(this._cdRefInjectingView||this._lView)}detach(){this._lView[T]&=-129}reattach(){hd(this._lView),this._lView[T]|=128}detectChanges(){Lv(this._lView[F],this._lView,this.context,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,fy(this._lView[F],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=e}},Mt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Bv;let t=e;return t})();function Bv(t){return Hv(pe(),G(),(t&16)===16)}function Hv(t,e,r){if(no(t)&&!r){let n=wt(t.index,e);return new Ht(n,n)}else if(t.type&47){let n=e[Re];return new Ht(n,e)}return null}function tu(t,e){return performance?.mark?.(t,e)}var pa=class extends re{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=Fs(o),i&&(i=Fs(i)),s&&(s=Fs(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof ee&&e.add(a),a}};function Fs(t){return e=>{setTimeout(t,void 0,e)}}var ne=pa;function Sl(...t){}function zv(){let t=typeof et.requestAnimationFrame=="function",e=et[t?"requestAnimationFrame":"setTimeout"],r=et[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var H=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ne(!1),this.onMicrotaskEmpty=new ne(!1),this.onStable=new ne(!1),this.onError=new ne(!1),typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=zv().nativeRequestAnimationFrame,qv(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new v(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,Gv,Sl,Sl);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},Gv={};function nu(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Wv(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(et,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ga(t),t.isCheckStableRunning=!0,nu(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ga(t))}function qv(t){let e=()=>{Wv(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(Zv(a))return r.invokeTask(i,o,s,a);try{return Tl(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),xl(t)}},onInvoke:(r,n,i,o,s,a,u)=>{try{return Tl(t),r.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),xl(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,ga(t),nu(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function ga(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Tl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function xl(t){t._nesting--,nu(t)}var Lf=new w("",{providedIn:"root",factory:Vf});function Vf(){let t=g(H),e=!0,r=new R(i=>{e=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{i.next(e),i.complete()})}),n=new R(i=>{let o;t.runOutsideAngular(()=>{o=t.onStable.subscribe(()=>{H.assertNotInAngularZone(),queueMicrotask(()=>{!e&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(e=!0,i.next(!0))})})});let s=t.onUnstable.subscribe(()=>{H.assertInAngularZone(),e&&(e=!1,t.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}});return vs(r,n.pipe(hn()))}function Zv(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var Yv=(()=>{let e=class e{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,this.renderDepth===0){for(let n of this.internalCallbacks)n();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Qv(t,e){let r=wt(e,t),n=r[F];Kv(n,r);let i=r[st];i!==null&&r[Ri]===null&&(r[Ri]=qa(i,r[Cn])),ru(n,r,r[ze])}function Kv(t,e){for(let r=e.length;r0&&af(t,r,o.join(" "))}}function oD(t,e,r){let n=t.projection=[];for(let i=0;i=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=tr(i.hostAttrs,r=tr(r,i.hostAttrs))}}function Ii(t){return t===Dn?{}:t===we?[]:t}function cD(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function lD(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function dD(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function gr(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[2]&&(r[n]=i[2])}t.inputTransforms=r}function vo(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function Zt(t,e,r,n){let i=G(),o=Aa();if(vo(i,o,e)){let s=he(),a=bd();xv(a,i,t,e,r,n)}return Zt}function fD(t,e,r,n){return vo(t,Aa(),r)?e+cr(r)+n:xn}function Mi(t,e){return t<<17|e<<2}function zt(t){return t>>17&32767}function hD(t){return(t&2)==2}function pD(t,e){return t&131071|e<<17}function va(t){return t|2}function _n(t){return(t&131068)>>2}function Ps(t,e){return t&-131069|e<<2}function gD(t){return(t&1)===1}function Da(t){return t|1}function mD(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=zt(s),u=_n(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||dr(d,l)>0)&&(c=!0)}else l=r;if(i)if(u!==0){let f=zt(t[a+1]);t[n+1]=Mi(f,a),f!==0&&(t[f+1]=Ps(t[f+1],n)),t[a+1]=pD(t[a+1],n)}else t[n+1]=Mi(a,0),a!==0&&(t[a+1]=Ps(t[a+1],n)),a=n;else t[n+1]=Mi(u,0),a===0?a=n:t[u+1]=Ps(t[u+1],n),u=n;c&&(t[n+1]=va(t[n+1])),Nl(t,l,n,!0,o),Nl(t,l,n,!1,o),yD(e,l,t,n,o),s=Mi(a,u),o?e.classBindings=s:e.styleBindings=s}function yD(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&dr(o,e)>=0&&(r[n+1]=Da(r[n+1]))}function Nl(t,e,r,n,i){let o=t[r+1],s=e===null,a=n?zt(o):_n(o),u=!1;for(;a!==0&&(u===!1||s);){let c=t[a],l=t[a+1];vD(c,e)&&(u=!0,t[a+1]=n?Da(l):va(l)),a=n?zt(l):_n(l)}u&&(t[r+1]=n?va(o):Da(o))}function vD(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?dr(t,e)>=0:!1}function ce(t,e,r){let n=G(),i=Aa();if(vo(n,i,e)){let o=he(),s=bd();yv(o,s,n,t,e,n[Y],r,!1)}return ce}function Ol(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";Xa(t,r,o[s],s,n)}function Do(t,e,r){return jf(t,e,r,!1),Do}function iu(t,e){return jf(t,e,null,!0),iu}function jf(t,e,r,n){let i=G(),o=he(),s=hm(2);if(o.firstUpdatePass&&CD(o,t,s,n),e!==xn&&vo(i,s,e)){let a=o.data[Tn()];MD(o,a,i,i[Y],t,i[s+1]=_D(e,r),n,s)}}function DD(t,e){return e>=t.expandoStartIndex}function CD(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[Tn()],s=DD(t,r);SD(o,n)&&e===null&&!s&&(e=!1),e=wD(i,o,e,n),mD(i,o,e,r,s,n)}}function wD(t,e,r,n){let i=ym(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=ks(null,t,e,r,n),r=ar(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=ks(i,t,e,r,n),o===null){let u=ED(t,e,n);u!==void 0&&Array.isArray(u)&&(u=ks(null,t,e,u[1],n),u=ar(u,e.attrs,n),bD(t,e,n,u))}else o=ID(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function ED(t,e,r){let n=r?e.classBindings:e.styleBindings;if(_n(n)!==0)return t[zt(n)]}function bD(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[zt(i)]=n}function ID(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=r[i+1];f===xn&&(f=d?we:void 0);let h=d?xs(f,n):l===n?f:void 0;if(c&&!qi(h)&&(h=xs(u,n)),qi(h)&&(a=h,s))return a;let m=t[i+1];i=s?zt(m):_n(m)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=xs(u,n))}return a}function qi(t){return t!==void 0}function _D(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=oe(Pe(t)))),t}function SD(t,e){return(t.flags&(e?8:16))!==0}var ex=new RegExp(`^(\\d+)*(${qy}|${Wy})*(.*)`);var TD=(t,e)=>null;function Fl(t,e){return TD(t,e)}function xD(t,e,r,n){let i=e.tView,s=t[T]&4096?4096:16,a=mo(t,i,r,s,null,e,null,null,null,n?.injector??null,n?.dehydratedView??null),u=t[e.index];a[eo]=u;let c=t[ir];return c!==null&&(a[ir]=c.createEmbeddedView(i)),ru(i,a,r),a}function Pl(t,e){return!e||qd(t)}function AD(t,e,r,n=!0){let i=e[F];if(py(i,e,t,r),n){let o=ta(r,t),s=e[Y],a=Ha(s,t[jt]);a!==null&&dy(i,t[De],s,e,a,o)}}var mr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=ND;let t=e;return t})();function ND(){let t=pe();return RD(t,G())}var OD=mr,$f=class extends OD{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return go(this._hostTNode,this._hostLView)}get injector(){return new kt(this._hostTNode,this._hostLView)}get parentInjector(){let e=Ra(this._hostTNode,this._hostLView);if(_d(e)){let r=Li(e,this._hostLView),n=ki(e),i=r[F].data[n+8];return new kt(i,r)}else return new kt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=kl(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Ee}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Fl(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Pl(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!km(e),a;if(s)a=r;else{let m=r||{};a=m.index,n=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let u=s?e:new sr(Lt(e)),c=n||this.parentInjector;if(!o&&u.ngModule==null){let M=(s?c:this.parentInjector).get(fe,null);M&&(o=M)}let l=Lt(u.componentType??{}),d=Fl(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,i,f,o);return this.insertImpl(h.hostView,a,Pl(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(nm(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[X],c=new $f(u,u[De],u[X]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return AD(s,i,o,n),e.attachToViewContainerRef(),Pd(Ls(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=kl(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=ea(this._lContainer,r);n&&(ji(Ls(this._lContainer),r),ef(n[F],n))}detach(e){let r=this._adjustIndex(e,-1),n=ea(this._lContainer,r);return n&&ji(Ls(this._lContainer),r)!=null?new Ht(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function kl(t){return t[Fi]}function Ls(t){return t[Fi]||(t[Fi]=[])}function RD(t,e){let r,n=e[t.index];return Fe(n)?r=n:(r=xf(n,e,null,t),e[t.index]=r,yo(e,r)),PD(r,e,t,n),new $f(r,t,e)}function FD(t,e){let r=t[Y],n=r.createComment(""),i=Ie(e,t),o=Ha(r,i);return Bi(r,o,n,Cy(r,i),!1),n}var PD=VD,kD=(t,e,r)=>!1;function LD(t,e,r){return kD(t,e,r)}function VD(t,e,r,n){if(t[jt])return;let i;r.type&8?i=We(n):i=FD(e,r),t[jt]=i}function jD(t,e,r,n,i,o,s,a,u){let c=e.consts,l=An(e,t,4,s||null,bn(c,a));Ja(e,r,l,bn(c,u)),ao(e,l);let d=l.tView=Ka(2,l,n,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function Co(t,e,r,n,i,o,s,a){let u=G(),c=he(),l=t+Ge,d=c.firstCreatePass?jD(l,c,u,e,r,n,i,o,s):c.data[l];Wt(d,!1);let f=$D(c,u,d,t);oo()&&co(c,u,f,d),Dt(f,u);let h=xf(f,u,f,d);return u[l]=h,yo(u,h),LD(h,d,u),ro(d)&&Ya(c,u,d),s!=null&&Qa(u,d,a),Co}var $D=UD;function UD(t,e,r,n){return so(!0),e[Y].createComment("")}function BD(t,e,r,n,i,o){let s=e.consts,a=bn(s,i),u=An(e,t,2,n,a);return Ja(e,r,u,bn(s,o)),u.attrs!==null&&Gi(u,u.attrs,!1),u.mergedAttrs!==null&&Gi(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function V(t,e,r,n){let i=G(),o=he(),s=Ge+t,a=i[Y],u=o.firstCreatePass?BD(s,o,i,e,r,n):o.data[s],c=HD(o,i,u,a,e,t);i[s]=c;let l=ro(u);return Wt(u,!0),uf(a,c,u),(u.flags&32)!==32&&oo()&&co(o,i,c,u),sm()===0&&Dt(c,i),am(),l&&(Ya(o,i,u),Za(o,u,i)),n!==null&&Qa(i,u),V}function j(){let t=pe();Ta()?xa():(t=t.parent,Wt(t,!1));let e=t;cm(e)&&lm(),um();let r=he();return r.firstCreatePass&&(ao(r,t),_a(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&Im(e)&&Ol(r,e,G(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Mm(e)&&Ol(r,e,G(),e.stylesWithoutHost,!1),j}function Me(t,e,r,n){return V(t,e,r,n),j(),Me}var HD=(t,e,r,n,i,o)=>(so(!0),Jd(n,i,Cm()));function zD(t,e,r,n,i){let o=e.consts,s=bn(o,n),a=An(e,t,8,"ng-container",s);s!==null&&Gi(a,s,!0);let u=bn(o,i);return Ja(e,r,a,u),e.queries!==null&&e.queries.elementStart(e,a),a}function ou(t,e,r){let n=G(),i=he(),o=t+Ge,s=i.firstCreatePass?zD(o,i,n,e,r):i.data[o];Wt(s,!0);let a=GD(i,n,s,t);return n[o]=a,oo()&&co(i,n,a,s),Dt(a,n),ro(s)&&(Ya(i,n,s),Za(i,s,n)),r!=null&&Qa(n,s),ou}function su(){let t=pe(),e=he();return Ta()?xa():(t=t.parent,Wt(t,!1)),e.firstCreatePass&&(ao(e,t),_a(t)&&e.queries.elementEnd(t)),su}var GD=(t,e,r,n)=>(so(!0),cy(e[Y],""));var Zi="en-US";var WD=Zi;function qD(t){wg(t,"Expected localeId to be defined"),typeof t=="string"&&(WD=t.toLowerCase().replace(/_/g,"-"))}function Yt(t){return!!t&&typeof t.then=="function"}function Uf(t){return!!t&&typeof t.subscribe=="function"}function _e(t,e,r,n){let i=G(),o=he(),s=pe();return YD(o,i,i[Y],s,t,e,n),_e}function ZD(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function YD(t,e,r,n,i,o,s){let a=ro(n),c=t.firstCreatePass&&Fv(t),l=e[ze],d=Rv(e),f=!0;if(n.type&3||s){let M=Ie(n,e),b=s?s(M):M,y=d.length,Z=s?z=>s(We(z[n.index])):n.index,te=null;if(!s&&a&&(te=ZD(t,e,i,n.index)),te!==null){let z=te.__ngLastListenerFn__||te;z.__ngNextListenerFn__=o,te.__ngLastListenerFn__=o,f=!1}else{o=Vl(n,e,l,o,!1);let z=r.listen(b,i,o);d.push(o,z),c&&c.push(i,Z,y,y+1)}}else o=Vl(n,e,l,o,!1);let h=n.outputs,m;if(f&&h!==null&&(m=h[i])){let M=m.length;if(M)for(let b=0;b-1?wt(t.index,e):e;eu(a);let u=Ll(e,r,n,s),c=o.__ngNextListenerFn__;for(;c;)u=Ll(e,r,c,s)&&u,c=c.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function yr(t=1){return Dm(t)}function QD(t,e){let r=null,n=$g(t);for(let i=0;i(so(!0),ay(e[Y],n));function au(t){return zf("",t,""),au}function zf(t,e,r){let n=G(),i=fD(n,t,e,r);return i!==xn&&Pv(n,Tn(),i),zf}function JD(t,e,r){let n=he();if(n.firstCreatePass){let i=vt(t);Ca(r,n.data,n.blueprint,i,!0),Ca(e,n.data,n.blueprint,i,!1)}}function Ca(t,e,r,n,i){if(t=ue(t),Array.isArray(t))for(let o=0;o>20;if(Mn(t)||!t.multi){let h=new Ut(c,i,_),m=js(u,e,i?l:l+f,d);m===-1?(Zs(Vi(a,s),o,u),Vs(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[m]=h,s[m]=h)}else{let h=js(u,e,l+f,d),m=js(u,e,l,l+f),M=h>=0&&r[h],b=m>=0&&r[m];if(i&&!b||!i&&!M){Zs(Vi(a,s),o,u);let y=tC(i?eC:XD,r.length,i,n,c);!i&&b&&(r[m].providerFactory=y),Vs(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(y),s.push(y)}else{let y=Gf(r[i?m:h],c,!i&&n);Vs(o,t,h>-1?h:m,y)}!i&&n&&b&&r[m].componentProviders++}}}function Vs(t,e,r,n){let i=Mn(e),o=zm(e);if(i||o){let u=(o?ue(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function Gf(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function js(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>JD(n,i?i(t):t,e)}}var Ct=class{},ur=class{};var Ea=class extends Ct{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Wi(this);let i=td(e);this._bootstrapComponents=Wd(i.bootstrap),this._r3Injector=Hd(e,r,[{provide:Ct,useValue:this},{provide:po,useValue:this.componentFactoryResolver},...n],oe(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},ba=class extends ur{constructor(e){super(),this.moduleType=e}create(e){return new Ea(this.moduleType,e,[])}};var Yi=class extends Ct{constructor(e){super(),this.componentFactoryResolver=new Wi(this),this.instance=null;let r=new Ui([...e.providers,{provide:Ct,useValue:this},{provide:po,useValue:this.componentFactoryResolver}],e.parent||La(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function uu(t,e,r=null){return new Yi({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var nC=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=jd(!1,n.type),o=i.length>0?uu([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=C({token:e,providedIn:"environment",factory:()=>new e(D(fe))});let t=e;return t})(),rC={detail:{feature:"NgStandalone"}};function Se(t){tu("mark_use_counter",rC),t.getStandaloneInjector=e=>e.get(nC).getOrCreateStandaloneInjector(t)}var Dr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=sC;let t=e;return t})(),iC=Dr,oC=class extends iC{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=xD(this._declarationLView,this._declarationTContainer,e,{injector:r,dehydratedView:n});return new Ht(i)}};function sC(){return aC(pe(),G())}function aC(t,e){return t.type&4?new oC(e,t,go(t,e)):null}var Wf=new w("Application Initializer"),qf=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=g(Wf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Yt(s))n.push(s);else if(Uf(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),wo=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function uC(){return typeof $localize<"u"&&$localize.locale||Zi}var cu=new w("LocaleId",{providedIn:"root",factory:()=>g(cu,O.Optional|O.SkipSelf)||uC()});var Cr=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Q(!1)}add(){this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ia=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},lu=(()=>{let e=class e{compileModuleSync(n){return new ba(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=td(n),s=Wd(o.declarations).reduce((a,u)=>{let c=Lt(u);return c&&a.push(new sr(c)),a},[]);return new Ia(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Zf=new w("");var Ai=null;var Yf=new w("PlatformDestroyListeners"),Eo=new w("appBootstrapListener");function cC(){xc(()=>{throw new v(600,!1)})}function lC(t){return t.isBoundToModule}function dC(t=[]){if(Ai)return Ai;let e=hC(t);return Ai=e,cC(),fC(e),e}function fC(t){t.get(ja,null)?.forEach(r=>r())}function Qf(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,i=dC(n),o=[DC(),...r||[]],a=new Yi({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(H);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(rt,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:h=>{c.handleError(h)}})});let d=()=>a.destroy(),f=i.get(Yf);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),gC(c,u,()=>{let h=a.get(qf);return h.runInitializers(),h.donePromise.then(()=>{let m=a.get(cu,Zi);qD(m||Zi);let M=a.get(On);return e!==void 0&&M.bootstrap(e),M})})})}catch(e){return Promise.reject(e)}}function hC(t=[],e){return bt.create({name:e,providers:[{provide:uo,useValue:"platform"},{provide:Yf,useValue:new Set([()=>Ai=null])},...t]})}function pC(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}function gC(t,e,r){try{let n=r();return Yt(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var On=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(Kf),this.zoneIsStable=g(Lf),this.componentTypes=[],this.components=[],this.isStable=g(Cr).hasPendingTasks.pipe(ae(n=>n?E(!1):this.zoneIsStable),Cs(),hn()),this._injector=g(fe)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Hi;if(!this._injector.get(qf).done){let m="Cannot bootstrap as there are still asynchronous initializers running."+(!o&&ed(n)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new v(405,!1)}let a;o?a=n:a=this._injector.get(po).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=lC(a)?void 0:this._injector.get(Ct),c=i||a.selector,l=a.create(bt.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(Zf,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),$s(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new v(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;$s(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(Eo,[]);[...this._bootstrapListeners,...i].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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>$s(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $s(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var Kf=new w("",{providedIn:"root",factory:()=>g(rt).handleError.bind(void 0)});function mC(){let t=g(H),e=g(rt);return r=>t.runOutsideAngular(()=>e.handleError(r))}var yC=(()=>{let e=class e{constructor(){this.zone=g(H),this.applicationRef=g(On)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function vC(t){return[{provide:H,useFactory:t},{provide:fr,multi:!0,useFactory:()=>{let e=g(yC,{optional:!0});return()=>e.initialize()}},{provide:Kf,useFactory:mC},{provide:Lf,useFactory:Vf}]}function DC(t){let e=vC(()=>new H(pC(t)));return Et([[],e])}function Ze(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function du(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}var fu=null;function dt(){return fu}function th(t){fu||(fu=t)}var bo=class{},q=new w("DocumentToken"),pu=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(CC))(),providedIn:"platform"});let t=e;return t})();var CC=(()=>{let e=class e extends pu{constructor(){super(),this._doc=g(q),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return dt().getBaseHref(this._doc)}onPopState(n){let i=dt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=dt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new e)(),providedIn:"platform"});let t=e;return t})();function gu(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Jf(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function lt(t){return t&&t[0]!=="?"?"?"+t:t}var _t=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(rh))(),providedIn:"root"});let t=e;return t})(),nh=new w("appBaseHref"),rh=(()=>{let e=class e extends _t{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??g(q).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 gu(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+lt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+lt(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+lt(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(D(pu),D(nh,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ih=(()=>{let e=class e extends _t{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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}path(n=!1){let i=this._platformLocation.hash;return i==null&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=gu(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+lt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+lt(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(D(pu),D(nh,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),wr=(()=>{let e=class e{constructor(n){this._subject=new ne,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=bC(Jf(Xf(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({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,i=""){return this.path()==this.normalize(n+lt(i))}normalize(n){return e.stripTrailingSlash(EC(this._basePath,Xf(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+lt(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+lt(i)),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._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=lt,e.joinWithSlash=gu,e.stripTrailingSlash=Jf,e.\u0275fac=function(i){return new(i||e)(D(_t))},e.\u0275prov=C({token:e,factory:()=>wC(),providedIn:"root"});let t=e;return t})();function wC(){return new wr(D(_t))}function EC(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Xf(t){return t.replace(/\/index.html$/,"")}function bC(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function Io(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var oh=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new hu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){eh("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){eh("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(_(mr),_(Dr))},e.\u0275dir=ve({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),hu=class{constructor(){this.$implicit=null,this.ngIf=null}};function eh(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${oe(e)}'.`)}var sh="browser",IC="server";function mu(t){return t===IC}var Rn=class{};var br=class{},_o=class{},Qt=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var vu=class{encodeKey(e){return uh(e)}encodeValue(e){return uh(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function SC(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var TC=/%(\d[a-f0-9])/gi,xC={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function uh(t){return encodeURIComponent(t).replace(TC,(e,r)=>xC[r]??e)}function Mo(t){return`${t}`}var St=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new vu,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=SC(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(Mo):[Mo(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(Mo(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(Mo(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Du=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function AC(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ch(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function lh(t){return typeof Blob<"u"&&t instanceof Blob}function dh(t){return typeof FormData<"u"&&t instanceof FormData}function NC(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Er=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(AC(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers||(this.headers=new Qt),this.context||(this.context=new Du),!this.params)this.params=new St,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":ad.set(f,e.setHeaders[f]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,f)=>d.set(f,e.setParams[f]),c)),new t(r,n,o,{params:c,headers:u,context:l,reportProgress:a,responseType:i,withCredentials:s})}},Fn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Fn||{}),Ir=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new Qt,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Cu=class t extends Ir{constructor(e={}){super(e),this.type=Fn.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},So=class t extends Ir{constructor(e={}){super(e),this.type=Fn.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},To=class extends Ir{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}};function yu(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var OC=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof Er)s=n;else{let c;o.headers instanceof Qt?c=o.headers:c=new Qt(o.headers);let l;o.params&&(o.params instanceof St?l=o.params:l=new St({fromObject:o.params})),s=new Er(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=E(s).pipe(gt(c=>this.handler.handle(c)));if(n instanceof Er||o.observe==="events")return a;let u=a.pipe(ie(c=>c instanceof So));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(x(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(x(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(x(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(x(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new St().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,yu(o,i))}post(n,i,o={}){return this.request("POST",n,yu(o,i))}put(n,i,o={}){return this.request("PUT",n,yu(o,i))}};e.\u0275fac=function(i){return new(i||e)(D(br))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function RC(t,e){return e(t)}function FC(t,e,r){return(n,i)=>r.runInContext(()=>e(n,o=>t(o,i)))}var ph=new w(""),PC=new w(""),kC=new w("");var fh=(()=>{let e=class e extends br{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=g(Cr);let o=g(kC,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(ph),...this.injector.get(PC,[])]));this.chain=o.reduceRight((s,a)=>FC(s,a,this.injector),RC)}let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Pt(()=>this.pendingTasks.remove(i)))}};e.\u0275fac=function(i){return new(i||e)(D(_o),D(fe))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();var LC=/^\)\]\}',?\n/;function VC(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var hh=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new v(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?B(i.\u0275loadImpl()):E(null)).pipe(ae(()=>new R(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((b,y)=>a.setRequestHeader(b,y.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let b=n.detectContentTypeHeader();b!==null&&a.setRequestHeader("Content-Type",b)}if(n.responseType){let b=n.responseType.toLowerCase();a.responseType=b!=="json"?b:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let b=a.statusText||"OK",y=new Qt(a.getAllResponseHeaders()),Z=VC(a)||n.url;return c=new Cu({headers:y,status:a.status,statusText:b,url:Z}),c},d=()=>{let{headers:b,status:y,statusText:Z,url:te}=l(),z=null;y!==204&&(z=typeof a.response>"u"?a.responseText:a.response),y===0&&(y=z?200:0);let Le=y>=200&&y<300;if(n.responseType==="json"&&typeof z=="string"){let me=z;z=z.replace(LC,"");try{z=z!==""?JSON.parse(z):null}catch(ht){z=me,Le&&(Le=!1,z={error:ht,text:z})}}Le?(s.next(new So({body:z,headers:b,status:y,statusText:Z,url:te||void 0})),s.complete()):s.error(new To({error:z,headers:b,status:y,statusText:Z,url:te||void 0}))},f=b=>{let{url:y}=l(),Z=new To({error:b,status:a.status||0,statusText:a.statusText||"Unknown Error",url:y||void 0});s.error(Z)},h=!1,m=b=>{h||(s.next(l()),h=!0);let y={type:Fn.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(y.total=b.total),n.responseType==="text"&&a.responseText&&(y.partialText=a.responseText),s.next(y)},M=b=>{let y={type:Fn.UploadProgress,loaded:b.loaded};b.lengthComputable&&(y.total=b.total),s.next(y)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",m),u!==null&&a.upload&&a.upload.addEventListener("progress",M)),a.send(u),s.next({type:Fn.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",m),u!==null&&a.upload&&a.upload.removeEventListener("progress",M)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(D(Rn))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),gh=new w("XSRF_ENABLED"),jC="XSRF-TOKEN",$C=new w("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>jC}),UC="X-XSRF-TOKEN",BC=new w("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>UC}),xo=class{},HC=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Io(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(D(q),D(It),D($C))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function zC(t,e){let r=t.url.toLowerCase();if(!g(gh)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=g(xo).getToken(),i=g(BC);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}function mh(...t){let e=[OC,hh,fh,{provide:br,useExisting:fh},{provide:_o,useExisting:hh},{provide:ph,useValue:zC,multi:!0},{provide:gh,useValue:!0},{provide:xo,useClass:HC}];for(let r of t)e.push(...r.\u0275providers);return Et(e)}var bu=class extends bo{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Iu=class t extends bu{static makeCurrent(){th(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=WC();return r==null?null:qC(r)}resetBaseElement(){Mr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Io(document.cookie,e)}},Mr=null;function WC(){return Mr=Mr||document.querySelector("base"),Mr?Mr.getAttribute("href"):null}var Ao;function qC(t){Ao=Ao||document.createElement("a"),Ao.setAttribute("href",t);let e=Ao.pathname;return e.charAt(0)==="/"?e:`/${e}`}var ZC=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Mu=new w("EventManagerPlugins"),Ch=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new v(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(D(Mu),D(H))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),No=class{constructor(e){this._doc=e}},wu="ng-app-id",wh=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=mu(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${wu}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(wu),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(wu,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(D(q),D(Va),D($a,8),D(It))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Eu={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/MathML/"},Su=/%COMP%/g,Eh="%COMP%",YC=`_nghost-${Eh}`,QC=`_ngcontent-${Eh}`,KC=!0,JC=new w("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>KC});function XC(t){return QC.replace(Su,t)}function ew(t){return YC.replace(Su,t)}function bh(t,e){return e.map(r=>r.replace(Su,t))}var yh=(()=>{let e=class e{constructor(n,i,o,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=mu(u),this.defaultRenderer=new _r(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===He.ShadowDom&&(i=k(p({},i),{encapsulation:He.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof Oo?o.applyToHost(n):o instanceof Sr&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case He.Emulated:s=new Oo(c,l,i,this.appId,d,a,u,f);break;case He.ShadowDom:return new _u(c,l,n,i,a,u,this.nonce,f);default:s=new Sr(c,l,i,d,a,u,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(D(Ch),D(wh),D(Va),D(JC),D(q),D(It),D(H),D($a))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),_r=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Eu[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(vh(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(vh(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new v(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Eu[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Eu[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(tt.DashCase|tt.Important)?e.style.setProperty(r,n,i&tt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&tt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e[r]=n}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=dt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function vh(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var _u=class extends _r{constructor(e,r,n,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=bh(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Sr=class extends _r{constructor(e,r,n,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=u?bh(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Oo=class extends Sr{constructor(e,r,n,i,o,s,a,u){let c=i+"-"+n.id;super(e,r,n,o,s,a,u,c),this.contentAttr=XC(c),this.hostAttr=ew(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},tw=(()=>{let e=class e extends No{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(D(q))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Dh=["alt","control","meta","shift"],nw={"\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"},rw={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},iw=(()=>{let e=class e extends No{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>dt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),Dh.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=nw[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Dh.forEach(a=>{if(a!==o){let u=rw[a];u(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(D(q))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function Ih(t,e){return Qf(p({rootComponent:t},ow(e)))}function ow(t){return{appProviders:[...lw,...t?.providers??[]],platformProviders:cw}}function sw(){Iu.makeCurrent()}function aw(){return new rt}function uw(){return zd(document),document}var cw=[{provide:It,useValue:sh},{provide:ja,useValue:sw,multi:!0},{provide:q,useFactory:uw,deps:[]}];var lw=[{provide:uo,useValue:"root"},{provide:rt,useFactory:aw,deps:[]},{provide:Mu,useClass:tw,multi:!0,deps:[q,H,It]},{provide:Mu,useClass:iw,multi:!0,deps:[q]},yh,wh,Ch,{provide:or,useExisting:yh},{provide:Rn,useClass:ZC,deps:[]},[]];function dw(){return new Tu(D(q))}var Tu=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(D(q))},e.\u0275prov=C({token:e,factory:function(i){let o=null;return i?o=new i:o=dw(),o},providedIn:"root"});let t=e;return t})();var Tr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:function(i){let o=null;return i?o=new(i||e):o=D(Mh),o},providedIn:"root"});let t=e;return t})();function fw(t){return new Mh(t.get(q))}var Mh=(()=>{let e=class e extends Tr{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case ke.NONE:return i;case ke.HTML:return ut(i,"HTML")?Pe(i):Ga(this._doc,String(i)).toString();case ke.STYLE:return ut(i,"Style")?Pe(i):i;case ke.SCRIPT:if(ut(i,"Script"))return Pe(i);throw new v(5200,!1);case ke.URL:return ut(i,"URL")?Pe(i):fo(String(i));case ke.RESOURCE_URL:if(ut(i,"ResourceURL"))return Pe(i);throw new v(5201,!1);default:throw new v(5202,!1)}}bypassSecurityTrustHtml(n){return lf(n)}bypassSecurityTrustStyle(n){return df(n)}bypassSecurityTrustScript(n){return ff(n)}bypassSecurityTrustUrl(n){return hf(n)}bypassSecurityTrustResourceUrl(n){return pf(n)}};e.\u0275fac=function(i){return new(i||e)(D(q))},e.\u0275prov=C({token:e,factory:function(i){let o=null;return i?o=new i:o=fw(D(bt)),o},providedIn:"root"});let t=e;return t})();var S="primary",Hr=Symbol("RouteTitle"),Fu=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function jn(t){return new Fu(t)}function hw(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function Rh(t){return t.length>0?t[t.length-1]:null}function Nt(t){return ms(t)?t:Yt(t)?B(Promise.resolve(t)):E(t)}var gw={exact:Ph,subset:kh},Fh={exact:mw,subset:yw,ignored:()=>!0};function _h(t,e,r){return gw[r.paths](t.root,e.root,r.matrixParams)&&Fh[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function mw(t,e){return Ye(t,e)}function Ph(t,e,r){if(!Jt(t.segments,e.segments)||!Po(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Ph(t.children[n],e.children[n],r))return!1;return!0}function yw(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Oh(t[r],e[r]))}function kh(t,e,r){return Lh(t,e,e.segments,r)}function Lh(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!Jt(i,r)||e.hasChildren()||!Po(i,r,n))}else if(t.segments.length===r.length){if(!Jt(t.segments,r)||!Po(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!kh(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!Jt(t.segments,i)||!Po(t.segments,i,n)||!t.children[S]?!1:Lh(t.children[S],e,o,n)}}function Po(t,e,r){return e.every((n,i)=>Fh[r](t[i].parameters,n.parameters))}var Tt=class{constructor(e=new L([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jn(this.queryParams)),this._queryParamMap}toString(){return Cw.serialize(this)}},L=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ko(this)}},Kt=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap||(this._parameterMap=jn(this.parameters)),this._parameterMap}toString(){return jh(this)}};function vw(t,e){return Jt(t,e)&&t.every((r,n)=>Ye(r.parameters,e[n].parameters))}function Jt(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function Dw(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===S&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==S&&(r=r.concat(e(i,n)))}),r}var sc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new Vo)(),providedIn:"root"});let t=e;return t})(),Vo=class{parse(e){let r=new Lu(e);return new Tt(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${xr(e.root,!0)}`,n=bw(e.queryParams),i=typeof e.fragment=="string"?`#${ww(e.fragment)}`:"";return`${r}${n}${i}`}},Cw=new Vo;function ko(t){return t.segments.map(e=>jh(e)).join("/")}function xr(t,e){if(!t.hasChildren())return ko(t);if(e){let r=t.children[S]?xr(t.children[S],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==S&&n.push(`${i}:${xr(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=Dw(t,(n,i)=>i===S?[xr(t.children[S],!1)]:[`${i}:${xr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[S]!=null?`${ko(t)}/${r[0]}`:`${ko(t)}/(${r.join("//")})`}}function Vh(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ro(t){return Vh(t).replace(/%3B/gi,";")}function ww(t){return encodeURI(t)}function ku(t){return Vh(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Lo(t){return decodeURIComponent(t)}function Sh(t){return Lo(t.replace(/\+/g,"%20"))}function jh(t){return`${ku(t.path)}${Ew(t.parameters)}`}function Ew(t){return Object.keys(t).map(e=>`;${ku(e)}=${ku(t[e])}`).join("")}function bw(t){let e=Object.keys(t).map(r=>{let n=t[r];return Array.isArray(n)?n.map(i=>`${Ro(r)}=${Ro(i)}`).join("&"):`${Ro(r)}=${Ro(n)}`}).filter(r=>!!r);return e.length?`?${e.join("&")}`:""}var Iw=/^[^\/()?;#]+/;function Au(t){let e=t.match(Iw);return e?e[0]:""}var Mw=/^[^\/()?;=#]+/;function _w(t){let e=t.match(Mw);return e?e[0]:""}var Sw=/^[^=?&#]+/;function Tw(t){let e=t.match(Sw);return e?e[0]:""}var xw=/^[^&#]+/;function Aw(t){let e=t.match(xw);return e?e[0]:""}var Lu=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new L([],{}):new L([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[S]=new L(e,r)),n}parseSegment(){let e=Au(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(e),new Kt(Lo(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=_w(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Au(this.remaining);i&&(n=i,this.capture(n))}e[Lo(r)]=Lo(n)}parseQueryParam(e){let r=Tw(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=Aw(this.remaining);s&&(n=s,this.capture(n))}let i=Sh(r),o=Sh(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Au(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new v(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=S);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[S]:new L([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new v(4011,!1)}};function $h(t){return t.segments.length>0?new L([],{[S]:t}):t}function Uh(t){let e={};for(let n of Object.keys(t.children)){let i=t.children[n],o=Uh(i);if(n===S&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new L(t.segments,e);return Nw(r)}function Nw(t){if(t.numberOfChildren===1&&t.children[S]){let e=t.children[S];return new L(t.segments.concat(e.segments),e.children)}return t}function $n(t){return t instanceof Tt}function Ow(t,e,r=null,n=null){let i=Bh(t);return Hh(i,e,r,n)}function Bh(t){let e;function r(o){let s={};for(let u of o.children){let c=r(u);s[u.outlet]=c}let a=new L(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=$h(n);return e??i}function Hh(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return Nu(i,i,i,r,n);let o=Rw(e);if(o.toRoot())return Nu(i,i,new L([],{}),r,n);let s=Fw(o,i,t),a=s.processChildren?Or(s.segmentGroup,s.index,o.commands):Gh(s.segmentGroup,s.index,o.commands);return Nu(i,s.segmentGroup,a,r,n)}function jo(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Pr(t){return typeof t=="object"&&t!=null&&t.outlets}function Nu(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=zh(t,e,r);let a=$h(Uh(s));return new Tt(a,o,i)}function zh(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=zh(o,e,r)}),new L(t.segments,n)}var $o=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&jo(n[0]))throw new v(4003,!1);let i=n.find(Pr);if(i&&i!==Rh(n))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Rw(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new $o(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new $o(r,e,n)}var Ln=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function Fw(t,e,r){if(t.isAbsolute)return new Ln(e,!0,0);if(!r)return new Ln(e,!1,NaN);if(r.parent===null)return new Ln(r,!0,0);let n=jo(t.commands[0])?0:1,i=r.segments.length-1+n;return Pw(r,i,t.numberOfDoubleDots)}function Pw(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new v(4005,!1);i=n.segments.length}return new Ln(n,!1,i-o)}function kw(t){return Pr(t[0])?t[0].outlets:{[S]:t}}function Gh(t,e,r){if(t||(t=new L([],{})),t.segments.length===0&&t.hasChildren())return Or(t,e,r);let n=Lw(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==S)&&t.children[S]&&t.numberOfChildren===1&&t.children[S].segments.length===0){let o=Or(t.children[S],e,r);return new L(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Gh(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new L(t.segments,i)}}function Lw(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(Pr(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!xh(u,c,s))return o;n+=2}else{if(!xh(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Vu(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Vu(new L([],{}),0,n))}),e}function Th(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function xh(t,e,r){return t==r.path&&Ye(e,r.parameters)}var Rr="imperative",xe=class{constructor(e,r){this.id=e,this.url=r}},kr=class extends xe{constructor(e,r,n="imperative",i=null){super(e,r),this.type=0,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},xt=class extends xe{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},At=class extends xe{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Xt=class extends xe{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=16}},Lr=class extends xe{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Uo=class extends xe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ju=class extends xe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$u=class extends xe{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Uu=class extends xe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bu=class extends xe{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hu=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},zu=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Gu=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wu=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qu=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zu=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Vr=class{},jr=class{constructor(e){this.url=e}};var Yu=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new qo,this.attachRef=null}},qo=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new Yu,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Bo=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Qu(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Qu(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Ku(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Ku(e,this._root).map(r=>r.value)}};function Qu(t,e){if(t===e.value)return e;for(let r of e.children){let n=Qu(t,r);if(n)return n}return null}function Ku(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Ku(t,r);if(n.length)return n.unshift(e),n}return[]}var Ce=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function kn(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Ho=class extends Bo{constructor(e,r){super(e),this.snapshot=r,uc(this,e)}toString(){return this.snapshot.toString()}};function Wh(t,e){let r=jw(t,e),n=new Q([new Kt("",{})]),i=new Q({}),o=new Q({}),s=new Q({}),a=new Q(""),u=new en(n,i,s,a,o,S,e,r.root);return u.snapshot=r.root,new Ho(new Ce(u,[]),r)}function jw(t,e){let r={},n={},i={},o="",s=new $r([],r,i,o,n,S,e,null,{});return new zo("",new Ce(s,[]))}var en=class{constructor(e,r,n,i,o,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(x(c=>c[Hr]))??E(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(x(e=>jn(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(x(e=>jn(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function ac(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:p(p({},e.params),t.params),data:p(p({},e.data),t.data),resolve:p(p(p(p({},t.data),e.data),i?.data),t._resolvedData)}:n={params:t.params,data:t.data,resolve:p(p({},t.data),t._resolvedData??{})},i&&Zh(i)&&(n.resolve[Hr]=i.title),n}var $r=class{get title(){return this.data?.[Hr]}constructor(e,r,n,i,o,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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._paramMap=jn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=jn(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},zo=class extends Bo{constructor(e,r){super(r),this.url=e,uc(this,r)}toString(){return qh(this._root)}};function uc(t,e){e.value._routerState=t,e.children.forEach(r=>uc(t,r))}function qh(t){let e=t.children.length>0?` { ${t.children.map(qh).join(", ")} } `:"";return`${t.value}${e}`}function Ou(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Ye(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Ye(e.params,r.params)||t.paramsSubject.next(r.params),pw(e.url,r.url)||t.urlSubject.next(r.url),Ye(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Ju(t,e){let r=Ye(t.params,e.params)&&vw(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Ju(t.parent,e.parent))}function Zh(t){return typeof t.title=="string"||t.title===null}var cc=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=S,this.activateEvents=new ne,this.deactivateEvents=new ne,this.attachEvents=new ne,this.detachEvents=new ne,this.parentContexts=g(qo),this.location=g(mr),this.changeDetector=g(Mt),this.environmentInjector=g(fe),this.inputBinder=g(lc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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 v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new v(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new Xu(n,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=ve({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[at]});let t=e;return t})(),Xu=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===en?this.route:e===qo?this.childContexts:this.parent.get(e,r)}},lc=new w("");function $w(t,e,r){let n=Ur(t,e._root,r?r._root:void 0);return new Ho(n,e)}function Ur(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=Uw(t,e,r);return new Ce(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Ur(t,a)),s}}let n=Bw(e.value),i=e.children.map(o=>Ur(t,o));return new Ce(n,i)}}function Uw(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return Ur(t,n,i);return Ur(t,n)})}function Bw(t){return new en(new Q(t.url),new Q(t.params),new Q(t.queryParams),new Q(t.fragment),new Q(t.data),t.outlet,t.component,t)}var Yh="ngNavigationCancelingError";function Qh(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=$n(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=Kh(!1,0,e);return i.url=r,i.navigationBehaviorOptions=n,i}function Kh(t,e,r){let n=new Error("NavigationCancelingError: "+(t||""));return n[Yh]=!0,n.cancellationCode=e,r&&(n.url=r),n}function Hw(t){return Jh(t)&&$n(t.url)}function Jh(t){return t&&t[Yh]}var zw=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=be({type:e,selectors:[["ng-component"]],standalone:!0,features:[Se],decls:1,vars:0,template:function(i,o){i&1&&Me(0,"router-outlet")},dependencies:[cc],encapsulation:2});let t=e;return t})();function Gw(t,e){return t.providers&&!t._injector&&(t._injector=uu(t.providers,e,`Route: ${t.path}`)),t._injector??e}function dc(t){let e=t.children&&t.children.map(dc),r=e?k(p({},t),{children:e}):p({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==S&&(r.component=zw),r}function Qe(t){return t.outlet||S}function Ww(t,e){let r=t.filter(n=>Qe(n)===e);return r.push(...t.filter(n=>Qe(n)!==e)),r}function zr(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var qw=(t,e,r,n)=>x(i=>(new ec(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),ec=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Ou(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=kn(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=kn(e);for(let s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=kn(e);for(let s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=kn(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Zu(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Wu(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(Ou(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Ou(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=zr(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},Go=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Vn=class{constructor(e,r){this.component=e,this.route=r}};function Zw(t,e,r){let n=t._root,i=e?e._root:null;return Ar(n,i,r,[n.value])}function Yw(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Bn(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Bl(t)?t:e.get(t):n}function Ar(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=kn(e);return t.children.forEach(s=>{Qw(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Fr(a,r.getContext(s),i)),i}function Qw(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=Kw(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Go(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ar(t,e,a?a.children:null,n,i):Ar(t,e,r,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Vn(a.outlet.component,s))}else s&&Fr(e,a,i),i.canActivateChecks.push(new Go(n)),o.component?Ar(t,null,a?a.children:null,n,i):Ar(t,null,r,n,i);return i}function Kw(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Jt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Jt(t.url,e.url)||!Ye(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ju(t,e)||!Ye(t.queryParams,e.queryParams);case"paramsChange":default:return!Ju(t,e)}}function Fr(t,e,r){let n=kn(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?Fr(s,e.children.getContext(o),r):Fr(s,null,r):Fr(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Vn(e.outlet.component,i)):r.canDeactivateChecks.push(new Vn(null,i)):r.canDeactivateChecks.push(new Vn(null,i))}function Gr(t){return typeof t=="function"}function Jw(t){return typeof t=="boolean"}function Xw(t){return t&&Gr(t.canLoad)}function eE(t){return t&&Gr(t.canActivate)}function tE(t){return t&&Gr(t.canActivateChild)}function nE(t){return t&&Gr(t.canDeactivate)}function rE(t){return t&&Gr(t.canMatch)}function Xh(t){return t instanceof Je||t?.name==="EmptyError"}var Fo=Symbol("INITIAL_VALUE");function Un(){return ae(t=>yi(t.map(e=>e.pipe(Xe(1),Is(Fo)))).pipe(x(e=>{for(let r of e)if(r!==!0){if(r===Fo)return Fo;if(r===!1||r instanceof Tt)return r}return!0}),ie(e=>e!==Fo),Xe(1)))}function iE(t,e){return K(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?E(k(p({},r),{guardsResult:!0})):oE(s,n,i,t).pipe(K(a=>a&&Jw(a)?sE(n,o,t,e):E(a)),x(a=>k(p({},r),{guardsResult:a})))})}function oE(t,e,r,n){return B(t).pipe(K(i=>dE(i.component,i.route,r,e,n)),je(i=>i!==!0,!0))}function sE(t,e,r,n){return B(e).pipe(gt(i=>dn(uE(i.route.parent,n),aE(i.route,n),lE(t,i.path,r),cE(t,i.route,r))),je(i=>i!==!0,!0))}function aE(t,e){return t!==null&&e&&e(new qu(t)),E(!0)}function uE(t,e){return t!==null&&e&&e(new Gu(t)),E(!0)}function cE(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return E(!0);let i=n.map(o=>vi(()=>{let s=zr(e)??r,a=Bn(o,s),u=eE(a)?a.canActivate(e,t):s.runInContext(()=>a(e,t));return Nt(u).pipe(je())}));return E(i).pipe(Un())}function lE(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>Yw(s)).filter(s=>s!==null).map(s=>vi(()=>{let a=s.guards.map(u=>{let c=zr(s.node)??r,l=Bn(u,c),d=tE(l)?l.canActivateChild(n,t):c.runInContext(()=>l(n,t));return Nt(d).pipe(je())});return E(a).pipe(Un())}));return E(o).pipe(Un())}function dE(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return E(!0);let s=o.map(a=>{let u=zr(e)??i,c=Bn(a,u),l=nE(c)?c.canDeactivate(t,e,r,n):u.runInContext(()=>c(t,e,r,n));return Nt(l).pipe(je())});return E(s).pipe(Un())}function fE(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return E(!0);let o=i.map(s=>{let a=Bn(s,t),u=Xw(a)?a.canLoad(e,r):t.runInContext(()=>a(e,r));return Nt(u)});return E(o).pipe(Un(),ep(n))}function ep(t){return Yn(J(e=>{if($n(e))throw Qh(t,e)}),x(e=>e===!0))}function hE(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return E(!0);let o=i.map(s=>{let a=Bn(s,t),u=rE(a)?a.canMatch(e,r):t.runInContext(()=>a(e,r));return Nt(u)});return E(o).pipe(Un(),ep(n))}var Br=class{constructor(e){this.segmentGroup=e||null}},Wo=class extends Error{constructor(e){super(),this.urlTree=e}};function Pn(t){return ln(new Br(t))}function pE(t){return ln(new v(4e3,!1))}function gE(t){return ln(Kh(!1,3))}var tc=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}noMatchError(e){return new v(4002,!1)}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return E(n);if(i.numberOfChildren>1||!i.children[S])return pE(e.redirectTo);i=i.children[S]}}applyRedirectCommands(e,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new Wo(i);return i}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new Tt(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,i)}),new L(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new v(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},nc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function mE(t,e,r,n,i){let o=fc(t,e,r);return o.matched?(n=Gw(e,n),hE(n,e,r,i).pipe(x(s=>s===!0?o:p({},nc)))):E(o)}function fc(t,e,r){if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?p({},nc):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||hw)(r,t,e);if(!i)return p({},nc);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?p(p({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Ah(t,e,r,n){return r.length>0&&DE(t,r,n)?{segmentGroup:new L(e,vE(n,new L(r,t.children))),slicedSegments:[]}:r.length===0&&CE(t,r,n)?{segmentGroup:new L(t.segments,yE(t,e,r,n,t.children)),slicedSegments:r}:{segmentGroup:new L(t.segments,t.children),slicedSegments:r}}function yE(t,e,r,n,i){let o={};for(let s of n)if(Zo(t,r,s)&&!i[Qe(s)]){let a=new L([],{});o[Qe(s)]=a}return p(p({},i),o)}function vE(t,e){let r={};r[S]=e;for(let n of t)if(n.path===""&&Qe(n)!==S){let i=new L([],{});r[Qe(n)]=i}return r}function DE(t,e,r){return r.some(n=>Zo(t,e,n)&&Qe(n)!==S)}function CE(t,e,r){return r.some(n=>Zo(t,e,n))}function Zo(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function wE(t,e,r,n){return Qe(t)!==n&&(n===S||!Zo(e,r,t))?!1:t.path==="**"?!0:fc(e,t,r).matched}function EE(t,e,r){return e.length===0&&!t.children[r]}var rc=class{};function bE(t,e,r,n,i,o,s="emptyOnly"){return new ic(t,e,r,n,i,s,o).recognize()}var IE=31,ic=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new tc(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new v(4002,!1)}recognize(){let e=Ah(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(x(r=>{let n=new $r([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,{},S,this.rootComponentType,null,{}),i=new Ce(n,r),o=new zo("",i),s=Ow(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,S).pipe(pt(n=>{if(n instanceof Wo)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Br?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,i=ac(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,i,!0).pipe(x(o=>o instanceof Ce?[o]:[]))}processChildren(e,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return B(i).pipe(gt(o=>{let s=n.children[o],a=Ww(r,o);return this.processSegmentGroup(e,a,s,o)}),Es((o,s)=>(o.push(...s),o)),mt(null),ws(),K(o=>{if(o===null)return Pn(n);let s=tp(o);return ME(s),E(s)}))}processSegment(e,r,n,i,o,s){return B(r).pipe(gt(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,i,o,s).pipe(pt(u=>{if(u instanceof Br)return E(null);throw u}))),je(a=>!!a),pt(a=>{if(Xh(a))return EE(n,i,o)?E(new rc):Pn(n);throw a}))}processSegmentAgainstRoute(e,r,n,i,o,s,a){return wE(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s):Pn(i):Pn(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=i.path==="**"?Nh(o):fc(r,i,o);if(!a)return Pn(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>IE&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(K(f=>this.processSegment(e,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(e,r,n,i,o){let s;return n.path==="**"?(s=E(Nh(i)),r.children={}):s=mE(r,n,i,e,this.urlSerializer),s.pipe(ae(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(ae(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new $r(l,f,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,SE(n),Qe(n),n.component??n._loadedComponent??null,n,TE(n)),{segmentGroup:m,slicedSegments:M}=Ah(r,l,d,u);if(M.length===0&&m.hasChildren())return this.processChildren(c,u,m).pipe(x(y=>y===null?null:new Ce(h,y)));if(u.length===0&&M.length===0)return E(new Ce(h,[]));let b=Qe(n)===o;return this.processSegment(c,u,m,M,b?S:o,!0).pipe(x(y=>new Ce(h,y instanceof Ce?[y]:[])))}))):Pn(r)))}getChildConfig(e,r,n){return r.children?E({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?E({routes:r._loadedRoutes,injector:r._loadedInjector}):fE(e,r,n,this.urlSerializer).pipe(K(i=>i?this.configLoader.loadChildren(e,r).pipe(J(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):gE(r))):E({routes:[],injector:e})}};function ME(t){t.sort((e,r)=>e.value.outlet===S?-1:r.value.outlet===S?1:e.value.outlet.localeCompare(r.value.outlet))}function _E(t){let e=t.value.routeConfig;return e&&e.path===""}function tp(t){let e=[],r=new Set;for(let n of t){if(!_E(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=tp(n.children);e.push(new Ce(n.value,i))}return e.filter(n=>!r.has(n))}function SE(t){return t.data||{}}function TE(t){return t.resolve||{}}function Nh(t){return{matched:!0,parameters:t.length>0?Rh(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function xE(t,e,r,n,i,o){return K(s=>bE(t,e,r,n,s.extractedUrl,i,o).pipe(x(({state:a,tree:u})=>k(p({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function AE(t,e){return K(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return E(r);let o=i.map(c=>c.route),s=new Set(o),a=np(o[0].parent).slice(1),u=0;return B(a).pipe(gt(c=>s.has(c)?NE(c,n,t,e):(c.data=ac(c,c.parent,t).resolve,E(void 0))),J(()=>u++),fn(1),K(c=>u===a.length?E(r):le))})}function np(t){let e=t.children.map(r=>np(r)).flat();return[t,...e]}function NE(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Zh(i)&&(o[Hr]=i.title),OE(o,t,e,n).pipe(x(s=>(t._resolvedData=s,t.data=ac(t,t.parent,r).resolve,null)))}function OE(t,e,r,n){let i=Pu(t);if(i.length===0)return E({});let o={};return B(i).pipe(K(s=>RE(t[s],e,r,n).pipe(je(),J(a=>{o[s]=a}))),fn(1),Ds(o),pt(s=>Xh(s)?le:ln(s)))}function RE(t,e,r,n){let i=zr(e)??n,o=Bn(t,i),s=o.resolve?o.resolve(e,r):i.runInContext(()=>o(e,r));return Nt(s)}function Ru(t){return ae(e=>{let r=t(e);return r?B(r).pipe(x(()=>e)):E(e)})}var rp=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===S);return i}getResolvedTitleForRoute(n){return n.data[Hr]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(FE))(),providedIn:"root"});let t=e;return t})(),FE=(()=>{let e=class e extends rp{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(D(Tu))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),hc=new w("",{providedIn:"root",factory:()=>({})}),pc=new w("ROUTES"),PE=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(lu)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return E(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=Nt(n.loadComponent()).pipe(x(ip),J(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Pt(()=>{this.componentLoaders.delete(n)})),o=new cn(i,()=>new re).pipe(un());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return E({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=kE(i,this.compiler,n,this.onLoadEndListener).pipe(Pt(()=>{this.childrenLoaders.delete(i)})),a=new cn(s,()=>new re).pipe(un());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function kE(t,e,r,n){return Nt(t.loadChildren()).pipe(x(ip),K(i=>i instanceof ur||Array.isArray(i)?E(i):B(e.compileModuleAsync(i))),x(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(pc,[],{optional:!0,self:!0}).flat()),{routes:s.map(dc),injector:o}}))}function LE(t){return t&&typeof t=="object"&&"default"in t}function ip(t){return LE(t)?t.default:t}var gc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(VE))(),providedIn:"root"});let t=e;return t})(),VE=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),jE=new w("");var $E=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=g(PE),this.environmentInjector=g(fe),this.urlSerializer=g(sc),this.rootContexts=g(qo),this.location=g(wr),this.inputBindingEnabled=g(lc,{optional:!0})!==null,this.titleStrategy=g(rp),this.options=g(hc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(gc),this.createViewTransition=g(jE,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>E(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Hu(o)),i=o=>this.events.next(new zu(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(k(p(p({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new Q({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Rr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ie(s=>s.id!==0),x(s=>k(p({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ae(s=>{this.currentTransition=s;let a=!1,u=!1;return E(s).pipe(J(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?k(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),ae(c=>{let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new Xt(c.id,this.urlSerializer.serialize(c.rawUrl),f,0)),c.resolve(null),le}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return E(c).pipe(ae(f=>{let h=this.transitions?.getValue();return this.events.next(new kr(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?le:Promise.resolve(f)}),xE(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),J(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=k(p({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new Uo(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:m,restoredState:M,extras:b}=c,y=new kr(f,this.urlSerializer.serialize(h),m,M);this.events.next(y);let Z=Wh(h,this.rootComponentType).snapshot;return this.currentTransition=s=k(p({},c),{targetSnapshot:Z,urlAfterRedirects:h,extras:k(p({},b),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,E(s)}else{let f="";return this.events.next(new Xt(c.id,this.urlSerializer.serialize(c.extractedUrl),f,1)),c.resolve(null),le}}),J(c=>{let l=new ju(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),x(c=>(this.currentTransition=s=k(p({},c),{guards:Zw(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),iE(this.environmentInjector,c=>this.events.next(c)),J(c=>{if(s.guardsResult=c.guardsResult,$n(c.guardsResult))throw Qh(this.urlSerializer,c.guardsResult);let l=new $u(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),ie(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",3),!1)),Ru(c=>{if(c.guards.canActivateChecks.length)return E(c).pipe(J(l=>{let d=new Uu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ae(l=>{let d=!1;return E(l).pipe(AE(this.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",2)}}))}),J(l=>{let d=new Bu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Ru(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(J(h=>{d.component=h}),x(()=>{})));for(let h of d.children)f.push(...l(h));return f};return yi(l(c.targetSnapshot.root)).pipe(mt(),Xe(1))}),Ru(()=>this.afterPreactivation()),ae(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?B(d).pipe(x(()=>s)):E(s)}),x(c=>{let l=$w(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=k(p({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),J(()=>{this.events.next(new Vr)}),qw(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Xe(1),J({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new xt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Ms(this.transitionAbortSubject.pipe(J(c=>{throw c}))),Pt(()=>{if(!a&&!u){let c="";this.cancelNavigationTransition(s,c,1)}this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),pt(c=>{if(u=!0,Jh(c))this.events.next(new At(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),Hw(c)?this.events.next(new jr(c.url)):s.resolve(!1);else{this.events.next(new Lr(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){s.reject(l)}}return le}))}))}cancelNavigationTransition(n,i,o){let s=new At(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function UE(t){return t!==Rr}var BE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(HE))(),providedIn:"root"});let t=e;return t})(),oc=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},HE=(()=>{let e=class e extends oc{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=lr(e)))(o||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),op=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(zE))(),providedIn:"root"});let t=e;return t})(),zE=(()=>{let e=class e extends op{constructor(){super(...arguments),this.location=g(wr),this.urlSerializer=g(sc),this.options=g(hc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(gc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Tt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Wh(this.currentUrlTree,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof kr)this.stateMemento=this.createStateMemento();else if(n instanceof Xt)this.rawUrlTree=i.initialUrl;else if(n instanceof Uo){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof Vr?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof At&&(n.code===3||n.code===2)?this.restoreHistory(i):n instanceof Lr?this.restoreHistory(i,!0):n instanceof xt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=p(p({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=p(p({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=lr(e)))(o||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Nr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Nr||{});function GE(t,e){t.events.pipe(ie(r=>r instanceof xt||r instanceof At||r instanceof Lr||r instanceof Xt),x(r=>r instanceof xt||r instanceof Xt?Nr.COMPLETE:(r instanceof At?r.code===0||r.code===1:!1)?Nr.REDIRECTING:Nr.FAILED),ie(r=>r!==Nr.REDIRECTING),Xe(1)).subscribe(()=>{e()})}function WE(t){throw t}var qE={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ZE={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},mc=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=g(wo),this.stateManager=g(op),this.options=g(hc,{optional:!0})||{},this.pendingTasks=g(Cr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g($E),this.urlSerializer=g(sc),this.location=g(wr),this.urlHandlingStrategy=g(gc),this._events=new re,this.errorHandler=this.options.errorHandler||WE,this.navigated=!1,this.routeReuseStrategy=g(BE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(pc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(lc,{optional:!0}),this.eventsSubscription=new ee,this.isNgZoneEnabled=g(H)instanceof H&&H.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof At&&i.code!==0&&i.code!==1)this.navigated=!0;else if(i instanceof xt)this.navigated=!0;else if(i instanceof jr){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||UE(o.source)};this.scheduleNavigation(a,Rr,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}QE(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.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),Rr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)}))}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=p({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(dc),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=p(p({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=Bh(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return Hh(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=$n(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Rr,null,i)}navigate(n,i={skipLocationChange:!1}){return YE(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=p({},qE):i===!1?o=p({},ZE):o=i,$n(n))return _h(this.currentUrlTree,n,o);let s=this.parseUrl(n);return _h(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.keys(n).reduce((i,o)=>{let s=n[o];return s!=null&&(i[o]=s),i},{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,h)=>{u=f,c=h});let d=this.pendingTasks.add();return GE(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function YE(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,u){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new re,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof xt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,o,s,a){if(this.urlTree===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=this.urlTree!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;let n=this.href===null?null:Df(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(_(mc),_(en),Fa("tabindex"),_(qt),_(qe),_(_t))},e.\u0275dir=ve({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&_e("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&Zt("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Ze],skipLocationChange:["skipLocationChange","skipLocationChange",Ze],replaceUrl:["replaceUrl","replaceUrl",Ze],routerLink:"routerLink"},standalone:!0,features:[gr,at]});let t=e;return t})();var KE=new w("");function ap(t,...e){return Et([{provide:pc,multi:!0,useValue:t},[],{provide:en,useFactory:JE,deps:[mc]},{provide:Eo,multi:!0,useFactory:eb},e.map(r=>r.\u0275providers)])}function JE(t){return t.routerState.root}function XE(t,e){return{\u0275kind:t,\u0275providers:e}}function eb(){let t=g(bt);return e=>{let r=t.get(On);if(e!==r.components[0])return;let n=t.get(mc),i=t.get(tb);t.get(nb)===1&&n.initialNavigation(),t.get(rb,null,O.Optional)?.setUpPreloading(),t.get(KE,null,O.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var tb=new w("",{factory:()=>new re}),nb=new w("",{providedIn:"root",factory:()=>1});var rb=new w("");function up(){return XE(6,[{provide:_t,useClass:ih}])}var cp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=be({type:e,selectors:[["app-root"]],standalone:!0,features:[Se],decls:20,vars:0,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-light"],["routerLink","/",1,"navbar-brand"],["type","button","data-toggle","collapse","data-target","#navbarNav","aria-controls","navbarNav","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],[1,"collapse","navbar-collapse"],[1,"navbar-nav"],[1,"nav-item"],["routerLink","/",1,"nav-link"],["routerLink","/other",1,"nav-link"],["routerLink","/inline",1,"nav-link"],[2,"line-height","30px"],[2,"margin-top","16px"]],template:function(i,o){i&1&&(V(0,"nav",0)(1,"a",1),W(2,"ngx-tinymce"),j(),V(3,"button",2),Me(4,"span",3),j(),V(5,"div",4)(6,"ul",5)(7,"li",6)(8,"a",7),W(9,"Home"),j()(),V(10,"li",6)(11,"a",8),W(12,"Other"),j()(),V(13,"li",6)(14,"a",9),W(15,"Inline"),j()()()()(),V(16,"p",10),W(17,"Angular for tinymce"),j(),V(18,"div",11),Me(19,"router-outlet"),j())},dependencies:[cc,sp],encapsulation:2});let t=e;return t})();var yp=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(_(qt),_(qe))},e.\u0275dir=ve({type:e});let t=e;return t})(),ib=(()=>{let e=class e extends yp{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=lr(e)))(o||e)}})(),e.\u0275dir=ve({type:e,features:[Nn]});let t=e;return t})(),Jo=new w("NgValueAccessor");var ob={provide:Jo,useExisting:Gt(()=>vp),multi:!0};function sb(){let t=dt()?dt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var ab=new w("CompositionEventMode"),vp=(()=>{let e=class e extends yp{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!sb())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(i){return new(i||e)(_(qt),_(qe),_(ab,8))},e.\u0275dir=ve({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&_e("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[vr([ob]),Nn]});let t=e;return t})();var ub=new w("NgValidators"),cb=new w("NgAsyncValidators");function Dp(t){return t!=null}function Cp(t){return Yt(t)?B(t):t}function wp(t){let e={};return t.forEach(r=>{e=r!=null?p(p({},e),r):e}),Object.keys(e).length===0?null:e}function Ep(t,e){return e.map(r=>r(t))}function lb(t){return!t.validate}function bp(t){return t.map(e=>lb(e)?e:r=>e.validate(r))}function db(t){if(!t)return null;let e=t.filter(Dp);return e.length==0?null:function(r){return wp(Ep(r,e))}}function Ip(t){return t!=null?db(bp(t)):null}function fb(t){if(!t)return null;let e=t.filter(Dp);return e.length==0?null:function(r){let n=Ep(r,e).map(Cp);return ys(n).pipe(x(wp))}}function Mp(t){return t!=null?fb(bp(t)):null}function lp(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function hb(t){return t._rawValidators}function pb(t){return t._rawAsyncValidators}function yc(t){return t?Array.isArray(t)?t:[t]:[]}function Qo(t,e){return Array.isArray(t)?t.includes(e):t===e}function dp(t,e){let r=yc(e);return yc(t).forEach(i=>{Qo(r,i)||r.push(i)}),r}function fp(t,e){return yc(e).filter(r=>!Qo(t,r))}var Ko=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Ip(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Mp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},vc=class extends Ko{get formDirective(){return null}get path(){return null}},Zr=class extends Ko{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Dc=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},gb={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},QA=k(p({},gb),{"[class.ng-submitted]":"isSubmitted"}),zn=(()=>{let e=class e extends Dc{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(_(Zr,2))},e.\u0275dir=ve({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&iu("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Nn]});let t=e;return t})();var Wr="VALID",Yo="INVALID",Hn="PENDING",qr="DISABLED";function mb(t){return(Xo(t)?t.validators:t)||null}function yb(t){return Array.isArray(t)?Ip(t):t||null}function vb(t,e){return(Xo(e)?e.asyncValidators:t)||null}function Db(t){return Array.isArray(t)?Mp(t):t||null}function Xo(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Cc=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Wr}get invalid(){return this.status===Yo}get pending(){return this.status==Hn}get disabled(){return this.status===qr}get enabled(){return this.status!==qr}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(dp(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(dp(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(fp(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(fp(e,this._rawAsyncValidators))}hasValidator(e){return Qo(this._rawValidators,e)}hasAsyncValidator(e){return Qo(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Hn,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=qr,this.errors=null,this._forEachChild(n=>{n.disable(k(p({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(k(p({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Wr,this._forEachChild(n=>{n.enable(k(p({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(k(p({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Wr||this.status===Hn)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?qr:Wr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Hn,this._hasOwnPendingAsyncValidator=!0;let r=Cp(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ne,this.statusChanges=new ne}_calculateStatus(){return this._allControlsDisabled()?qr:this.errors?Yo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Hn)?Hn:this._anyControlsHaveStatus(Yo)?Yo:Wr}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Xo(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=yb(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Db(this._rawAsyncValidators)}};var _p=new w("CallSetDisabledState",{providedIn:"root",factory:()=>wc}),wc="always";function Cb(t,e){return[...e.path,t]}function wb(t,e,r=wc){bb(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Ib(t,e),_b(t,e),Mb(t,e),Eb(t,e)}function hp(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function Eb(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function bb(t,e){let r=hb(t);e.validator!==null?t.setValidators(lp(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=pb(t);e.asyncValidator!==null?t.setAsyncValidators(lp(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();hp(e._rawValidators,i),hp(e._rawAsyncValidators,i)}function Ib(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Sp(t,e)})}function Mb(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Sp(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Sp(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function _b(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function Sb(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function Tb(t){return Object.getPrototypeOf(t.constructor)===ib}function xb(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===vp?r=o:Tb(o)?n=o:i=o}),i||n||r||null}function pp(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function gp(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Ab=class extends Cc{constructor(e=null,r,n){super(mb(r),vb(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xo(r)&&(r.nonNullable||r.initialValueIsDefault)&&(gp(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){pp(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){pp(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){gp(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Nb={provide:Zr,useExisting:Gt(()=>ft)},mp=(()=>Promise.resolve())(),ft=(()=>{let e=class e extends Zr{constructor(n,i,o,s,a,u){super(),this._changeDetectorRef=a,this.callSetDisabledState=u,this.control=new Ab,this._registered=!1,this.name="",this.update=new ne,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=xb(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Sb(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){wb(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){mp.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,o=i!==0&&Ze(i);mp.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Cb(n,this._parent):[n]}};e.\u0275fac=function(i){return new(i||e)(_(vc,9),_(ub,10),_(cb,10),_(Jo,10),_(Mt,8),_(_p,8))},e.\u0275dir=ve({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[vr([Nb]),Nn,at]});let t=e;return t})();var Ob=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ot({type:e}),e.\u0275inj=it({});let t=e;return t})();var Rb=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ot({type:e}),e.\u0275inj=it({imports:[Ob]});let t=e;return t})();var Gn=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:_p,useValue:n.callSetDisabledState??wc}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=ot({type:e}),e.\u0275inj=it({imports:[Rb]});let t=e;return t})();var Fb=new w("HighlightJs-Config"),Wn=(()=>{let e=class e{constructor(n,i,o,s,a){this.el=n,this.ngModel=i,this.doc=o,this.ngZone=a,this.lang="html",this.mode="simple",Object.assign(this,s)}escapeHTML(n){return(n||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}init(){this.ngZone.runOutsideAngular(()=>{this.destroy();let n=this.el.nativeElement,i=this.code||""+n.innerHTML.trim(),o=this.doc;if(this.codeEl=o.createElement(this.mode==="default"?"div":"pre"),this.codeEl==null)return;let s=this.mode==="simple";s?(this.lang&&(this.codeEl.className=this.lang),this.parentEl=n.parentNode,this.parentEl.insertBefore(this.codeEl,n.nextSibling)):(this.parentEl=n,this.parentEl.innerHTML="",this.parentEl.appendChild(this.codeEl)),this.codeEl.innerHTML=i;let a=o.defaultView.hljs;a!=null&&(a.configure(p({},this.options)),s?a.highlightElement(this.codeEl):this.codeEl.querySelectorAll("pre code").forEach(u=>{a.highlightElement(u)}))})}destroy(){this.codeEl&&this.parentEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=void 0)}ngAfterViewInit(){this.init(),this.ngModel?this.modelValue$=this.ngModel.valueChanges?.subscribe(n=>{this.code=this.escapeHTML(n),this.init()}):this.initMutation()}ngOnDestroy(){this.destroy(),this.observer?.disconnect(),this.modelValue$?.unsubscribe()}initMutation(){typeof MutationObserver>"u"||this.ngZone.runOutsideAngular(()=>{this.observer=new MutationObserver(this.init.bind(this)),this.observer.observe(this.el.nativeElement,{characterData:!0,childList:!0,subtree:!0})})}};e.\u0275fac=function(i){return new(i||e)(_(qe),_(ft,8),_(q),_(Fb,8),_(H))},e.\u0275dir=ve({type:e,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(i,o){i&2&&Do("display",o.mode==="simple"?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0});let t=e;return t})();var tn=class{constructor(){this.baseURL="./assets/tinymce/",this.fileName="tinymce.min.js"}};var Tp=(()=>{let e=class e{constructor(n){this.doc=n,this.list={},this.cached={},this._notify=new Q([])}fixPaths(n){return n=n||[],Array.isArray(n)||(n=[n]),n.map(i=>{let o=typeof i=="string"?{path:i}:i;return o.type||(o.type=o.path.endsWith(".js")||o.callback?"script":"style"),o})}monitor(n){let i=this.fixPaths(n),o=[hn(),ie(s=>s.length!==0)];return i.length>0&&o.push(ie(s=>s.length===i.length&&s.every(a=>a.status==="ok"&&i.find(u=>u.path===a.path)))),this._notify.asObservable().pipe(Yn.apply(this,o))}clear(){this.list={},this.cached={}}load(n){return ns(this,null,function*(){return n=this.fixPaths(n),Promise.all(n.map(i=>i.type==="script"?this.loadScript(i.path,{callback:i.callback}):this.loadStyle(i.path))).then(i=>(this._notify.next(i),Promise.resolve(i)))})}loadScript(n,i){let{innerContent:o}=p({},i);return new Promise(s=>{if(this.list[n]===!0){s(k(p({},this.cached[n]),{status:"loading"}));return}this.list[n]=!0;let a=l=>{l.status==="ok"&&i?.callback?window[i?.callback]=()=>{u(l)}:u(l)},u=l=>{l.type="script",this.cached[n]=l,s(l),this._notify.next([l])},c=this.doc.createElement("script");c.type="text/javascript",c.src=n,c.charset="utf-8",o&&(c.innerHTML=o),c.readyState?c.onreadystatechange=()=>{(c.readyState==="loaded"||c.readyState==="complete")&&(c.onreadystatechange=null,a({path:n,status:"ok"}))}:c.onload=()=>a({path:n,status:"ok"}),c.onerror=l=>a({path:n,status:"error",error:l}),this.doc.getElementsByTagName("head")[0].appendChild(c)})}loadStyle(n,i){let{rel:o,innerContent:s}=p({rel:"stylesheet"},i);return new Promise(a=>{if(this.list[n]===!0){a(this.cached[n]);return}this.list[n]=!0;let u=this.doc.createElement("link");u.rel=o,u.type="text/css",u.href=n,s&&(u.innerHTML=s),this.doc.getElementsByTagName("head")[0].appendChild(u);let c={path:n,status:"ok",type:"style"};this.cached[n]=c,a(c)})}};e.\u0275fac=function(i){return new(i||e)(D(q))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Lb(t,e){if(t&1&&Me(0,"textarea",3),t&2){let r=yr();Zt("id",r.id)("placeholder",r.placeholder)}}function Vb(t,e){if(t&1&&(V(0,"div"),Hf(1),j()),t&2){let r=yr();Zt("id",r.id)}}function jb(t,e){if(t&1&&(ou(0),W(1),su()),t&2){let r=yr(2);ge(1),au(r._loading)}}function $b(t,e){if(t&1&&(V(0,"div",4),Co(1,jb,2,1,"ng-container",5),j()),t&2){let r=yr();ge(1),ce("ngIf",r._loading)("ngIfElse",r._loadingTpl)}}var Ub=["*"],xp=!(typeof document=="object"&&document),nn=(()=>{let e=class e{set disabled(n){this._disabled=n,this.setDisabled()}set loading(n){n instanceof Dr?(this._loading=null,this._loadingTpl=n):this._loading=n}get instance(){return this._instance}_getWin(){return this.doc.defaultView||window}constructor(n,i,o,s,a){this.defConfig=n,this.lazySrv=i,this.ngZone=o,this.doc=s,this.cd=a,this.value="",this.load=!0,this.id=`_tinymce-${Math.random().toString(36).substring(2)}`,this.placeholder="",this.inline=!1,this._disabled=!1,this._loading=null,this._loadingTpl=null,this.delay=0,this.ready=new ne}initDelay(){xp||setTimeout(()=>this.init(),Math.max(0,this.delay))}init(){let n=this._getWin();if(!n.tinymce)throw new Error("tinymce js\u6587\u4EF6\u52A0\u8F7D\u5931\u8D25");let{defConfig:i,config:o,id:s,inline:a}=this;if(this._instance)return;if(i?.baseURL){let l=""+i.baseURL;l.endsWith("/")&&(l=l.substring(0,l.length-1)),n.tinymce.baseURL=l}let u=p(p({},i?.config),o),c=k(p(p({selector:"#"+s,inline:a},i?.config),o),{setup:l=>{this._instance=l,this.onChange&&l.on("change keyup",()=>{this.value=l.getContent(),this.ngZone.run(()=>this.onChange(this.value))}),typeof u.setup=="function"&&u.setup(l)},init_instance_callback:l=>{l&&this.value&&l.setContent(this.value),this.setDisabled(),typeof u.init_instance_callback=="function"&&u.init_instance_callback(l),this.ready.emit(l)}});u.auto_focus&&(c.auto_focus=s),this.ngZone.runOutsideAngular(()=>n.tinymce.init(c)),this.load=!1,this.cd.detectChanges()}destroy(){this._instance!=null&&(this.ngZone.runOutsideAngular(()=>{this._instance.off(),this._instance.remove()}),this._instance=null)}setDisabled(){this._instance&&this.ngZone.runOutsideAngular(()=>{let n=this._disabled?"readonly":"design",i=this._instance.setMode;typeof i=="function"?i(n):this._instance.mode.set(n)})}ngAfterViewInit(){if(xp)return;if(this._getWin().tinymce){this.initDelay();return}let{defConfig:n}=this,i=n&&n.baseURL,o=n&&n.fileName,s=(i||"./assets/tinymce/")+(o||"tinymce.min.js");this.lazySrv.monitor(s).subscribe(()=>this.initDelay()),this.lazySrv.load(s)}ngOnChanges(n){this._instance&&n.config&&(this.destroy(),this.initDelay())}ngOnDestroy(){this.destroy()}writeValue(n){this.value=n||"",this._instance&&this.ngZone.runOutsideAngular(()=>this._instance.setContent(this.value))}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.disabled=n,this.setDisabled()}};e.\u0275fac=function(i){return new(i||e)(_(tn,8),_(Tp),_(H),_(q),_(Mt))},e.\u0275cmp=be({type:e,selectors:[["tinymce"]],inputs:{config:"config",placeholder:"placeholder",inline:["inline","inline",Ze],disabled:["disabled","disabled",Ze],loading:"loading",delay:["delay","delay",du]},outputs:{ready:"ready"},exportAs:["tinymce"],standalone:!0,features:[vr([{provide:Jo,useExisting:Gt(()=>e),multi:!0}]),gr,at,Se],ngContentSelectors:Ub,decls:3,vars:3,consts:[["class","tinymce-selector",4,"ngIf"],[4,"ngIf"],["class","loading",4,"ngIf"],[1,"tinymce-selector"],[1,"loading"],[4,"ngIf","ngIfElse"]],template:function(i,o){i&1&&(Bf(),Co(0,Lb,1,2,"textarea",0)(1,Vb,2,1,"div",1)(2,$b,2,2,"div",2)),i&2&&(ce("ngIf",!o.inline),ge(1),ce("ngIf",o.inline),ge(1),ce("ngIf",o.load))},dependencies:[oh],styles:[`tinymce .tinymce-selector{display:none} -`],encapsulation:2,changeDetection:0});let t=e;return t})();function Ap(t){return Et([{provide:tn,useValue:t}])}var Np=(()=>{let e=class e{constructor(n){this.san=n,this.html=` -

TinyMCE Logo -

-

Welcome to the TinyMCE Cloud demo!

-
Note, this includes some "enterprise/premium" features.
Visit the pricing page to learn more about our premium plugins.
-

Please try out the features provided in this full featured example.

- -

Got questions or need help?

- - -

A simple table to play with

- - - - - - - - - - - - - - - - - - - - -
ProductCostReally?
TinyMCE CloudGet started for freeYES!
PluploadFreeYES!
- -

Found a bug?

-

If you think you have found a bug please create an issue on the GitHub repo to report it to the developers.

- -

Finally ...

-

Don't forget to check out our other product Plupload, your ultimate upload solution featuring HTML5 upload support.

-

Thanks for supporting TinyMCE! We hope it helps you and your users create great content.
All the best from the TinyMCE team.

- `,this.config={height:350}}};e.\u0275fac=function(i){return new(i||e)(_(Tr))},e.\u0275cmp=be({type:e,selectors:[["app-home"]],standalone:!0,features:[Se],decls:17,vars:4,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],[3,"ngModel","config","ngModelChange"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"],["disabled","",3,"ngModel","ngModelChange"]],template:function(i,o){i&1&&(V(0,"div",0)(1,"div",1),W(2,"Basic"),j(),V(3,"div",2)(4,"textarea",3),W(5,"<"),W(6,'tinymce [config]="config" [(ngModel)]="html">'),j(),V(7,"tinymce",4),_e("ngModelChange",function(a){return o.html=a}),j(),W(8," Result: "),V(9,"div",5)(10,"div",2),Me(11,"blockquote",6),j()()()(),V(12,"div",0)(13,"div",1),W(14,"Disabled"),j(),V(15,"div",2)(16,"tinymce",7),_e("ngModelChange",function(a){return o.html=a}),j()()()),i&2&&(ge(7),ce("ngModel",o.html)("config",o.config),ge(4),ce("innerHTML",o.san.bypassSecurityTrustHtml(o.html),ho),ge(5),ce("ngModel",o.html))},dependencies:[Gn,zn,ft,Wn,nn],encapsulation:2});let t=e;return t})();var Op=(()=>{let e=class e{constructor(){this.html=`now: ${+new Date}`,this.config={height:500,menubar:!1,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table paste code help wordcount"],toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_css:"//www.tiny.cloud/css/codepen.min.css"}}ready(n){console.log("ready",n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=be({type:e,selectors:[["app-other"]],standalone:!0,features:[Se],decls:8,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["loading","\u52A0\u8F7D\u4E2D\u2026\u2026",3,"ngModel","config","ngModelChange","ready"]],template:function(i,o){i&1&&(V(0,"div",0)(1,"div",1),W(2,"Loading"),j(),V(3,"div",2)(4,"textarea",3),W(5,"<"),W(6,'tinymce [config]="config" [(ngModel)]="html">'),j(),V(7,"tinymce",4),_e("ngModelChange",function(a){return o.html=a})("ready",function(a){return o.ready(a)}),j()()()),i&2&&(ge(7),ce("ngModel",o.html)("config",o.config))},dependencies:[Gn,zn,ft,Wn,nn]});let t=e;return t})();var Rp=(()=>{let e=class e{constructor(n){this.san=n,this.html=` -
-
-

-

The world’s first rich text editor in the cloud

-

-
-

- Have you heard about Tiny Cloud? It’s the first step in our journey to help you deliver great content creation - experiences, no matter your level of expertise. 50,000 developers already agree. They get free access to our global CDN, image - proxy services and auto updates to the TinyMCE editor. They’re also ready for some exciting updates coming soon. -

-

- One of these enhancements is Tiny Drive: imagine file management for TinyMCE, in the cloud, made super easy. - Learn more at tiny.cloud/tinydrive, where you’ll find a working demo and an - opportunity to provide feedback to the product team. -

-
-
-

An editor for every project

-
-

Here are some of our customer’s most common use cases for TinyMCE:

-
    -
  • Content Management Systems (e.g. WordPress, Umbraco)
  • -
  • Learning Management Systems (e.g. Blackboard)
  • -
  • Customer Relationship Management and marketing automation (e.g. Marketo)
  • -
  • Email marketing (e.g. Constant Contact)
  • -
  • Content creation in SaaS systems (e.g. Eventbrite, Evernote, GoFundMe, Zendesk)
  • -
-

- And those use cases are just the start. TinyMCE is incredibly flexible, and with hundreds of APIs there’s likely a - solution for your editor project. If you haven’t experienced Tiny Cloud, get started today. You’ll even get a free - trial of our premium plugins – no credit card required! -

-
-
`}ready(n){console.log("ready",n)}};e.\u0275fac=function(i){return new(i||e)(_(Tr))},e.\u0275cmp=be({type:e,selectors:[["app-inline"]],standalone:!0,features:[Se],decls:12,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["inline","",3,"ngModel","ngModelChange"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"]],template:function(i,o){i&1&&(V(0,"div",0)(1,"div",1),W(2,"Inline mode"),j(),V(3,"div",2)(4,"textarea",3),W(5,"<"),W(6,'tinymce [config]="config" [(ngModel)]="html" inline>'),j(),V(7,"tinymce",4),_e("ngModelChange",function(a){return o.html=a}),j(),W(8," Result: "),V(9,"div",5)(10,"div",2),Me(11,"blockquote",6),j()()()()),i&2&&(ge(7),ce("ngModel",o.html),ge(4),ce("innerHTML",o.san.bypassSecurityTrustHtml(o.html),ho))},dependencies:[Gn,zn,ft,Wn,nn],encapsulation:2});let t=e;return t})();var Fp=[{path:"",component:Np},{path:"other",component:Op},{path:"inline",component:Rp}];Ih(cp,{providers:[mh(),ap(Fp,up()),Ap({baseURL:"//cdn.tiny.cloud/1/no-api-key/tinymce/6/"})]}).catch(t=>console.error(t)); diff --git a/main-YCZQDN45.js b/main-YCZQDN45.js new file mode 100644 index 0000000..5f742e3 --- /dev/null +++ b/main-YCZQDN45.js @@ -0,0 +1,87 @@ +var Jp=Object.defineProperty,Xp=Object.defineProperties;var eg=Object.getOwnPropertyDescriptors;var Oc=Object.getOwnPropertySymbols;var tg=Object.prototype.hasOwnProperty,ng=Object.prototype.propertyIsEnumerable;var Fc=(e,t,r)=>t in e?Jp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||={})tg.call(t,r)&&Fc(e,r,t[r]);if(Oc)for(var r of Oc(t))ng.call(t,r)&&Fc(e,r,t[r]);return e},L=(e,t)=>Xp(e,eg(t));var rr=(e,t,r)=>new Promise((n,i)=>{var o=u=>{try{a(r.next(u))}catch(c){i(c)}},s=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,s);a((r=r.apply(e,t)).next())});var Pc=null;var cs=1,ls=Symbol("SIGNAL");function k(e){let t=Pc;return Pc=e,t}var kc={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function rg(e){if(!(hs(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===cs)){if(!e.producerMustRecompute(e)&&!ds(e)){e.dirty=!1,e.lastCleanEpoch=cs;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=cs}}function Lc(e){return e&&(e.nextProducerIndex=0),k(e)}function Vc(e,t){if(k(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(hs(e))for(let r=e.nextProducerIndex;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ds(e){ii(e);for(let t=0;t0}function ii(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ig(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function og(){throw new Error}var sg=og;function Uc(e){sg=e}function _(e){return typeof e=="function"}function fn(e){let r=e(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var oi=fn(e=>function(r){e(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function ir(e,t){if(e){let r=e.indexOf(t);0<=r&&e.splice(r,1)}}var K=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:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(_(n))try{n()}catch(o){t=o instanceof oi?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Bc(o)}catch(s){t=t??[],s instanceof oi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new oi(t)}}add(t){var r;if(t&&t!==this)if(this.closed)Bc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}}_hasParent(t){let{_parentage:r}=this;return r===t||Array.isArray(r)&&r.includes(t)}_addParent(t){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t}_removeParent(t){let{_parentage:r}=this;r===t?this._parentage=null:Array.isArray(r)&&ir(r,t)}remove(t){let{_finalizers:r}=this;r&&ir(r,t),t instanceof e&&t._removeParent(this)}};K.EMPTY=(()=>{let e=new K;return e.closed=!0,e})();var ps=K.EMPTY;function si(e){return e instanceof K||e&&"closed"in e&&_(e.remove)&&_(e.add)&&_(e.unsubscribe)}function Bc(e){_(e)?e():e.unsubscribe()}var Oe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var hn={setTimeout(e,t,...r){let{delegate:n}=hn;return n?.setTimeout?n.setTimeout(e,t,...r):setTimeout(e,t,...r)},clearTimeout(e){let{delegate:t}=hn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ai(e){hn.setTimeout(()=>{let{onUnhandledError:t}=Oe;if(t)t(e);else throw e})}function or(){}var $c=gs("C",void 0,void 0);function Hc(e){return gs("E",void 0,e)}function zc(e){return gs("N",e,void 0)}function gs(e,t,r){return{kind:e,value:t,error:r}}var Vt=null;function pn(e){if(Oe.useDeprecatedSynchronousErrorHandling){let t=!Vt;if(t&&(Vt={errorThrown:!1,error:null}),e(),t){let{errorThrown:r,error:n}=Vt;if(Vt=null,r)throw n}}else e()}function Gc(e){Oe.useDeprecatedSynchronousErrorHandling&&Vt&&(Vt.errorThrown=!0,Vt.error=e)}var jt=class extends K{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,si(t)&&t.add(this)):this.destination=cg}static create(t,r,n){return new Je(t,r,n)}next(t){this.isStopped?ys(zc(t),this):this._next(t)}error(t){this.isStopped?ys(Hc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ys($c,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()}}},ag=Function.prototype.bind;function ms(e,t){return ag.call(e,t)}var vs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:r}=this;if(r.next)try{r.next(t)}catch(n){ui(n)}}error(t){let{partialObserver:r}=this;if(r.error)try{r.error(t)}catch(n){ui(n)}else ui(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(r){ui(r)}}},Je=class extends jt{constructor(t,r,n){super();let i;if(_(t)||!t)i={next:t??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&Oe.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&ms(t.next,o),error:t.error&&ms(t.error,o),complete:t.complete&&ms(t.complete,o)}):i=t}this.destination=new vs(i)}};function ui(e){Oe.useDeprecatedSynchronousErrorHandling?Gc(e):ai(e)}function ug(e){throw e}function ys(e,t){let{onStoppedNotification:r}=Oe;r&&hn.setTimeout(()=>r(e,t))}var cg={closed:!0,next:or,error:ug,complete:or};var gn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function me(e){return e}function sr(...e){return Ds(e)}function Ds(e){return e.length===0?me:e.length===1?e[0]:function(r){return e.reduce((n,i)=>i(n),r)}}var P=(()=>{class e{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new e;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=dg(r)?r:new Je(r,n,i);return pn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=Wc(n),new n((i,o)=>{let s=new Je({next:a=>{try{r(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[gn](){return this}pipe(...r){return Ds(r)(this)}toPromise(r){return r=Wc(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return e.create=t=>new e(t),e})();function Wc(e){var t;return(t=e??Oe.Promise)!==null&&t!==void 0?t:Promise}function lg(e){return e&&_(e.next)&&_(e.error)&&_(e.complete)}function dg(e){return e&&e instanceof jt||lg(e)&&si(e)}function ws(e){return _(e?.lift)}function N(e){return t=>{if(ws(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function R(e,t,r,n,i){return new Cs(e,t,r,n,i)}var Cs=class extends jt{constructor(t,r,n,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function mn(){return N((e,t)=>{let r=null;e._refCount++;let n=R(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){r=null;return}let i=e._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(n),n.closed||(r=e.connect())})}var yn=class extends P{constructor(t,r){super(),this.source=t,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,ws(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new K;let r=this.getSubject();t.add(this.source.subscribe(R(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),t.closed&&(this._connection=null,t=K.EMPTY)}return t}refCount(){return mn()(this)}};var qc=fn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var te=(()=>{class e extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new ci(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new qc}next(r){pn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){pn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){pn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?ps:(this.currentObservers=null,o.push(r),new K(()=>{this.currentObservers=null,ir(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new P;return r.source=this,r}}return e.create=(t,r)=>new ci(t,r),e})(),ci=class extends te{constructor(t,r){super(),this.destination=t,this.source=r}next(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,t)}error(t){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,t)}complete(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)}_subscribe(t){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&n!==void 0?n:ps}};var J=class extends te{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let r=super._subscribe(t);return!r.closed&&t.next(this._value),r}getValue(){let{hasError:t,thrownError:r,_value:n}=this;if(t)throw r;return this._throwIfClosed(),n}next(t){super.next(this._value=t)}};var ye=new P(e=>e.complete());function Zc(e){return e&&_(e.schedule)}function Yc(e){return e[e.length-1]}function li(e){return _(Yc(e))?e.pop():void 0}function mt(e){return Zc(Yc(e))?e.pop():void 0}function Kc(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(e,t||[])).next())})}function Qc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ut(e){return this instanceof Ut?(this.v=e,this):new Ut(e)}function Jc(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(m){return Promise.resolve(m).then(f,d)}}function a(f,m){n[f]&&(i[f]=function(C){return new Promise(function(w,y){o.push([f,C,w,y])>1||u(f,C)})},m&&(i[f]=m(i[f])))}function u(f,m){try{c(n[f](m))}catch(C){h(o[0][3],C)}}function c(f){f.value instanceof Ut?Promise.resolve(f.value.v).then(l,d):h(o[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function h(f,m){f(m),o.shift(),o.length&&u(o[0][0],o[0][1])}}function Xc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Qc=="function"?Qc(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var di=e=>e&&typeof e.length=="number"&&typeof e!="function";function fi(e){return _(e?.then)}function hi(e){return _(e[gn])}function pi(e){return Symbol.asyncIterator&&_(e?.[Symbol.asyncIterator])}function gi(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 fg(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var mi=fg();function yi(e){return _(e?.[mi])}function vi(e){return Jc(this,arguments,function*(){let r=e.getReader();try{for(;;){let{value:n,done:i}=yield Ut(r.read());if(i)return yield Ut(void 0);yield yield Ut(n)}}finally{r.releaseLock()}})}function Di(e){return _(e?.getReader)}function G(e){if(e instanceof P)return e;if(e!=null){if(hi(e))return hg(e);if(di(e))return pg(e);if(fi(e))return gg(e);if(pi(e))return el(e);if(yi(e))return mg(e);if(Di(e))return yg(e)}throw gi(e)}function hg(e){return new P(t=>{let r=e[gn]();if(_(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pg(e){return new P(t=>{for(let r=0;r{e.then(r=>{t.closed||(t.next(r),t.complete())},r=>t.error(r)).then(null,ai)})}function mg(e){return new P(t=>{for(let r of e)if(t.next(r),t.closed)return;t.complete()})}function el(e){return new P(t=>{vg(e,t).catch(r=>t.error(r))})}function yg(e){return el(vi(e))}function vg(e,t){var r,n,i,o;return Kc(this,void 0,void 0,function*(){try{for(r=Xc(e);n=yield r.next(),!n.done;){let s=n.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}t.complete()})}function fe(e,t,r,n=0,i=!1){let o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function wi(e,t=0){return N((r,n)=>{r.subscribe(R(n,i=>fe(n,e,()=>n.next(i),t),()=>fe(n,e,()=>n.complete(),t),i=>fe(n,e,()=>n.error(i),t)))})}function Ci(e,t=0){return N((r,n)=>{n.add(e.schedule(()=>r.subscribe(n),t))})}function tl(e,t){return G(e).pipe(Ci(t),wi(t))}function nl(e,t){return G(e).pipe(Ci(t),wi(t))}function rl(e,t){return new P(r=>{let n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function il(e,t){return new P(r=>{let n;return fe(r,t,()=>{n=e[mi](),fe(r,t,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>_(n?.return)&&n.return()})}function Ei(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(r=>{fe(r,t,()=>{let n=e[Symbol.asyncIterator]();fe(r,t,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function ol(e,t){return Ei(vi(e),t)}function sl(e,t){if(e!=null){if(hi(e))return tl(e,t);if(di(e))return rl(e,t);if(fi(e))return nl(e,t);if(pi(e))return Ei(e,t);if(yi(e))return il(e,t);if(Di(e))return ol(e,t)}throw gi(e)}function W(e,t){return t?sl(e,t):G(e)}function M(...e){let t=mt(e);return W(e,t)}function vn(e,t){let r=_(e)?e:()=>e,n=i=>i.error(r());return new P(t?i=>t.schedule(n,0,i):n)}function Es(e){return!!e&&(e instanceof P||_(e.lift)&&_(e.subscribe))}var Xe=fn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function S(e,t){return N((r,n)=>{let i=0;r.subscribe(R(n,o=>{n.next(e.call(t,o,i++))}))})}var{isArray:Dg}=Array;function wg(e,t){return Dg(t)?e(...t):e(t)}function bi(e){return S(t=>wg(e,t))}var{isArray:Cg}=Array,{getPrototypeOf:Eg,prototype:bg,keys:Ig}=Object;function Ii(e){if(e.length===1){let t=e[0];if(Cg(t))return{args:t,keys:null};if(Mg(t)){let r=Ig(t);return{args:r.map(n=>t[n]),keys:r}}}return{args:e,keys:null}}function Mg(e){return e&&typeof e=="object"&&Eg(e)===bg}function Mi(e,t){return e.reduce((r,n,i)=>(r[n]=t[i],r),{})}function _i(...e){let t=mt(e),r=li(e),{args:n,keys:i}=Ii(e);if(n.length===0)return W([],t);let o=new P(_g(n,t,i?s=>Mi(i,s):me));return r?o.pipe(bi(r)):o}function _g(e,t,r=me){return n=>{al(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let u=0;u{let c=W(e[u],t),l=!1;c.subscribe(R(n,d=>{o[u]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function al(e,t,r){e?fe(r,e,t):t()}function ul(e,t,r,n,i,o,s,a){let u=[],c=0,l=0,d=!1,h=()=>{d&&!u.length&&!c&&t.complete()},f=C=>c{o&&t.next(C),c++;let w=!1;G(r(C,l++)).subscribe(R(t,y=>{i?.(y),o?f(y):t.next(y)},()=>{w=!0},void 0,()=>{if(w)try{for(c--;u.length&&cm(y)):m(y)}h()}catch(y){t.error(y)}}))};return e.subscribe(R(t,f,()=>{d=!0,h()})),()=>{a?.()}}function X(e,t,r=1/0){return _(t)?X((n,i)=>S((o,s)=>t(n,o,i,s))(G(e(n,i))),r):(typeof t=="number"&&(r=t),N((n,i)=>ul(n,i,e,r)))}function bs(e=1/0){return X(me,e)}function cl(){return bs(1)}function Dn(...e){return cl()(W(e,mt(e)))}function Si(e){return new P(t=>{G(e()).subscribe(t)})}function Is(...e){let t=li(e),{args:r,keys:n}=Ii(e),i=new P(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=h},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(n?Mi(n,a):a),o.complete())}))}});return t?i.pipe(bi(t)):i}function se(e,t){return N((r,n)=>{let i=0;r.subscribe(R(n,o=>e.call(t,o,i++)&&n.next(o)))})}function yt(e){return N((t,r)=>{let n=null,i=!1,o;n=t.subscribe(R(r,void 0,void 0,s=>{o=G(e(s,yt(e)(t))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function ll(e,t,r,n,i){return(o,s)=>{let a=r,u=t,c=0;o.subscribe(R(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),n&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function vt(e,t){return _(t)?X(e,t,1):X(e,1)}function Dt(e){return N((t,r)=>{let n=!1;t.subscribe(R(r,i=>{n=!0,r.next(i)},()=>{n||r.next(e),r.complete()}))})}function et(e){return e<=0?()=>ye:N((t,r)=>{let n=0;t.subscribe(R(r,i=>{++n<=e&&(r.next(i),e<=n&&r.complete())}))})}function Ms(e){return S(()=>e)}function Ti(e=Sg){return N((t,r)=>{let n=!1;t.subscribe(R(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(e())))})}function Sg(){return new Xe}function Bt(e){return N((t,r)=>{try{t.subscribe(r)}finally{r.add(e)}})}function Be(e,t){let r=arguments.length>=2;return n=>n.pipe(e?se((i,o)=>e(i,o,n)):me,et(1),r?Dt(t):Ti(()=>new Xe))}function wn(e){return e<=0?()=>ye:N((t,r)=>{let n=[];t.subscribe(R(r,i=>{n.push(i),e{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function _s(e,t){let r=arguments.length>=2;return n=>n.pipe(e?se((i,o)=>e(i,o,n)):me,wn(1),r?Dt(t):Ti(()=>new Xe))}function Ss(e,t){return N(ll(e,t,arguments.length>=2,!0))}function As(e={}){let{connector:t=()=>new te,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,u,c=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=u=void 0,l=d=!1},m=()=>{let C=s;f(),C?.unsubscribe()};return N((C,w)=>{c++,!d&&!l&&h();let y=u=u??t();w.add(()=>{c--,c===0&&!d&&!l&&(a=Ts(m,i))}),y.subscribe(w),!s&&c>0&&(s=new Je({next:Z=>y.next(Z),error:Z=>{d=!0,h(),a=Ts(f,r,Z),y.error(Z)},complete:()=>{l=!0,h(),a=Ts(f,n),y.complete()}}),G(C).subscribe(s))})(o)}}function Ts(e,t,...r){if(t===!0){e();return}if(t===!1)return;let n=new Je({next:()=>{n.unsubscribe(),e()}});return G(t(...r)).subscribe(n)}function xs(...e){let t=mt(e);return N((r,n)=>{(t?Dn(e,r,t):Dn(e,r)).subscribe(n)})}function ve(e,t){return N((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(R(n,u=>{i?.unsubscribe();let c=0,l=o++;G(e(u,l)).subscribe(i=R(n,d=>n.next(t?t(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Ns(e){return N((t,r)=>{G(e).subscribe(R(r,()=>r.complete(),or)),!r.closed&&t.subscribe(r)})}function ne(e,t,r){let n=_(e)||t||r?{next:e,error:t,complete:r}:e;return n?N((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(R(o,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),o.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),o.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):me}var Jl="https://g.co/ng/security#xss",v=class extends Error{constructor(t,r){super(no(t,r)),this.code=t}};function no(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function ro(e){return{toString:e}.toString()}var tt=globalThis;function B(e){for(let t in e)if(e[t]===B)return t;throw Error("Could not find renamed property on target object.")}function Tg(e,t){for(let r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function le(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(le).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(` +`);return r===-1?t:t.substring(0,r)}function dl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Ag=B({__forward_ref__:B});function Kt(e){return e.__forward_ref__=Kt,e.toString=function(){return le(this())},e}function ce(e){return Xl(e)?e():e}function Xl(e){return typeof e=="function"&&e.hasOwnProperty(Ag)&&e.__forward_ref__===Kt}function D(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Mt(e){return{providers:e.providers||[],imports:e.imports||[]}}function io(e){return fl(e,td)||fl(e,nd)}function ed(e){return io(e)!==null}function fl(e,t){return e.hasOwnProperty(t)?e[t]:null}function xg(e){let t=e&&(e[td]||e[nd]);return t||null}function hl(e){return e&&(e.hasOwnProperty(pl)||e.hasOwnProperty(Ng))?e[pl]:null}var td=B({\u0275prov:B}),pl=B({\u0275inj:B}),nd=B({ngInjectableDef:B}),Ng=B({ngInjectorDef:B}),E=class{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=D({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function rd(e){return e&&!!e.\u0275providers}var Rg=B({\u0275cmp:B}),Og=B({\u0275dir:B}),Fg=B({\u0275pipe:B}),Pg=B({\u0275mod:B}),ji=B({\u0275fac:B}),ar=B({__NG_ELEMENT_ID__:B}),gl=B({__NG_ENV_ID__:B});function wr(e){return typeof e=="string"?e:e==null?"":String(e)}function kg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():wr(e)}function Lg(e,t){let r=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new v(-200,e)}function Pa(e,t){throw new v(-201,!1)}var x=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(x||{}),qs;function id(){return qs}function Ie(e){let t=qs;return qs=e,t}function od(e,t,r){let n=io(e);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&x.Optional)return null;if(t!==void 0)return t;Pa(e,"Injector")}var Vg={},ur=Vg,jg="__NG_DI_FLAG__",Ui="ngTempTokenPath",Ug="ngTokenPath",Bg=/\n/gm,$g="\u0275",ml="__source",In;function Hg(){return In}function wt(e){let t=In;return In=e,t}function zg(e,t=x.Default){if(In===void 0)throw new v(-203,!1);return In===null?od(e,void 0,t):In.get(e,t&x.Optional?null:void 0,t)}function b(e,t=x.Default){return(id()||zg)(ce(e),t)}function g(e,t=x.Default){return b(e,oo(t))}function oo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Zs(e){let t=[];for(let r=0;r ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):le(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${e.replace(Bg,` + `)}`}function _n(e,t){let r=e.hasOwnProperty(ji);return r?e[ji]:null}function ka(e,t){e.forEach(r=>Array.isArray(r)?ka(r,t):t(r))}function sd(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Bi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Zg(e,t){let r=[];for(let n=0;nt;){let o=i-2;e[i]=e[o],i--}e[t]=r,e[t+1]=n}}function Qg(e,t,r){let n=Cr(e,t);return n>=0?e[n|1]=r:(n=~n,Yg(e,n,t,r)),n}function Rs(e,t){let r=Cr(e,t);if(r>=0)return e[r|1]}function Cr(e,t){return Kg(e,t,1)}function Kg(e,t,r){let n=0,i=e.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=e[o<t?i=o:n=o+1}return~(i<t){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),n&2&&c!==d){if(Fe(n))return!1;s=!0}}}}return Fe(n)||s}function Fe(e){return(e&1)===0}function rm(e,t,r,n){if(t===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!Fe(s)&&(t+=vl(o,i),i=""),n=s,o=o||!Fe(n);r++}return i!==""&&(t+=vl(o,i)),t}function cm(e){return e.map(um).join(",")}function lm(e){let t=[],r=[],n=1,i=2;for(;n{let t=yd(e),r=L(p({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===cd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ze.Emulated,styles:e.styles||Me,_:null,schemas:e.schemas||null,tView:null,id:""});vd(r);let n=e.dependencies;return r.directiveDefs=wl(n,!1),r.pipeDefs=wl(n,!0),r.id=hm(r),r})}function dm(e){return zt(e)||hd(e)}function fm(e){return e!==null}function _t(e){return ro(()=>({type:e.type,bootstrap:e.bootstrap||Me,declarations:e.declarations||Me,imports:e.imports||Me,exports:e.exports||Me,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Dl(e,t){if(e==null)return Sn;let r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n],o,s,a=ee.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(r[o]=a!==ee.None?[n,a]:n,t[o]=s):r[o]=n}return r}function De(e){return ro(()=>{let t=yd(e);return vd(t),t})}function zt(e){return e[Rg]||null}function hd(e){return e[Og]||null}function pd(e){return e[Fg]||null}function gd(e){let t=zt(e)||hd(e)||pd(e);return t!==null?t.standalone:!1}function md(e,t){let r=e[Pg]||null;if(!r&&t===!0)throw new Error(`Type ${le(e)} does not have '\u0275mod' property.`);return r}function yd(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Sn,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Me,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Dl(e.inputs,t),outputs:Dl(e.outputs),debugInfo:null}}function vd(e){e.features?.forEach(t=>t(e))}function wl(e,t){if(!e)return null;let r=t?pd:dm;return()=>(typeof e=="function"?e():e).map(n=>r(n)).filter(fm)}function hm(e){let t=0,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,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].join("|");for(let i of r)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function St(e){return{\u0275providers:e}}function pm(...e){return{\u0275providers:Dd(!0,e),\u0275fromNgModule:!0}}function Dd(e,...t){let r=[],n=new Set,i,o=s=>{r.push(s)};return ka(t,s=>{let a=s;Qs(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&wd(i,o),r}function wd(e,t){for(let r=0;r{t(o,n)})}}function Qs(e,t,r,n){if(e=ce(e),!e)return!1;let i=null,o=hl(e),s=!o&&zt(e);if(!o&&!s){let u=e.ngModule;if(o=hl(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Qs(c,t,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{ka(o.imports,l=>{Qs(l,t,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&wd(c,t)}if(!a){let c=_n(i)||(()=>new i);t({provide:i,useFactory:c,deps:Me},i),t({provide:ud,useValue:i,multi:!0},i),t({provide:Tn,useValue:()=>b(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=e;Va(u,l=>{t(l,c)})}}else return!1;return i!==e&&e.providers!==void 0}function Va(e,t){for(let r of e)rd(r)&&(r=r.\u0275providers),Array.isArray(r)?Va(r,t):t(r)}var gm=B({provide:String,useValue:B});function Cd(e){return e!==null&&typeof e=="object"&&gm in e}function mm(e){return!!(e&&e.useExisting)}function ym(e){return!!(e&&e.useFactory)}function An(e){return typeof e=="function"}function vm(e){return!!e.useClass}var so=new E(""),Fi={},Dm={},Os;function ja(){return Os===void 0&&(Os=new $i),Os}var he=class{},lr=class extends he{get destroyed(){return this._destroyed}constructor(t,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Js(t,s=>this.processProvider(s)),this.records.set(ad,Cn(void 0,this)),i.has("environment")&&this.records.set(he,Cn(void 0,this));let o=this.records.get(so);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(ud,Me,x.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=k(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),k(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let r=wt(this),n=Ie(void 0),i;try{return t()}finally{wt(r),Ie(n)}}get(t,r=ur,n=x.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(gl))return t[gl](this);n=oo(n);let i,o=wt(this),s=Ie(void 0);try{if(!(n&x.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=Im(t)&&io(t);c&&this.injectableDefInScope(c)?u=Cn(Ks(t),Fi):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=n&x.Self?ja():this.parent;return r=n&x.Optional&&r===ur?null:r,a.get(t,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Ui]=a[Ui]||[]).unshift(le(t)),o)throw a;return Wg(a,t,"R3InjectorError",this.source)}else throw a}finally{Ie(s),wt(o)}}resolveInjectorInitializers(){let t=k(null),r=wt(this),n=Ie(void 0),i;try{let o=this.get(Tn,Me,x.Self);for(let s of o)s()}finally{wt(r),Ie(n),k(t)}}toString(){let t=[],r=this.records;for(let n of r.keys())t.push(le(n));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new v(205,!1)}processProvider(t){t=ce(t);let r=An(t)?t:ce(t&&t.provide),n=Cm(t);if(!An(t)&&t.multi===!0){let i=this.records.get(r);i||(i=Cn(void 0,Fi,!0),i.factory=()=>Zs(i.multi),this.records.set(r,i)),r=t,i.multi.push(t)}this.records.set(r,n)}hydrate(t,r){let n=k(null);try{return r.value===Fi&&(r.value=Dm,r.value=r.factory()),typeof r.value=="object"&&r.value&&bm(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{k(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let r=ce(t.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){let r=this._onDestroyHooks.indexOf(t);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Ks(e){let t=io(e),r=t!==null?t.factory:_n(e);if(r!==null)return r;if(e instanceof E)throw new v(204,!1);if(e instanceof Function)return wm(e);throw new v(204,!1)}function wm(e){if(e.length>0)throw new v(204,!1);let r=xg(e);return r!==null?()=>r.factory(e):()=>new e}function Cm(e){if(Cd(e))return Cn(void 0,e.useValue);{let t=Ed(e);return Cn(t,Fi)}}function Ed(e,t,r){let n;if(An(e)){let i=ce(e);return _n(i)||Ks(i)}else if(Cd(e))n=()=>ce(e.useValue);else if(ym(e))n=()=>e.useFactory(...Zs(e.deps||[]));else if(mm(e))n=()=>b(ce(e.useExisting));else{let i=ce(e&&(e.useClass||e.provide));if(Em(e))n=()=>new i(...Zs(e.deps));else return _n(i)||Ks(i)}return n}function Cn(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Em(e){return!!e.deps}function bm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Im(e){return typeof e=="function"||typeof e=="object"&&e instanceof E}function Js(e,t){for(let r of e)Array.isArray(r)?Js(r,t):r&&rd(r)?Js(r.\u0275providers,t):t(r)}function ot(e,t){e instanceof lr&&e.assertNotDestroyed();let r,n=wt(e),i=Ie(void 0);try{return t()}finally{wt(n),Ie(i)}}function Mm(){return id()!==void 0||Hg()!=null}function _m(e){return typeof e=="function"}var st=0,O=1,I=2,ae=3,Pe=4,we=5,dr=6,fr=7,Ge=8,xn=9,ke=10,Y=11,hr=12,Cl=13,Pn=14,Le=15,ao=16,En=17,Nn=18,uo=19,bd=20,Ct=21,Fs=22,Gt=23,We=25,Id=1;var Wt=7,Hi=8,zi=9,_e=10,Ua=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ua||{});function $t(e){return Array.isArray(e)&&typeof e[Id]=="object"}function at(e){return Array.isArray(e)&&e[Id]===!0}function Ba(e){return(e.flags&4)!==0}function co(e){return e.componentOffset>-1}function lo(e){return(e.flags&1)===1}function Et(e){return!!e.template}function Sm(e){return(e[I]&512)!==0}var Xs=class{constructor(t,r,n){this.previousValue=t,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Md(e,t,r,n){t!==null?t.applyValueToInputSignal(t,n):e[r]=n}function ut(){return _d}function _d(e){return e.type.prototype.ngOnChanges&&(e.setInput=Am),Tm}ut.ngInherit=!0;function Tm(){let e=Td(this),t=e?.current;if(t){let r=e.previous;if(r===Sn)e.previous=t;else for(let n in t)r[n]=t[n];e.current=null,this.ngOnChanges(t)}}function Am(e,t,r,n,i){let o=this.declaredInputs[n],s=Td(e)||xm(e,{previous:Sn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new Xs(c&&c.currentValue,r,u===Sn),Md(e,t,i,r)}var Sd="__ngSimpleChanges__";function Td(e){return e[Sd]||null}function xm(e,t){return e[Sd]=t}var El=null;var $e=function(e,t,r){El?.(e,t,r)},Nm="svg",Rm="math",Om=!1;function Fm(){return Om}function qe(e){for(;Array.isArray(e);)e=e[st];return e}function Ad(e,t){return qe(t[e])}function Te(e,t){return qe(t[e.index])}function xd(e,t){return e.data[t]}function Tt(e,t){let r=t[e];return $t(r)?r:r[st]}function $a(e){return(e[I]&128)===128}function Pm(e){return at(e[ae])}function Rn(e,t){return t==null?null:e[t]}function Nd(e){e[En]=0}function km(e){e[I]&1024||(e[I]|=1024,$a(e)&&pr(e))}function Lm(e,t){for(;e>0;)t=t[Pn],e--;return t}function Ha(e){return!!(e[I]&9216||e[Gt]?.dirty)}function ea(e){e[ke].changeDetectionScheduler?.notify(1),Ha(e)?pr(e):e[I]&64&&(Fm()?(e[I]|=1024,pr(e)):e[ke].changeDetectionScheduler?.notify())}function pr(e){e[ke].changeDetectionScheduler?.notify();let t=gr(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!$a(t)));)t=gr(t)}function Rd(e,t){if((e[I]&256)===256)throw new v(911,!1);e[Ct]===null&&(e[Ct]=[]),e[Ct].push(t)}function Vm(e,t){if(e[Ct]===null)return;let r=e[Ct].indexOf(t);r!==-1&&e[Ct].splice(r,1)}function gr(e){let t=e[ae];return at(t)?t[ae]:t}var F={lFrame:jd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function jm(){return F.lFrame.elementDepthCount}function Um(){F.lFrame.elementDepthCount++}function Bm(){F.lFrame.elementDepthCount--}function Od(){return F.bindingsEnabled}function Fd(){return F.skipHydrationRootTNode!==null}function $m(e){return F.skipHydrationRootTNode===e}function Hm(){F.skipHydrationRootTNode=null}function $(){return F.lFrame.lView}function ue(){return F.lFrame.tView}function de(){let e=Pd();for(;e!==null&&e.type===64;)e=e.parent;return e}function Pd(){return F.lFrame.currentTNode}function zm(){let e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Jt(e,t){let r=F.lFrame;r.currentTNode=e,r.isParent=t}function za(){return F.lFrame.isParent}function Ga(){F.lFrame.isParent=!1}function Gm(e){return F.lFrame.bindingIndex=e}function fo(){return F.lFrame.bindingIndex++}function Wm(e){let t=F.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function qm(){return F.lFrame.inI18n}function Zm(e,t){let r=F.lFrame;r.bindingIndex=r.bindingRootIndex=e,ta(t)}function Ym(){return F.lFrame.currentDirectiveIndex}function ta(e){F.lFrame.currentDirectiveIndex=e}function Qm(e){let t=F.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function kd(e){F.lFrame.currentQueryIndex=e}function Km(e){let t=e[O];return t.type===2?t.declTNode:t.type===1?e[we]:null}function Ld(e,t,r){if(r&x.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(r&x.Host);)if(i=Km(o),i===null||(o=o[Pn],i.type&10))break;if(i===null)return!1;t=i,e=o}let n=F.lFrame=Vd();return n.currentTNode=t,n.lView=e,!0}function Wa(e){let t=Vd(),r=e[O];F.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Vd(){let e=F.lFrame,t=e===null?null:e.child;return t===null?jd(e):t}function jd(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 Ud(){let e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Bd=Ud;function qa(){let e=Ud();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 Jm(e){return(F.lFrame.contextLView=Lm(e,F.lFrame.contextLView))[Ge]}function kn(){return F.lFrame.selectedIndex}function qt(e){F.lFrame.selectedIndex=e}function Za(){let e=F.lFrame;return xd(e.tView,e.selectedIndex)}function Xm(){return F.lFrame.currentNamespace}var $d=!0;function ho(){return $d}function po(e){$d=e}function ey(e,t,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(n){let s=_d(t);(r.preOrderHooks??=[]).push(e,s),(r.preOrderCheckHooks??=[]).push(e,s)}i&&(r.preOrderHooks??=[]).push(0-e,i),o&&((r.preOrderHooks??=[]).push(e,o),(r.preOrderCheckHooks??=[]).push(e,o))}function go(e,t){for(let r=t.directiveStart,n=t.directiveEnd;r=n)break}else t[u]<0&&(e[En]+=65536),(a>14>16&&(e[I]&3)===t&&(e[I]+=16384,bl(a,o)):bl(a,o)}var Mn=-1,Zt=class{constructor(t,r,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function ny(e){return e instanceof Zt}function ry(e){return(e.flags&8)!==0}function iy(e){return(e.flags&16)!==0}function zd(e){return e!==Mn}function Gi(e){return e&32767}function oy(e){return e>>16}function Wi(e,t){let r=oy(e),n=t;for(;r>0;)n=n[Pn],r--;return n}var na=!0;function Il(e){let t=na;return na=e,t}var sy=256,Gd=sy-1,Wd=5,ay=0,He={};function uy(e,t,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(ar)&&(n=r[ar]),n==null&&(n=r[ar]=ay++);let i=n&Gd,o=1<>Wd)]|=o}function qi(e,t){let r=qd(e,t);if(r!==-1)return r;let n=t[O];n.firstCreatePass&&(e.injectorIndex=t.length,ks(n.data,e),ks(t,null),ks(n.blueprint,null));let i=Ya(e,t),o=e.injectorIndex;if(zd(i)){let s=Gi(i),a=Wi(i,t),u=a[O].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c]}return t[o+8]=i,o}function ks(e,t){e.push(0,0,0,0,0,0,0,0,t)}function qd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ya(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let r=0,n=null,i=t;for(;i!==null;){if(n=Jd(i),n===null)return Mn;if(r++,i=i[Pn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return Mn}function ra(e,t,r){uy(e,t,r)}function cy(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let r=e.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,h=i?a+l:c;for(let f=d;f=u&&m.type===r)return f}if(i){let f=s[u];if(f&&Et(f)&&f.type===r)return u}return null}function On(e,t,r,n){let i=e[r],o=t.data;if(ny(i)){let s=i;s.resolving&&Lg(kg(o[r]));let a=Il(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?Ie(s.injectImpl):null,l=Ld(e,n,x.Default);try{i=e[r]=s.factory(void 0,o,e,n),t.firstCreatePass&&r>=n.directiveStart&&ey(r,o[r],t)}finally{c!==null&&Ie(c),Il(a),s.resolving=!1,Bd()}}return i}function fy(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(ar)?e[ar]:void 0;return typeof t=="number"?t>=0?t&Gd:hy:t}function Ml(e,t,r){let n=1<>Wd)]&n)}function _l(e,t){return!(e&x.Self)&&!(e&x.Host&&t)}var Ht=class{constructor(t,r){this._tNode=t,this._lView=r}get(t,r,n){return Qd(this._tNode,this._lView,t,oo(n),r)}};function hy(){return new Ht(de(),$())}function Er(e){return ro(()=>{let t=e.prototype.constructor,r=t[ji]||ia(t),n=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==n;){let o=i[ji]||ia(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function ia(e){return Xl(e)?()=>{let t=ia(ce(e));return t&&t()}:_n(e)}function py(e,t,r,n,i){let o=e,s=t;for(;o!==null&&s!==null&&s[I]&2048&&!(s[I]&512);){let a=Kd(o,s,r,n|x.Self,He);if(a!==He)return a;let u=o.parent;if(!u){let c=s[bd];if(c){let l=c.get(r,He,n);if(l!==He)return l}u=Jd(s),s=s[Pn]}o=u}return i}function Jd(e){let t=e[O],r=t.type;return r===2?t.declTNode:r===1?e[we]:null}function Qa(e){return cy(de(),e)}function Sl(e,t=null,r=null,n){let i=Xd(e,t,r,n);return i.resolveInjectorInitializers(),i}function Xd(e,t=null,r=null,n,i=new Set){let o=[r||Me,pm(e)];return n=n||(typeof e=="object"?void 0:le(e)),new lr(o,t||ja(),n||null,i)}var Ln=(()=>{let t=class t{static create(n,i){if(Array.isArray(n))return Sl({name:""},i,n,"");{let o=n.name??"";return Sl({name:o},n.parent,n.providers,o)}}};t.THROW_IF_NOT_FOUND=ur,t.NULL=new $i,t.\u0275prov=D({token:t,providedIn:"any",factory:()=>b(ad)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var gy="ngOriginalError";function Ls(e){return e[gy]}var nt=class{constructor(){this._console=console}handleError(t){let r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Ls(t);for(;r&&Ls(r);)r=Ls(r);return r||null}},ef=new E("",{providedIn:"root",factory:()=>g(nt).handleError.bind(void 0)}),tf=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=my,t.__NG_ENV_ID__=n=>n;let e=t;return e})(),oa=class extends tf{constructor(t){super(),this._lView=t}onDestroy(t){return Rd(this._lView,t),()=>Vm(this._lView,t)}};function my(){return new oa($())}function yy(){return mo(de(),$())}function mo(e,t){return new Ze(Te(e,t))}var Ze=(()=>{let t=class t{constructor(n){this.nativeElement=n}};t.__NG_ELEMENT_ID__=yy;let e=t;return e})();var sa=class extends te{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Mm()&&(this.destroyRef=g(tf,{optional:!0})??void 0)}emit(t){let r=k(null);try{super.next(t)}finally{k(r)}}subscribe(t,r,n){let i=t,o=r||(()=>null),s=n;if(t&&typeof t=="object"){let u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=Vs(o),i&&(i=Vs(i)),s&&(s=Vs(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof K&&t.add(a),a}};function Vs(e){return t=>{setTimeout(e,void 0,t)}}var ie=sa;function nf(e){return(e.flags&128)===128}var rf=new Map,vy=0;function Dy(){return vy++}function wy(e){rf.set(e[uo],e)}function Cy(e){rf.delete(e[uo])}var Tl="__ngContext__";function bt(e,t){$t(t)?(e[Tl]=t[uo],wy(t)):e[Tl]=t}function of(e){return af(e[hr])}function sf(e){return af(e[Pe])}function af(e){for(;e!==null&&!at(e);)e=e[Pe];return e}var aa;function uf(e){aa=e}function cf(){if(aa!==void 0)return aa;if(typeof document<"u")return document;throw new v(210,!1)}var Ka=new E("",{providedIn:"root",factory:()=>Ey}),Ey="ng",Ja=new E(""),At=new E("",{providedIn:"platform",factory:()=>"unknown"});var Xa=new E("",{providedIn:"root",factory:()=>cf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var by="h",Iy="b";var My=()=>null;function eu(e,t,r=!1){return My(e,t,r)}var lf=!1,_y=new E("",{providedIn:"root",factory:()=>lf});var Ai;function Sy(){if(Ai===void 0&&(Ai=null,tt.trustedTypes))try{Ai=tt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ai}function yo(e){return Sy()?.createHTML(e)||e}var xi;function df(){if(xi===void 0&&(xi=null,tt.trustedTypes))try{xi=tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return xi}function Al(e){return df()?.createHTML(e)||e}function xl(e){return df()?.createScriptURL(e)||e}var rt=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Jl})`}},ua=class extends rt{getTypeName(){return"HTML"}},ca=class extends rt{getTypeName(){return"Style"}},la=class extends rt{getTypeName(){return"Script"}},da=class extends rt{getTypeName(){return"URL"}},fa=class extends rt{getTypeName(){return"ResourceURL"}};function Ve(e){return e instanceof rt?e.changingThisBreaksApplicationSecurity:e}function ct(e,t){let r=Ty(e);if(r!=null&&r!==t){if(r==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Jl})`)}return r===t}function Ty(e){return e instanceof rt&&e.getTypeName()||null}function ff(e){return new ua(e)}function hf(e){return new ca(e)}function pf(e){return new la(e)}function gf(e){return new da(e)}function mf(e){return new fa(e)}function Ay(e){let t=new pa(e);return xy()?new ha(t):t}var ha=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let r=new window.DOMParser().parseFromString(yo(t),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}},pa=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let r=this.inertDocument.createElement("template");return r.innerHTML=yo(t),r}};function xy(){try{return!!new window.DOMParser().parseFromString(yo(""),"text/html")}catch{return!1}}var Ny=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function vo(e){return e=String(e),e.match(Ny)?e:"unsafe:"+e}function lt(e){let t={};for(let r of e.split(","))t[r]=!0;return t}function br(...e){let t={};for(let r of e)for(let n in r)r.hasOwnProperty(n)&&(t[n]=!0);return t}var yf=lt("area,br,col,hr,img,wbr"),vf=lt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Df=lt("rp,rt"),Ry=br(Df,vf),Oy=br(vf,lt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Fy=br(Df,lt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Nl=br(yf,Oy,Fy,Ry),wf=lt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Py=lt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ky=lt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Ly=br(wf,Py,ky),Vy=lt("script,style,template"),ga=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,n=!0,i=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){i.push(r),r=By(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=Uy(r);if(o){r=o;break}r=i.pop()}}return this.buf.join("")}startElement(t){let r=Rl(t).toLowerCase();if(!Nl.hasOwnProperty(r))return this.sanitizedSomething=!0,!Vy.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=t.attributes;for(let i=0;i"),!0}endElement(t){let r=Rl(t).toLowerCase();Nl.hasOwnProperty(r)&&!yf.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Ol(t))}};function jy(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Uy(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Cf(t);return t}function By(e){let t=e.firstChild;if(t&&jy(e,t))throw Cf(t);return t}function Rl(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Cf(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var $y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Hy=/([^\#-~ |!])/g;function Ol(e){return e.replace(/&/g,"&").replace($y,function(t){let r=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(Hy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Ni;function tu(e,t){let r=null;try{Ni=Ni||Ay(e);let n=t?String(t):"";r=Ni.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=r.innerHTML,r=Ni.getInertBodyElement(n)}while(n!==o);let a=new ga().sanitizeChildren(Fl(r)||r);return yo(a)}finally{if(r){let n=Fl(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Fl(e){return"content"in e&&zy(e)?e.content:null}function zy(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var je=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}(je||{});function Do(e){let t=nu();return t?Al(t.sanitize(je.HTML,e)||""):ct(e,"HTML")?Al(Ve(e)):tu(cf(),wr(e))}function Gy(e){let t=nu();return t?t.sanitize(je.URL,e)||"":ct(e,"URL")?Ve(e):vo(wr(e))}function Wy(e){let t=nu();if(t)return xl(t.sanitize(je.RESOURCE_URL,e)||"");if(ct(e,"ResourceURL"))return xl(Ve(e));throw new v(904,!1)}function qy(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Wy:Gy}function Ef(e,t,r){return qy(t,r)(e)}function nu(){let e=$();return e&&e[ke].sanitizer}var Zy=/^>|^->||--!>|)/g,Qy="\u200B$1\u200B";function Ky(e){return e.replace(Zy,t=>t.replace(Yy,Qy))}function bf(e){return e instanceof Function?e():e}var it=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(it||{}),Jy;function ru(e,t){return Jy(e,t)}function bn(e,t,r,n,i){if(n!=null){let o,s=!1;at(n)?o=n:$t(n)&&(s=!0,n=n[st]);let a=qe(n);e===0&&r!==null?i==null?Af(t,r,a):Zi(t,r,a,i||null,!0):e===1&&r!==null?Zi(t,r,a,i||null,!0):e===2?pv(t,a,s):e===3&&t.destroyNode(a),o!=null&&mv(t,e,o,r,i)}}function Xy(e,t){return e.createText(t)}function ev(e,t,r){e.setValue(t,r)}function tv(e,t){return e.createComment(Ky(t))}function If(e,t,r){return e.createElement(t,r)}function nv(e,t){Mf(e,t),t[st]=null,t[we]=null}function rv(e,t,r,n,i,o){n[st]=i,n[we]=t,Co(e,n,r,1,i,o)}function Mf(e,t){t[ke].changeDetectionScheduler?.notify(1),Co(e,t,t[Y],2,null,null)}function iv(e){let t=e[hr];if(!t)return js(e[O],e);for(;t;){let r=null;if($t(t))r=t[hr];else{let n=t[_e];n&&(r=n)}if(!r){for(;t&&!t[Pe]&&t!==e;)$t(t)&&js(t[O],t),t=t[ae];t===null&&(t=e),$t(t)&&js(t[O],t),r=t&&t[Pe]}t=r}}function ov(e,t,r,n){let i=_e+n,o=r.length;n>0&&(r[i-1][Pe]=t),n0&&(e[r-1][Pe]=n[Pe]);let o=Bi(e,_e+t);nv(n[O],n);let s=o[Nn];s!==null&&s.detachView(o[O]),n[ae]=null,n[Pe]=null,n[I]&=-129}return n}function Sf(e,t){if(!(t[I]&256)){let r=t[Y];r.destroyNode&&Co(e,t,r,3,null,null),iv(t)}}function js(e,t){if(t[I]&256)return;let r=k(null);try{t[I]&=-129,t[I]|=256,t[Gt]&&jc(t[Gt]),uv(e,t),av(e,t),t[O].type===1&&t[Y].destroy();let n=t[ao];if(n!==null&&at(t[ae])){n!==t[ae]&&_f(n,t);let i=t[Nn];i!==null&&i.detachView(e)}Cy(t)}finally{k(r)}}function av(e,t){let r=e.cleanup,n=t[fr];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(t[fr]=null);let i=t[Ct];if(i!==null){t[Ct]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[n.directiveStart+i];if(o===ze.None||o===ze.Emulated)return null}return Te(n,r)}}function Zi(e,t,r,n,i){e.insertBefore(t,r,n,i)}function Af(e,t,r){e.appendChild(t,r)}function Pl(e,t,r,n,i){n!==null?Zi(e,t,r,n,i):Af(e,t,r)}function lv(e,t,r,n){e.removeChild(t,r,n)}function iu(e,t){return e.parentNode(t)}function dv(e,t){return e.nextSibling(t)}function xf(e,t,r){return hv(e,t,r)}function fv(e,t,r){return e.type&40?Te(e,r):null}var hv=fv,kl;function wo(e,t,r,n){let i=Tf(e,n,t),o=t[Y],s=n.parent||t[we],a=xf(s,n,t);if(i!=null)if(Array.isArray(r))for(let u=0;uWe&&Pf(e,t,We,!1),$e(s?2:0,i),r(n,i)}finally{qt(o),$e(s?3:1,i)}}function su(e,t,r){if(Ba(t)){let n=k(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function Mv(e,t,r,n,i,o){let s=t?t.injectorIndex:-1,a=0;return Fd()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs: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 Ll(e,t,r,n,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;n??={};let a,u=ee.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}e===0?Vl(n,r,c,a,u):Vl(n,r,c,a)}return n}function Vl(e,t,r,n,i){let o;e.hasOwnProperty(r)?(o=e[r]).push(t,n):o=e[r]=[t,n],i!==void 0&&o.push(i)}function _v(e,t,r){let n=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=e[--t];if(typeof r=="number"&&r<0)return r}return 0}function Nv(e,t,r,n){let i=r.directiveStart,o=r.directiveEnd;co(r)&&Vv(t,r,e.data[i+r.componentOffset]),e.firstCreatePass||qi(r,t),bt(n,t);let s=r.initialInputs;for(let a=i;a{pr(e.lView)},consumerOnSignalRead(){this.lView[Gt]=this}}),qf=100;function Zf(e,t=!0,r=0){let n=e[ke],i=n.rendererFactory,o=!1;o||i.begin?.();try{nD(e,r)}catch(s){throw t&&Gf(e,s),s}finally{o||(i.end?.(),n.inlineEffectRunner?.flush())}}function nD(e,t){wa(e,t);let r=0;for(;Ha(e);){if(r===qf)throw new v(103,!1);r++,wa(e,1)}}function rD(e,t,r,n){let i=t[I];if((i&256)===256)return;let o=!1;!o&&t[ke].inlineEffectRunner?.flush(),Wa(t);let s=null,a=null;!o&&iD(e)&&(a=Jv(t),s=Lc(a));try{Nd(t),Gm(e.bindingStartIndex),r!==null&&Vf(e,t,r,2,n);let u=(i&3)===3;if(!o)if(u){let d=e.preOrderCheckHooks;d!==null&&Pi(t,d,null)}else{let d=e.preOrderHooks;d!==null&&ki(t,d,0,null),Ps(t,0)}if(oD(t),Yf(t,0),e.contentQueries!==null&&zf(e,t),!o)if(u){let d=e.contentCheckHooks;d!==null&&Pi(t,d)}else{let d=e.contentHooks;d!==null&&ki(t,d,1),Ps(t,1)}Dv(e,t);let c=e.components;c!==null&&Kf(t,c,0);let l=e.viewQuery;if(l!==null&&Da(2,l,n),!o)if(u){let d=e.viewCheckHooks;d!==null&&Pi(t,d)}else{let d=e.viewHooks;d!==null&&ki(t,d,2),Ps(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Fs]){for(let d of t[Fs])d();t[Fs]=null}o||(t[I]&=-73)}catch(u){throw pr(t),u}finally{a!==null&&(Vc(a,s),eD(a)),qa()}}function iD(e){return e.type!==2}function Yf(e,t){for(let r=of(e);r!==null;r=sf(r))for(let n=_e;n-1&&(ma(t,n),Bi(r,n))}this._attachedToViewContainer=!1}Sf(this._lView[O],this._lView)}onDestroy(t){Rd(this._lView,t)}markForCheck(){hu(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){ea(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,Zf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Mf(this._lView[O],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=t,ea(this._lView)}},Ir=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=cD;let e=t;return e})(),aD=Ir,uD=class extends aD{constructor(t,r,n){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,n){let i=Yv(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:n});return new Yt(i)}};function cD(){return lD(de(),$())}function lD(e,t){return e.type&4?new uD(t,e,mo(e,t)):null}var lA=new RegExp(`^(\\d+)*(${Iy}|${by})*(.*)`);var dD=()=>null;function Ul(e,t){return dD(e,t)}var Ca=class{},Ea=class{},Qi=class{};function fD(e){let t=Error(`No component factory found for ${le(e)}.`);return t[hD]=e,t}var hD="ngComponent";var ba=class{resolveComponentFactory(t){throw fD(t)}},Io=(()=>{let t=class t{};t.NULL=new ba;let e=t;return e})(),mr=class{},Xt=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>pD();let e=t;return e})();function pD(){let e=$(),t=de(),r=Tt(t.index,e);return($t(r)?r:e)[Y]}var gD=(()=>{let t=class t{};t.\u0275prov=D({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Us={};var Bl=new Set;function pu(e){Bl.has(e)||(Bl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function $l(...e){}function mD(){let e=typeof tt.requestAnimationFrame=="function",t=tt[e?"requestAnimationFrame":"setTimeout"],r=tt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){let n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}var H=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ie(!1),this.onMicrotaskEmpty=new ie(!1),this.onStable=new ie(!1),this.onError=new ie(!1),typeof Zone>"u")throw new v(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=mD().nativeRequestAnimationFrame,DD(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new v(909,!1)}run(t,r,n){return this._inner.run(t,r,n)}runTask(t,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,yD,$l,$l);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(t,r,n){return this._inner.runGuarded(t,r,n)}runOutsideAngular(t){return this._outer.run(t)}},yD={};function gu(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function vD(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(tt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ia(e),e.isCheckStableRunning=!0,gu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ia(e))}function DD(e){let t=()=>{vD(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(wD(a))return r.invokeTask(i,o,s,a);try{return Hl(e),r.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),zl(e)}},onInvoke:(r,n,i,o,s,a,u)=>{try{return Hl(e),r.invoke(i,o,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),zl(e)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,Ia(e),gu(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function Ia(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Hl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function zl(e){e._nesting--,gu(e)}function wD(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var Jf=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of n)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=D({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Ki(e,t,r){let n=r?e.styles:null,i=r?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&Of(e,r,o.join(" "))}}function SD(e,t,r){let n=e.projection=[];for(let i=0;i{let t=class t{};t.__NG_ELEMENT_ID__=AD;let e=t;return e})();function AD(){let e=de();return ND(e,$())}var xD=Mr,Xf=class extends xD{constructor(t,r,n){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=n}get element(){return mo(this._hostTNode,this._hostLView)}get injector(){return new Ht(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ya(this._hostTNode,this._hostLView);if(zd(t)){let r=Wi(t,this._hostLView),n=Gi(t),i=r[O].data[n+8];return new Ht(i,r)}else return new Ht(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let r=Wl(this._lContainer);return r!==null&&r[t]||null}get length(){return this._lContainer.length-_e}createEmbeddedView(t,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=Ul(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,jl(this._hostTNode,s)),a}createComponent(t,r,n,i,o){let s=t&&!_m(t),a;if(s)a=r;else{let m=r||{};a=m.index,n=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let u=s?t:new yr(zt(t)),c=n||this.parentInjector;if(!o&&u.ngModule==null){let C=(s?c:this.parentInjector).get(he,null);C&&(o=C)}let l=zt(u.componentType??{}),d=Ul(this._lContainer,l?.id??null),h=d?.firstChild??null,f=u.create(c,i,h,o);return this.insertImpl(f.hostView,a,jl(this._hostTNode,d)),f}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,n){let i=t._lView;if(Pm(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=i[ae],c=new Xf(u,u[we],u[ae]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(r),s=this._lContainer;return Qv(s,i,o,n),t.attachToViewContainerRef(),sd(Bs(s),o,t),t}move(t,r){return this.insert(t,r)}indexOf(t){let r=Wl(this._lContainer);return r!==null?r.indexOf(t):-1}remove(t){let r=this._adjustIndex(t,-1),n=ma(this._lContainer,r);n&&(Bi(Bs(this._lContainer),r),Sf(n[O],n))}detach(t){let r=this._adjustIndex(t,-1),n=ma(this._lContainer,r);return n&&Bi(Bs(this._lContainer),r)!=null?new Yt(n):null}_adjustIndex(t,r=0){return t??this.length+r}};function Wl(e){return e[Hi]}function Bs(e){return e[Hi]||(e[Hi]=[])}function ND(e,t){let r,n=t[e.index];return at(n)?r=n:(r=Hf(n,t,null,e),t[e.index]=r,bo(t,r)),OD(r,t,e,n),new Xf(r,e,t)}function RD(e,t){let r=e[Y],n=r.createComment(""),i=Te(t,e),o=iu(r,i);return Zi(r,o,n,dv(r,i),!1),n}var OD=kD,FD=()=>!1;function PD(e,t,r){return FD(e,t,r)}function kD(e,t,r,n){if(e[Wt])return;let i;r.type&8?i=qe(n):i=RD(t,r),e[Wt]=i}function LD(e){return typeof e=="function"&&e[ls]!==void 0}function eh(e){return LD(e)&&typeof e.set=="function"}function VD(e){return Object.getPrototypeOf(e.prototype).constructor}function Un(e){let t=VD(e.type),r=!0,n=[e];for(;t;){let i;if(Et(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new v(903,!1);i=t.\u0275dir}if(i){if(r){n.push(i);let s=e;s.inputs=Ri(e.inputs),s.inputTransforms=Ri(e.inputTransforms),s.declaredInputs=Ri(e.declaredInputs),s.outputs=Ri(e.outputs);let a=i.hostBindings;a&&HD(e,a);let u=i.viewQuery,c=i.contentQueries;if(u&&BD(e,u),c&&$D(e,c),jD(e,i),Tg(e.outputs,i.outputs),Et(i)&&i.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;n--){let i=e[n];i.hostVars=t+=i.hostVars,i.hostAttrs=cr(i.hostAttrs,r=cr(r,i.hostAttrs))}}function Ri(e){return e===Sn?{}:e===Me?[]:e}function BD(e,t){let r=e.viewQuery;r?e.viewQuery=(n,i)=>{t(n,i),r(n,i)}:e.viewQuery=t}function $D(e,t){let r=e.contentQueries;r?e.contentQueries=(n,i,o)=>{t(n,i,o),r(n,i,o)}:e.contentQueries=t}function HD(e,t){let r=e.hostBindings;r?e.hostBindings=(n,i)=>{t(n,i),r(n,i)}:e.hostBindings=t}function _r(e){let t=e.inputConfig,r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];Array.isArray(i)&&i[3]&&(r[n]=i[3])}e.inputTransforms=r}var It=class{},vr=class{};var Sa=class extends It{constructor(t,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ji(this);let i=md(t);this._bootstrapComponents=bf(i.bootstrap),this._r3Injector=Xd(t,r,[{provide:It,useValue:this},{provide:Io,useValue:this.componentFactoryResolver},...n],le(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Ta=class extends vr{constructor(t){super(),this.moduleType=t}create(t){return new Sa(this.moduleType,t,[])}};var Xi=class extends It{constructor(t){super(),this.componentFactoryResolver=new Ji(this),this.instance=null;let r=new lr([...t.providers,{provide:It,useValue:this},{provide:Io,useValue:this.componentFactoryResolver}],t.parent||ja(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function mu(e,t,r=null){return new Xi({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}var Bn=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new J(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Sr(e,t,r){let n=e[t];return Object.is(n,r)?!1:(e[t]=r,!0)}function zD(e){return(e.flags&32)===32}function GD(e,t,r,n,i,o,s,a,u){let c=t.consts,l=jn(t,e,4,s||null,Rn(c,a));lu(t,r,l,Rn(c,u)),go(t,l);let d=l.tView=cu(2,l,n,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Mo(e,t,r,n,i,o,s,a){let u=$(),c=ue(),l=e+We,d=c.firstCreatePass?GD(l,c,u,t,r,n,i,o,s):c.data[l];Jt(d,!1);let h=WD(c,u,d,e);ho()&&wo(c,u,h,d),bt(h,u);let f=Hf(h,u,h,d);return u[l]=f,bo(u,f),PD(f,d,u),lo(d)&&au(c,u,d),s!=null&&uu(u,d,a),Mo}var WD=qD;function qD(e,t,r,n){return po(!0),t[Y].createComment("")}function en(e,t,r,n){let i=$(),o=fo();if(Sr(i,o,t)){let s=ue(),a=Za();jv(a,i,e,t,r,n)}return en}function ZD(e,t,r,n){return Sr(e,fo(),r)?t+wr(r)+n:Vn}function Oi(e,t){return e<<17|t<<2}function Qt(e){return e>>17&32767}function YD(e){return(e&2)==2}function QD(e,t){return e&131071|t<<17}function Aa(e){return e|2}function Fn(e){return(e&131068)>>2}function $s(e,t){return e&-131069|t<<2}function KD(e){return(e&1)===1}function xa(e){return e|1}function JD(e,t,r,n,i,o){let s=o?t.classBindings:t.styleBindings,a=Qt(s),u=Fn(s);e[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||Cr(d,l)>0)&&(c=!0)}else l=r;if(i)if(u!==0){let h=Qt(e[a+1]);e[n+1]=Oi(h,a),h!==0&&(e[h+1]=$s(e[h+1],n)),e[a+1]=QD(e[a+1],n)}else e[n+1]=Oi(a,0),a!==0&&(e[a+1]=$s(e[a+1],n)),a=n;else e[n+1]=Oi(u,0),a===0?a=n:e[u+1]=$s(e[u+1],n),u=n;c&&(e[n+1]=Aa(e[n+1])),ql(e,l,n,!0),ql(e,l,n,!1),XD(t,l,e,n,o),s=Oi(a,u),o?t.classBindings=s:t.styleBindings=s}function XD(e,t,r,n,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Cr(o,t)>=0&&(r[n+1]=xa(r[n+1]))}function ql(e,t,r,n){let i=e[r+1],o=t===null,s=n?Qt(i):Fn(i),a=!1;for(;s!==0&&(a===!1||o);){let u=e[s],c=e[s+1];ew(u,t)&&(a=!0,e[s+1]=n?xa(c):Aa(c)),s=n?Qt(c):Fn(c)}a&&(e[r+1]=n?Aa(i):xa(i))}function ew(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Cr(e,t)>=0:!1}function Ce(e,t,r){let n=$(),i=fo();if(Sr(n,i,t)){let o=ue(),s=Za();Uf(o,s,n,e,t,n[Y],r,!1)}return Ce}function Zl(e,t,r,n,i){let o=t.inputs,s=i?"class":"style";du(e,r,o[s],s,n)}function _o(e,t,r){return th(e,t,r,!1),_o}function yu(e,t){return th(e,t,null,!0),yu}function th(e,t,r,n){let i=$(),o=ue(),s=Wm(2);if(o.firstUpdatePass&&nw(o,e,s,n),t!==Vn&&Sr(i,s,t)){let a=o.data[kn()];aw(o,a,i,i[Y],e,i[s+1]=uw(t,r),n,s)}}function tw(e,t){return t>=e.expandoStartIndex}function nw(e,t,r,n){let i=e.data;if(i[r+1]===null){let o=i[kn()],s=tw(e,r);cw(o,n)&&t===null&&!s&&(t=!1),t=rw(i,o,t,n),JD(i,o,t,r,s,n)}}function rw(e,t,r,n){let i=Qm(e),o=n?t.residualClasses:t.residualStyles;if(i===null)(n?t.classBindings:t.styleBindings)===0&&(r=Hs(null,e,t,r,n),r=Dr(r,t.attrs,n),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(r=Hs(i,e,t,r,n),o===null){let u=iw(e,t,n);u!==void 0&&Array.isArray(u)&&(u=Hs(null,e,t,u[1],n),u=Dr(u,t.attrs,n),ow(e,t,n,u))}else o=sw(e,t,n)}return o!==void 0&&(n?t.residualClasses=o:t.residualStyles=o),r}function iw(e,t,r){let n=r?t.classBindings:t.styleBindings;if(Fn(n)!==0)return e[Qt(n)]}function ow(e,t,r,n){let i=r?t.classBindings:t.styleBindings;e[Qt(i)]=n}function sw(e,t,r){let n,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let u=e[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=r[i+1];h===Vn&&(h=d?Me:void 0);let f=d?Rs(h,n):l===n?h:void 0;if(c&&!eo(f)&&(f=Rs(u,n)),eo(f)&&(a=f,s))return a;let m=e[i+1];i=s?Qt(m):Fn(m)}if(t!==null){let u=o?t.residualClasses:t.residualStyles;u!=null&&(a=Rs(u,n))}return a}function eo(e){return e!==void 0}function uw(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=le(Ve(e)))),e}function cw(e,t){return(e.flags&(t?8:16))!==0}function lw(e,t,r,n,i,o){let s=t.consts,a=Rn(s,i),u=jn(t,e,2,n,a);return lu(t,r,u,Rn(s,o)),u.attrs!==null&&Ki(u,u.attrs,!1),u.mergedAttrs!==null&&Ki(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function j(e,t,r,n){let i=$(),o=ue(),s=We+e,a=i[Y],u=o.firstCreatePass?lw(s,o,i,t,r,n):o.data[s],c=dw(o,i,u,a,t,e);i[s]=c;let l=lo(u);return Jt(u,!0),Ff(a,c,u),!zD(u)&&ho()&&wo(o,i,c,u),jm()===0&&bt(c,i),Um(),l&&(au(o,i,u),su(o,u,i)),n!==null&&uu(i,u),j}function U(){let e=de();za()?Ga():(e=e.parent,Jt(e,!1));let t=e;$m(t)&&Hm(),Bm();let r=ue();return r.firstCreatePass&&(go(r,e),Ba(e)&&r.queries.elementEnd(e)),t.classesWithoutHost!=null&&ry(t)&&Zl(r,t,$(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&iy(t)&&Zl(r,t,$(),t.stylesWithoutHost,!1),U}function Ae(e,t,r,n){return j(e,t,r,n),U(),Ae}var dw=(e,t,r,n,i,o)=>(po(!0),If(n,i,Xm()));function fw(e,t,r,n,i){let o=t.consts,s=Rn(o,n),a=jn(t,e,8,"ng-container",s);s!==null&&Ki(a,s,!0);let u=Rn(o,i);return lu(t,r,a,u),t.queries!==null&&t.queries.elementStart(t,a),a}function vu(e,t,r){let n=$(),i=ue(),o=e+We,s=i.firstCreatePass?fw(o,i,n,t,r):i.data[o];Jt(s,!0);let a=hw(i,n,s,e);return n[o]=a,ho()&&wo(i,n,a,s),bt(a,n),lo(s)&&(au(i,n,s),su(i,s,n)),r!=null&&uu(n,s),vu}function Du(){let e=de(),t=ue();return za()?Ga():(e=e.parent,Jt(e,!1)),t.firstCreatePass&&(go(t,e),Ba(e)&&t.queries.elementEnd(e)),Du}var hw=(e,t,r,n)=>(po(!0),tv(t[Y],""));var to="en-US";var pw=to;function gw(e){typeof e=="string"&&(pw=e.toLowerCase().replace(/_/g,"-"))}function tn(e,t,r,n){let i=$(),o=ue(),s=de();return nh(o,i,i[Y],s,e,t,n),tn}function mw(e,t,r,n){let i=e.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function nh(e,t,r,n,i,o,s){let a=lo(n),c=e.firstCreatePass&&zv(e),l=t[Ge],d=Hv(t),h=!0;if(n.type&3||s){let C=Te(n,t),w=s?s(C):C,y=d.length,Z=s?z=>s(qe(z[n.index])):n.index,re=null;if(!s&&a&&(re=mw(e,t,i,n.index)),re!==null){let z=re.__ngLastListenerFn__||re;z.__ngNextListenerFn__=o,re.__ngLastListenerFn__=o,h=!1}else{o=Kl(n,t,l,o,!1);let z=r.listen(w,i,o);d.push(o,z),c&&c.push(i,Z,y,y+1)}}else o=Kl(n,t,l,o,!1);let f=n.outputs,m;if(h&&f!==null&&(m=f[i])){let C=m.length;if(C)for(let w=0;w-1?Tt(e.index,t):t;hu(a);let u=Ql(t,r,n,s),c=o.__ngNextListenerFn__;for(;c;)u=Ql(t,r,c,s)&&u,c=c.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function Tr(e=1){return Jm(e)}function yw(e,t){let r=null,n=im(e);for(let i=0;i(po(!0),Xy(t[Y],n));function wu(e){return oh("",e,""),wu}function oh(e,t,r){let n=$(),i=ZD(n,e,t,r);return i!==Vn&&Gv(n,kn(),i),oh}function xt(e,t,r){eh(t)&&(t=t());let n=$(),i=fo();if(Sr(n,i,t)){let o=ue(),s=Za();Uf(o,s,n,e,t,n[Y],r,!1)}return xt}function nn(e,t){let r=eh(e);return r&&e.set(t),r}function Nt(e,t){let r=$(),n=ue(),i=de();return nh(n,r,r[Y],i,e,t),Nt}function Dw(e,t,r){let n=ue();if(n.firstCreatePass){let i=Et(e);Na(r,n.data,n.blueprint,i,!0),Na(t,n.data,n.blueprint,i,!1)}}function Na(e,t,r,n,i){if(e=ce(e),Array.isArray(e))for(let o=0;o>20;if(An(e)||!e.multi){let f=new Zt(c,i,T),m=Gs(u,t,i?l:l+h,d);m===-1?(ra(qi(a,s),o,u),zs(o,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(f),s.push(f)):(r[m]=f,s[m]=f)}else{let f=Gs(u,t,l+h,d),m=Gs(u,t,l,l+h),C=f>=0&&r[f],w=m>=0&&r[m];if(i&&!w||!i&&!C){ra(qi(a,s),o,u);let y=Ew(i?Cw:ww,r.length,i,n,c);!i&&w&&(r[m].providerFactory=y),zs(o,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(y),s.push(y)}else{let y=sh(r[i?m:f],c,!i&&n);zs(o,e,f>-1?f:m,y)}!i&&n&&w&&r[m].componentProviders++}}}function zs(e,t,r,n){let i=An(t),o=vm(t);if(i||o){let u=(o?ce(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function sh(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function Gs(e,t,r,n){for(let i=r;i{r.providersResolver=(n,i)=>Dw(n,i?i(e):e,t)}}var bw=(()=>{let t=class t{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let i=Dd(!1,n.type),o=i.length>0?mu([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=D({token:t,providedIn:"environment",factory:()=>new t(b(he))});let e=t;return e})();function xe(e){pu("NgStandalone"),e.getStandaloneInjector=t=>t.get(bw).getOrCreateStandaloneInjector(e)}var So=(()=>{let t=class t{log(n){console.log(n)}warn(n){console.warn(n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var ah=new E("");function rn(e){return!!e&&typeof e.then=="function"}function uh(e){return!!e&&typeof e.subscribe=="function"}var ch=new E(""),lh=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=g(ch,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(rn(s))n.push(s);else if(uh(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),To=new E("");function Iw(){Uc(()=>{throw new v(600,!1)})}function Mw(e){return e.isBoundToModule}function _w(e,t,r){try{let n=r();return rn(n)?n.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):n}catch(n){throw t.runOutsideAngular(()=>e.handleError(n)),n}}var $n=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(ef),this.afterRenderEffectManager=g(Jf),this.externalTestViews=new Set,this.beforeRender=new te,this.afterTick=new te,this.componentTypes=[],this.components=[],this.isStable=g(Bn).hasPendingTasks.pipe(S(n=>!n)),this._injector=g(he)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof Qi;if(!this._injector.get(lh).done){let f=!o&&gd(n),m=!1;throw new v(405,m)}let a;o?a=n:a=this._injector.get(Io).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=Mw(a)?void 0:this._injector.get(It),c=i||a.selector,l=a.create(Ln.NULL,[],c,u),d=l.location.nativeElement,h=l.injector.get(ah,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Ws(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new v(101,!1);let i=k(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,k(i)}}detectChangesInAttachedViews(n){let i=0,o=this.afterRenderEffectManager;for(;;){if(i===qf)throw new v(103,!1);if(n){let s=i===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:u}of this._views)Sw(a,s,u)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Oa(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Oa(s))))break}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;Ws(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(To,[]);[...this._bootstrapListeners,...i].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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ws(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ws(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function Sw(e,t,r){!t&&!Oa(e)||Tw(e,r,t)}function Oa(e){return Ha(e)}function Tw(e,t,r){let n;r?(n=0,e[I]|=1024):e[I]&64?n=0:n=1,Zf(e,t,n)}var Fa=class{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}},Cu=(()=>{let t=class t{compileModuleSync(n){return new Ta(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=md(n),s=bf(o.declarations).reduce((a,u)=>{let c=zt(u);return c&&a.push(new yr(c)),a},[]);return new Fa(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Aw=(()=>{let t=class t{constructor(){this.zone=g(H),this.applicationRef=g($n)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function xw(e){return[{provide:H,useFactory:e},{provide:Tn,multi:!0,useFactory:()=>{let t=g(Aw,{optional:!0});return()=>t.initialize()}},{provide:Tn,multi:!0,useFactory:()=>{let t=g(Fw);return()=>{t.initialize()}}},{provide:ef,useFactory:Nw}]}function Nw(){let e=g(H),t=g(nt);return r=>e.runOutsideAngular(()=>t.handleError(r))}function Rw(e){let t=xw(()=>new H(Ow(e)));return St([[],t])}function Ow(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Fw=(()=>{let t=class t{constructor(){this.subscription=new K,this.initialized=!1,this.zone=g(H),this.pendingTasks=g(Bn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{H.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{H.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Pw(){return typeof $localize<"u"&&$localize.locale||to}var Eu=new E("",{providedIn:"root",factory:()=>g(Eu,x.Optional|x.SkipSelf)||Pw()});var dh=new E("");var Vi=null;function kw(e=[],t){return Ln.create({name:t,providers:[{provide:so,useValue:"platform"},{provide:dh,useValue:new Set([()=>Vi=null])},...e]})}function Lw(e=[]){if(Vi)return Vi;let t=kw(e);return Vi=t,Iw(),Vw(t),t}function Vw(e){e.get(Ja,null)?.forEach(r=>r())}var dt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=jw;let e=t;return e})();function jw(e){return Uw(de(),$(),(e&16)===16)}function Uw(e,t,r){if(co(e)&&!r){let n=Tt(e.index,t);return new Yt(n,n)}else if(e.type&47){let n=t[Le];return new Yt(n,t)}return null}function fh(e){try{let{rootComponent:t,appProviders:r,platformProviders:n}=e,i=Lw(n),o=[Rw(),...r||[]],a=new Xi({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(H);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(nt,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:f=>{c.handleError(f)}})});let d=()=>a.destroy(),h=i.get(dh);return h.add(d),a.onDestroy(()=>{l.unsubscribe(),h.delete(d)}),_w(c,u,()=>{let f=a.get(lh);return f.runInitializers(),f.donePromise.then(()=>{let m=a.get(Eu,to);gw(m||to);let C=a.get($n);return t!==void 0&&C.bootstrap(t),C})})})}catch(t){return Promise.reject(t)}}function Ye(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function bu(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var mh=null;function ht(){return mh}function yh(e){mh??=e}var Ao=class{};var Q=new E(""),_u=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(Bw),providedIn:"platform"});let e=t;return e})();var Bw=(()=>{let t=class t extends _u{constructor(){super(),this._doc=g(Q),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ht().getBaseHref(this._doc)}onPopState(n){let i=ht().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=ht().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function Su(e,t){if(e.length==0)return t;if(t.length==0)return e;let r=0;return e.endsWith("/")&&r++,t.startsWith("/")&&r++,r==2?e+t.substring(1):r==1?e+t:e+"/"+t}function hh(e){let t=e.match(/#|\?|$/),r=t&&t.index||e.length,n=r-(e[r-1]==="/"?1:0);return e.slice(0,n)+e.slice(r)}function ft(e){return e&&e[0]!=="?"?"?"+e:e}var Rt=(()=>{let t=class t{historyGo(n){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(Dh),providedIn:"root"});let e=t;return e})(),vh=new E(""),Dh=(()=>{let t=class t extends Rt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??g(Q).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 Su(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+ft(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};t.\u0275fac=function(i){return new(i||t)(b(_u),b(vh,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),wh=(()=>{let t=class t extends Rt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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}path(n=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=Su(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+ft(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};t.\u0275fac=function(i){return new(i||t)(b(_u),b(vh,8))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),xr=(()=>{let t=class t{constructor(n){this._subject=new ie,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=zw(hh(ph(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({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,i=""){return this.path()==this.normalize(n+ft(i))}normalize(n){return t.stripTrailingSlash(Hw(this._basePath,ph(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ft(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+ft(i)),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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};t.normalizeQueryParams=ft,t.joinWithSlash=Su,t.stripTrailingSlash=hh,t.\u0275fac=function(i){return new(i||t)(b(Rt))},t.\u0275prov=D({token:t,factory:()=>$w(),providedIn:"root"});let e=t;return e})();function $w(){return new xr(b(Rt))}function Hw(e,t){if(!e||!t.startsWith(e))return t;let r=t.substring(e.length);return r===""||["/",";","?","#"].includes(r[0])?r:t}function ph(e){return e.replace(/\/index.html$/,"")}function zw(e){if(new RegExp("^(https?:)?//").test(e)){let[,r]=e.split(/\/\/[^\/]+/);return r}return e}function xo(e,t){t=encodeURIComponent(t);for(let r of e.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var Ch=(()=>{let t=class t{constructor(n,i){this._viewContainer=n,this._context=new Iu,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){gh("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){gh("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,i){return!0}};t.\u0275fac=function(i){return new(i||t)(T(Mr),T(Ir))},t.\u0275dir=De({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Iu=class{constructor(){this.$implicit=null,this.ngIf=null}};function gh(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${le(t)}'.`)}var Eh="browser",Gw="server";function No(e){return e===Gw}var Hn=class{};var Rr=class{},Oo=class{},on=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let r=this.headers.get(t.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,r){return this.clone({name:t,value:r,op:"a"})}set(t,r){return this.clone({name:t,value:r,op:"s"})}delete(t,r){return this.clone({name:t,value:r,op:"d"})}maybeSetNormalizedName(t,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,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(r=>{this.headers.set(r,t.headers.get(r)),this.normalizedNames.set(r,t.normalizedNames.get(r))})}clone(t){let r=new e;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([t]),r}applyUpdate(t){let r=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,r);let i=(t.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=t.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(t,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>t(this.normalizedNames.get(r),this.headers.get(r)))}};var Au=class{encodeKey(t){return Ih(t)}encodeValue(t){return Ih(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Zw(e,t){let r=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var Yw=/%(\d[a-f0-9])/gi,Qw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ih(e){return encodeURIComponent(e).replace(Yw,(t,r)=>Qw[r]??t)}function Ro(e){return`${e}`}var Ot=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Au,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Zw(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(r=>{let n=t.fromObject[r],i=Array.isArray(n)?n.map(Ro):[Ro(n)];this.map.set(r,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let r=this.map.get(t);return r?r[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,r){return this.clone({param:t,value:r,op:"a"})}appendAll(t){let r=[];return Object.keys(t).forEach(n=>{let i=t[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(t,r){return this.clone({param:t,value:r,op:"s"})}delete(t,r){return this.clone({param:t,value:r,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let r=this.encoder.encodeKey(t);return this.map.get(t).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let r=new e({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(t),r}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 r=(t.op==="a"?this.map.get(t.param):void 0)||[];r.push(Ro(t.value)),this.map.set(t.param,r);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],i=n.indexOf(Ro(t.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var xu=class{constructor(){this.map=new Map}set(t,r){return this.map.set(t,r),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Kw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Mh(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function _h(e){return typeof Blob<"u"&&e instanceof Blob}function Sh(e){return typeof FormData<"u"&&e instanceof FormData}function Jw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Nr=class e{constructor(t,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(Kw(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new on,this.context??=new xu,!this.params)this.params=new Ot,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":ah.set(f,t.setHeaders[f]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(r,n,s,{params:l,headers:c,context:d,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},zn=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(zn||{}),Or=class{constructor(t,r=ko.Ok,n="OK"){this.headers=t.headers||new on,this.status=t.status!==void 0?t.status:r,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Nu=class e extends Or{constructor(t={}){super(t),this.type=zn.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Fo=class e extends Or{constructor(t={}){super(t),this.type=zn.Response,this.body=t.body!==void 0?t.body:null}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})}},Po=class extends Or{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,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}},ko=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(ko||{});function Tu(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,transferCache:e.transferCache}}var Xw=(()=>{let t=class t{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof Nr)s=n;else{let c;o.headers instanceof on?c=o.headers:c=new on(o.headers);let l;o.params&&(o.params instanceof Ot?l=o.params:l=new Ot({fromObject:o.params})),s=new Nr(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=M(s).pipe(vt(c=>this.handler.handle(c)));if(n instanceof Nr||o.observe==="events")return a;let u=a.pipe(se(c=>c instanceof Fo));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(S(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(S(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(S(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(S(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Ot().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Tu(o,i))}post(n,i,o={}){return this.request("POST",n,Tu(o,i))}put(n,i,o={}){return this.request("PUT",n,Tu(o,i))}};t.\u0275fac=function(i){return new(i||t)(b(Rr))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function eC(e,t){return t(e)}function tC(e,t,r){return(n,i)=>ot(r,()=>t(n,o=>e(o,i)))}var xh=new E(""),nC=new E(""),rC=new E("");var Th=(()=>{let t=class t extends Rr{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=g(Bn);let o=g(rC,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(xh),...this.injector.get(nC,[])]));this.chain=o.reduceRight((s,a)=>tC(s,a,this.injector),eC)}let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Bt(()=>this.pendingTasks.remove(i)))}};t.\u0275fac=function(i){return new(i||t)(b(Oo),b(he))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();var iC=/^\)\]\}',?\n/;function oC(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var Ah=(()=>{let t=class t{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new v(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?W(i.\u0275loadImpl()):M(null)).pipe(ve(()=>new P(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((w,y)=>a.setRequestHeader(w,y.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let w=n.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(n.responseType){let w=n.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let w=a.statusText||"OK",y=new on(a.getAllResponseHeaders()),Z=oC(a)||n.url;return c=new Nu({headers:y,status:a.status,statusText:w,url:Z}),c},d=()=>{let{headers:w,status:y,statusText:Z,url:re}=l(),z=null;y!==ko.NoContent&&(z=typeof a.response>"u"?a.responseText:a.response),y===0&&(y=z?ko.Ok:0);let Ue=y>=200&&y<300;if(n.responseType==="json"&&typeof z=="string"){let ge=z;z=z.replace(iC,"");try{z=z!==""?JSON.parse(z):null}catch(gt){z=ge,Ue&&(Ue=!1,z={error:gt,text:z})}}Ue?(s.next(new Fo({body:z,headers:w,status:y,statusText:Z,url:re||void 0})),s.complete()):s.error(new Po({error:z,headers:w,status:y,statusText:Z,url:re||void 0}))},h=w=>{let{url:y}=l(),Z=new Po({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:y||void 0});s.error(Z)},f=!1,m=w=>{f||(s.next(l()),f=!0);let y={type:zn.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(y.total=w.total),n.responseType==="text"&&a.responseText&&(y.partialText=a.responseText),s.next(y)},C=w=>{let y={type:zn.UploadProgress,loaded:w.loaded};w.lengthComputable&&(y.total=w.total),s.next(y)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",m),u!==null&&a.upload&&a.upload.addEventListener("progress",C)),a.send(u),s.next({type:zn.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",m),u!==null&&a.upload&&a.upload.removeEventListener("progress",C)),a.readyState!==a.DONE&&a.abort()}})))}};t.\u0275fac=function(i){return new(i||t)(b(Hn))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Nh=new E(""),sC="XSRF-TOKEN",aC=new E("",{providedIn:"root",factory:()=>sC}),uC="X-XSRF-TOKEN",cC=new E("",{providedIn:"root",factory:()=>uC}),Lo=class{},lC=(()=>{let t=class t{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=xo(n,this.cookieName),this.lastCookieString=n),this.lastToken}};t.\u0275fac=function(i){return new(i||t)(b(Q),b(At),b(aC))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function dC(e,t){let r=e.url.toLowerCase();if(!g(Nh)||e.method==="GET"||e.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return t(e);let n=g(Lo).getToken(),i=g(cC);return n!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,n)})),t(e)}function Rh(...e){let t=[Xw,Ah,Th,{provide:Rr,useExisting:Th},{provide:Oo,useExisting:Ah},{provide:xh,useValue:dC,multi:!0},{provide:Nh,useValue:!0},{provide:Lo,useClass:lC}];for(let r of e)t.push(...r.\u0275providers);return St(t)}var Fu=class extends Ao{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Pu=class e extends Fu{static makeCurrent(){yh(new e)}onAndCancel(t,r,n){return t.addEventListener(r,n),()=>{t.removeEventListener(r,n)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return r=r||this.getDefaultDocument(),r.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,r){return r==="window"?window:r==="document"?t:r==="body"?t.body:null}getBaseHref(t){let r=hC();return r==null?null:pC(r)}resetBaseElement(){Fr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return xo(document.cookie,t)}},Fr=null;function hC(){return Fr=Fr||document.querySelector("base"),Fr?Fr.getAttribute("href"):null}function pC(e){return new URL(e,document.baseURI).pathname}var gC=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),ku=new E(""),kh=(()=>{let t=class t{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new v(5101,!1);return this._eventNameToPlugin.set(n,i),i}};t.\u0275fac=function(i){return new(i||t)(b(ku),b(H))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Vo=class{constructor(t){this._doc=t}},Ru="ng-app-id",Lh=(()=>{let t=class t{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=No(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Ru}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(Ru),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Ru,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(b(Q),b(Ka),b(Xa,8),b(At))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Ou={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/MathML/"},Vu=/%COMP%/g,Vh="%COMP%",mC=`_nghost-${Vh}`,yC=`_ngcontent-${Vh}`,vC=!0,DC=new E("",{providedIn:"root",factory:()=>vC});function wC(e){return yC.replace(Vu,e)}function CC(e){return mC.replace(Vu,e)}function jh(e,t){return t.map(r=>r.replace(Vu,e))}var Oh=(()=>{let t=class t{constructor(n,i,o,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=No(u),this.defaultRenderer=new Pr(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ze.ShadowDom&&(i=L(p({},i),{encapsulation:ze.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof jo?o.applyToHost(n):o instanceof kr&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case ze.Emulated:s=new jo(c,l,i,this.appId,d,a,u,h);break;case ze.ShadowDom:return new Lu(c,l,n,i,a,u,this.nonce,h);default:s=new kr(c,l,i,d,a,u,h);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(b(kh),b(Lh),b(Ka),b(DC),b(Q),b(At),b(H),b(Xa))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Pr=class{constructor(t,r,n,i){this.eventManager=t,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(Ou[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(Fh(t)?t.content:t).appendChild(r)}insertBefore(t,r,n){t&&(Fh(t)?t.content:t).insertBefore(r,n)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new v(-5104,!1);return r||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,n,i){if(i){r=i+":"+r;let o=Ou[i];o?t.setAttributeNS(o,r,n):t.setAttribute(r,n)}else t.setAttribute(r,n)}removeAttribute(t,r,n){if(n){let i=Ou[n];i?t.removeAttributeNS(i,r):t.removeAttribute(`${n}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,n,i){i&(it.DashCase|it.Important)?t.style.setProperty(r,n,i&it.Important?"important":""):t.style[r]=n}removeStyle(t,r,n){n&it.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,n){t!=null&&(t[r]=n)}setValue(t,r){t.nodeValue=r}listen(t,r,n){if(typeof t=="string"&&(t=ht().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(n))}decoratePreventDefault(t){return r=>{if(r==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))===!1&&r.preventDefault()}}};function Fh(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Lu=class extends Pr{constructor(t,r,n,i,o,s,a,u){super(t,o,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=jh(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,n){return super.insertBefore(this.nodeOrShadowRoot(t),r,n)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},kr=class extends Pr{constructor(t,r,n,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=u?jh(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},jo=class extends kr{constructor(t,r,n,i,o,s,a,u){let c=i+"-"+n.id;super(t,r,n,o,s,a,u,c),this.contentAttr=wC(c),this.hostAttr=CC(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){let n=super.createElement(t,r);return super.setAttribute(n,this.contentAttr,""),n}},EC=(()=>{let t=class t extends Vo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};t.\u0275fac=function(i){return new(i||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})(),Ph=["alt","control","meta","shift"],bC={"\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"},IC={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},MC=(()=>{let t=class t extends Vo{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,i,o){let s=t.parseEventName(i),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ht().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),Ph.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=bC[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Ph.forEach(a=>{if(a!==o){let u=IC[a];u(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{t.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};t.\u0275fac=function(i){return new(i||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function Uh(e,t){return fh(p({rootComponent:e},_C(t)))}function _C(e){return{appProviders:[...NC,...e?.providers??[]],platformProviders:xC}}function SC(){Pu.makeCurrent()}function TC(){return new nt}function AC(){return uf(document),document}var xC=[{provide:At,useValue:Eh},{provide:Ja,useValue:SC,multi:!0},{provide:Q,useFactory:AC,deps:[]}];var NC=[{provide:so,useValue:"root"},{provide:nt,useFactory:TC,deps:[]},{provide:ku,useClass:EC,multi:!0,deps:[Q,H,At]},{provide:ku,useClass:MC,multi:!0,deps:[Q]},Oh,Lh,kh,{provide:mr,useExisting:Oh},{provide:Hn,useClass:gC,deps:[]},[]];var Bh=(()=>{let t=class t{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};t.\u0275fac=function(i){return new(i||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Lr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=b(RC),o},providedIn:"root"});let e=t;return e})(),RC=(()=>{let t=class t extends Lr{constructor(n){super(),this._doc=n}sanitize(n,i){if(i==null)return null;switch(n){case je.NONE:return i;case je.HTML:return ct(i,"HTML")?Ve(i):tu(this._doc,String(i)).toString();case je.STYLE:return ct(i,"Style")?Ve(i):i;case je.SCRIPT:if(ct(i,"Script"))return Ve(i);throw new v(5200,!1);case je.URL:return ct(i,"URL")?Ve(i):vo(String(i));case je.RESOURCE_URL:if(ct(i,"ResourceURL"))return Ve(i);throw new v(5201,!1);default:throw new v(5202,!1)}}bypassSecurityTrustHtml(n){return ff(n)}bypassSecurityTrustStyle(n){return hf(n)}bypassSecurityTrustScript(n){return pf(n)}bypassSecurityTrustUrl(n){return gf(n)}bypassSecurityTrustResourceUrl(n){return mf(n)}};t.\u0275fac=function(i){return new(i||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var A="primary",Jr=Symbol("RouteTitle"),zu=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r[0]:r}return null}getAll(t){if(this.has(t)){let r=this.params[t];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Yn(e){return new zu(e)}function OC(e,t,r){let n=r.path.split("/");if(n.length>e.length||r.pathMatch==="full"&&(t.hasChildren()||n.lengthn[o]===i)}else return e===t}function Zh(e){return e.length>0?e[e.length-1]:null}function Lt(e){return Es(e)?e:rn(e)?W(Promise.resolve(e)):M(e)}var PC={exact:Qh,subset:Kh},Yh={exact:kC,subset:LC,ignored:()=>!0};function $h(e,t,r){return PC[r.paths](e.root,t.root,r.matrixParams)&&Yh[r.queryParams](e.queryParams,t.queryParams)&&!(r.fragment==="exact"&&e.fragment!==t.fragment)}function kC(e,t){return Qe(e,t)}function Qh(e,t,r){if(!an(e.segments,t.segments)||!$o(e.segments,t.segments,r)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let n in t.children)if(!e.children[n]||!Qh(e.children[n],t.children[n],r))return!1;return!0}function LC(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(r=>qh(e[r],t[r]))}function Kh(e,t,r){return Jh(e,t,t.segments,r)}function Jh(e,t,r,n){if(e.segments.length>r.length){let i=e.segments.slice(0,r.length);return!(!an(i,r)||t.hasChildren()||!$o(i,r,n))}else if(e.segments.length===r.length){if(!an(e.segments,r)||!$o(e.segments,r,n))return!1;for(let i in t.children)if(!e.children[i]||!Kh(e.children[i],t.children[i],n))return!1;return!0}else{let i=r.slice(0,e.segments.length),o=r.slice(e.segments.length);return!an(e.segments,i)||!$o(e.segments,i,n)||!e.children[A]?!1:Jh(e.children[A],t,o,n)}}function $o(e,t,r){return t.every((n,i)=>Yh[r](e[i].parameters,n.parameters))}var Ft=class{constructor(t=new V([],{}),r={},n=null){this.root=t,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Yn(this.queryParams),this._queryParamMap}toString(){return UC.serialize(this)}},V=class{constructor(t,r){this.segments=t,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ho(this)}},sn=class{constructor(t,r){this.path=t,this.parameters=r}get parameterMap(){return this._parameterMap??=Yn(this.parameters),this._parameterMap}toString(){return ep(this)}};function VC(e,t){return an(e,t)&&e.every((r,n)=>Qe(r.parameters,t[n].parameters))}function an(e,t){return e.length!==t.length?!1:e.every((r,n)=>r.path===t[n].path)}function jC(e,t){let r=[];return Object.entries(e.children).forEach(([n,i])=>{n===A&&(r=r.concat(t(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==A&&(r=r.concat(t(i,n)))}),r}var yc=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>new Go,providedIn:"root"});let e=t;return e})(),Go=class{parse(t){let r=new qu(t);return new Ft(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(t){let r=`/${Vr(t.root,!0)}`,n=HC(t.queryParams),i=typeof t.fragment=="string"?`#${BC(t.fragment)}`:"";return`${r}${n}${i}`}},UC=new Go;function Ho(e){return e.segments.map(t=>ep(t)).join("/")}function Vr(e,t){if(!e.hasChildren())return Ho(e);if(t){let r=e.children[A]?Vr(e.children[A],!1):"",n=[];return Object.entries(e.children).forEach(([i,o])=>{i!==A&&n.push(`${i}:${Vr(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=jC(e,(n,i)=>i===A?[Vr(e.children[A],!1)]:[`${i}:${Vr(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[A]!=null?`${Ho(e)}/${r[0]}`:`${Ho(e)}/(${r.join("//")})`}}function Xh(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Uo(e){return Xh(e).replace(/%3B/gi,";")}function BC(e){return encodeURI(e)}function Wu(e){return Xh(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function zo(e){return decodeURIComponent(e)}function Hh(e){return zo(e.replace(/\+/g,"%20"))}function ep(e){return`${Wu(e.path)}${$C(e.parameters)}`}function $C(e){return Object.entries(e).map(([t,r])=>`;${Wu(t)}=${Wu(r)}`).join("")}function HC(e){let t=Object.entries(e).map(([r,n])=>Array.isArray(n)?n.map(i=>`${Uo(r)}=${Uo(i)}`).join("&"):`${Uo(r)}=${Uo(n)}`).filter(r=>r);return t.length?`?${t.join("&")}`:""}var zC=/^[^\/()?;#]+/;function Uu(e){let t=e.match(zC);return t?t[0]:""}var GC=/^[^\/()?;=#]+/;function WC(e){let t=e.match(GC);return t?t[0]:""}var qC=/^[^=?&#]+/;function ZC(e){let t=e.match(qC);return t?t[0]:""}var YC=/^[^&#]+/;function QC(e){let t=e.match(YC);return t?t[0]:""}var qu=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new V([],{}):new V([],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 r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(r).length>0)&&(n[A]=new V(t,r)),n}parseSegment(){let t=Uu(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(t),new sn(zo(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let r=WC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=Uu(this.remaining);i&&(n=i,this.capture(n))}t[zo(r)]=zo(n)}parseQueryParam(t){let r=ZC(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=QC(this.remaining);s&&(n=s,this.capture(n))}let i=Hh(r),o=Hh(n);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Uu(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new v(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=A);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[A]:new V([],s),this.consumeOptional("//")}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new v(4011,!1)}};function tp(e){return e.segments.length>0?new V([],{[A]:e}):e}function np(e){let t={};for(let[n,i]of Object.entries(e.children)){let o=np(i);if(n===A&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[n]=o)}let r=new V(e.segments,t);return KC(r)}function KC(e){if(e.numberOfChildren===1&&e.children[A]){let t=e.children[A];return new V(e.segments.concat(t.segments),t.children)}return e}function Qn(e){return e instanceof Ft}function JC(e,t,r=null,n=null){let i=rp(e);return ip(i,t,r,n)}function rp(e){let t;function r(o){let s={};for(let u of o.children){let c=r(u);s[u.outlet]=c}let a=new V(o.url,s);return o===e&&(t=a),a}let n=r(e.root),i=tp(n);return t??i}function ip(e,t,r,n){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Bu(i,i,i,r,n);let o=XC(t);if(o.toRoot())return Bu(i,i,new V([],{}),r,n);let s=eE(o,i,e),a=s.processChildren?Br(s.segmentGroup,s.index,o.commands):sp(s.segmentGroup,s.index,o.commands);return Bu(i,s.segmentGroup,a,r,n)}function Wo(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function zr(e){return typeof e=="object"&&e!=null&&e.outlets}function Bu(e,t,r,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;e===t?s=r:s=op(e,t,r);let a=tp(np(s));return new Ft(a,o,i)}function op(e,t,r){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===t?n[i]=r:n[i]=op(o,t,r)}),new V(e.segments,n)}var qo=class{constructor(t,r,n){if(this.isAbsolute=t,this.numberOfDoubleDots=r,this.commands=n,t&&n.length>0&&Wo(n[0]))throw new v(4003,!1);let i=n.find(zr);if(i&&i!==Zh(n))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function XC(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new qo(!0,0,e);let t=0,r=!1,n=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new qo(r,t,n)}var qn=class{constructor(t,r,n){this.segmentGroup=t,this.processChildren=r,this.index=n}};function eE(e,t,r){if(e.isAbsolute)return new qn(t,!0,0);if(!r)return new qn(t,!1,NaN);if(r.parent===null)return new qn(r,!0,0);let n=Wo(e.commands[0])?0:1,i=r.segments.length-1+n;return tE(r,i,e.numberOfDoubleDots)}function tE(e,t,r){let n=e,i=t,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new v(4005,!1);i=n.segments.length}return new qn(n,!1,i-o)}function nE(e){return zr(e[0])?e[0].outlets:{[A]:e}}function sp(e,t,r){if(e??=new V([],{}),e.segments.length===0&&e.hasChildren())return Br(e,t,r);let n=rE(e,t,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==A)&&e.children[A]&&e.numberOfChildren===1&&e.children[A].segments.length===0){let o=Br(e.children[A],t,r);return new V(e.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=sp(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new V(e.segments,i)}}function rE(e,t,r){let n=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=e.segments[i],a=r[n];if(zr(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Gh(u,c,s))return o;n+=2}else{if(!Gh(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Zu(e,t,r){let n=e.segments.slice(0,t),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(t[r]=Zu(new V([],{}),0,n))}),t}function zh(e){let t={};return Object.entries(e).forEach(([r,n])=>t[r]=`${n}`),t}function Gh(e,t,r){return e==r.path&&Qe(t,r.parameters)}var $r="imperative",oe=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}(oe||{}),Re=class{constructor(t,r){this.id=t,this.url=r}},Gr=class extends Re{constructor(t,r,n="imperative",i=null){super(t,r),this.type=oe.NavigationStart,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Pt=class extends Re{constructor(t,r,n){super(t,r),this.urlAfterRedirects=n,this.type=oe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},be=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(be||{}),Yu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Yu||{}),kt=class extends Re{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=oe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},un=class extends Re{constructor(t,r,n,i){super(t,r),this.reason=n,this.code=i,this.type=oe.NavigationSkipped}},Wr=class extends Re{constructor(t,r,n,i){super(t,r),this.error=n,this.target=i,this.type=oe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Zo=class extends Re{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qu=class extends Re{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ku=class extends Re{constructor(t,r,n,i,o){super(t,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=oe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ju=class extends Re{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xu=class extends Re{constructor(t,r,n,i){super(t,r),this.urlAfterRedirects=n,this.state=i,this.type=oe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ec=class{constructor(t){this.route=t,this.type=oe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},tc=class{constructor(t){this.route=t,this.type=oe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},nc=class{constructor(t){this.snapshot=t,this.type=oe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rc=class{constructor(t){this.snapshot=t,this.type=oe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ic=class{constructor(t){this.snapshot=t,this.type=oe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},oc=class{constructor(t){this.snapshot=t,this.type=oe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var qr=class{},Zr=class{constructor(t){this.url=t}};var sc=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new es,this.attachRef=null}},es=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new sc,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Yo=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let r=this.pathFromRoot(t);return r.length>1?r[r.length-2]:null}children(t){let r=ac(t,this._root);return r?r.children.map(n=>n.value):[]}firstChild(t){let r=ac(t,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(t){let r=uc(t,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return uc(t,this._root).map(r=>r.value)}};function ac(e,t){if(e===t.value)return t;for(let r of t.children){let n=ac(e,r);if(n)return n}return null}function uc(e,t){if(e===t.value)return[t];for(let r of t.children){let n=uc(e,r);if(n.length)return n.unshift(t),n}return[]}var Ee=class{constructor(t,r){this.value=t,this.children=r}toString(){return`TreeNode(${this.value})`}};function Wn(e){let t={};return e&&e.children.forEach(r=>t[r.value.outlet]=r),t}var Qo=class extends Yo{constructor(t,r){super(t),this.snapshot=r,Dc(this,t)}toString(){return this.snapshot.toString()}};function ap(e){let t=oE(e),r=new J([new sn("",{})]),n=new J({}),i=new J({}),o=new J({}),s=new J(""),a=new cn(r,n,o,s,i,A,e,t.root);return a.snapshot=t.root,new Qo(new Ee(a,[]),t)}function oE(e){let t={},r={},n={},i="",o=new Yr([],t,n,i,r,A,e,null,{});return new Ko("",new Ee(o,[]))}var cn=class{constructor(t,r,n,i,o,s,a,u){this.urlSubject=t,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(S(c=>c[Jr]))??M(void 0),this.url=t,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(S(t=>Yn(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(t=>Yn(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function vc(e,t,r="emptyOnly"){let n,{routeConfig:i}=e;return t!==null&&(r==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?n={params:p(p({},t.params),e.params),data:p(p({},t.data),e.data),resolve:p(p(p(p({},e.data),t.data),i?.data),e._resolvedData)}:n={params:p({},e.params),data:p({},e.data),resolve:p(p({},e.data),e._resolvedData??{})},i&&cp(i)&&(n.resolve[Jr]=i.title),n}var Yr=class{get title(){return this.data?.[Jr]}constructor(t,r,n,i,o,s,a,u,c){this.url=t,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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??=Yn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Yn(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${r}')`}},Ko=class extends Yo{constructor(t,r){super(r),this.url=t,Dc(this,r)}toString(){return up(this._root)}};function Dc(e,t){t.value._routerState=e,t.children.forEach(r=>Dc(e,r))}function up(e){let t=e.children.length>0?` { ${e.children.map(up).join(", ")} } `:"";return`${e.value}${t}`}function $u(e){if(e.snapshot){let t=e.snapshot,r=e._futureSnapshot;e.snapshot=r,Qe(t.queryParams,r.queryParams)||e.queryParamsSubject.next(r.queryParams),t.fragment!==r.fragment&&e.fragmentSubject.next(r.fragment),Qe(t.params,r.params)||e.paramsSubject.next(r.params),FC(t.url,r.url)||e.urlSubject.next(r.url),Qe(t.data,r.data)||e.dataSubject.next(r.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function cc(e,t){let r=Qe(e.params,t.params)&&VC(e.url,t.url),n=!e.parent!=!t.parent;return r&&!n&&(!e.parent||cc(e.parent,t.parent))}function cp(e){return typeof e.title=="string"||e.title===null}var wc=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=A,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=g(es),this.location=g(Mr),this.changeDetector=g(dt),this.environmentInjector=g(he),this.inputBinder=g(Cc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)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 v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new v(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new lc(n,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=De({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ut]});let e=t;return e})(),lc=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,r,n){this.route=t,this.childContexts=r,this.parent=n}get(t,r){return t===cn?this.route:t===es?this.childContexts:this.parent.get(t,r)}},Cc=new E("");function sE(e,t,r){let n=Qr(e,t._root,r?r._root:void 0);return new Qo(n,t)}function Qr(e,t,r){if(r&&e.shouldReuseRoute(t.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=t.value;let i=aE(e,t,r);return new Ee(n,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Qr(e,a)),s}}let n=uE(t.value),i=t.children.map(o=>Qr(e,o));return new Ee(n,i)}}function aE(e,t,r){return t.children.map(n=>{for(let i of r.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Qr(e,n,i);return Qr(e,n)})}function uE(e){return new cn(new J(e.url),new J(e.params),new J(e.queryParams),new J(e.fragment),new J(e.data),e.outlet,e.component,e)}var lp="ngNavigationCancelingError";function dp(e,t){let{redirectTo:r,navigationBehaviorOptions:n}=Qn(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=fp(!1,be.Redirect);return i.url=r,i.navigationBehaviorOptions=n,i}function fp(e,t){let r=new Error(`NavigationCancelingError: ${e||""}`);return r[lp]=!0,r.cancellationCode=t,r}function cE(e){return hp(e)&&Qn(e.url)}function hp(e){return!!e&&e[lp]}var lE=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=Se({type:t,selectors:[["ng-component"]],standalone:!0,features:[xe],decls:1,vars:0,template:function(i,o){i&1&&Ae(0,"router-outlet")},dependencies:[wc],encapsulation:2});let e=t;return e})();function dE(e,t){return e.providers&&!e._injector&&(e._injector=mu(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Ec(e){let t=e.children&&e.children.map(Ec),r=t?L(p({},e),{children:t}):p({},e);return!r.component&&!r.loadComponent&&(t||r.loadChildren)&&r.outlet&&r.outlet!==A&&(r.component=lE),r}function Ke(e){return e.outlet||A}function fE(e,t){let r=e.filter(n=>Ke(n)===t);return r.push(...e.filter(n=>Ke(n)!==t)),r}function Xr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let r=t.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var hE=(e,t,r,n)=>S(i=>(new dc(t,i.targetRouterState,i.currentRouterState,r,n).activate(e),i)),dc=class{constructor(t,r,n,i,o){this.routeReuseStrategy=t,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,t),$u(this.futureState.root),this.activateChildRoutes(r,n,t)}deactivateChildRoutes(t,r,n){let i=Wn(r);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(t,r,n){let i=t.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,r,s.children)}else this.deactivateChildRoutes(t,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(t,r){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,r):this.deactivateRouteAndOutlet(t,r)}detachAndStoreRouteSubtree(t,r){let n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,o=Wn(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,r){let n=r.getContext(t.value.outlet),i=n&&t.value.component?n.children:r,o=Wn(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(t,r,n){let i=Wn(r);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new oc(o.value.snapshot))}),t.children.length&&this.forwardEvent(new rc(t.value.snapshot))}activateRoutes(t,r,n){let i=t.value,o=r?r.value:null;if($u(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,r,s.children)}else this.activateChildRoutes(t,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),$u(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=Xr(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,n)}},Jo=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Zn=class{constructor(t,r){this.component=t,this.route=r}};function pE(e,t,r){let n=e._root,i=t?t._root:null;return jr(n,i,r,[n.value])}function gE(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Jn(e,t){let r=Symbol(),n=t.get(e,r);return n===r?typeof e=="function"&&!ed(e)?e:t.get(e):n}function jr(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Wn(t);return e.children.forEach(s=>{mE(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Hr(a,r.getContext(s),i)),i}function mE(e,t,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=r?r.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=yE(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Jo(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?jr(e,t,a?a.children:null,n,i):jr(e,t,r,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Zn(a.outlet.component,s))}else s&&Hr(t,a,i),i.canActivateChecks.push(new Jo(n)),o.component?jr(e,null,a?a.children:null,n,i):jr(e,null,r,n,i);return i}function yE(e,t,r){if(typeof r=="function")return r(e,t);switch(r){case"pathParamsChange":return!an(e.url,t.url);case"pathParamsOrQueryParamsChange":return!an(e.url,t.url)||!Qe(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cc(e,t)||!Qe(e.queryParams,t.queryParams);case"paramsChange":default:return!cc(e,t)}}function Hr(e,t,r){let n=Wn(e),i=e.value;Object.entries(n).forEach(([o,s])=>{i.component?t?Hr(s,t.children.getContext(o),r):Hr(s,null,r):Hr(s,t,r)}),i.component?t&&t.outlet&&t.outlet.isActivated?r.canDeactivateChecks.push(new Zn(t.outlet.component,i)):r.canDeactivateChecks.push(new Zn(null,i)):r.canDeactivateChecks.push(new Zn(null,i))}function ei(e){return typeof e=="function"}function vE(e){return typeof e=="boolean"}function DE(e){return e&&ei(e.canLoad)}function wE(e){return e&&ei(e.canActivate)}function CE(e){return e&&ei(e.canActivateChild)}function EE(e){return e&&ei(e.canDeactivate)}function bE(e){return e&&ei(e.canMatch)}function pp(e){return e instanceof Xe||e?.name==="EmptyError"}var Bo=Symbol("INITIAL_VALUE");function Kn(){return ve(e=>_i(e.map(t=>t.pipe(et(1),xs(Bo)))).pipe(S(t=>{for(let r of t)if(r!==!0){if(r===Bo)return Bo;if(r===!1||r instanceof Ft)return r}return!0}),se(t=>t!==Bo),et(1)))}function IE(e,t){return X(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?M(L(p({},r),{guardsResult:!0})):ME(s,n,i,e).pipe(X(a=>a&&vE(a)?_E(n,o,e,t):M(a)),S(a=>L(p({},r),{guardsResult:a})))})}function ME(e,t,r,n){return W(e).pipe(X(i=>NE(i.component,i.route,r,t,n)),Be(i=>i!==!0,!0))}function _E(e,t,r,n){return W(t).pipe(vt(i=>Dn(TE(i.route.parent,n),SE(i.route,n),xE(e,i.path,r),AE(e,i.route,r))),Be(i=>i!==!0,!0))}function SE(e,t){return e!==null&&t&&t(new ic(e)),M(!0)}function TE(e,t){return e!==null&&t&&t(new nc(e)),M(!0)}function AE(e,t,r){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return M(!0);let i=n.map(o=>Si(()=>{let s=Xr(t)??r,a=Jn(o,s),u=wE(a)?a.canActivate(t,e):ot(s,()=>a(t,e));return Lt(u).pipe(Be())}));return M(i).pipe(Kn())}function xE(e,t,r){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>gE(s)).filter(s=>s!==null).map(s=>Si(()=>{let a=s.guards.map(u=>{let c=Xr(s.node)??r,l=Jn(u,c),d=CE(l)?l.canActivateChild(n,e):ot(c,()=>l(n,e));return Lt(d).pipe(Be())});return M(a).pipe(Kn())}));return M(o).pipe(Kn())}function NE(e,t,r,n,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return M(!0);let s=o.map(a=>{let u=Xr(t)??i,c=Jn(a,u),l=EE(c)?c.canDeactivate(e,t,r,n):ot(u,()=>c(e,t,r,n));return Lt(l).pipe(Be())});return M(s).pipe(Kn())}function RE(e,t,r,n){let i=t.canLoad;if(i===void 0||i.length===0)return M(!0);let o=i.map(s=>{let a=Jn(s,e),u=DE(a)?a.canLoad(t,r):ot(e,()=>a(t,r));return Lt(u)});return M(o).pipe(Kn(),gp(n))}function gp(e){return sr(ne(t=>{if(Qn(t))throw dp(e,t)}),S(t=>t===!0))}function OE(e,t,r,n){let i=t.canMatch;if(!i||i.length===0)return M(!0);let o=i.map(s=>{let a=Jn(s,e),u=bE(a)?a.canMatch(t,r):ot(e,()=>a(t,r));return Lt(u)});return M(o).pipe(Kn(),gp(n))}var Kr=class{constructor(t){this.segmentGroup=t||null}},Xo=class extends Error{constructor(t){super(),this.urlTree=t}};function Gn(e){return vn(new Kr(e))}function FE(e){return vn(new v(4e3,!1))}function PE(e){return vn(fp(!1,be.GuardRejected))}var fc=class{constructor(t,r){this.urlSerializer=t,this.urlTree=r}lineralizeSegments(t,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return M(n);if(i.numberOfChildren>1||!i.children[A])return FE(t.redirectTo);i=i.children[A]}}applyRedirectCommands(t,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),t,n);if(r.startsWith("/"))throw new Xo(i);return i}applyRedirectCreateUrlTree(t,r,n,i){let o=this.createSegmentGroup(t,r.root,n,i);return new Ft(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(t,r){let n={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(t,r,n,i){let o=this.createSegments(t,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,n,i)}),new V(o,s)}createSegments(t,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,n))}findPosParam(t,r,n){let i=n[r.path.substring(1)];if(!i)throw new v(4001,!1);return i}findOrReturn(t,r){let n=0;for(let i of r){if(i.path===t.path)return r.splice(n),i;n++}return t}},hc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function kE(e,t,r,n,i){let o=bc(e,t,r);return o.matched?(n=dE(t,n),OE(n,t,r,i).pipe(S(s=>s===!0?o:p({},hc)))):M(o)}function bc(e,t,r){if(t.path==="**")return LE(r);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||r.length>0)?p({},hc):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(t.matcher||OC)(r,e,t);if(!i)return p({},hc);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?p(p({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function LE(e){return{matched:!0,parameters:e.length>0?Zh(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Wh(e,t,r,n){return r.length>0&&UE(e,r,n)?{segmentGroup:new V(t,jE(n,new V(r,e.children))),slicedSegments:[]}:r.length===0&&BE(e,r,n)?{segmentGroup:new V(e.segments,VE(e,r,n,e.children)),slicedSegments:r}:{segmentGroup:new V(e.segments,e.children),slicedSegments:r}}function VE(e,t,r,n){let i={};for(let o of r)if(ts(e,t,o)&&!n[Ke(o)]){let s=new V([],{});i[Ke(o)]=s}return p(p({},n),i)}function jE(e,t){let r={};r[A]=t;for(let n of e)if(n.path===""&&Ke(n)!==A){let i=new V([],{});r[Ke(n)]=i}return r}function UE(e,t,r){return r.some(n=>ts(e,t,n)&&Ke(n)!==A)}function BE(e,t,r){return r.some(n=>ts(e,t,n))}function ts(e,t,r){return(e.hasChildren()||t.length>0)&&r.pathMatch==="full"?!1:r.path===""}function $E(e,t,r,n){return Ke(e)!==n&&(n===A||!ts(t,r,e))?!1:bc(t,e,r).matched}function HE(e,t,r){return t.length===0&&!e.children[r]}var pc=class{};function zE(e,t,r,n,i,o,s="emptyOnly"){return new gc(e,t,r,n,i,s,o).recognize()}var GE=31,gc=class{constructor(t,r,n,i,o,s,a){this.injector=t,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new fc(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new v(4002,`'${t.segmentGroup}'`)}recognize(){let t=Wh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(S(r=>{let n=new Yr([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,{},A,this.rootComponentType,null,{}),i=new Ee(n,r),o=new Ko("",i),s=JC(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,A).pipe(yt(n=>{if(n instanceof Xo)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Kr?this.noMatchError(n):n}))}inheritParamsAndData(t,r){let n=t.value,i=vc(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(t,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(t,r,n):this.processSegment(t,r,n,n.segments,i,!0).pipe(S(o=>o instanceof Ee?[o]:[]))}processChildren(t,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return W(i).pipe(vt(o=>{let s=n.children[o],a=fE(r,o);return this.processSegmentGroup(t,a,s,o)}),Ss((o,s)=>(o.push(...s),o)),Dt(null),_s(),X(o=>{if(o===null)return Gn(n);let s=mp(o);return WE(s),M(s)}))}processSegment(t,r,n,i,o,s){return W(r).pipe(vt(a=>this.processSegmentAgainstRoute(a._injector??t,r,a,n,i,o,s).pipe(yt(u=>{if(u instanceof Kr)return M(null);throw u}))),Be(a=>!!a),yt(a=>{if(pp(a))return HE(n,i,o)?M(new pc):Gn(n);throw a}))}processSegmentAgainstRoute(t,r,n,i,o,s,a){return $E(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,r,n,o,s):Gn(i):Gn(i)}expandSegmentAgainstRouteUsingRedirect(t,r,n,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=bc(r,i,o);if(!a)return Gn(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>GE&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(X(h=>this.processSegment(t,n,r,h.concat(l),s,!1)))}matchSegmentAgainstRoute(t,r,n,i,o){let s=kE(r,n,i,t,this.urlSerializer);return n.path==="**"&&(r.children={}),s.pipe(ve(a=>a.matched?(t=n._injector??t,this.getChildConfig(t,n,i).pipe(ve(({routes:u})=>{let c=n._loadedInjector??t,{consumedSegments:l,remainingSegments:d,parameters:h}=a,f=new Yr(l,h,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,ZE(n),Ke(n),n.component??n._loadedComponent??null,n,YE(n)),{segmentGroup:m,slicedSegments:C}=Wh(r,l,d,u);if(C.length===0&&m.hasChildren())return this.processChildren(c,u,m).pipe(S(y=>y===null?null:new Ee(f,y)));if(u.length===0&&C.length===0)return M(new Ee(f,[]));let w=Ke(n)===o;return this.processSegment(c,u,m,C,w?A:o,!0).pipe(S(y=>new Ee(f,y instanceof Ee?[y]:[])))}))):Gn(r)))}getChildConfig(t,r,n){return r.children?M({routes:r.children,injector:t}):r.loadChildren?r._loadedRoutes!==void 0?M({routes:r._loadedRoutes,injector:r._loadedInjector}):RE(t,r,n,this.urlSerializer).pipe(X(i=>i?this.configLoader.loadChildren(t,r).pipe(ne(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):PE(r))):M({routes:[],injector:t})}};function WE(e){e.sort((t,r)=>t.value.outlet===A?-1:r.value.outlet===A?1:t.value.outlet.localeCompare(r.value.outlet))}function qE(e){let t=e.value.routeConfig;return t&&t.path===""}function mp(e){let t=[],r=new Set;for(let n of e){if(!qE(n)){t.push(n);continue}let i=t.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):t.push(n)}for(let n of r){let i=mp(n.children);t.push(new Ee(n.value,i))}return t.filter(n=>!r.has(n))}function ZE(e){return e.data||{}}function YE(e){return e.resolve||{}}function QE(e,t,r,n,i,o){return X(s=>zE(e,t,r,n,s.extractedUrl,i,o).pipe(S(({state:a,tree:u})=>L(p({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function KE(e,t){return X(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return M(r);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of yp(u))s.add(c);let a=0;return W(s).pipe(vt(u=>o.has(u)?JE(u,n,e,t):(u.data=vc(u,u.parent,e).resolve,M(void 0))),ne(()=>a++),wn(1),X(u=>a===s.size?M(r):ye))})}function yp(e){let t=e.children.map(r=>yp(r)).flat();return[e,...t]}function JE(e,t,r,n){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!cp(i)&&(o[Jr]=i.title),XE(o,e,t,n).pipe(S(s=>(e._resolvedData=s,e.data=vc(e,e.parent,r).resolve,null)))}function XE(e,t,r,n){let i=Gu(e);if(i.length===0)return M({});let o={};return W(i).pipe(X(s=>eb(e[s],t,r,n).pipe(Be(),ne(a=>{o[s]=a}))),wn(1),Ms(o),yt(s=>pp(s)?ye:vn(s)))}function eb(e,t,r,n){let i=Xr(t)??n,o=Jn(e,i),s=o.resolve?o.resolve(t,r):ot(i,()=>o(t,r));return Lt(s)}function Hu(e){return ve(t=>{let r=e(t);return r?W(r).pipe(S(()=>t)):M(t)})}var vp=(()=>{let t=class t{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===A);return i}getResolvedTitleForRoute(n){return n.data[Jr]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(tb),providedIn:"root"});let e=t;return e})(),tb=(()=>{let t=class t extends vp{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(b(Bh))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ic=new E("",{providedIn:"root",factory:()=>({})}),Mc=new E(""),nb=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Cu)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return M(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=Lt(n.loadComponent()).pipe(S(Dp),ne(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Bt(()=>{this.componentLoaders.delete(n)})),o=new yn(i,()=>new te).pipe(mn());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return M({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=rb(i,this.compiler,n,this.onLoadEndListener).pipe(Bt(()=>{this.childrenLoaders.delete(i)})),a=new yn(s,()=>new te).pipe(mn());return this.childrenLoaders.set(i,a),a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function rb(e,t,r,n){return Lt(e.loadChildren()).pipe(S(Dp),X(i=>i instanceof vr||Array.isArray(i)?M(i):W(t.compileModuleAsync(i))),S(i=>{n&&n(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(Mc,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ec),injector:o}}))}function ib(e){return e&&typeof e=="object"&&"default"in e}function Dp(e){return ib(e)?e.default:e}var _c=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(ob),providedIn:"root"});let e=t;return e})(),ob=(()=>{let t=class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),sb=new E("");var ab=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new te,this.transitionAbortSubject=new te,this.configLoader=g(nb),this.environmentInjector=g(he),this.urlSerializer=g(yc),this.rootContexts=g(es),this.location=g(xr),this.inputBindingEnabled=g(Cc,{optional:!0})!==null,this.titleStrategy=g(vp),this.options=g(Ic,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(_c),this.createViewTransition=g(sb,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>M(void 0),this.rootComponentType=null;let n=o=>this.events.next(new ec(o)),i=o=>this.events.next(new tc(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(L(p(p({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new J({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:$r,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(se(s=>s.id!==0),S(s=>L(p({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ve(s=>{let a=!1,u=!1;return M(s).pipe(ve(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",be.SupersededByNewNavigation),ye;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?L(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let h="";return this.events.next(new un(c.id,this.urlSerializer.serialize(c.rawUrl),h,Yu.IgnoredSameUrlNavigation)),c.resolve(null),ye}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return M(c).pipe(ve(h=>{let f=this.transitions?.getValue();return this.events.next(new Gr(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?ye:Promise.resolve(h)}),QE(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ne(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=L(p({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new Zo(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:f,source:m,restoredState:C,extras:w}=c,y=new Gr(h,this.urlSerializer.serialize(f),m,C);this.events.next(y);let Z=ap(this.rootComponentType).snapshot;return this.currentTransition=s=L(p({},c),{targetSnapshot:Z,urlAfterRedirects:f,extras:L(p({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,M(s)}else{let h="";return this.events.next(new un(c.id,this.urlSerializer.serialize(c.extractedUrl),h,Yu.IgnoredByUrlHandlingStrategy)),c.resolve(null),ye}}),ne(c=>{let l=new Qu(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),S(c=>(this.currentTransition=s=L(p({},c),{guards:pE(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),IE(this.environmentInjector,c=>this.events.next(c)),ne(c=>{if(s.guardsResult=c.guardsResult,Qn(c.guardsResult))throw dp(this.urlSerializer,c.guardsResult);let l=new Ku(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),se(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",be.GuardRejected),!1)),Hu(c=>{if(c.guards.canActivateChecks.length)return M(c).pipe(ne(l=>{let d=new Ju(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ve(l=>{let d=!1;return M(l).pipe(KE(this.paramsInheritanceStrategy,this.environmentInjector),ne({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",be.NoDataFromResolver)}}))}),ne(l=>{let d=new Xu(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),Hu(c=>{let l=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(ne(f=>{d.component=f}),S(()=>{})));for(let f of d.children)h.push(...l(f));return h};return _i(l(c.targetSnapshot.root)).pipe(Dt(null),et(1))}),Hu(()=>this.afterPreactivation()),ve(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?W(d).pipe(S(()=>s)):M(s)}),S(c=>{let l=sE(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=L(p({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),ne(()=>{this.events.next(new qr)}),hE(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),et(1),ne({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Pt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Ns(this.transitionAbortSubject.pipe(ne(c=>{throw c}))),Bt(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",be.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),yt(c=>{if(u=!0,hp(c))this.events.next(new kt(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),cE(c)?this.events.next(new Zr(c.url)):s.resolve(!1);else{this.events.next(new Wr(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return ye}))}))}cancelNavigationTransition(n,i,o){let s=new kt(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ub(e){return e!==$r}var cb=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(lb),providedIn:"root"});let e=t;return e})(),mc=class{shouldDetach(t){return!1}store(t,r){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,r){return t.routeConfig===r.routeConfig}},lb=(()=>{let t=class t extends mc{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Er(t)))(o||t)}})(),t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),wp=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:()=>g(db),providedIn:"root"});let e=t;return e})(),db=(()=>{let t=class t extends wp{constructor(){super(...arguments),this.location=g(xr),this.urlSerializer=g(yc),this.options=g(Ic,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(_c),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ft,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ap(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof Gr)this.stateMemento=this.createStateMemento();else if(n instanceof un)this.rawUrlTree=i.initialUrl;else if(n instanceof Zo){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof qr?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof kt&&(n.code===be.GuardRejected||n.code===be.NoDataFromResolver)?this.restoreHistory(i):n instanceof Wr?this.restoreHistory(i,!0):n instanceof Pt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=p(p({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=p(p({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Er(t)))(o||t)}})(),t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ur=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Ur||{});function fb(e,t){e.events.pipe(se(r=>r instanceof Pt||r instanceof kt||r instanceof Wr||r instanceof un),S(r=>r instanceof Pt||r instanceof un?Ur.COMPLETE:(r instanceof kt?r.code===be.Redirect||r.code===be.SupersededByNewNavigation:!1)?Ur.REDIRECTING:Ur.FAILED),se(r=>r!==Ur.REDIRECTING),et(1)).subscribe(()=>{t()})}function hb(e){throw e}var pb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Sc=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=g(So),this.stateManager=g(wp),this.options=g(Ic,{optional:!0})||{},this.pendingTasks=g(Bn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(ab),this.urlSerializer=g(yc),this.location=g(xr),this.urlHandlingStrategy=g(_c),this._events=new te,this.errorHandler=this.options.errorHandler||hb,this.navigated=!1,this.routeReuseStrategy=g(cb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(Mc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(Cc,{optional:!0}),this.eventsSubscription=new K,this.isNgZoneEnabled=g(H)instanceof H&&H.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof kt&&i.code!==be.Redirect&&i.code!==be.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Pt)this.navigated=!0;else if(i instanceof Zr){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||ub(o.source)};this.scheduleNavigation(a,$r,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}yb(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.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),$r,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)})}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=p({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Ec),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=p(p({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=o?o.snapshot:this.routerState.snapshot.root;h=rp(f)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),h=this.currentUrlTree.root}return ip(h,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=Qn(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,$r,null,i)}navigate(n,i={skipLocationChange:!1}){return mb(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=p({},pb):i===!1?o=p({},gb):o=i,Qn(n))return $h(this.currentUrlTree,n,o);let s=this.parseUrl(n);return $h(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((h,f)=>{u=h,c=f});let d=this.pendingTasks.add();return fb(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function mb(e){for(let t=0;t{let t=class t{constructor(n,i,o,s,a,u){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new te,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Pt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,o,s,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(n!==0||i||o||s||a||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(u,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let i=this.href===null?null:Ef(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};t.\u0275fac=function(i){return new(i||t)(T(Sc),T(cn),Qa("tabindex"),T(Xt),T(Ze),T(Rt))},t.\u0275dir=De({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&tn("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&en("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[ee.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Ye],skipLocationChange:[ee.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Ye],replaceUrl:[ee.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Ye],routerLink:"routerLink"},standalone:!0,features:[_r,ut]});let e=t;return e})();var vb=new E("");function Ep(e,...t){return St([{provide:Mc,multi:!0,useValue:e},[],{provide:cn,useFactory:Db,deps:[Sc]},{provide:To,multi:!0,useFactory:Cb},t.map(r=>r.\u0275providers)])}function Db(e){return e.routerState.root}function wb(e,t){return{\u0275kind:e,\u0275providers:t}}function Cb(){let e=g(Ln);return t=>{let r=e.get($n);if(t!==r.components[0])return;let n=e.get(Sc),i=e.get(Eb);e.get(bb)===1&&n.initialNavigation(),e.get(Ib,null,x.Optional)?.setUpPreloading(),e.get(vb,null,x.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Eb=new E("",{factory:()=>new te}),bb=new E("",{providedIn:"root",factory:()=>1});var Ib=new E("");function bp(){return wb(6,[{provide:Rt,useClass:wh}])}var Ip=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=Se({type:t,selectors:[["app-root"]],standalone:!0,features:[xe],decls:20,vars:0,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-light"],["routerLink","/",1,"navbar-brand"],["type","button","data-toggle","collapse","data-target","#navbarNav","aria-controls","navbarNav","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],[1,"collapse","navbar-collapse"],[1,"navbar-nav"],[1,"nav-item"],["routerLink","/",1,"nav-link"],["routerLink","/other",1,"nav-link"],["routerLink","/inline",1,"nav-link"],[2,"line-height","30px"],[2,"margin-top","16px"]],template:function(i,o){i&1&&(j(0,"nav",0)(1,"a",1),q(2,"ngx-tinymce"),U(),j(3,"button",2),Ae(4,"span",3),U(),j(5,"div",4)(6,"ul",5)(7,"li",6)(8,"a",7),q(9,"Home"),U()(),j(10,"li",6)(11,"a",8),q(12,"Other"),U()(),j(13,"li",6)(14,"a",9),q(15,"Inline"),U()()()()(),j(16,"p",10),q(17,"Angular for tinymce"),U(),j(18,"div",11),Ae(19,"router-outlet"),U())},dependencies:[wc,Cp],encapsulation:2});let e=t;return e})();var Rp=(()=>{let t=class t{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};t.\u0275fac=function(i){return new(i||t)(T(Xt),T(Ze))},t.\u0275dir=De({type:t});let e=t;return e})(),Mb=(()=>{let t=class t extends Rp{};t.\u0275fac=(()=>{let n;return function(o){return(n||(n=Er(t)))(o||t)}})(),t.\u0275dir=De({type:t,features:[Un]});let e=t;return e})(),os=new E("");var _b={provide:os,useExisting:Kt(()=>Op),multi:!0};function Sb(){let e=ht()?ht().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var Tb=new E(""),Op=(()=>{let t=class t extends Rp{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Sb())}writeValue(n){let i=n??"";this.setProperty("value",i)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};t.\u0275fac=function(i){return new(i||t)(T(Xt),T(Ze),T(Tb,8))},t.\u0275dir=De({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&tn("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ar([_b]),Un]});let e=t;return e})();var Ab=new E(""),xb=new E("");function Fp(e){return e!=null}function Pp(e){return rn(e)?W(e):e}function kp(e){let t={};return e.forEach(r=>{t=r!=null?p(p({},t),r):t}),Object.keys(t).length===0?null:t}function Lp(e,t){return t.map(r=>r(e))}function Nb(e){return!e.validate}function Vp(e){return e.map(t=>Nb(t)?t:r=>t.validate(r))}function Rb(e){if(!e)return null;let t=e.filter(Fp);return t.length==0?null:function(r){return kp(Lp(r,t))}}function jp(e){return e!=null?Rb(Vp(e)):null}function Ob(e){if(!e)return null;let t=e.filter(Fp);return t.length==0?null:function(r){let n=Lp(r,t).map(Pp);return Is(n).pipe(S(kp))}}function Up(e){return e!=null?Ob(Vp(e)):null}function Mp(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Fb(e){return e._rawValidators}function Pb(e){return e._rawAsyncValidators}function Tc(e){return e?Array.isArray(e)?e:[e]:[]}function rs(e,t){return Array.isArray(e)?e.includes(t):e===t}function _p(e,t){let r=Tc(t);return Tc(e).forEach(i=>{rs(r,i)||r.push(i)}),r}function Sp(e,t){return Tc(t).filter(r=>!rs(e,r))}var is=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=jp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Up(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_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,r){return this.control?this.control.hasError(t,r):!1}getError(t,r){return this.control?this.control.getError(t,r):null}},Ac=class extends is{get formDirective(){return null}get path(){return null}},ri=class extends is{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},xc=class{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},kb={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},rN=L(p({},kb),{"[class.ng-submitted]":"isSubmitted"}),er=(()=>{let t=class t extends xc{constructor(n){super(n)}};t.\u0275fac=function(i){return new(i||t)(T(ri,2))},t.\u0275dir=De({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&yu("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Un]});let e=t;return e})();var ti="VALID",ns="INVALID",Xn="PENDING",ni="DISABLED";function Lb(e){return(ss(e)?e.validators:e)||null}function Vb(e){return Array.isArray(e)?jp(e):e||null}function jb(e,t){return(ss(t)?t.asyncValidators:e)||null}function Ub(e){return Array.isArray(e)?Up(e):e||null}function ss(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Nc=class{constructor(t,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(r)}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 valid(){return this.status===ti}get invalid(){return this.status===ns}get pending(){return this.status==Xn}get disabled(){return this.status===ni}get enabled(){return this.status!==ni}get dirty(){return!this.pristine}get untouched(){return!this.touched}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(_p(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(_p(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Sp(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Sp(t,this._rawAsyncValidators))}hasValidator(t){return rs(this._rawValidators,t)}hasAsyncValidator(t){return rs(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Xn,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=ni,this.errors=null,this._forEachChild(n=>{n.disable(L(p({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(L(p({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(t={}){let r=this._parentMarkedDirty(t.onlySelf);this.status=ti,this._forEachChild(n=>{n.enable(L(p({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(L(p({},t),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ti||this.status===Xn)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ni:ti}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Xn,this._hasOwnPendingAsyncValidator=!0;let r=Pp(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,r={}){this.errors=t,this._updateControlsErrors(r.emitEvent!==!1)}get(t){let r=t;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(t,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[t]:null}hasError(t,r){return!!this.getError(t,r)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new ie,this.statusChanges=new ie}_calculateStatus(){return this._allControlsDisabled()?ni:this.errors?ns:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xn)?Xn:this._anyControlsHaveStatus(ns)?ns:ti}_anyControlsHaveStatus(t){return this._anyControls(r=>r.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ss(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let r=this._parent&&this._parent.dirty;return!t&&!!r&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Vb(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Ub(this._rawAsyncValidators)}};var Bp=new E("CallSetDisabledState",{providedIn:"root",factory:()=>Rc}),Rc="always";function Bb(e,t){return[...t.path,e]}function $b(e,t,r=Rc){zb(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||r==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Gb(e,t),qb(e,t),Wb(e,t),Hb(e,t)}function Tp(e,t){e.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(t)})}function Hb(e,t){if(t.valueAccessor.setDisabledState){let r=n=>{t.valueAccessor.setDisabledState(n)};e.registerOnDisabledChange(r),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(r)})}}function zb(e,t){let r=Fb(e);t.validator!==null?e.setValidators(Mp(r,t.validator)):typeof r=="function"&&e.setValidators([r]);let n=Pb(e);t.asyncValidator!==null?e.setAsyncValidators(Mp(n,t.asyncValidator)):typeof n=="function"&&e.setAsyncValidators([n]);let i=()=>e.updateValueAndValidity();Tp(t._rawValidators,i),Tp(t._rawAsyncValidators,i)}function Gb(e,t){t.valueAccessor.registerOnChange(r=>{e._pendingValue=r,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&$p(e,t)})}function Wb(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&$p(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function $p(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function qb(e,t){let r=(n,i)=>{t.valueAccessor.writeValue(n),i&&t.viewToModelUpdate(n)};e.registerOnChange(r),t._registerOnDestroy(()=>{e._unregisterOnChange(r)})}function Zb(e,t){if(!e.hasOwnProperty("model"))return!1;let r=e.model;return r.isFirstChange()?!0:!Object.is(t,r.currentValue)}function Yb(e){return Object.getPrototypeOf(e.constructor)===Mb}function Qb(e,t){if(!t)return null;Array.isArray(t);let r,n,i;return t.forEach(o=>{o.constructor===Op?r=o:Yb(o)?n=o:i=o}),i||n||r||null}function Ap(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function xp(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Kb=class extends Nc{constructor(t=null,r,n){super(Lb(r),jb(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ss(r)&&(r.nonNullable||r.initialValueIsDefault)&&(xp(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,r={}){this.value=this._pendingValue=t,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(t,r={}){this.setValue(t,r)}reset(t=this.defaultValue,r={}){this._applyFormState(t),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Ap(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Ap(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){xp(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Jb={provide:ri,useExisting:Kt(()=>pt)},Np=Promise.resolve(),pt=(()=>{let t=class t extends ri{constructor(n,i,o,s,a,u){super(),this._changeDetectorRef=a,this.callSetDisabledState=u,this.control=new Kb,this._registered=!1,this.name="",this.update=new ie,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Qb(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let i=n.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Zb(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){$b(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){Np.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let i=n.isDisabled.currentValue,o=i!==0&&Ye(i);Np.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?Bb(n,this._parent):[n]}};t.\u0275fac=function(i){return new(i||t)(T(Ac,9),T(Ab,10),T(xb,10),T(os,10),T(dt,8),T(Bp,8))},t.\u0275dir=De({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[ee.None,"disabled","isDisabled"],model:[ee.None,"ngModel","model"],options:[ee.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ar([Jb]),Un,ut]});let e=t;return e})();var Xb=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=_t({type:t}),t.\u0275inj=Mt({});let e=t;return e})();var tr=(()=>{let t=class t{static withConfig(n){return{ngModule:t,providers:[{provide:Bp,useValue:n.callSetDisabledState??Rc}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=_t({type:t}),t.\u0275inj=Mt({imports:[Xb]});let e=t;return e})();var eI=new E("HighlightJs-Config"),nr=(()=>{let t=class t{constructor(n,i,o,s,a){this.el=n,this.ngModel=i,this.doc=o,this.ngZone=a,this.lang="html",this.mode="simple",Object.assign(this,s)}escapeHTML(n){return(n||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}init(){this.ngZone.runOutsideAngular(()=>{this.destroy();let n=this.el.nativeElement,i=this.code||""+n.innerHTML.trim(),o=this.doc;if(this.codeEl=o.createElement(this.mode==="default"?"div":"pre"),this.codeEl==null)return;let s=this.mode==="simple";s?(this.lang&&(this.codeEl.className=this.lang),this.parentEl=n.parentNode,this.parentEl.insertBefore(this.codeEl,n.nextSibling)):(this.parentEl=n,this.parentEl.innerHTML="",this.parentEl.appendChild(this.codeEl)),this.codeEl.innerHTML=i;let a=o.defaultView.hljs;a!=null&&(a.configure(p({},this.options)),s?a.highlightElement(this.codeEl):this.codeEl.querySelectorAll("pre code").forEach(u=>{a.highlightElement(u)}))})}destroy(){this.codeEl&&this.parentEl&&(this.parentEl.removeChild(this.codeEl),this.codeEl=void 0)}ngAfterViewInit(){this.init(),this.ngModel?this.modelValue$=this.ngModel.valueChanges?.subscribe(n=>{this.code=this.escapeHTML(n),this.init()}):this.initMutation()}ngOnDestroy(){this.destroy(),this.observer?.disconnect(),this.modelValue$?.unsubscribe()}initMutation(){typeof MutationObserver>"u"||this.ngZone.runOutsideAngular(()=>{this.observer=new MutationObserver(this.init.bind(this)),this.observer.observe(this.el.nativeElement,{characterData:!0,childList:!0,subtree:!0})})}};t.\u0275fac=function(i){return new(i||t)(T(Ze),T(pt,8),T(Q),T(eI,8),T(H))},t.\u0275dir=De({type:t,selectors:[["","highlight-js",""]],hostVars:2,hostBindings:function(i,o){i&2&&_o("display",o.mode==="simple"?"none":null)},inputs:{options:"options",lang:"lang",code:"code",mode:"mode"},exportAs:["highlightJs"],standalone:!0});let e=t;return e})();var ln=class{constructor(){this.baseURL="./assets/tinymce/",this.fileName="tinymce.min.js"}};var Hp=(()=>{let t=class t{constructor(n){this.doc=n,this.list={},this.cached={},this._notify=new J([])}fixPaths(n){return n=n||[],Array.isArray(n)||(n=[n]),n.map(i=>{let o=typeof i=="string"?{path:i}:i;return o.type||(o.type=o.path.endsWith(".js")||o.callback?"script":"style"),o})}monitor(n){let i=this.fixPaths(n),o=[As(),se(s=>s.length!==0)];return i.length>0&&o.push(se(s=>s.length===i.length&&s.every(a=>a.status==="ok"&&i.find(u=>u.path===a.path)))),this._notify.asObservable().pipe(sr.apply(this,o))}clear(){this.list={},this.cached={}}load(n){return rr(this,null,function*(){return n=this.fixPaths(n),Promise.all(n.map(i=>i.type==="script"?this.loadScript(i.path,{callback:i.callback}):this.loadStyle(i.path))).then(i=>(this._notify.next(i),Promise.resolve(i)))})}loadScript(n,i){let{innerContent:o}=p({},i);return new Promise(s=>{if(this.list[n]===!0){s(L(p({},this.cached[n]),{status:"loading"}));return}this.list[n]=!0;let a=l=>{l.status==="ok"&&i?.callback?window[i?.callback]=()=>{u(l)}:u(l)},u=l=>{l.type="script",this.cached[n]=l,s(l),this._notify.next([l])},c=this.doc.createElement("script");c.type="text/javascript",c.src=n,c.charset="utf-8",o&&(c.innerHTML=o),c.readyState?c.onreadystatechange=()=>{(c.readyState==="loaded"||c.readyState==="complete")&&(c.onreadystatechange=null,a({path:n,status:"ok"}))}:c.onload=()=>a({path:n,status:"ok"}),c.onerror=l=>a({path:n,status:"error",error:l}),this.doc.getElementsByTagName("head")[0].appendChild(c)})}loadStyle(n,i){let{rel:o,innerContent:s}=p({rel:"stylesheet"},i);return new Promise(a=>{if(this.list[n]===!0){a(this.cached[n]);return}this.list[n]=!0;let u=this.doc.createElement("link");u.rel=o,u.type="text/css",u.href=n,s&&(u.innerHTML=s),this.doc.getElementsByTagName("head")[0].appendChild(u);let c={path:n,status:"ok",type:"style"};this.cached[n]=c,a(c)})}};t.\u0275fac=function(i){return new(i||t)(b(Q))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var rI=["*"];function iI(e,t){if(e&1&&Ae(0,"textarea",3),e&2){let r=Tr();en("id",r.id)("placeholder",r.placeholder)}}function oI(e,t){if(e&1&&(j(0,"div"),ih(1),U()),e&2){let r=Tr();en("id",r.id)}}function sI(e,t){if(e&1&&(vu(0),q(1),Du()),e&2){let r=Tr(2);pe(),wu(r._loading)}}function aI(e,t){if(e&1&&(j(0,"div",4),Mo(1,sI,2,1,"ng-container",5),U()),e&2){let r=Tr();pe(),Ce("ngIf",r._loading)("ngIfElse",r._loadingTpl)}}var zp=!(typeof document=="object"&&document),dn=(()=>{let t=class t{set disabled(n){this._disabled=n,this.setDisabled()}set loading(n){n instanceof Ir?(this._loading=null,this._loadingTpl=n):this._loading=n}get instance(){return this._instance}_getWin(){return this.doc.defaultView||window}constructor(n,i,o,s,a){this.defConfig=n,this.lazySrv=i,this.ngZone=o,this.doc=s,this.cd=a,this.value="",this.load=!0,this.id=`_tinymce-${Math.random().toString(36).substring(2)}`,this.placeholder="",this.inline=!1,this._disabled=!1,this._loading=null,this._loadingTpl=null,this.delay=0,this.ready=new ie}initDelay(){zp||setTimeout(()=>this.init(),Math.max(0,this.delay))}init(){let n=this._getWin();if(!n.tinymce)throw new Error("tinymce js\u6587\u4EF6\u52A0\u8F7D\u5931\u8D25");let{defConfig:i,config:o,id:s,inline:a}=this;if(this._instance)return;if(i?.baseURL){let l=""+i.baseURL;l.endsWith("/")&&(l=l.substring(0,l.length-1)),n.tinymce.baseURL=l}let u=p(p({},i?.config),o),c=L(p(p({selector:"#"+s,inline:a},i?.config),o),{setup:l=>{this._instance=l,this.onChange&&l.on("change keyup",()=>{this.value=l.getContent(),this.ngZone.run(()=>this.onChange(this.value))}),typeof u.setup=="function"&&u.setup(l)},init_instance_callback:l=>{l&&this.value&&l.setContent(this.value),this.setDisabled(),typeof u.init_instance_callback=="function"&&u.init_instance_callback(l),this.ready.emit(l)}});u.auto_focus&&(c.auto_focus=s),this.ngZone.runOutsideAngular(()=>n.tinymce.init(c)),this.load=!1,this.cd.detectChanges()}destroy(){this._instance!=null&&(this.ngZone.runOutsideAngular(()=>{this._instance.off(),this._instance.remove()}),this._instance=null)}setDisabled(){this._instance&&this.ngZone.runOutsideAngular(()=>{let n=this._disabled?"readonly":"design",i=this._instance.setMode;typeof i=="function"?i(n):this._instance.mode.set(n)})}ngAfterViewInit(){if(zp)return;if(this._getWin().tinymce){this.initDelay();return}let{defConfig:n}=this,i=n&&n.baseURL,o=n&&n.fileName,s=(i||"./assets/tinymce/")+(o||"tinymce.min.js");this.lazySrv.monitor(s).subscribe(()=>this.initDelay()),this.lazySrv.load(s)}ngOnChanges(n){this._instance&&n.config&&(this.destroy(),this.initDelay())}ngOnDestroy(){this.destroy()}writeValue(n){this.value=n||"",this._instance&&this.ngZone.runOutsideAngular(()=>this._instance.setContent(this.value))}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.disabled=n,this.setDisabled()}};t.\u0275fac=function(i){return new(i||t)(T(ln,8),T(Hp),T(H),T(Q),T(dt))},t.\u0275cmp=Se({type:t,selectors:[["tinymce"]],inputs:{config:"config",placeholder:"placeholder",inline:[ee.HasDecoratorInputTransform,"inline","inline",Ye],disabled:[ee.HasDecoratorInputTransform,"disabled","disabled",Ye],loading:"loading",delay:[ee.HasDecoratorInputTransform,"delay","delay",bu]},outputs:{ready:"ready"},exportAs:["tinymce"],standalone:!0,features:[Ar([{provide:os,useExisting:Kt(()=>t),multi:!0}]),_r,ut,xe],ngContentSelectors:rI,decls:3,vars:3,consts:[["class","tinymce-selector",4,"ngIf"],[4,"ngIf"],["class","loading",4,"ngIf"],[1,"tinymce-selector"],[1,"loading"],[4,"ngIf","ngIfElse"]],template:function(i,o){i&1&&(rh(),Mo(0,iI,1,2,"textarea",0)(1,oI,2,1,"div",1)(2,aI,2,2,"div",2)),i&2&&(Ce("ngIf",!o.inline),pe(),Ce("ngIf",o.inline),pe(),Ce("ngIf",o.load))},dependencies:[Ch],styles:[`tinymce .tinymce-selector{display:none} +`],encapsulation:2,changeDetection:0});let e=t;return e})();function Gp(e){return St([{provide:ln,useValue:e}])}var Wp=(()=>{let t=class t{constructor(n){this.san=n,this.html=` +

TinyMCE Logo +

+

Welcome to the TinyMCE Cloud demo!

+
Note, this includes some "enterprise/premium" features.
Visit the pricing page to learn more about our premium plugins.
+

Please try out the features provided in this full featured example.

+ +

Got questions or need help?

+ + +

A simple table to play with

+ + + + + + + + + + + + + + + + + + + + +
ProductCostReally?
TinyMCE CloudGet started for freeYES!
PluploadFreeYES!
+ +

Found a bug?

+

If you think you have found a bug please create an issue on the GitHub repo to report it to the developers.

+ +

Finally ...

+

Don't forget to check out our other product Plupload, your ultimate upload solution featuring HTML5 upload support.

+

Thanks for supporting TinyMCE! We hope it helps you and your users create great content.
All the best from the TinyMCE team.

+ `,this.config={height:350}}};t.\u0275fac=function(i){return new(i||t)(T(Lr))},t.\u0275cmp=Se({type:t,selectors:[["app-home"]],standalone:!0,features:[xe],decls:17,vars:4,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],[3,"ngModelChange","ngModel","config"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"],["disabled","",3,"ngModelChange","ngModel"]],template:function(i,o){i&1&&(j(0,"div",0)(1,"div",1),q(2,"Basic"),U(),j(3,"div",2)(4,"textarea",3),q(5,"<"),q(6,'tinymce [config]="config" [(ngModel)]="html">'),U(),j(7,"tinymce",4),Nt("ngModelChange",function(a){return nn(o.html,a)||(o.html=a),a}),U(),q(8," Result: "),j(9,"div",5)(10,"div",2),Ae(11,"blockquote",6),U()()()(),j(12,"div",0)(13,"div",1),q(14,"Disabled"),U(),j(15,"div",2)(16,"tinymce",7),Nt("ngModelChange",function(a){return nn(o.html,a)||(o.html=a),a}),U()()()),i&2&&(pe(7),xt("ngModel",o.html),Ce("config",o.config),pe(4),Ce("innerHTML",o.san.bypassSecurityTrustHtml(o.html),Do),pe(5),xt("ngModel",o.html))},dependencies:[tr,er,pt,nr,dn],encapsulation:2});let e=t;return e})();var qp=(()=>{let t=class t{constructor(){this.html=`now: ${+new Date}`,this.config={height:500,menubar:!1,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table paste code help wordcount"],toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help",content_css:"//www.tiny.cloud/css/codepen.min.css"}}ready(n){console.log("ready",n)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=Se({type:t,selectors:[["app-other"]],standalone:!0,features:[xe],decls:8,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["loading","\u52A0\u8F7D\u4E2D\u2026\u2026",3,"ngModelChange","ready","ngModel","config"]],template:function(i,o){i&1&&(j(0,"div",0)(1,"div",1),q(2,"Loading"),U(),j(3,"div",2)(4,"textarea",3),q(5,"<"),q(6,'tinymce [config]="config" [(ngModel)]="html">'),U(),j(7,"tinymce",4),Nt("ngModelChange",function(a){return nn(o.html,a)||(o.html=a),a}),tn("ready",function(a){return o.ready(a)}),U()()()),i&2&&(pe(7),xt("ngModel",o.html),Ce("config",o.config))},dependencies:[tr,er,pt,nr,dn]});let e=t;return e})();var Zp=(()=>{let t=class t{constructor(n){this.san=n,this.html=` +
+
+

+

The world’s first rich text editor in the cloud

+

+
+

+ Have you heard about Tiny Cloud? It’s the first step in our journey to help you deliver great content creation + experiences, no matter your level of expertise. 50,000 developers already agree. They get free access to our global CDN, image + proxy services and auto updates to the TinyMCE editor. They’re also ready for some exciting updates coming soon. +

+

+ One of these enhancements is Tiny Drive: imagine file management for TinyMCE, in the cloud, made super easy. + Learn more at tiny.cloud/tinydrive, where you’ll find a working demo and an + opportunity to provide feedback to the product team. +

+
+
+

An editor for every project

+
+

Here are some of our customer’s most common use cases for TinyMCE:

+
    +
  • Content Management Systems (e.g. WordPress, Umbraco)
  • +
  • Learning Management Systems (e.g. Blackboard)
  • +
  • Customer Relationship Management and marketing automation (e.g. Marketo)
  • +
  • Email marketing (e.g. Constant Contact)
  • +
  • Content creation in SaaS systems (e.g. Eventbrite, Evernote, GoFundMe, Zendesk)
  • +
+

+ And those use cases are just the start. TinyMCE is incredibly flexible, and with hundreds of APIs there’s likely a + solution for your editor project. If you haven’t experienced Tiny Cloud, get started today. You’ll even get a free + trial of our premium plugins – no credit card required! +

+
+
`}ready(n){console.log("ready",n)}};t.\u0275fac=function(i){return new(i||t)(T(Lr))},t.\u0275cmp=Se({type:t,selectors:[["app-inline"]],standalone:!0,features:[xe],decls:12,vars:2,consts:[[1,"card","mb-3"],[1,"card-header"],[1,"card-body"],["highlight-js",""],["inline","",3,"ngModelChange","ngModel"],[1,"card","card-outline-secondary","mt-3"],[1,"card-bodyquote",3,"innerHTML"]],template:function(i,o){i&1&&(j(0,"div",0)(1,"div",1),q(2,"Inline mode"),U(),j(3,"div",2)(4,"textarea",3),q(5,"<"),q(6,'tinymce [config]="config" [(ngModel)]="html" inline>'),U(),j(7,"tinymce",4),Nt("ngModelChange",function(a){return nn(o.html,a)||(o.html=a),a}),U(),q(8," Result: "),j(9,"div",5)(10,"div",2),Ae(11,"blockquote",6),U()()()()),i&2&&(pe(7),xt("ngModel",o.html),pe(4),Ce("innerHTML",o.san.bypassSecurityTrustHtml(o.html),Do))},dependencies:[tr,er,pt,nr,dn],encapsulation:2});let e=t;return e})();var Yp=[{path:"",component:Wp},{path:"other",component:qp},{path:"inline",component:Zp}];Uh(Ip,{providers:[Rh(),Ep(Yp,bp()),Gp({baseURL:"//cdn.tiny.cloud/1/no-api-key/tinymce/6/"})]}).catch(e=>console.error(e)); diff --git a/polyfills-6EAL64PA.js b/polyfills-6EAL64PA.js new file mode 100644 index 0000000..f67a2da --- /dev/null +++ b/polyfills-6EAL64PA.js @@ -0,0 +1,2 @@ +var ie=globalThis;function Q(e){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+e}function ft(){let e=ie.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,r){e&&e.measure&&e.measure(j,r)}n("Zone");let $=class ${static assertZonePatched(){if(ie.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=$.current;for(;r.parent;)r=r.parent;return r}static get current(){return k.zone}static get currentTask(){return S}static __load_patch(r,i,s=!1){if(D.hasOwnProperty(r)){let b=ie[Q("forceDuplicateZoneCheck")]===!0;if(!s&&b)throw Error("Already loaded patch: "+r)}else if(!ie["__Zone_disable_"+r]){let b="Zone:"+r;n(b),D[r]=i(ie,$,w),a(b,b)}}get parent(){return this._parent}get name(){return this._name}constructor(r,i){this._parent=r,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(r){let i=this.getZoneWith(r);if(i)return i._properties[r]}getZoneWith(r){let i=this;for(;i;){if(i._properties.hasOwnProperty(r))return i;i=i._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,i){if(typeof r!="function")throw new Error("Expecting function got: "+r);let s=this._zoneDelegate.intercept(this,r,i),b=this;return function(){return b.runGuarded(s,this,arguments,i)}}run(r,i,s,b){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,b)}finally{k=k.parent}}runGuarded(r,i=null,s,b){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,b)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{k=k.parent}}runTask(r,i,s){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(r.state===X&&(r.type===U||r.type===g))return;let b=r.state!=F;b&&r._transitionTo(F,d),r.runCount++;let x=S;S=r,k={parent:k,zone:this};try{r.type==g&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,i,s)}catch(M){if(this._zoneDelegate.handleError(this,M))throw M}}finally{r.state!==X&&r.state!==Y&&(r.type==U||r.data&&r.data.isPeriodic?b&&r._transitionTo(d,F):(r.runCount=0,this._updateTaskCount(r,-1),b&&r._transitionTo(X,F,X))),k=k.parent,S=x}}scheduleTask(r){if(r.zone&&r.zone!==this){let s=this;for(;s;){if(s===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);s=s.parent}}r._transitionTo(v,X);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(Y,v,X),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==v&&r._transitionTo(d,v),r}scheduleMicroTask(r,i,s,b){return this.scheduleTask(new _(B,r,i,s,b,void 0))}scheduleMacroTask(r,i,s,b,x){return this.scheduleTask(new _(g,r,i,s,b,x))}scheduleEventTask(r,i,s,b,x){return this.scheduleTask(new _(U,r,i,s,b,x))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==F)){r._transitionTo(q,d,F);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(Y,q),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(X,q),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let b=0;bj.hasTask(i,s),onScheduleTask:(j,r,i,s)=>j.scheduleTask(i,s),onInvokeTask:(j,r,i,s,b,x)=>j.invokeTask(i,s,b,x),onCancelTask:(j,r,i,s)=>j.cancelTask(i,s)};class f{get zone(){return this._zone}constructor(r,i,s){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=r,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,x=i&&i._hasTaskZS;(b||x)&&(this._hasTaskZS=b?s:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(r,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,i):new t(r,i)}intercept(r,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,i,s):i}invoke(r,i,s,b,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,b,x):i.apply(s,b)}handleError(r,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,i):!0}scheduleTask(r,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)W(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,b):i.callback.apply(s,b)}cancelTask(r,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(r,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,i)}catch(s){this.handleError(r,s)}}_updateTaskCount(r,i){let s=this._taskCounts,b=s[r],x=s[r]=b+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(b==0||x==0){let M={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:r};this.hasTask(this._zone,M)}}}class _{constructor(r,i,s,b,x,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=b,this.scheduleFn=x,this.cancelFn=M,!s)throw new Error("callback is not defined");this.callback=s;let de=this;r===U&&b&&b.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(ie,de,this,arguments)}}static invokeTask(r,i,s){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{K==1&&A(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,v)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let E=Q("setTimeout"),m=Q("Promise"),C=Q("then"),T=[],I=!1,P;function Z(j){if(P||ie[m]&&(P=ie[m].resolve(0)),P){let r=P[C];r||(r=P.then),r.call(P,j)}else ie[E](j,0)}function W(j){K===0&&T.length===0&&Z(A),j&&T.push(j)}function A(){if(!I){for(I=!0;T.length;){let j=T;T=[];for(let r=0;rk,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:W,showUncaughtError:()=>!t[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:Z},k={parent:null,zone:new t(null,null)},S=null,K=0;function z(){}return a("Zone","Zone"),t}function ht(){let e=globalThis,n=e[Q("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=ft(),e.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=Q(He),Ie=Q(xe),ce="true",ae="false",be=Q("");function Ge(e,n){return Zone.current.wrap(e,n)}function Ve(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var H=Q,Se=typeof window<"u",ye=Se?window:void 0,J=Se&&ye||globalThis,Et="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ge(e[a],n+"_"+a));return e}function Tt(e,n){let a=e.constructor.name;for(let t=0;t{let m=function(){return E.apply(this,Fe(arguments,a+"."+c))};return ue(m,E),m})(f)}}}function Qe(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var et=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",Be=!De&&!et&&!!(Se&&ye.HTMLElement),tt=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!et&&!!(Se&&ye.HTMLElement),Ce={},Ye=function(e){if(e=e||J.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=H("ON_PROPERTY"+e.type));let a=this||e.target||J,t=a[n],c;if(Be&&a===ye&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=ve(e,n);if(!t&&a&&ve(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=H("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,_=t.set,E=n.slice(2),m=Ce[E];m||(m=Ce[E]=H("ON_PROPERTY"+E)),t.set=function(C){let T=this;if(!T&&e===J&&(T=J),!T)return;typeof T[m]=="function"&&T.removeEventListener(E,Ye),_&&_.call(T,null),T[m]=C,typeof C=="function"&&T.addEventListener(E,Ye,!1)},t.get=function(){let C=this;if(!C&&e===J&&(C=J),!C)return null;let T=C[m];if(T)return T;if(f){let I=f.call(this);if(I)return t.set.call(this,I),typeof C[Et]=="function"&&C.removeAttribute(n),I}return null},Ae(e,n,t),e[c]=!0}function nt(e,n,a){if(n)for(let t=0;tfunction(_,E){let m=a(_,E);return m.cbIdx>=0&&typeof E[m.cbIdx]=="function"?Ve(m.name,E[m.cbIdx],m,c):f.apply(_,E)})}function ue(e,n){e[H("OriginalDelegate")]=n}var Je=!1,Me=!1;function yt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function mt(){if(Je)return Me;Je=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var ge=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}var pt={useG:!0},ee={},rt={},ot=new RegExp("^"+be+"(\\w+)(true|false)$"),st=H("propagationStopped");function it(e,n){let a=(n?n(e):e)+ae,t=(n?n(e):e)+ce,c=be+a,f=be+t;ee[e]={},ee[e][ae]=c,ee[e][ce]=f}function kt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,_=t&&t.listeners||"eventListeners",E=t&&t.rmAll||"removeAllListeners",m=H(c),C="."+c+":",T="prependListener",I="."+T+":",P=function(v,d,F){if(v.isRemoved)return;let q=v.callback;typeof q=="object"&&q.handleEvent&&(v.callback=g=>q.handleEvent(g),v.originalDelegate=q);let Y;try{v.invoke(v,d,[F])}catch(g){Y=g}let B=v.options;if(B&&typeof B=="object"&&B.once){let g=v.originalDelegate?v.originalDelegate:v.callback;d[f].call(d,F.type,g,B)}return Y};function Z(v,d,F){if(d=d||e.event,!d)return;let q=v||d.target||e,Y=q[ee[d.type][F?ce:ae]];if(Y){let B=[];if(Y.length===1){let g=P(Y[0],q,d);g&&B.push(g)}else{let g=Y.slice();for(let U=0;U{throw U})}}}let W=function(v){return Z(this,v,!1)},A=function(v){return Z(this,v,!0)};function te(v,d){if(!v)return!1;let F=!0;d&&d.useG!==void 0&&(F=d.useG);let q=d&&d.vh,Y=!0;d&&d.chkDup!==void 0&&(Y=d.chkDup);let B=!1;d&&d.rt!==void 0&&(B=d.rt);let g=v;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&v[c]&&(g=v),!g||g[m])return!1;let U=d&&d.eventNameToString,D={},w=g[m]=g[c],k=g[H(f)]=g[f],S=g[H(_)]=g[_],K=g[H(E)]=g[E],z;d&&d.prepend&&(z=g[H(d.prepend)]=g[d.prepend]);function $(o,u){return!ge&&typeof o=="object"&&o?!!o.capture:!ge||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let j=function(o){if(!D.isExisting)return w.call(D.target,D.eventName,D.capture?A:W,D.options)},r=function(o){if(!o.isRemoved){let u=ee[o.eventName],p;u&&(p=u[o.capture?ce:ae]);let R=p&&o.target[p];if(R){for(let y=0;yne.zone.cancelTask(ne);o.call(_e,"abort",se,{once:!0}),ne.removeAbortListener=()=>_e.removeEventListener("abort",se)}if(D.target=null,pe&&(pe.taskData=null),Ue&&(D.options.once=!0),!ge&&typeof ne.options=="boolean"||(ne.options=oe),ne.target=N,ne.capture=Oe,ne.eventName=L,V&&(ne.originalDelegate=G),O?Ee.unshift(ne):Ee.push(ne),y)return N}};return g[c]=l(w,C,x,M,B),z&&(g[T]=l(z,I,s,M,B,!0)),g[f]=function(){let o=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let p=arguments[2],R=p?typeof p=="boolean"?!0:p.capture:!1,y=arguments[1];if(!y)return k.apply(this,arguments);if(q&&!q(k,y,o,arguments))return;let O=ee[u],N;O&&(N=O[R?ce:ae]);let L=N&&o[N];if(L)for(let G=0;Gfunction(c,f){c[st]=!0,t&&t.apply(c,f)})}function bt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=H("zoneTask");function Te(e,n,a,t){let c=null,f=null;n+=t,a+=t;let _={};function E(C){let T=C.data;return T.args[0]=function(){return C.invoke.apply(this,arguments)},T.handleId=c.apply(e,T.args),C}function m(C){return f.call(e,C.data.handleId)}c=le(e,n,C=>function(T,I){if(typeof I[0]=="function"){let P={isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{P.isPeriodic||(typeof P.handleId=="number"?delete _[P.handleId]:P.handleId&&(P.handleId[Re]=null))}};let W=Ve(n,I[0],P,E,m);if(!W)return W;let A=W.data.handleId;return typeof A=="number"?_[A]=W:A&&(A[Re]=W),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(W.ref=A.ref.bind(A),W.unref=A.unref.bind(A)),typeof A=="number"||A?A:W}else return C.apply(e,I)}),f=le(e,a,C=>function(T,I){let P=I[0],Z;typeof P=="number"?Z=_[P]:(Z=P&&P[Re],Z||(Z=P)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof P=="number"?delete _[P]:P&&(P[Re]=null),Z.zone.cancelTask(Z)):C.apply(e,I)})}function Pt(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function wt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:_}=n.getGlobalObjects();for(let m=0;mf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Ke(e,n,a,t){if(!e)return;let c=at(e,n,a);nt(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ct(e,n){if(De&&!tt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=yt()?[{target:c,ignoreProperties:["error"]}]:[];Ke(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";Te(n,a,t,"Timeout"),Te(n,a,t,"Interval"),Te(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{Te(n,"request","cancel","AnimationFrame"),Te(n,"mozRequest","mozCancel","AnimationFrame"),Te(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,T){return a.current.run(_,n,T,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{Rt(n,t),wt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ke("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ke("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ct(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Pt(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=H("xhrTask"),c=H("xhrSync"),f=H("xhrListener"),_=H("xhrScheduled"),E=H("xhrURL"),m=H("xhrErrorBeforeScheduled");function C(T){let I=T.XMLHttpRequest;if(!I)return;let P=I.prototype;function Z(w){return w[t]}let W=P[Le],A=P[Ie];if(!W){let w=T.XMLHttpRequestEventTarget;if(w){let k=w.prototype;W=k[Le],A=k[Ie]}}let te="readystatechange",X="scheduled";function v(w){let k=w.data,S=k.target;S[_]=!1,S[m]=!1;let K=S[f];W||(W=S[Le],A=S[Ie]),K&&A.call(S,te,K);let z=S[f]=()=>{if(S.readyState===S.DONE)if(!k.aborted&&S[_]&&w.state===X){let j=S[a.__symbol__("loadfalse")];if(S.status!==0&&j&&j.length>0){let r=w.invoke;w.invoke=function(){let i=S[a.__symbol__("loadfalse")];for(let s=0;sfunction(w,k){return w[c]=k[2]==!1,w[E]=k[1],q.apply(w,k)}),Y="XMLHttpRequest.send",B=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),U=le(P,"send",()=>function(w,k){if(a.current[g]===!0||w[c])return U.apply(w,k);{let S={target:w,url:w[E],isPeriodic:!1,args:k,aborted:!1},K=Ve(Y,d,S,v,F);w&&w[m]===!0&&!S.aborted&&K.state===X&&K.invoke()}}),D=le(P,"abort",()=>function(w,k){let S=Z(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(a.current[B]===!0)return D.apply(w,k)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&Tt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){ct(n,c).forEach(E=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}n.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{bt(n,t)})}function Dt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function _(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let E=t.symbol,m=[],C=n[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=E("Promise"),I=E("then"),P="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){W(l)}}};let Z=E("unhandledPromiseRejectionHandler");function W(h){t.onUnhandledError(h);try{let l=a[Z];typeof l=="function"&&l.call(this,h)}catch{}}function A(h){return h&&h.then}function te(h){return h}function X(h){return M.reject(h)}let v=E("state"),d=E("value"),F=E("finally"),q=E("parentPromiseValue"),Y=E("parentPromiseState"),B="Promise.then",g=null,U=!0,D=!1,w=0;function k(h,l){return o=>{try{$(h,l,o)}catch(u){$(h,!1,u)}}}let S=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",z=E("currentTaskTrace");function $(h,l,o){let u=S();if(h===o)throw new TypeError(K);if(h[v]===g){let p=null;try{(typeof o=="object"||typeof o=="function")&&(p=o&&o.then)}catch(R){return u(()=>{$(h,!1,R)})(),h}if(l!==D&&o instanceof M&&o.hasOwnProperty(v)&&o.hasOwnProperty(d)&&o[v]!==g)r(o),$(h,o[v],o[d]);else if(l!==D&&typeof p=="function")try{p.call(o,u(k(h,l)),u(k(h,!1)))}catch(R){u(()=>{$(h,!1,R)})()}else{h[v]=l;let R=h[d];if(h[d]=o,h[F]===F&&l===U&&(h[v]=h[Y],h[d]=h[q]),l===D&&o instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[P];y&&f(o,z,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{let O=h[d],N=!!o&&F===o[F];N&&(o[q]=O,o[Y]=R);let L=l.run(y,void 0,N&&y!==X&&y!==te?[]:[O]);$(o,!0,L)}catch(O){$(o,!1,O)}},o)}let s="function ZoneAwarePromise() { [native code] }",b=function(){},x=n.AggregateError;class M{static toString(){return s}static resolve(l){return l instanceof M?l:$(new this(null),U,l)}static reject(l){return $(new this(null),D,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new x([],"All promises were rejected"));let o=[],u=0;try{for(let y of l)u++,o.push(M.resolve(y))}catch{return Promise.reject(new x([],"All promises were rejected"))}if(u===0)return Promise.reject(new x([],"All promises were rejected"));let p=!1,R=[];return new M((y,O)=>{for(let N=0;N{p||(p=!0,y(L))},L=>{R.push(L),u--,u===0&&(p=!0,O(new x(R,"All promises were rejected")))})})}static race(l){let o,u,p=new this((O,N)=>{o=O,u=N});function R(O){o(O)}function y(O){u(O)}for(let O of l)A(O)||(O=this.resolve(O)),O.then(R,y);return p}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,p,R=new this((L,G)=>{u=L,p=G}),y=2,O=0,N=[];for(let L of l){A(L)||(L=this.resolve(L));let G=O;try{L.then(V=>{N[G]=o?o.thenCallback(V):V,y--,y===0&&u(N)},V=>{o?(N[G]=o.errorCallback(V),y--,y===0&&u(N)):p(V)})}catch(V){p(V)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[v]=g,o[d]=[];try{let u=S();l&&l(u(k(o,U)),u(k(o,D)))}catch(u){$(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let p=new u(b),R=a.current;return this[v]==g?this[d].push(R,p,l,o):i(this,R,p,l,o),p}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(b);u[F]=F;let p=a.current;return this[v]==g?this[d].push(p,u,l,l):i(this,p,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let de=n[T]=n.Promise;n.Promise=M;let me=E("thenPatched");function he(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[I]=u,h.prototype.then=function(p,R){return new M((O,N)=>{u.call(this,O,N)}).then(p,R)},h[me]=!0}t.patchThen=he;function Pe(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let p=u.constructor;return p[me]||he(p),u}}return de&&(he(de),le(n,"fetch",h=>Pe(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function Ot(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=H("OriginalDelegate"),c=H("Promise"),f=H("Error"),_=function(){if(typeof this=="function"){let T=this[t];if(T)return typeof T=="function"?a.call(T):Object.prototype.toString.call(T);if(this===Promise){let I=n[c];if(I)return a.call(I)}if(this===Error){let I=n[f];if(I)return a.call(I)}}return a.call(this)};_[t]=a,Function.prototype.toString=_;let E=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:E.call(this)}})}function Nt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let _=n[f]=n[t];n[t]=function(E,m,C){return m&&m.prototype&&c.forEach(function(T){let I=`${a}.${t}::`+T,P=m.prototype;try{if(P.hasOwnProperty(T)){let Z=e.ObjectGetOwnPropertyDescriptor(P,T);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(m.prototype,T,Z)):P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}else P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}catch{}}),_.call(n,E,m,C)},e.attachOriginToPatched(n[t],_)}function Lt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=nt,t.patchMethod=le,t.bindArguments=Fe,t.patchMacroTask=gt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),_=a.__symbol__("UNPATCHED_EVENTS");n[_]&&(n[f]=n[_]),n[f]&&(a[f]=a[_]=n[f]),t.patchEventPrototype=vt,t.patchEventTarget=kt,t.isIEOrEdge=mt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=ve,t.ObjectCreate=dt,t.ArraySlice=_t,t.patchClass=ke,t.wrapWithCurrentZone=Ge,t.filterProperties=at,t.attachOriginToPatched=ue,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Nt,t.getGlobalObjects=()=>({globalSources:rt,zoneSymbolEventNames:ee,eventNames:c,isBrowser:Be,isMix:tt,isNode:De,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function It(e){Dt(e),Ot(e),Lt(e)}var lt=ht();It(lt);St(lt); diff --git a/polyfills-LZBJRJJE.js b/polyfills-LZBJRJJE.js deleted file mode 100644 index 57d4c33..0000000 --- a/polyfills-LZBJRJJE.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(e){let n=e.performance;function c(L){n&&n.mark&&n.mark(L)}function r(L,t){n&&n.measure&&n.measure(L,t)}c("Zone");let a=e.__Zone_symbol_prefix||"__zone_symbol__";function l(L){return a+L}let y=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(y||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let oe=class oe{static assertZonePatched(){if(e.Promise!==re.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=oe.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return te}static __load_patch(t,s,o=!1){if(re.hasOwnProperty(t)){if(!o&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let v="Zone:"+t;c(v),re[t]=s(e,oe,z),r(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(t,s){this._parent=t,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,s)}get(t){let s=this.getZoneWith(t);if(s)return s._properties[t]}getZoneWith(t){let s=this;for(;s;){if(s._properties.hasOwnProperty(t))return s;s=s._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,s){if(typeof t!="function")throw new Error("Expecting function got: "+t);let o=this._zoneDelegate.intercept(this,t,s),v=this;return function(){return v.runGuarded(o,this,arguments,s)}}run(t,s,o,v){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,s,o,v)}finally{U=U.parent}}runGuarded(t,s=null,o,v){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,s,o,v)}catch(F){if(this._zoneDelegate.handleError(this,F))throw F}}finally{U=U.parent}}runTask(t,s,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===K||t.type===P))return;let v=t.state!=T;v&&t._transitionTo(T,M),t.runCount++;let F=te;te=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,s,o)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{t.state!==H&&t.state!==d&&(t.type==K||t.data&&t.data.isPeriodic?v&&t._transitionTo(M,T):(t.runCount=0,this._updateTaskCount(t,-1),v&&t._transitionTo(H,T,H))),U=U.parent,te=F}}scheduleTask(t){if(t.zone&&t.zone!==this){let o=this;for(;o;){if(o===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);o=o.parent}}t._transitionTo(X,H);let s=[];t._zoneDelegates=s,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(o){throw t._transitionTo(d,X,H),this._zoneDelegate.handleError(this,o),o}return t._zoneDelegates===s&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(M,X),t}scheduleMicroTask(t,s,o,v){return this.scheduleTask(new m(N,t,s,o,v,void 0))}scheduleMacroTask(t,s,o,v,F){return this.scheduleTask(new m(P,t,s,o,v,F))}scheduleEventTask(t,s,o,v,F){return this.scheduleTask(new m(K,t,s,o,v,F))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(!(t.state!==M&&t.state!==T)){t._transitionTo(x,M,T);try{this._zoneDelegate.cancelTask(this,t)}catch(s){throw t._transitionTo(d,x),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(t,-1),t._transitionTo(H,x),t.runCount=0,t}}_updateTaskCount(t,s){let o=t._zoneDelegates;s==-1&&(t._zoneDelegates=null);for(let v=0;vL.hasTask(s,o),onScheduleTask:(L,t,s,o)=>L.scheduleTask(s,o),onInvokeTask:(L,t,s,o,v,F)=>L.invokeTask(s,o,v,F),onCancelTask:(L,t,s,o)=>L.cancelTask(s,o)};class k{constructor(t,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=o&&o.onHasTask,F=s&&s._hasTaskZS;(v||F)&&(this._hasTaskZS=v?o:b,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,o.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(t,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,s):new _(t,s)}intercept(t,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,s,o):s}invoke(t,s,o,v,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,s,o,v,F):s.apply(o,v)}handleError(t,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,s):!0}scheduleTask(t,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==N)R(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(t,s,o,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,s,o,v):s.callback.apply(o,v)}cancelTask(t,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(t,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,s)}catch(o){this.handleError(t,o)}}_updateTaskCount(t,s){let o=this._taskCounts,v=o[t],F=o[t]=v+s;if(F<0)throw new Error("More tasks executed then were scheduled.");if(v==0||F==0){let u={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this.zone,u)}}}class m{constructor(t,s,o,v,F,u){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=s,this.data=v,this.scheduleFn=F,this.cancelFn=u,!o)throw new Error("callback is not defined");this.callback=o;let f=this;t===K&&v&&v.useG?this.invoke=m.invokeTask:this.invoke=function(){return m.invokeTask.call(e,f,this,arguments)}}static invokeTask(t,s,o){t||(t=this),Q++;try{return t.runCount++,t.zone.runTask(t,s,o)}finally{Q==1&&E(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,X)}_transitionTo(t,s,o){if(this._state===s||this._state===o)this._state=t,t==H&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let I=l("setTimeout"),Z=l("Promise"),O=l("then"),B=[],A=!1,J;function q(L){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let t=J[O];t||(t=J.then),t.call(J,L)}else e[I](L,0)}function R(L){Q===0&&B.length===0&&q(E),L&&B.push(L)}function E(){if(!A){for(A=!0;B.length;){let L=B;B=[];for(let t=0;tU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!_[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q},U={parent:null,zone:new _(null,null)},te=null,Q=0;function W(){}return r("Zone","Zone"),e.Zone=_})(globalThis);var me=Object.getOwnPropertyDescriptor,Ne=Object.defineProperty,Ie=Object.getPrototypeOf,it=Object.create,ct=Array.prototype.slice,Me="addEventListener",Le="removeEventListener",Se=Zone.__symbol__(Me),De=Zone.__symbol__(Le),ie="true",ce="false",pe=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function je(e,n,c,r,a){return Zone.current.scheduleMacroTask(e,n,c,r,a)}var j=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||globalThis,at="removeAttribute";function He(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ae(e[c],n+"_"+c));return e}function lt(e,n){let c=e.constructor.name;for(let r=0;r{let b=function(){return _.apply(this,He(arguments,c+"."+a))};return ae(b,_),b})(l)}}}function Ye(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var $e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]",xe=!we&&!$e&&!!(Pe&&Te.HTMLElement),Je=typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]"&&!$e&&!!(Pe&&Te.HTMLElement),be={},We=function(e){if(e=e||Y.event,!e)return;let n=be[e.type];n||(n=be[e.type]=j("ON_PROPERTY"+e.type));let c=this||e.target||Y,r=c[n],a;if(xe&&c===Te&&e.type==="error"){let l=e;a=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),a===!0&&e.preventDefault()}else a=r&&r.apply(this,arguments),a!=null&&!a&&e.preventDefault();return a};function qe(e,n,c){let r=me(e,n);if(!r&&c&&me(c,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let a=j("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete r.writable,delete r.value;let l=r.get,y=r.set,_=n.slice(2),b=be[_];b||(b=be[_]=j("ON_PROPERTY"+_)),r.set=function(k){let m=this;if(!m&&e===Y&&(m=Y),!m)return;typeof m[b]=="function"&&m.removeEventListener(_,We),y&&y.call(m,null),m[b]=k,typeof k=="function"&&m.addEventListener(_,We,!1)},r.get=function(){let k=this;if(!k&&e===Y&&(k=Y),!k)return null;let m=k[b];if(m)return m;if(l){let I=l.call(this);if(I)return r.set.call(this,I),typeof k[at]=="function"&&k.removeAttribute(n),I}return null},Ne(e,n,r),e[a]=!0}function Ke(e,n,c){if(n)for(let r=0;rfunction(y,_){let b=c(y,_);return b.cbIdx>=0&&typeof _[b.cbIdx]=="function"?je(b.name,_[b.cbIdx],b,a):l.apply(y,_)})}function ae(e,n){e[j("OriginalDelegate")]=n}var Xe=!1,Ze=!1;function ft(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function ht(){if(Xe)return Ze;Xe=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,c)=>{let r=Object.getOwnPropertyDescriptor,a=Object.defineProperty;function l(u){if(u&&u.toString===Object.prototype.toString){let f=u.constructor&&u.constructor.name;return(f||"")+": "+JSON.stringify(u)}return u?u.toString():Object.prototype.toString.call(u)}let y=c.symbol,_=[],b=e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,k=y("Promise"),m=y("then"),I="__creationTrace__";c.onUnhandledError=u=>{if(c.showUncaughtError()){let f=u&&u.rejection;f?console.error("Unhandled Promise rejection:",f instanceof Error?f.message:f,"; Zone:",u.zone.name,"; Task:",u.task&&u.task.source,"; Value:",f,f instanceof Error?f.stack:void 0):console.error(u)}},c.microtaskDrainDone=()=>{for(;_.length;){let u=_.shift();try{u.zone.runGuarded(()=>{throw u.throwOriginal?u.rejection:u})}catch(f){O(f)}}};let Z=y("unhandledPromiseRejectionHandler");function O(u){c.onUnhandledError(u);try{let f=n[Z];typeof f=="function"&&f.call(this,u)}catch{}}function B(u){return u&&u.then}function A(u){return u}function J(u){return t.reject(u)}let q=y("state"),R=y("value"),E=y("finally"),$=y("parentPromiseValue"),H=y("parentPromiseState"),X="Promise.then",M=null,T=!0,x=!1,d=0;function N(u,f){return i=>{try{z(u,f,i)}catch(h){z(u,!1,h)}}}let P=function(){let u=!1;return function(i){return function(){u||(u=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",re=y("currentTaskTrace");function z(u,f,i){let h=P();if(u===i)throw new TypeError(K);if(u[q]===M){let g=null;try{(typeof i=="object"||typeof i=="function")&&(g=i&&i.then)}catch(w){return h(()=>{z(u,!1,w)})(),u}if(f!==x&&i instanceof t&&i.hasOwnProperty(q)&&i.hasOwnProperty(R)&&i[q]!==M)te(i),z(u,i[q],i[R]);else if(f!==x&&typeof g=="function")try{g.call(i,h(N(u,f)),h(N(u,!1)))}catch(w){h(()=>{z(u,!1,w)})()}else{u[q]=f;let w=u[R];if(u[R]=i,u[E]===E&&f===T&&(u[q]=u[H],u[R]=u[$]),f===x&&i instanceof Error){let p=n.currentTask&&n.currentTask.data&&n.currentTask.data[I];p&&a(i,re,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{let C=u[R],S=!!i&&E===i[E];S&&(i[$]=C,i[H]=w);let D=f.run(p,void 0,S&&p!==J&&p!==A?[]:[C]);z(i,!0,D)}catch(C){z(i,!1,C)}},i)}let W="function ZoneAwarePromise() { [native code] }",oe=function(){},L=e.AggregateError;class t{static toString(){return W}static resolve(f){return z(new this(null),T,f)}static reject(f){return z(new this(null),x,f)}static any(f){if(!f||typeof f[Symbol.iterator]!="function")return Promise.reject(new L([],"All promises were rejected"));let i=[],h=0;try{for(let p of f)h++,i.push(t.resolve(p))}catch{return Promise.reject(new L([],"All promises were rejected"))}if(h===0)return Promise.reject(new L([],"All promises were rejected"));let g=!1,w=[];return new t((p,C)=>{for(let S=0;S{g||(g=!0,p(D))},D=>{w.push(D),h--,h===0&&(g=!0,C(new L(w,"All promises were rejected")))})})}static race(f){let i,h,g=new this((C,S)=>{i=C,h=S});function w(C){i(C)}function p(C){h(C)}for(let C of f)B(C)||(C=this.resolve(C)),C.then(w,p);return g}static all(f){return t.allWithCallback(f)}static allSettled(f){return(this&&this.prototype instanceof t?this:t).allWithCallback(f,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(f,i){let h,g,w=new this((D,G)=>{h=D,g=G}),p=2,C=0,S=[];for(let D of f){B(D)||(D=this.resolve(D));let G=C;try{D.then(V=>{S[G]=i?i.thenCallback(V):V,p--,p===0&&h(S)},V=>{i?(S[G]=i.errorCallback(V),p--,p===0&&h(S)):g(V)})}catch(V){g(V)}p++,C++}return p-=2,p===0&&h(S),w}constructor(f){let i=this;if(!(i instanceof t))throw new Error("Must be an instanceof Promise.");i[q]=M,i[R]=[];try{let h=P();f&&f(h(N(i,T)),h(N(i,x)))}catch(h){z(i,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(f,i){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||t);let g=new h(oe),w=n.current;return this[q]==M?this[R].push(w,g,f,i):Q(this,w,g,f,i),g}catch(f){return this.then(null,f)}finally(f){let i=this.constructor?.[Symbol.species];(!i||typeof i!="function")&&(i=t);let h=new i(oe);h[E]=E;let g=n.current;return this[q]==M?this[R].push(g,h,f,f):Q(this,g,h,f,f),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;let s=e[k]=e.Promise;e.Promise=t;let o=y("thenPatched");function v(u){let f=u.prototype,i=r(f,"then");if(i&&(i.writable===!1||!i.configurable))return;let h=f.then;f[m]=h,u.prototype.then=function(g,w){return new t((C,S)=>{h.call(this,C,S)}).then(g,w)},u[o]=!0}c.patchThen=v;function F(u){return function(f,i){let h=u.apply(f,i);if(h instanceof t)return h;let g=h.constructor;return g[o]||v(g),h}}return s&&(v(s),le(e,"fetch",u=>F(u))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,c=j("OriginalDelegate"),r=j("Promise"),a=j("Error"),l=function(){if(typeof this=="function"){let k=this[c];if(k)return typeof k=="function"?n.call(k):Object.prototype.toString.call(k);if(this===Promise){let m=e[r];if(m)return n.call(m)}if(this===Error){let m=e[a];if(m)return n.call(m)}}return n.call(this)};l[c]=n,Function.prototype.toString=l;let y=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:y.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var dt={useG:!0},ee={},Qe={},et=new RegExp("^"+pe+"(\\w+)(true|false)$"),tt=j("propagationStopped");function nt(e,n){let c=(n?n(e):e)+ce,r=(n?n(e):e)+ie,a=pe+c,l=pe+r;ee[e]={},ee[e][ce]=a,ee[e][ie]=l}function _t(e,n,c,r){let a=r&&r.add||Me,l=r&&r.rm||Le,y=r&&r.listeners||"eventListeners",_=r&&r.rmAll||"removeAllListeners",b=j(a),k="."+a+":",m="prependListener",I="."+m+":",Z=function(R,E,$){if(R.isRemoved)return;let H=R.callback;typeof H=="object"&&H.handleEvent&&(R.callback=T=>H.handleEvent(T),R.originalDelegate=H);let X;try{R.invoke(R,E,[$])}catch(T){X=T}let M=R.options;if(M&&typeof M=="object"&&M.once){let T=R.originalDelegate?R.originalDelegate:R.callback;E[l].call(E,$.type,T,M)}return X};function O(R,E,$){if(E=E||e.event,!E)return;let H=R||E.target||e,X=H[ee[E.type][$?ie:ce]];if(X){let M=[];if(X.length===1){let T=Z(X[0],H,E);T&&M.push(T)}else{let T=X.slice();for(let x=0;x{throw x})}}}let B=function(R){return O(this,R,!1)},A=function(R){return O(this,R,!0)};function J(R,E){if(!R)return!1;let $=!0;E&&E.useG!==void 0&&($=E.useG);let H=E&&E.vh,X=!0;E&&E.chkDup!==void 0&&(X=E.chkDup);let M=!1;E&&E.rt!==void 0&&(M=E.rt);let T=R;for(;T&&!T.hasOwnProperty(a);)T=Ie(T);if(!T&&R[a]&&(T=R),!T||T[b])return!1;let x=E&&E.eventNameToString,d={},N=T[b]=T[a],P=T[j(l)]=T[l],K=T[j(y)]=T[y],re=T[j(_)]=T[_],z;E&&E.prepend&&(z=T[j(E.prepend)]=T[E.prepend]);function U(i,h){return!_e&&typeof i=="object"&&i?!!i.capture:!_e||!h?i:typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?{...i,passive:!0}:i:{passive:!0}}let te=function(i){if(!d.isExisting)return N.call(d.target,d.eventName,d.capture?A:B,d.options)},Q=function(i){if(!i.isRemoved){let h=ee[i.eventName],g;h&&(g=h[i.capture?ie:ce]);let w=g&&i.target[g];if(w){for(let p=0;pfunction(a,l){a[tt]=!0,r&&r.apply(a,l)})}function Tt(e,n,c,r,a){let l=Zone.__symbol__(r);if(n[l])return;let y=n[l]=n[r];n[r]=function(_,b,k){return b&&b.prototype&&a.forEach(function(m){let I=`${c}.${r}::`+m,Z=b.prototype;try{if(Z.hasOwnProperty(m)){let O=e.ObjectGetOwnPropertyDescriptor(Z,m);O&&O.value?(O.value=e.wrapWithCurrentZone(O.value,I),e._redefineProperty(b.prototype,m,O)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],I))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],I))}catch{}}),y.call(n,_,b,k)},e.attachOriginToPatched(n[r],y)}function ot(e,n,c){if(!c||c.length===0)return n;let r=c.filter(l=>l.target===e);if(!r||r.length===0)return n;let a=r[0].ignoreProperties;return n.filter(l=>a.indexOf(l)===-1)}function ze(e,n,c,r){if(!e)return;let a=ot(e,n,c);Ke(e,a,r)}function Oe(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function yt(e,n){if(we&&!Je||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,r=[];if(xe){let a=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ft()?[{target:a,ignoreProperties:["error"]}]:[];ze(a,Oe(a),c&&c.concat(l),Ie(a))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let r=Oe(e);c.patchOnProperties=Ke,c.patchMethod=le,c.bindArguments=He,c.patchMacroTask=ut;let a=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[a]=e[l]),e[a]&&(n[a]=n[l]=e[a]),c.patchEventPrototype=Et,c.patchEventTarget=_t,c.isIEOrEdge=ht,c.ObjectDefineProperty=Ne,c.ObjectGetOwnPropertyDescriptor=me,c.ObjectCreate=it,c.ArraySlice=ct,c.patchClass=ge,c.wrapWithCurrentZone=Ae,c.filterProperties=ot,c.attachOriginToPatched=ae,c._redefineProperty=Object.defineProperty,c.patchCallbacks=Tt,c.getGlobalObjects=()=>({globalSources:Qe,zoneSymbolEventNames:ee,eventNames:r,isBrowser:xe,isMix:Je,isNode:we,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:Me,REMOVE_EVENT_LISTENER_STR:Le})});function mt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(r,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var ve=j("zoneTask");function Ee(e,n,c,r){let a=null,l=null;n+=r,c+=r;let y={};function _(k){let m=k.data;return m.args[0]=function(){return k.invoke.apply(this,arguments)},m.handleId=a.apply(e,m.args),k}function b(k){return l.call(e,k.data.handleId)}a=le(e,n,k=>function(m,I){if(typeof I[0]=="function"){let Z={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?I[1]||0:void 0,args:I},O=I[0];I[0]=function(){try{return O.apply(this,arguments)}finally{Z.isPeriodic||(typeof Z.handleId=="number"?delete y[Z.handleId]:Z.handleId&&(Z.handleId[ve]=null))}};let B=je(n,I[0],Z,_,b);if(!B)return B;let A=B.data.handleId;return typeof A=="number"?y[A]=B:A&&(A[ve]=B),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(B.ref=A.ref.bind(A),B.unref=A.unref.bind(A)),typeof A=="number"||A?A:B}else return k.apply(e,I)}),l=le(e,c,k=>function(m,I){let Z=I[0],O;typeof Z=="number"?O=y[Z]:(O=Z&&Z[ve],O||(O=Z)),O&&typeof O.type=="string"?O.state!=="notScheduled"&&(O.cancelFn&&O.data.isPeriodic||O.runCount===0)&&(typeof Z=="number"?delete y[Z]:Z&&(Z[ve]=null),O.zone.cancelTask(O)):k.apply(e,I)})}function pt(e,n){let{isBrowser:c,isMix:r}=n.getGlobalObjects();if(!c&&!r||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",a)}function gt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:r,TRUE_STR:a,FALSE_STR:l,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",c="clear";Ee(e,n,c,"Timeout"),Ee(e,n,c,"Interval"),Ee(e,n,c,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let c=["alert","prompt","confirm"];for(let r=0;rfunction(b,k){return n.current.run(l,e,k,_)})}});Zone.__load_patch("EventTarget",(e,n,c)=>{kt(e,c),gt(e,c);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&c.patchEventTarget(e,c,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,c)=>{ge("MutationObserver"),ge("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,c)=>{ge("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,c)=>{ge("FileReader")});Zone.__load_patch("on_property",(e,n,c)=>{yt(c,e)});Zone.__load_patch("customElements",(e,n,c)=>{pt(e,c)});Zone.__load_patch("XHR",(e,n)=>{b(e);let c=j("xhrTask"),r=j("xhrSync"),a=j("xhrListener"),l=j("xhrScheduled"),y=j("xhrURL"),_=j("xhrErrorBeforeScheduled");function b(k){let m=k.XMLHttpRequest;if(!m)return;let I=m.prototype;function Z(d){return d[c]}let O=I[Se],B=I[De];if(!O){let d=k.XMLHttpRequestEventTarget;if(d){let N=d.prototype;O=N[Se],B=N[De]}}let A="readystatechange",J="scheduled";function q(d){let N=d.data,P=N.target;P[l]=!1,P[_]=!1;let K=P[a];O||(O=P[Se],B=P[De]),K&&B.call(P,A,K);let re=P[a]=()=>{if(P.readyState===P.DONE)if(!N.aborted&&P[l]&&d.state===J){let U=P[n.__symbol__("loadfalse")];if(P.status!==0&&U&&U.length>0){let te=d.invoke;d.invoke=function(){let Q=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(d,N){return d[r]=N[2]==!1,d[y]=N[1],$.apply(d,N)}),H="XMLHttpRequest.send",X=j("fetchTaskAborting"),M=j("fetchTaskScheduling"),T=le(I,"send",()=>function(d,N){if(n.current[M]===!0||d[r])return T.apply(d,N);{let P={target:d,url:d[y],isPeriodic:!1,args:N,aborted:!1},K=je(H,R,P,q,E);d&&d[_]===!0&&!P.aborted&&K.state===J&&K.invoke()}}),x=le(I,"abort",()=>function(d,N){let P=Z(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[X]===!0)return x.apply(d,N)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&<(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function c(r){return function(a){rt(e,r).forEach(y=>{let _=e.PromiseRejectionEvent;if(_){let b=new _(r,{promise:a.promise,reason:a.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),n[j("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,c)=>{mt(e,c)});