From 8149ca8aa2c132190507062aa23601eaad02a9d2 Mon Sep 17 00:00:00 2001 From: Tiberiu Zuld Date: Sat, 7 Dec 2024 19:56:00 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/tiberiuzuld/angular-gridster2/commit/cd8860dd1a2072b406da3df115296cd240176d97 --- 404.html | 2 +- chunk-HNCQXACW.js | 7 +++++ chunk-HPGNNBGR.js | 7 ----- chunk-PQGE3PBD.js | 1 - chunk-X6FBGTMZ.js | 1 + index.html | 2 +- main-AJ357CP3.js | 67 +++++++++++++++++++++++++++++++++++++++++++ main-XJA5KT2S.js | 67 ------------------------------------------- polyfills-FFHMD2TL.js | 2 -- 9 files changed, 77 insertions(+), 79 deletions(-) create mode 100644 chunk-HNCQXACW.js delete mode 100644 chunk-HPGNNBGR.js delete mode 100644 chunk-PQGE3PBD.js create mode 100644 chunk-X6FBGTMZ.js create mode 100644 main-AJ357CP3.js delete mode 100644 main-XJA5KT2S.js delete mode 100644 polyfills-FFHMD2TL.js diff --git a/404.html b/404.html index e3182b1..2bf2822 100644 --- a/404.html +++ b/404.html @@ -11,5 +11,5 @@ Loading... - + diff --git a/chunk-HNCQXACW.js b/chunk-HNCQXACW.js new file mode 100644 index 0000000..42d7af2 --- /dev/null +++ b/chunk-HNCQXACW.js @@ -0,0 +1,7 @@ +var df=Object.defineProperty,ff=Object.defineProperties;var pf=Object.getOwnPropertyDescriptors;var Rn=Object.getOwnPropertySymbols;var fa=Object.prototype.hasOwnProperty,pa=Object.prototype.propertyIsEnumerable;var da=(e,t,n)=>t in e?df(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z=(e,t)=>{for(var n in t||={})fa.call(t,n)&&da(e,n,t[n]);if(Rn)for(var n of Rn(t))pa.call(t,n)&&da(e,n,t[n]);return e},Y=(e,t)=>ff(e,pf(t));var WD=(e,t)=>{var n={};for(var r in e)fa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Rn)for(var r of Rn(e))t.indexOf(r)<0&&pa.call(e,r)&&(n[r]=e[r]);return n};function No(e,t){return Object.is(e,t)}var j=null,Kt=!1,Ao=1,B=Symbol("SIGNAL");function b(e){let t=j;return j=e,t}function ha(){return j}function hf(){return Kt}var qe={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 Pn(e){if(Kt)throw new Error("");if(j===null)return;j.consumerOnSignalRead(e);let t=j.nextProducerIndex++;if(jn(j),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function en(e){jn(e);for(let t=0;t0}function jn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Da(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ea(e){return e.producerNode!==void 0}function Fo(e){let t=Object.create(mf);t.computation=e;let n=()=>{if(Oo(t),Pn(t),t.value===kn)throw t.error;return t.value};return n[B]=t,n}var Mo=Symbol("UNSET"),So=Symbol("COMPUTING"),kn=Symbol("ERRORED"),mf=Y(Z({},qe),{value:Mo,dirty:!0,error:null,equal:No,producerMustRecompute(e){return e.value===Mo||e.value===So},producerRecomputeValue(e){if(e.value===So)throw new Error("Detected cycle in computations.");let t=e.value;e.value=So;let n=Dt(e),r;try{r=e.computation()}catch(o){r=kn,e.error=o}finally{Xt(e,n)}if(t!==Mo&&t!==kn&&r!==kn&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function yf(){throw new Error}var Ia=yf;function wa(){Ia()}function Ca(e){Ia=e}var vf=null;function ba(e){let t=Object.create(Ro);t.value=e;let n=()=>(Pn(t),t.value);return n[B]=t,n}function Vn(e,t){ma()||wa(),e.equal(e.value,t)||(e.value=t,Df(e))}function _a(e,t){ma()||wa(),Vn(e,t(e.value))}var Ro=Y(Z({},qe),{equal:No,value:void 0});function Df(e){e.version++,gf(),ga(e),vf?.()}function Ma(e,t,n){let r=Object.create(Ef);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=u=>{r.cleanupFn=u};function i(u){return u.fn===null&&u.schedule===null}function s(u){i(u)||(Et(u),u.cleanupFn(),u.fn=null,u.schedule=null,u.cleanupFn=xo)}let a=()=>{if(r.fn===null)return;if(hf())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!en(r))return;r.hasRun=!0;let u=Dt(r);try{r.cleanupFn(),r.cleanupFn=xo,r.fn(o)}finally{Xt(r,u)}};return r.ref={notify:()=>ya(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[B]:r},r.ref}var xo=()=>{},Ef=Y(Z({},qe),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:xo});function g(e){return typeof e=="function"}function It(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Bn=It(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function We(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var L=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(g(r))try{r()}catch(i){t=i instanceof Bn?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Sa(i)}catch(s){t=t??[],s instanceof Bn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Bn(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Sa(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&We(n,t)}remove(t){let{_finalizers:n}=this;n&&We(n,t),t instanceof e&&t._removeParent(this)}};L.EMPTY=(()=>{let e=new L;return e.closed=!0,e})();var ko=L.EMPTY;function Hn(e){return e instanceof L||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function Sa(e){g(e)?e():e.unsubscribe()}var ce={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var wt={setTimeout(e,t,...n){let{delegate:r}=wt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=wt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function $n(e){wt.setTimeout(()=>{let{onUnhandledError:t}=ce;if(t)t(e);else throw e})}function Ze(){}var Ta=Po("C",void 0,void 0);function xa(e){return Po("E",void 0,e)}function Na(e){return Po("N",e,void 0)}function Po(e,t,n){return{kind:e,value:t,error:n}}var Ye=null;function Ct(e){if(ce.useDeprecatedSynchronousErrorHandling){let t=!Ye;if(t&&(Ye={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ye;if(Ye=null,n)throw r}}else e()}function Aa(e){ce.useDeprecatedSynchronousErrorHandling&&Ye&&(Ye.errorThrown=!0,Ye.error=e)}var Qe=class extends L{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Hn(t)&&t.add(this)):this.destination=Cf}static create(t,n,r){return new be(t,n,r)}next(t){this.isStopped?jo(Na(t),this):this._next(t)}error(t){this.isStopped?jo(xa(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?jo(Ta,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()}}},If=Function.prototype.bind;function Lo(e,t){return If.call(e,t)}var Vo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Un(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Un(r)}else Un(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Un(n)}}},be=class extends Qe{constructor(t,n,r){super();let o;if(g(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ce.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Lo(t.next,i),error:t.error&&Lo(t.error,i),complete:t.complete&&Lo(t.complete,i)}):o=t}this.destination=new Vo(o)}};function Un(e){ce.useDeprecatedSynchronousErrorHandling?Aa(e):$n(e)}function wf(e){throw e}function jo(e,t){let{onStoppedNotification:n}=ce;n&&wt.setTimeout(()=>n(e,t))}var Cf={closed:!0,next:Ze,error:wf,complete:Ze};var bt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function G(e){return e}function bf(...e){return Bo(e)}function Bo(e){return e.length===0?G:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var T=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Mf(n)?n:new be(n,r,o);return Ct(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Oa(r),new r((o,i)=>{let s=new be({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[bt](){return this}pipe(...n){return Bo(n)(this)}toPromise(n){return n=Oa(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Oa(e){var t;return(t=e??ce.Promise)!==null&&t!==void 0?t:Promise}function _f(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}function Mf(e){return e&&e instanceof Qe||_f(e)&&Hn(e)}function Ho(e){return g(e?.lift)}function v(e){return t=>{if(Ho(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function y(e,t,n,r,o){return new $o(e,t,n,r,o)}var $o=class extends Qe{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Uo(){return v((e,t)=>{let n=null;e._refCount++;let r=y(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var zo=class extends T{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ho(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 L;let n=this.getSubject();t.add(this.source.subscribe(y(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=L.EMPTY)}return t}refCount(){return Uo()(this)}};var Fa=It(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Q=(()=>{class e extends T{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new zn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Fa}next(n){Ct(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ct(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ct(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ko:(this.currentObservers=null,i.push(n),new L(()=>{this.currentObservers=null,We(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new T;return n.source=this,n}}return e.create=(t,n)=>new zn(t,n),e})(),zn=class extends Q{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ko}};var tn=class extends Q{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var nn={now(){return(nn.delegate||Date).now()},delegate:void 0};var Gn=class extends Q{constructor(t=1/0,n=1/0,r=nn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;sRa(t)&&e()),t},clearImmediate(e){Ra(e)}};var{setImmediate:Tf,clearImmediate:xf}=ka,on={setImmediate(...e){let{delegate:t}=on;return(t?.setImmediate||Tf)(...e)},clearImmediate(e){let{delegate:t}=on;return(t?.clearImmediate||xf)(e)},delegate:void 0};var Wn=class extends _t{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=on.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(on.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var Mt=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Mt.now=nn.now;var St=class extends Mt{constructor(t,n=Mt.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Zn=class extends St{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Nf=new Zn(Wn);var Ke=new St(_t),Pa=Ke;var Je=new T(e=>e.complete());function Yn(e){return e&&g(e.schedule)}function Wo(e){return e[e.length-1]}function Qn(e){return g(Wo(e))?e.pop():void 0}function me(e){return Yn(Wo(e))?e.pop():void 0}function La(e,t){return typeof Wo(e)=="number"?e.pop():t}function Va(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function ja(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xe(e){return this instanceof Xe?(this.v=e,this):new Xe(e)}function Ba(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(D){return new Promise(function(O,_){i.push([f,D,O,_])>1||u(f,D)})},h&&(o[f]=h(o[f])))}function u(f,h){try{c(r[f](h))}catch(D){p(i[0][3],D)}}function c(f){f.value instanceof Xe?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function p(f,h){f(h),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Ha(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ja=="function"?ja(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var Tt=e=>e&&typeof e.length=="number"&&typeof e!="function";function Kn(e){return g(e?.then)}function Jn(e){return g(e[bt])}function Xn(e){return Symbol.asyncIterator&&g(e?.[Symbol.asyncIterator])}function er(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 Af(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var tr=Af();function nr(e){return g(e?.[tr])}function rr(e){return Ba(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Xe(n.read());if(o)return yield Xe(void 0);yield yield Xe(r)}}finally{n.releaseLock()}})}function or(e){return g(e?.getReader)}function x(e){if(e instanceof T)return e;if(e!=null){if(Jn(e))return Of(e);if(Tt(e))return Ff(e);if(Kn(e))return Rf(e);if(Xn(e))return $a(e);if(nr(e))return kf(e);if(or(e))return Pf(e)}throw er(e)}function Of(e){return new T(t=>{let n=e[bt]();if(g(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Ff(e){return new T(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,$n)})}function kf(e){return new T(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function $a(e){return new T(t=>{Lf(e,t).catch(n=>t.error(n))})}function Pf(e){return $a(rr(e))}function Lf(e,t){var n,r,o,i;return Va(this,void 0,void 0,function*(){try{for(n=Ha(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function K(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ir(e,t=0){return v((n,r)=>{n.subscribe(y(r,o=>K(r,e,()=>r.next(o),t),()=>K(r,e,()=>r.complete(),t),o=>K(r,e,()=>r.error(o),t)))})}function sr(e,t=0){return v((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ua(e,t){return x(e).pipe(sr(t),ir(t))}function za(e,t){return x(e).pipe(sr(t),ir(t))}function Ga(e,t){return new T(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function qa(e,t){return new T(n=>{let r;return K(n,t,()=>{r=e[tr](),K(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>g(r?.return)&&r.return()})}function ar(e,t){if(!e)throw new Error("Iterable cannot be null");return new T(n=>{K(n,t,()=>{let r=e[Symbol.asyncIterator]();K(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Wa(e,t){return ar(rr(e),t)}function Za(e,t){if(e!=null){if(Jn(e))return Ua(e,t);if(Tt(e))return Ga(e,t);if(Kn(e))return za(e,t);if(Xn(e))return ar(e,t);if(nr(e))return qa(e,t);if(or(e))return Wa(e,t)}throw er(e)}function ye(e,t){return t?Za(e,t):x(e)}function jf(...e){let t=me(e);return ye(e,t)}function Vf(e,t){let n=g(e)?e:()=>e,r=o=>o.error(n());return new T(t?o=>t.schedule(r,0,o):r)}function Bf(e){return!!e&&(e instanceof T||g(e.lift)&&g(e.subscribe))}var et=It(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ya(e){return e instanceof Date&&!isNaN(e)}function _e(e,t){return v((n,r)=>{let o=0;n.subscribe(y(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Hf}=Array;function $f(e,t){return Hf(t)?e(...t):e(t)}function xt(e){return _e(t=>$f(e,t))}var{isArray:Uf}=Array,{getPrototypeOf:zf,prototype:Gf,keys:qf}=Object;function ur(e){if(e.length===1){let t=e[0];if(Uf(t))return{args:t,keys:null};if(Wf(t)){let n=qf(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Wf(e){return e&&typeof e=="object"&&zf(e)===Gf}function cr(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Zf(...e){let t=me(e),n=Qn(e),{args:r,keys:o}=ur(e);if(r.length===0)return ye([],t);let i=new T(Yf(r,t,o?s=>cr(o,s):G));return n?i.pipe(xt(n)):i}function Yf(e,t,n=G){return r=>{Qa(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=ye(e[u],t),l=!1;c.subscribe(y(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Qa(e,t,n){e?K(n,e,t):t()}function Ka(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,p=()=>{d&&!u.length&&!c&&t.complete()},f=D=>c{i&&t.next(D),c++;let O=!1;x(n(D,l++)).subscribe(y(t,_=>{o?.(_),i?f(_):t.next(_)},()=>{O=!0},void 0,()=>{if(O)try{for(c--;u.length&&ch(_)):h(_)}p()}catch(_){t.error(_)}}))};return e.subscribe(y(t,f,()=>{d=!0,p()})),()=>{a?.()}}function le(e,t,n=1/0){return g(t)?le((r,o)=>_e((i,s)=>t(r,i,o,s))(x(e(r,o))),n):(typeof t=="number"&&(n=t),v((r,o)=>Ka(r,o,e,n)))}function sn(e=1/0){return le(G,e)}function Ja(){return sn(1)}function Nt(...e){return Ja()(ye(e,me(e)))}function Qf(e){return new T(t=>{x(e()).subscribe(t)})}function Kf(...e){let t=Qn(e),{args:n,keys:r}=ur(e),o=new T(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=p},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?cr(r,a):a),i.complete())}))}});return t?o.pipe(xt(t)):o}var Jf=["addListener","removeListener"],Xf=["addEventListener","removeEventListener"],ep=["on","off"];function Zo(e,t,n,r){if(g(n)&&(r=n,n=void 0),r)return Zo(e,t,n).pipe(xt(r));let[o,i]=rp(e)?Xf.map(s=>a=>e[s](t,a,n)):tp(e)?Jf.map(Xa(e,t)):np(e)?ep.map(Xa(e,t)):[];if(!o&&Tt(e))return le(s=>Zo(s,t,n))(x(e));if(!o)throw new TypeError("Invalid event target");return new T(s=>{let a=(...u)=>s.next(1i(a)})}function Xa(e,t){return n=>r=>e[n](t,r)}function tp(e){return g(e.addListener)&&g(e.removeListener)}function np(e){return g(e.on)&&g(e.off)}function rp(e){return g(e.addEventListener)&&g(e.removeEventListener)}function an(e=0,t,n=Pa){let r=-1;return t!=null&&(Yn(t)?n=t:r=t),new T(o=>{let i=Ya(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function op(...e){let t=me(e),n=La(e,1/0),r=e;return r.length?r.length===1?x(r[0]):sn(n)(ye(r,t)):Je}function tt(e,t){return v((n,r)=>{let o=0;n.subscribe(y(r,i=>e.call(t,i,o++)&&r.next(i)))})}function eu(e){return v((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let c=o;o=null,n.next(c)}s&&n.complete()},u=()=>{i=null,s&&n.complete()};t.subscribe(y(n,c=>{r=!0,o=c,i||x(e(c)).subscribe(i=y(n,a,u))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function ip(e,t=Ke){return eu(()=>an(e,t))}function tu(e){return v((t,n)=>{let r=null,o=!1,i;r=t.subscribe(y(n,void 0,void 0,s=>{i=x(e(s,tu(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function nu(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(y(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function sp(e,t){return g(t)?le(e,t,1):le(e,1)}function ru(e,t=Ke){return v((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function un(e){return v((t,n)=>{let r=!1;t.subscribe(y(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function At(e){return e<=0?()=>Je:v((t,n)=>{let r=0;t.subscribe(y(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ou(){return v((e,t)=>{e.subscribe(y(t,Ze))})}function Yo(e){return _e(()=>e)}function Qo(e,t){return t?n=>Nt(t.pipe(At(1),ou()),n.pipe(Qo(e))):le((n,r)=>x(e(n,r)).pipe(At(1),Yo(n)))}function ap(e,t=Ke){let n=an(e,t);return Qo(()=>n)}function up(e,t=G){return e=e??cp,v((n,r)=>{let o,i=!0;n.subscribe(y(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function cp(e,t){return e===t}function lr(e=lp){return v((t,n)=>{let r=!1;t.subscribe(y(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function lp(){return new et}function dp(e){return v((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function iu(e,t){let n=arguments.length>=2;return r=>r.pipe(e?tt((o,i)=>e(o,i,r)):G,At(1),n?un(t):lr(()=>new et))}function Ko(e){return e<=0?()=>Je:v((t,n)=>{let r=[];t.subscribe(y(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function fp(e,t){let n=arguments.length>=2;return r=>r.pipe(e?tt((o,i)=>e(o,i,r)):G,Ko(1),n?un(t):lr(()=>new et))}function pp(){return v((e,t)=>{let n,r=!1;e.subscribe(y(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function hp(e,t){return v(nu(e,t,arguments.length>=2,!0))}function Xo(e={}){let{connector:t=()=>new Q,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=u=void 0,l=d=!1},h=()=>{let D=s;f(),D?.unsubscribe()};return v((D,O)=>{c++,!d&&!l&&p();let _=u=u??t();O.add(()=>{c--,c===0&&!d&&!l&&(a=Jo(h,o))}),_.subscribe(O),!s&&c>0&&(s=new be({next:R=>_.next(R),error:R=>{d=!0,p(),a=Jo(f,n,R),_.error(R)},complete:()=>{l=!0,p(),a=Jo(f,r),_.complete()}}),x(D).subscribe(s))})(i)}}function Jo(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new be({next:()=>{r.unsubscribe(),e()}});return x(t(...n)).subscribe(r)}function gp(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,Xo({connector:()=>new Gn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function mp(e){return tt((t,n)=>e<=n)}function yp(...e){let t=me(e);return v((n,r)=>{(t?Nt(e,n,t):Nt(e,n)).subscribe(r)})}function su(e,t){return v((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(y(r,u=>{o?.unsubscribe();let c=0,l=i++;x(e(u,l)).subscribe(o=y(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function au(e){return v((t,n)=>{x(e).subscribe(y(n,()=>n.complete(),Ze)),!n.closed&&t.subscribe(n)})}function vp(e,t=!1){return v((n,r)=>{let o=0;n.subscribe(y(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function Dp(e,t,n){let r=g(e)||t||n?{next:e,error:t,complete:n}:e;return r?v((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(y(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):G}var Yu="https://g.co/ng/security#xss",S=class extends Error{code;constructor(t,n){super(Qu(t,n)),this.code=t}};function Qu(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Ku=Symbol("InputSignalNode#UNSET"),Ep=Y(Z({},Ro),{transformFn:void 0,applyValueToInputSignal(e,t){Vn(e,t)}});function Ju(e,t){let n=Object.create(Ep);n.value=e,n.transformFn=t?.transform;function r(){if(Pn(n),n.value===Ku)throw new S(-950,!1);return n.value}return r[B]=n,r}function wn(e){return{toString:e}.toString()}var dr="__parameters__";function Ip(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Xu(e,t,n){return wn(()=>{let r=Ip(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(dr)?u[dr]:Object.defineProperty(u,dr,{value:[]})[dr];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var _r=globalThis;function A(e){for(let t in e)if(e[t]===A)return t;throw Error("Could not find renamed property on target object.")}function wp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function X(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(X).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 n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function fi(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var Cp=A({__forward_ref__:A});function ec(e){return e.__forward_ref__=ec,e.toString=function(){return X(this())},e}function q(e){return tc(e)?e():e}function tc(e){return typeof e=="function"&&e.hasOwnProperty(Cp)&&e.__forward_ref__===ec}function F(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function nc(e){return{providers:e.providers||[],imports:e.imports||[]}}function to(e){return uu(e,rc)||uu(e,oc)}function HS(e){return to(e)!==null}function uu(e,t){return e.hasOwnProperty(t)?e[t]:null}function bp(e){let t=e&&(e[rc]||e[oc]);return t||null}function cu(e){return e&&(e.hasOwnProperty(lu)||e.hasOwnProperty(_p))?e[lu]:null}var rc=A({\u0275prov:A}),lu=A({\u0275inj:A}),oc=A({ngInjectableDef:A}),_p=A({ngInjectorDef:A}),N=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=F({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ic(e){return e&&!!e.\u0275providers}var Mp=A({\u0275cmp:A}),Sp=A({\u0275dir:A}),Tp=A({\u0275pipe:A}),xp=A({\u0275mod:A}),Mr=A({\u0275fac:A}),dn=A({__NG_ELEMENT_ID__:A}),du=A({__NG_ENV_ID__:A});function no(e){return typeof e=="string"?e:e==null?"":String(e)}function Np(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():no(e)}function Ap(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new S(-200,e)}function Cs(e,t){throw new S(-201,!1)}var M=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}(M||{}),pi;function sc(){return pi}function J(e){let t=pi;return pi=e,t}function ac(e,t,n){let r=to(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&M.Optional)return null;if(t!==void 0)return t;Cs(e,"Injector")}var Op={},fn=Op,hi="__NG_DI_FLAG__",Sr="ngTempTokenPath",Fp="ngTokenPath",Rp=/\n/gm,kp="\u0275",fu="__source",Pt;function Pp(){return Pt}function Fe(e){let t=Pt;return Pt=e,t}function Lp(e,t=M.Default){if(Pt===void 0)throw new S(-203,!1);return Pt===null?ac(e,void 0,t):Pt.get(e,t&M.Optional?null:void 0,t)}function te(e,t=M.Default){return(sc()||Lp)(q(e),t)}function w(e,t=M.Default){return te(e,ro(t))}function ro(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function gi(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):X(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Rp,` + `)}`}var Hp=uc(Xu("Optional"),8);var $p=uc(Xu("SkipSelf"),4);function rt(e,t){let n=e.hasOwnProperty(Mr);return n?e[Mr]:null}function Up(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?bs(n,t):t(n))}function cc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Tr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Gp(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function oo(e,t,n){let r=Cn(e,t);return r>=0?e[r|1]=n:(r=~r,qp(e,r,t,n)),r}function ei(e,t){let n=Cn(e,t);if(n>=0)return e[n|1]}function Cn(e,t){return Wp(e,t,1)}function Wp(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return bs(t,s=>{let a=s;mi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&mc(o,i),n}function mc(e,t){for(let n=0;n{t(i,r)})}}function mi(e,t,n,r){if(e=q(e),!e)return!1;let o=null,i=cu(e),s=!i&&Le(e);if(!i&&!s){let u=e.ngModule;if(i=cu(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)mi(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{bs(i.imports,l=>{mi(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&mc(c,t)}if(!a){let c=rt(o)||(()=>new o);t({provide:o,useFactory:c,deps:W},o),t({provide:dc,useValue:o,multi:!0},o),t({provide:xr,useValue:()=>te(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;_s(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function _s(e,t){for(let n of e)ic(n)&&(n=n.\u0275providers),Array.isArray(n)?_s(n,t):t(n)}var Kp=A({provide:String,useValue:A});function yc(e){return e!==null&&typeof e=="object"&&Kp in e}function Jp(e){return!!(e&&e.useExisting)}function Xp(e){return!!(e&&e.useFactory)}function Vt(e){return typeof e=="function"}function eh(e){return!!e.useClass}var vc=new N(""),vr={},th={},ti;function io(){return ti===void 0&&(ti=new Nr),ti}var je=class{},pn=class extends je{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,vi(t,s=>this.processProvider(s)),this.records.set(lc,Ot(void 0,this)),o.has("environment")&&this.records.set(je,Ot(void 0,this));let i=this.records.get(vc);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(dc,W,M.Self))}destroy(){cn(this),this._destroyed=!0;let t=b(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b(t)}}onDestroy(t){return cn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){cn(this);let n=Fe(this),r=J(void 0),o;try{return t()}finally{Fe(n),J(r)}}get(t,n=fn,r=M.Default){if(cn(this),t.hasOwnProperty(du))return t[du](this);r=ro(r);let o,i=Fe(this),s=J(void 0);try{if(!(r&M.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=sh(t)&&to(t);c&&this.injectableDefInScope(c)?u=Ot(yi(t),vr):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&M.Self?io():this.parent;return n=r&M.Optional&&n===fn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Sr]=a[Sr]||[]).unshift(X(t)),i)throw a;return Vp(a,t,"R3InjectorError",this.source)}else throw a}finally{J(s),Fe(i)}}resolveInjectorInitializers(){let t=b(null),n=Fe(this),r=J(void 0),o;try{let i=this.get(xr,W,M.Self);for(let s of i)s()}finally{Fe(n),J(r),b(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(X(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=q(t);let n=Vt(t)?t:q(t&&t.provide),r=rh(t);if(!Vt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Ot(void 0,vr,!0),o.factory=()=>gi(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=b(null);try{return n.value===vr&&(n.value=th,n.value=n.factory()),typeof n.value=="object"&&n.value&&ih(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=q(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function yi(e){let t=to(e),n=t!==null?t.factory:rt(e);if(n!==null)return n;if(e instanceof N)throw new S(204,!1);if(e instanceof Function)return nh(e);throw new S(204,!1)}function nh(e){if(e.length>0)throw new S(204,!1);let n=bp(e);return n!==null?()=>n.factory(e):()=>new e}function rh(e){if(yc(e))return Ot(void 0,e.useValue);{let t=Dc(e);return Ot(t,vr)}}function Dc(e,t,n){let r;if(Vt(e)){let o=q(e);return rt(o)||yi(o)}else if(yc(e))r=()=>q(e.useValue);else if(Xp(e))r=()=>e.useFactory(...gi(e.deps||[]));else if(Jp(e))r=()=>te(q(e.useExisting));else{let o=q(e&&(e.useClass||e.provide));if(oh(e))r=()=>new o(...gi(e.deps));else return rt(o)||yi(o)}return r}function cn(e){if(e.destroyed)throw new S(205,!1)}function Ot(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oh(e){return!!e.deps}function ih(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function sh(e){return typeof e=="function"||typeof e=="object"&&e instanceof N}function vi(e,t){for(let n of e)Array.isArray(n)?vi(n,t):n&&ic(n)?vi(n.\u0275providers,t):t(n)}function Ec(e,t){e instanceof pn&&cn(e);let n,r=Fe(e),o=J(void 0);try{return t()}finally{Fe(r),J(o)}}function Ic(){return sc()!==void 0||Pp()!=null}function so(e){if(!Ic())throw new S(-203,!1)}function ah(e){return typeof e=="function"}var xe=0,E=1,m=2,U=3,pe=4,ne=5,Bt=6,Ar=7,H=8,Ht=9,Me=10,k=11,hn=12,pu=13,Yt=14,ie=15,ot=16,Ft=17,Se=18,ao=19,wc=20,ke=21,Dr=22,it=23,oe=24,z=25,Cc=1;var st=7,Or=8,$t=9,$=10,Fr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Fr||{});function Pe(e){return Array.isArray(e)&&typeof e[Cc]=="object"}function Ne(e){return Array.isArray(e)&&e[Cc]===!0}function bc(e){return(e.flags&4)!==0}function uo(e){return e.componentOffset>-1}function Ms(e){return(e.flags&1)===1}function Ve(e){return!!e.template}function Di(e){return(e[m]&512)!==0}var Ei=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function _c(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Mc=(()=>{let e=()=>Sc;return e.ngInherit=!0,e})();function Sc(e){return e.type.prototype.ngOnChanges&&(e.setInput=ch),uh}function uh(){let e=xc(this),t=e?.current;if(t){let n=e.previous;if(n===jt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ch(e,t,n,r,o){let i=this.declaredInputs[r],s=xc(e)||lh(e,{previous:jt,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Ei(c&&c.currentValue,n,u===jt),_c(e,t,o,n)}var Tc="__ngSimpleChanges__";function xc(e){return e[Tc]||null}function lh(e,t){return e[Tc]=t}var hu=null;var ve=function(e,t,n){hu?.(e,t,n)},Nc="svg",dh="math";function Ee(e){for(;Array.isArray(e);)e=e[xe];return e}function Ac(e,t){return Ee(t[e])}function se(e,t){return Ee(t[e.index])}function Ss(e,t){return e.data[t]}function Oc(e,t){return e[t]}function Ue(e,t){let n=t[e];return Pe(n)?n:n[xe]}function fh(e){return(e[m]&4)===4}function Ts(e){return(e[m]&128)===128}function ph(e){return Ne(e[U])}function Ut(e,t){return t==null?null:e[t]}function Fc(e){e[Ft]=0}function xs(e){e[m]&1024||(e[m]|=1024,Ts(e)&&bn(e))}function hh(e,t){for(;e>0;)t=t[Yt],e--;return t}function co(e){return!!(e[m]&9216||e[oe]?.dirty)}function Ii(e){e[Me].changeDetectionScheduler?.notify(9),e[m]&64&&(e[m]|=1024),co(e)&&bn(e)}function bn(e){e[Me].changeDetectionScheduler?.notify(0);let t=at(e);for(;t!==null&&!(t[m]&8192||(t[m]|=8192,!Ts(t)));)t=at(t)}function Rc(e,t){if((e[m]&256)===256)throw new S(911,!1);e[ke]===null&&(e[ke]=[]),e[ke].push(t)}function gh(e,t){if(e[ke]===null)return;let n=e[ke].indexOf(t);n!==-1&&e[ke].splice(n,1)}function at(e){let t=e[U];return Ne(t)?t[U]:t}var C={lFrame:Gc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var wi=!1;function mh(){return C.lFrame.elementDepthCount}function yh(){C.lFrame.elementDepthCount++}function vh(){C.lFrame.elementDepthCount--}function kc(){return C.bindingsEnabled}function Pc(){return C.skipHydrationRootTNode!==null}function Dh(e){return C.skipHydrationRootTNode===e}function Eh(){C.skipHydrationRootTNode=null}function I(){return C.lFrame.lView}function P(){return C.lFrame.tView}function $S(e){return C.lFrame.contextLView=e,e[H]}function US(e){return C.lFrame.contextLView=null,e}function V(){let e=Lc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Lc(){return C.lFrame.currentTNode}function Ih(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _n(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t}function jc(){return C.lFrame.isParent}function Vc(){C.lFrame.isParent=!1}function wh(){return C.lFrame.contextLView}function Bc(){return wi}function Rr(e){let t=wi;return wi=e,t}function Hc(){let e=C.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ch(e){return C.lFrame.bindingIndex=e}function gt(){return C.lFrame.bindingIndex++}function $c(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function bh(){return C.lFrame.inI18n}function _h(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ci(t)}function Mh(){return C.lFrame.currentDirectiveIndex}function Ci(e){C.lFrame.currentDirectiveIndex=e}function Sh(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ns(){return C.lFrame.currentQueryIndex}function lo(e){C.lFrame.currentQueryIndex=e}function Th(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[ne]:null}function Uc(e,t,n){if(n&M.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&M.Host);)if(o=Th(i),o===null||(i=i[Yt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=C.lFrame=zc();return r.currentTNode=t,r.lView=e,!0}function As(e){let t=zc(),n=e[E];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zc(){let e=C.lFrame,t=e===null?null:e.child;return t===null?Gc(e):t}function Gc(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 qc(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Wc=qc;function Os(){let e=qc();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 xh(e){return(C.lFrame.contextLView=hh(e,C.lFrame.contextLView))[H]}function ze(){return C.lFrame.selectedIndex}function ut(e){C.lFrame.selectedIndex=e}function fo(){let e=C.lFrame;return Ss(e.tView,e.selectedIndex)}function zS(){C.lFrame.currentNamespace=Nc}function GS(){Nh()}function Nh(){C.lFrame.currentNamespace=null}function Ah(){return C.lFrame.currentNamespace}var Zc=!0;function Fs(){return Zc}function Rs(e){Zc=e}function Oh(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Sc(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ks(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Ft]+=65536),(a>14>16&&(e[m]&3)===t&&(e[m]+=16384,gu(a,i)):gu(a,i)}var Lt=-1,ct=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Rh(e){return e instanceof ct}function kh(e){return(e.flags&8)!==0}function Ph(e){return(e.flags&16)!==0}function bi(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function Pr(e,t){let n=jh(e),r=t;for(;n>0;)r=r[Yt],n--;return r}var Mi=!0;function Lr(e){let t=Mi;return Mi=e,t}var Vh=256,Jc=Vh-1,Xc=5,Bh=0,De={};function Hh(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(dn)&&(r=n[dn]),r==null&&(r=n[dn]=Bh++);let o=r&Jc,i=1<>Xc)]|=i}function jr(e,t){let n=el(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,oi(r.data,e),oi(t,null),oi(r.blueprint,null));let o=Ps(e,t),i=e.injectorIndex;if(Kc(o)){let s=kr(o),a=Pr(o,t),u=a[E].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function oi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function el(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ps(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=il(o),r===null)return Lt;if(n++,o=o[Yt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Lt}function Si(e,t,n){Hh(e,t,n)}function $h(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,p=o?a+l:c;for(let f=d;f=u&&h.type===n)return f}if(o){let f=s[u];if(f&&Ve(f)&&f.type===n)return u}return null}function lt(e,t,n,r){let o=e[n],i=t.data;if(Rh(o)){let s=o;s.resolving&&Ap(Np(i[n]));let a=Lr(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?J(s.injectImpl):null,l=Uc(e,r,M.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Oh(n,i[n],t)}finally{c!==null&&J(c),Lr(a),s.resolving=!1,Wc()}}return o}function zh(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(dn)?e[dn]:void 0;return typeof t=="number"?t>=0?t&Jc:Gh:t}function yu(e,t,n){let r=1<>Xc)]&r)}function vu(e,t){return!(e&M.Self)&&!(e&M.Host&&t)}var nt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return rl(this._tNode,this._lView,t,ro(r),n)}};function Gh(){return new nt(V(),I())}function qS(e){return wn(()=>{let t=e.prototype.constructor,n=t[Mr]||Ti(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Mr]||Ti(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ti(e){return tc(e)?()=>{let t=Ti(q(e));return t&&t()}:rt(e)}function qh(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[m]&2048&&!(s[m]&512);){let a=ol(i,s,n,r|M.Self,De);if(a!==De)return a;let u=i.parent;if(!u){let c=s[wc];if(c){let l=c.get(n,De,r);if(l!==De)return l}u=il(s),s=s[Yt]}i=u}return o}function il(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[ne]:null}function sl(e){return $h(V(),e)}function Du(e,t=null,n=null,r){let o=al(e,t,n,r);return o.resolveInjectorInitializers(),o}function al(e,t=null,n=null,r,o=new Set){let i=[n||W,Qp(e)];return r=r||(typeof e=="object"?void 0:X(e)),new pn(i,t||io(),r||null,o)}var Ie=class e{static THROW_IF_NOT_FOUND=fn;static NULL=new Nr;static create(t,n){if(Array.isArray(t))return Du({name:""},n,t,"");{let r=t.name??"";return Du({name:r},t.parent,t.providers,r)}}static \u0275prov=F({token:e,providedIn:"any",factory:()=>te(lc)});static __NG_ELEMENT_ID__=-1};var Eu=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>sl(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},Wh=new N("");Wh.__NG_ELEMENT_ID__=e=>{let t=V();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&M.Optional)return null;throw new S(204,!1)};var ul=!1,Mn=(()=>{class e{static __NG_ELEMENT_ID__=Zh;static __NG_ENV_ID__=n=>n}return e})(),Vr=class extends Mn{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return Rc(this._lView,t),()=>gh(this._lView,t)}};function Zh(){return new Vr(I())}var Be=class{},Ls=new N("",{providedIn:"root",factory:()=>!1});var cl=new N(""),js=new N(""),Sn=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new tn(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}return e})();var xi=class extends Q{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Ic()&&(this.destroyRef=w(Mn,{optional:!0})??void 0,this.pendingTasks=w(Sn,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof L&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Re=xi;function mn(...e){}function ll(e){let t,n;function r(){e=mn;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Iu(e){return queueMicrotask(()=>e()),()=>{e=mn}}var Vs="isAngularZone",Br=Vs+"_ID",Yh=0,ee=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Re(!1);onMicrotaskEmpty=new Re(!1);onStable=new Re(!1);onError=new Re(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=ul}=t;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Jh(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Vs)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Qh,mn,mn);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Qh={};function Bs(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 Kh(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ll(()=>{e.callbackScheduled=!1,Ni(e),e.isCheckStableRunning=!0,Bs(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ni(e)}function Jh(e){let t=()=>{Kh(e)},n=Yh++;e._inner=e._inner.fork({name:"angular",properties:{[Vs]:!0,[Br]:n,[Br+n]:!0},onInvokeTask:(r,o,i,s,a,u)=>{if(Xh(u))return r.invokeTask(i,s,a,u);try{return wu(e),r.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Cu(e)}},onInvoke:(r,o,i,s,a,u,c)=>{try{return wu(e),r.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!eg(u)&&t(),Cu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ni(e),Bs(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Ni(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function wu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Cu(e){e._nesting--,Bs(e)}var Hr=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Re;onMicrotaskEmpty=new Re;onStable=new Re;onError=new Re;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Xh(e){return dl(e,"__ignore_ng_zone__")}function eg(e){return dl(e,"__scheduler_tick__")}function dl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var dt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},tg=new N("",{providedIn:"root",factory:()=>{let e=w(ee),t=w(dt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function bu(e,t){return Ju(e,t)}function ng(e){return Ju(Ku,e)}var WS=(bu.required=ng,bu);function rg(){return Qt(V(),I())}function Qt(e,t){return new Ge(se(e,t))}var Ge=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=rg}return e})();function fl(e){return e instanceof Ge?e.nativeElement:e}function og(){return this._results[Symbol.iterator]()}var Ai=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Q}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=zp(t);(this._changesDetected=!Up(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=og};function pl(e){return(e.flags&128)===128}var hl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(hl||{}),gl=new Map,ig=0;function sg(){return ig++}function ag(e){gl.set(e[ao],e)}function Oi(e){gl.delete(e[ao])}var _u="__ngContext__";function ft(e,t){Pe(t)?(e[_u]=t[ao],ag(t)):e[_u]=t}function ml(e){return vl(e[hn])}function yl(e){return vl(e[pe])}function vl(e){for(;e!==null&&!Ne(e);)e=e[pe];return e}var Fi;function ZS(e){Fi=e}function ug(){if(Fi!==void 0)return Fi;if(typeof document<"u")return document;throw new S(210,!1)}var YS=new N("",{providedIn:"root",factory:()=>cg}),cg="ng",lg=new N(""),dg=new N("",{providedIn:"platform",factory:()=>"unknown"});var QS=new N(""),KS=new N("",{providedIn:"root",factory:()=>ug().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var fg="h",pg="b";var Dl=!1,hg=new N("",{providedIn:"root",factory:()=>Dl});var Hs=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Hs||{}),po=new N(""),Mu=new Set;function he(e){Mu.has(e)||(Mu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Rt=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Rt||{}),El=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}return e})(),gg=[Rt.EarlyRead,Rt.Write,Rt.MixedReadWrite,Rt.Read],mg=(()=>{class e{ngZone=w(ee);scheduler=w(Be);errorHandler=w(dt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){w(po,{optional:!0})}execute(){this.executing=!0;for(let n of gg)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>r.hooks[n](r.pipelinedValue),r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(7))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?.run(Hs.AFTER_NEXT_RENDER,n)??n()}static \u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ri=class{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i=null){this.impl=t,this.hooks=n,this.once=r,this.snapshot=i,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function yg(e,t){!t?.injector&&so(yg);let n=t?.injector??w(Ie);return he("NgAfterRender"),Il(e,n,t,!1)}function vg(e,t){!t?.injector&&so(vg);let n=t?.injector??w(Ie);return he("NgAfterNextRender"),Il(e,n,t,!0)}function Dg(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Il(e,t,n,r){let o=t.get(El);o.impl??=t.get(mg);let i=t.get(po,null,{optional:!0}),s=n?.phase??Rt.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(Mn):null,u=new Ri(o.impl,Dg(e,s),r,a,i?.snapshot(null));return o.impl.register(u),u}var Eg=()=>null;function $s(e,t,n=!1){return Eg(e,t,n)}var yn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(yn||{}),fr;function Ig(){if(fr===void 0&&(fr=null,_r.trustedTypes))try{fr=_r.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return fr}function ho(e){return Ig()?.createHTML(e)||e}var pr;function wg(){if(pr===void 0&&(pr=null,_r.trustedTypes))try{pr=_r.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return pr}function Su(e){return wg()?.createScriptURL(e)||e}var Te=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Yu})`}},ki=class extends Te{getTypeName(){return"HTML"}},Pi=class extends Te{getTypeName(){return"Style"}},Li=class extends Te{getTypeName(){return"Script"}},ji=class extends Te{getTypeName(){return"URL"}},Vi=class extends Te{getTypeName(){return"ResourceURL"}};function Tn(e){return e instanceof Te?e.changingThisBreaksApplicationSecurity:e}function wl(e,t){let n=Cg(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Yu})`)}return n===t}function Cg(e){return e instanceof Te&&e.getTypeName()||null}function JS(e){return new ki(e)}function XS(e){return new Pi(e)}function e0(e){return new Li(e)}function t0(e){return new ji(e)}function n0(e){return new Vi(e)}function bg(e){let t=new Hi(e);return _g()?new Bi(t):t}var Bi=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(ho(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Hi=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=ho(t),n}};function _g(){try{return!!new window.DOMParser().parseFromString(ho(""),"text/html")}catch{return!1}}var Mg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cl(e){return e=String(e),e.match(Mg)?e:"unsafe:"+e}function Ae(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function xn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var bl=Ae("area,br,col,hr,img,wbr"),_l=Ae("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ml=Ae("rp,rt"),Sg=xn(Ml,_l),Tg=xn(_l,Ae("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")),xg=xn(Ml,Ae("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")),Tu=xn(bl,Tg,xg,Sg),Sl=Ae("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ng=Ae("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"),Ag=Ae("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"),Og=xn(Sl,Ng,Ag),Fg=Ae("script,style,template"),$i=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Pg(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=kg(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=xu(t).toLowerCase();if(!Tu.hasOwnProperty(n))return this.sanitizedSomething=!0,!Fg.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=xu(t).toLowerCase();Tu.hasOwnProperty(n)&&!bl.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Nu(t))}};function Rg(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function kg(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Tl(t);return t}function Pg(e){let t=e.firstChild;if(t&&Rg(e,t))throw Tl(t);return t}function xu(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Tl(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Lg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,jg=/([^\#-~ |!])/g;function Nu(e){return e.replace(/&/g,"&").replace(Lg,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(jg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var hr;function r0(e,t){let n=null;try{hr=hr||bg(e);let r=t?String(t):"";n=hr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=hr.getInertBodyElement(r)}while(r!==i);let a=new $i().sanitizeChildren(Au(n)||n);return ho(a)}finally{if(n){let r=Au(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Au(e){return"content"in e&&Vg(e)?e.content:null}function Vg(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Us=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}(Us||{});function Bg(e){let t=xl();return t?t.sanitize(Us.URL,e)||"":wl(e,"URL")?Tn(e):Cl(no(e))}function Hg(e){let t=xl();if(t)return Su(t.sanitize(Us.RESOURCE_URL,e)||"");if(wl(e,"ResourceURL"))return Su(Tn(e));throw new S(904,!1)}function $g(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Hg:Bg}function o0(e,t,n){return $g(t,n)(e)}function xl(){let e=I();return e&&e[Me].sanitizer}function Nl(e){return e instanceof Function?e():e}var He=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(He||{}),vn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(vn||{}),Ug;function zs(e,t){return Ug(e,t)}function kt(e,t,n,r,o){if(r!=null){let i,s=!1;Ne(r)?i=r:Pe(r)&&(s=!0,r=r[xe]);let a=Ee(r);e===0&&n!==null?o==null?kl(t,n,a):$r(t,n,a,o||null,!0):e===1&&n!==null?$r(t,n,a,o||null,!0):e===2?nm(t,a,s):e===3&&t.destroyNode(a),i!=null&&om(t,e,i,n,o)}}function zg(e,t){return e.createText(t)}function Gg(e,t,n){e.setValue(t,n)}function Al(e,t,n){return e.createElement(t,n)}function qg(e,t){Ol(e,t),t[xe]=null,t[ne]=null}function Wg(e,t,n,r,o,i){r[xe]=o,r[ne]=t,mo(e,r,n,1,o,i)}function Ol(e,t){t[Me].changeDetectionScheduler?.notify(10),mo(e,t,t[k],2,null,null)}function Zg(e){let t=e[hn];if(!t)return ii(e[E],e);for(;t;){let n=null;if(Pe(t))n=t[hn];else{let r=t[$];r&&(n=r)}if(!n){for(;t&&!t[pe]&&t!==e;)Pe(t)&&ii(t[E],t),t=t[U];t===null&&(t=e),Pe(t)&&ii(t[E],t),n=t&&t[pe]}t=n}}function Yg(e,t,n,r){let o=$+r,i=n.length;r>0&&(n[o-1][pe]=t),r0&&(e[n-1][pe]=r[pe]);let i=Tr(e,$+t);qg(r[E],r);let s=i[Se];s!==null&&s.detachView(i[E]),r[U]=null,r[pe]=null,r[m]&=-129}return r}function go(e,t){if(!(t[m]&256)){let n=t[k];n.destroyNode&&mo(e,t,n,3,null,null),Zg(t)}}function ii(e,t){if(t[m]&256)return;let n=b(null);try{t[m]&=-129,t[m]|=256,t[oe]&&Et(t[oe]),Kg(e,t),Qg(e,t),t[E].type===1&&t[k].destroy();let r=t[ot];if(r!==null&&Ne(t[U])){r!==t[U]&&Gs(r,t);let o=t[Se];o!==null&&o.detachView(e)}Oi(t)}finally{b(n)}}function Qg(e,t){let n=e.cleanup,r=t[Ar];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Ar]=null);let o=t[ke];if(o!==null){t[ke]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===yn.None||i===yn.Emulated)return null}return se(r,n)}}function $r(e,t,n,r,o){e.insertBefore(t,n,r,o)}function kl(e,t,n){e.appendChild(t,n)}function Ou(e,t,n,r,o){r!==null?$r(e,t,n,r,o):kl(e,t,n)}function Pl(e,t){return e.parentNode(t)}function Xg(e,t){return e.nextSibling(t)}function Ll(e,t,n){return tm(e,t,n)}function em(e,t,n){return e.type&40?se(e,n):null}var tm=em,Fu;function qs(e,t,n,r){let o=Rl(e,r,t),i=t[k],s=r.parent||t[ne],a=Ll(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;u-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(de(r))return!1;s=!0}}}}return de(r)||s}function de(e){return(e&1)===0}function dm(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!de(s)&&(t+=Ru(i,o),o=""),r=s,i=i||!de(r);n++}return o!==""&&(t+=Ru(i,o)),t}function ym(e){return e.map(mm).join(",")}function vm(e){let t=[],n=[],r=1,o=2;for(;rz&&zl(e,t,z,!1),ve(s?2:0,o),n(r,o)}finally{ut(i),ve(s?3:1,o)}}function Zl(e,t,n){if(bc(t)){let r=b(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function _m(e,t,n,r){let o=od(t);o.push(n),e.firstCreatePass&&id(e).push(r,o.length-1)}function Mm(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Pc()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,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 ku(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=He.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Pu(r,n,c,a,u):Pu(r,n,c,a)}return r}function Pu(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function Sm(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Om(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;uo(n)&&Vm(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||jr(n,t),ft(r,t);let s=n.initialInputs;for(let a=o;a{bn(e.lView)},consumerOnSignalRead(){this.lView[oe]=this}});function Xm(e){let t=e[oe]??Object.create(ey);return t.lView=e,t}var ey=Y(Z({},qe),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=at(e.lView);for(;t&&!ld(t[E]);)t=at(t);t&&xs(t)},consumerOnSignalRead(){this.lView[oe]=this}});function ld(e){return e.type!==2}function dd(e){if(e[it]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[it])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[m]&8192)}}var ty=100;function fd(e,t=!0,n=0){let o=e[Me].rendererFactory,i=!1;i||o.begin?.();try{ny(e,n)}catch(s){throw t&&sd(e,s),s}finally{i||o.end?.()}}function ny(e,t){let n=Bc();try{Rr(!0),qi(e,t);let r=0;for(;co(e);){if(r===ty)throw new S(103,!1);r++,qi(e,1)}}finally{Rr(n)}}function ry(e,t,n,r){let o=t[m];if((o&256)===256)return;let i=!1,s=!1;As(t);let a=!0,u=null,c=null;i||(ld(e)?(c=Ym(t),u=Dt(c)):ha()===null?(a=!1,c=Xm(t),u=Dt(c)):t[oe]&&(Et(t[oe]),t[oe]=null));try{Fc(t),Ch(e.bindingStartIndex),n!==null&&Wl(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Er(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Ir(t,f,0,null),ni(t,0)}if(s||oy(t),dd(t),pd(t,0),e.contentQueries!==null&&rd(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Er(t,f)}else{let f=e.contentHooks;f!==null&&Ir(t,f,1),ni(t,1)}Dm(e,t);let d=e.components;d!==null&&gd(t,d,0);let p=e.viewQuery;if(p!==null&&Gi(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Er(t,f)}else{let f=e.viewHooks;f!==null&&Ir(t,f,2),ni(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Dr]){for(let f of t[Dr])f();t[Dr]=null}i||(t[m]&=-73)}catch(l){throw i||bn(t),l}finally{c!==null&&(Xt(c,u),a&&Km(c)),Os()}}function pd(e,t){for(let n=ml(e);n!==null;n=yl(n))for(let r=$;r-1&&(Dn(t,r),Tr(n,r))}this._attachedToViewContainer=!1}go(this._lView[E],this._lView)}onDestroy(t){Rc(this._lView,t)}markForCheck(){Xs(this._cdRefInjectingView||this._lView,4)}markForRefresh(){xs(this._cdRefInjectingView||this._lView)}detach(){this._lView[m]&=-129}reattach(){Ii(this._lView),this._lView[m]|=128}detectChanges(){this._lView[m]|=1024,fd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Di(this._lView),n=this._lView[ot];n!==null&&!t&&Gs(n,this._lView),Ol(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=Di(this._lView),r=this._lView[ot];r!==null&&!n&&Fl(r,this._lView),Ii(this._lView)}},En=(()=>{class e{static __NG_ELEMENT_ID__=uy}return e})(),sy=En,ay=class extends sy{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=An(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new pt(o)}};function uy(){return Do(V(),I())}function Do(e,t){return e.type&4?new ay(t,e,Qt(e,t)):null}var u0=new RegExp(`^(\\d+)*(${pg}|${fg})*(.*)`);var cy=()=>null;function Gt(e,t){return cy(e,t)}var Wi=class{},zr=class{},Zi=class{resolveComponentFactory(t){throw Error(`No component factory found for ${X(t)}.`)}},qt=class{static NULL=new Zi},Gr=class{},Eo=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>ly()}return e})();function ly(){let e=I(),t=V(),n=Ue(t.index,e);return(Pe(n)?n:e)[k]}var dy=(()=>{class e{static \u0275prov=F({token:e,providedIn:"root",factory:()=>null})}return e})();function Yi(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Bl(e,n,i.join(" "))}}function vy(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static __NG_ELEMENT_ID__=Ey}return e})();function Ey(){let e=V();return yd(e,I())}var Iy=Fn,md=class extends Iy{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Qt(this._hostTNode,this._hostLView)}get injector(){return new nt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ps(this._hostTNode,this._hostLView);if(Kc(t)){let n=Pr(t,this._hostLView),r=kr(t),o=n[E].data[r+8];return new nt(o,n)}else return new nt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ju(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-$}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Gt(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,zt(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!ah(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let u=s?t:new Wt(Le(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let D=(s?c:this.parentInjector).get(je,null);D&&(i=D)}let l=Le(u.componentType??{}),d=Gt(this._lContainer,l?.id??null),p=d?.firstChild??null,f=u.create(c,o,p,i);return this.insertImpl(f.hostView,a,zt(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(ph(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[U],c=new md(u,u[ne],u[U]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return On(s,o,i,r),t.attachToViewContainerRef(),cc(si(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ju(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Dn(this._lContainer,n);r&&(Tr(si(this._lContainer),n),go(r[E],r))}detach(t){let n=this._adjustIndex(t,-1),r=Dn(this._lContainer,n);return r&&Tr(si(this._lContainer),n)!=null?new pt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ju(e){return e[Or]}function si(e){return e[Or]||(e[Or]=[])}function yd(e,t){let n,r=t[e.index];return Ne(r)?n=r:(n=nd(r,t,null,e),t[e.index]=n,vo(t,n)),Cy(n,t,e,r),new md(n,e,t)}function wy(e,t){let n=e[k],r=n.createComment(""),o=se(t,e),i=Pl(n,o);return $r(n,i,r,Xg(n,o),!1),r}var Cy=My,by=()=>!1;function _y(e,t,n){return by(e,t,n)}function My(e,t,n,r){if(e[st])return;let o;n.type&8?o=Ee(r):o=wy(t,n),e[st]=o}var Ki=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ji=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=$;dt.trim())}function Id(e,t,n){e.queries===null&&(e.queries=new Xi),e.queries.track(new es(t,n))}function Fy(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function ta(e,t){return e.queries.getByIndex(t)}function wd(e,t){let n=e[E],r=ta(n,t);return r.crossesNgTemplate?ts(n,e,t,[]):vd(n,e,r,t)}function Ry(e){return typeof e=="function"&&e[B]!==void 0}function ky(e,t){he("NgSignals");let n=ba(e),r=n[B];return t?.equal&&(r.equal=t.equal),n.set=o=>Vn(r,o),n.update=o=>_a(r,o),n.asReadonly=Py.bind(n),n}function Py(){let e=this[B];if(e.readonlyFn===void 0){let t=()=>this();t[B]=e,e.readonlyFn=t}return e.readonlyFn}function Cd(e){return Ry(e)&&typeof e.set=="function"}function bd(e,t,n){let r,o=Fo(()=>{r._dirtyCounter();let i=By(r,e);if(t&&i===void 0)throw new S(-951,!1);return i});return r=o[B],r._dirtyCounter=ky(0),r._flatValue=void 0,o}function Ly(e){return bd(!0,!1,e)}function jy(e){return bd(!0,!0,e)}function Vy(e,t){let n=e[B];n._lView=I(),n._queryIndex=t,n._queryList=ea(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function By(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[m]&4)return t?void 0:W;let o=ea(n,r),i=wd(n,r);return o.reset(i,fl),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Vu(e,t){return Ly(t)}function Hy(e,t){return jy(t)}var l0=(Vu.required=Hy,Vu);var $e=class{},ns=class{};var rs=class extends $e{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new qr(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=fc(t);this._bootstrapComponents=Nl(i.bootstrap),this._r3Injector=al(t,n,[{provide:$e,useValue:this},{provide:qt,useValue:this.componentFactoryResolver},...r],X(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},os=class extends ns{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new rs(this.moduleType,t,[])}};var Zr=class extends $e{injector;componentFactoryResolver=new qr(this);instance=null;constructor(t){super();let n=new pn([...t.providers,{provide:$e,useValue:this},{provide:qt,useValue:this.componentFactoryResolver}],t.parent||io(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function $y(e,t,n=null){return new Zr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Uy=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=gc(!1,n.type),o=r.length>0?$y([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=F({token:e,providedIn:"environment",factory:()=>new e(te(je))})}return e})();function d0(e){return wn(()=>{let t=Sd(e),n=Y(Z({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===hl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Uy).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||yn.Emulated,styles:e.styles||W,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&he("NgStandalone"),Td(n);let r=e.dependencies;return n.directiveDefs=Hu(r,!1),n.pipeDefs=Hu(r,!0),n.id=qy(n),n})}function zy(e){return Le(e)||pc(e)}function Gy(e){return e!==null}function _d(e){return wn(()=>({type:e.type,bootstrap:e.bootstrap||W,declarations:e.declarations||W,imports:e.imports||W,exports:e.exports||W,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Bu(e,t){if(e==null)return jt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=He.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==He.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Io(e){return wn(()=>{let t=Sd(e);return Td(t),t})}function Md(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Sd(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||jt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||W,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Bu(e.inputs,t),outputs:Bu(e.outputs),debugInfo:null}}function Td(e){e.features?.forEach(t=>t(e))}function Hu(e,t){if(!e)return null;let n=t?hc:zy;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Gy)}function qy(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Wy(e){return Object.getPrototypeOf(e.prototype).constructor}function Zy(e){let t=Wy(e.type),n=!0,r=[e];for(;t;){let o;if(Ve(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new S(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=gr(e.inputs),s.inputTransforms=gr(e.inputTransforms),s.declaredInputs=gr(e.declaredInputs),s.outputs=gr(e.outputs);let a=o.hostBindings;a&&Xy(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&Ky(e,u),c&&Jy(e,c),Yy(e,o),wp(e.outputs,o.outputs),Ve(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=gn(o.hostAttrs,n=gn(n,o.hostAttrs))}}function gr(e){return e===jt?{}:e===W?[]:e}function Ky(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Jy(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Xy(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function ev(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}function xd(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Nd(e,t,n){return e[t]=n}function tv(e,t){return e[t]}function we(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function nv(e){return(e.flags&32)===32}function rv(e,t,n,r,o,i,s,a,u){let c=t.consts,l=Nn(t,e,4,s||null,a||null);Jl(t,n,l,Ut(c,u)),ks(t,l);let d=l.tView=Ys(2,l,r,o,i,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 Yr(e,t,n,r,o,i,s,a,u,c){let l=n+z,d=t.firstCreatePass?rv(l,t,e,r,o,i,s,a,u):t.data[l];_n(d,!1);let p=iv(t,e,d,n);Fs()&&qs(t,e,p,d),ft(p,e);let f=nd(p,e,p,d);return e[l]=f,vo(e,f),_y(f,d,e),Ms(d)&&Yl(t,e,d),u!=null&&Ql(e,d,c),d}function ov(e,t,n,r,o,i,s,a){let u=I(),c=P(),l=Ut(c.consts,i);return Yr(u,c,e,t,n,r,o,l,s,a),ov}var iv=sv;function sv(e,t,n,r){return Rs(!0),t[k].createComment("")}var f0=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var av=new N("");function wo(e){return!!e&&typeof e.then=="function"}function na(e){return!!e&&typeof e.subscribe=="function"}var uv=new N("");var Ad=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=w(uv,{optional:!0})??[];injector=w(Ie);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ec(this.injector,o);if(wo(i))n.push(i);else if(na(i)){let s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Od=(()=>{class e{static \u0275prov=F({token:e,providedIn:"root",factory:()=>new Qr})}return e})(),Qr=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},cv=new N("");function lv(){Ca(()=>{throw new S(600,!1)})}function dv(e){return e.isBoundToModule}var fv=10;function pv(e,t,n){try{let r=n();return wo(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Co=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=w(tg);afterRenderManager=w(El);zonelessEnabled=w(Ls);rootEffectScheduler=w(Od);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Q;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=w(Sn).hasPendingTasks.pipe(_e(n=>!n));constructor(){w(po,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=w(je);get injector(){return this._injector}bootstrap(n,r){let o=n instanceof zr;if(!this._injector.get(Ad).done){let p=!o&&Zp(n),f=!1;throw new S(405,f)}let s;o?s=n:s=this._injector.get(qt).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=dv(s)?void 0:this._injector.get($e),u=r||s.selector,c=s.create(Ie.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(av,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Cr(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run(Hs.CHANGE_DETECTION,this._tick);return}if(this._runningTick)throw new S(101,!1);let n=b(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,b(n),this.afterTick.next()}};synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Gr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++co(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Cr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(cv,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Cr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Cr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function hv(e,t,n,r){if(!n&&!co(e))return;fd(e,t,n&&!r?0:1)}function gv(e,t,n,r){let o=I(),i=gt();if(we(o,i,t)){let s=P(),a=fo();Bm(a,o,e,t,n,r)}return gv}function Fd(e,t,n,r){return we(e,gt(),n)?t+no(n)+r:ge}function mr(e,t){return e<<17|t<<2}function ht(e){return e>>17&32767}function mv(e){return(e&2)==2}function yv(e,t){return e&131071|t<<17}function is(e){return e|2}function Zt(e){return(e&131068)>>2}function ai(e,t){return e&-131069|t<<2}function vv(e){return(e&1)===1}function ss(e){return e|1}function Dv(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ht(s),u=Zt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Cn(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let p=ht(e[a+1]);e[r+1]=mr(p,a),p!==0&&(e[p+1]=ai(e[p+1],r)),e[a+1]=yv(e[a+1],r)}else e[r+1]=mr(a,0),a!==0&&(e[a+1]=ai(e[a+1],r)),a=r;else e[r+1]=mr(u,0),a===0?a=r:e[u+1]=ai(e[u+1],r),u=r;c&&(e[r+1]=is(e[r+1])),$u(e,l,r,!0),$u(e,l,r,!1),Ev(t,l,e,r,i),s=mr(a,u),i?t.classBindings=s:t.styleBindings=s}function Ev(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Cn(i,t)>=0&&(n[r+1]=ss(n[r+1]))}function $u(e,t,n,r){let o=e[n+1],i=t===null,s=r?ht(o):Zt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];Iv(u,t)&&(a=!0,e[s+1]=r?ss(c):is(c)),s=r?ht(c):Zt(c)}a&&(e[n+1]=r?is(o):ss(o))}function Iv(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Cn(e,t)>=0:!1}var fe={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wv(e){return e.substring(fe.key,fe.keyEnd)}function Cv(e){return bv(e),Rd(e,kd(e,0,fe.textEnd))}function Rd(e,t){let n=fe.textEnd;return n===t?-1:(t=fe.keyEnd=_v(e,fe.key=t,n),kd(e,t,n))}function bv(e){fe.key=0,fe.keyEnd=0,fe.value=0,fe.valueEnd=0,fe.textEnd=e.length}function kd(e,t,n){for(;t32;)t++;return t}function Mv(e,t,n){let r=I(),o=gt();if(we(r,o,t)){let i=P(),s=fo();Qs(i,s,r,e,t,r[k],n,!1)}return Mv}function as(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Ks(e,n,i[s],s,r)}function Pd(e,t,n){return jd(e,t,n,!1),Pd}function Sv(e,t){return jd(e,t,null,!0),Sv}function p0(e){Vd(Fv,Ld,e,!0)}function Ld(e,t){for(let n=Cv(t);n>=0;n=Rd(t,n))oo(e,wv(t),!0)}function jd(e,t,n,r){let o=I(),i=P(),s=$c(2);if(i.firstUpdatePass&&Hd(i,e,s,r),t!==ge&&we(o,s,t)){let a=i.data[ze()];$d(i,a,o,o[k],e,o[s+1]=kv(t,n),r,s)}}function Vd(e,t,n,r){let o=P(),i=$c(2);o.firstUpdatePass&&Hd(o,null,i,r);let s=I();if(n!==ge&&we(s,i,n)){let a=o.data[ze()];if(Ud(a,r)&&!Bd(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=fi(u,n||"")),as(o,a,s,n,r)}else Rv(o,a,s,s[k],s[i+1],s[i+1]=Ov(e,t,n),r,i)}}function Bd(e,t){return t>=e.expandoStartIndex}function Hd(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[ze()],s=Bd(e,n);Ud(i,r)&&t===null&&!s&&(t=!1),t=Tv(o,i,t,r),Dv(o,i,t,n,s,r)}}function Tv(e,t,n,r){let o=Sh(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ui(null,e,t,n,r),n=In(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ui(o,e,t,n,r),i===null){let u=xv(e,t,r);u!==void 0&&Array.isArray(u)&&(u=ui(null,e,t,u[1],r),u=In(u,t.attrs,r),Nv(e,t,r,u))}else i=Av(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function xv(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Zt(r)!==0)return e[ht(r)]}function Nv(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ht(o)]=r}function Av(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,p=n[o+1];p===ge&&(p=d?W:void 0);let f=d?ei(p,r):l===r?p:void 0;if(c&&!Kr(f)&&(f=ei(u,r)),Kr(f)&&(a=f,s))return a;let h=e[o+1];o=s?ht(h):Zt(h)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=ei(u,r))}return a}function Kr(e){return e!==void 0}function kv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=X(Tn(e)))),e}function Ud(e,t){return(e.flags&(t?8:16))!==0}function h0(e,t,n){let r=I(),o=Fd(r,e,t,n);Vd(oo,Ld,o,!0)}var us=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function ci(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Pv(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=ci(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let p=e.at(s),f=t[u],h=ci(s,p,u,f,n);if(h!==0){h<0&&e.updateValue(s,f),s--,u--;continue}let D=n(i,c),O=n(s,p),_=n(i,l);if(Object.is(_,O)){let R=n(u,f);Object.is(R,D)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new Jr,o??=Gu(e,i,s,n),cs(e,r,i,_))e.updateValue(i,l),i++,s++;else if(o.has(_))r.set(D,e.detach(i)),s--;else{let R=e.create(i,t[i]);e.attach(i,R),i++,s++}}for(;i<=u;)zu(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,p=ci(i,l,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new Jr,o??=Gu(e,i,s,n);let f=n(i,d);if(cs(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let h=n(i,l);r.set(h,e.detach(i)),s--}}}for(;!c.done;)zu(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function cs(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function zu(e,t,n,r,o){if(cs(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Gu(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Jr=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function g0(e,t){he("NgControlFlow");let n=I(),r=gt(),o=n[r]!==ge?n[r]:-1,i=o!==-1?Xr(n,z+o):void 0,s=0;if(we(n,r,e)){let a=b(null);try{if(i!==void 0&&ud(i,s),e!==-1){let u=z+e,c=Xr(n,u),l=ps(n[E],u),d=Gt(c,l.tView.ssrId),p=An(n,l,t,{dehydratedView:d});On(c,p,s,zt(l,d))}}finally{b(a)}}else if(i!==void 0){let a=ad(i,s);a!==void 0&&(a[H]=t)}}var ls=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-$}};function m0(e){return e}function y0(e,t){return t}var ds=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function v0(e,t,n,r,o,i,s,a,u,c,l,d,p){he("NgControlFlow");let f=I(),h=P(),D=u!==void 0,O=I(),_=a?s.bind(O[ie][H]):s,R=new ds(D,_);O[z+e]=R,Yr(f,h,e+1,t,n,r,o,Ut(h.consts,i)),D&&Yr(f,h,e+2,u,c,l,d,Ut(h.consts,p))}var fs=class extends us{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-$}at(t){return this.getLView(t)[H].$implicit}attach(t,n){let r=n[Bt];this.needsIndexUpdate||=t!==this.length,On(this.lContainer,n,t,zt(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Lv(this.lContainer,t)}create(t,n){let r=Gt(this.lContainer,this.templateTNode.tView.ssrId),o=An(this.hostLView,this.templateTNode,new ls(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){go(t[E],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[H].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Rs(!0),Al(r,o,Ah()));function E0(){return I()}function $v(e,t,n){let r=I(),o=gt();if(we(r,o,t)){let i=P(),s=fo();Qs(i,s,r,e,t,r[k],n,!0)}return $v}var eo="en-US";var Uv=eo;function zv(e){typeof e=="string"&&(Uv=e.toLowerCase().replace(/_/g,"-"))}var Gv=(e,t,n)=>{};function qv(e,t,n,r){let o=I(),i=P(),s=V();return qd(i,o,o[k],s,e,t,r),qv}function Wv(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function qd(e,t,n,r,o,i,s){let a=Ms(r),c=e.firstCreatePass&&id(e),l=t[H],d=od(t),p=!0;if(r.type&3||s){let D=se(r,t),O=s?s(D):D,_=d.length,R=s?ue=>s(Ee(ue[r.index])):r.index,Ce=null;if(!s&&a&&(Ce=Wv(e,t,o,r.index)),Ce!==null){let ue=Ce.__ngLastListenerFn__||Ce;ue.__ngNextListenerFn__=i,Ce.__ngLastListenerFn__=i,p=!1}else{i=Wu(r,t,l,i),Gv(D,o,i);let ue=n.listen(O,o,i);d.push(i,ue),c&&c.push(o,R,_,_+1)}}else i=Wu(r,t,l,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let D=h.length;if(D)for(let O=0;O-1?Ue(e.index,t):t;Xs(s,5);let a=qu(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=qu(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function I0(e=1){return xh(e)}function Zv(e,t){let n=null,r=fm(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function N0(e){let t=wh();return Oc(t,z+e)}function A0(e,t=""){let n=I(),r=P(),o=e+z,i=r.firstCreatePass?Nn(r,o,1,t,null):r.data[o],s=Kv(r,n,i,t,e);n[o]=s,Fs()&&qs(r,n,s,i),_n(i,!1)}var Kv=(e,t,n,r,o)=>(Rs(!0),zg(t[k],r));function Jv(e){return Wd("",e,""),Jv}function Wd(e,t,n){let r=I(),o=Fd(r,e,t,n);return o!==ge&&zm(r,ze(),o),Wd}function Xv(e,t,n){Cd(t)&&(t=t());let r=I(),o=gt();if(we(r,o,t)){let i=P(),s=fo();Qs(i,s,r,e,t,r[k],n,!1)}return Xv}function O0(e,t){let n=Cd(e);return n&&e.set(t),n}function eD(e,t){let n=I(),r=P(),o=V();return qd(r,n,n[k],o,e,t),eD}function tD(e,t,n){let r=P();if(r.firstCreatePass){let o=Ve(e);hs(n,r.data,r.blueprint,o,!0),hs(t,r.data,r.blueprint,o,!1)}}function hs(e,t,n,r,o){if(e=q(e),Array.isArray(e))for(let i=0;i>20;if(Vt(e)||!e.multi){let f=new ct(c,o,ae),h=di(u,t,o?l:l+p,d);h===-1?(Si(jr(a,s),i,u),li(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=di(u,t,l+p,d),h=di(u,t,l,l+p),D=f>=0&&n[f],O=h>=0&&n[h];if(o&&!O||!o&&!D){Si(jr(a,s),i,u);let _=oD(o?rD:nD,n.length,o,r,c);!o&&O&&(n[h].providerFactory=_),li(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(_),s.push(_)}else{let _=Zd(n[o?h:f],c,!o&&r);li(i,e,f>-1?f:h,_)}!o&&r&&O&&n[h].componentProviders++}}}function li(e,t,n,r){let o=Vt(t),i=eh(t);if(o||i){let u=(i?q(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function Zd(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function di(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>tD(r,o?o(e):e,t)}}function R0(e,t,n){let r=Hc()+e,o=I();return o[r]===ge?Nd(o,r,n?t.call(n):t()):tv(o,r)}function iD(e,t){let n=e[t];return n===ge?void 0:n}function sD(e,t,n,r,o,i){let s=t+n;return we(e,s,o)?Nd(e,s+1,i?r.call(i,o):r(o)):iD(e,s+1)}function k0(e,t){let n=P(),r,o=e+z;n.firstCreatePass?(r=aD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=rt(r.type,!0)),s,a=J(ae);try{let u=Lr(!1),c=i();return Lr(u),Qv(n,I(),o,c),c}finally{J(a)}}function aD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function P0(e,t,n){let r=e+z,o=I(),i=Oc(o,r);return uD(o,r)?sD(o,Hc(),t,i.transform,n,i):i.transform(n)}function uD(e,t){return e[E].data[t].pure}function L0(e,t){return Do(e,t)}var ms=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},j0=(()=>{class e{compileModuleSync(n){return new os(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=fc(n),i=Nl(o.declarations).reduce((s,a)=>{let u=Le(a);return u&&s.push(new Wt(u)),s},[]);return new ms(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var cD=(()=>{class e{zone=w(ee);changeDetectionScheduler=w(Be);applicationRef=w(Co);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function lD({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ee(Y(Z({},dD()),{scheduleInRootZone:n})),[{provide:ee,useFactory:e},{provide:xr,multi:!0,useFactory:()=>{let r=w(cD,{optional:!0});return()=>r.initialize()}},{provide:xr,multi:!0,useFactory:()=>{let r=w(fD);return()=>{r.initialize()}}},t===!0?{provide:cl,useValue:!0}:[],{provide:js,useValue:n??ul}]}function dD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var fD=(()=>{class e{subscription=new L;initialized=!1;zone=w(ee);pendingTasks=w(Sn);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(()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ee.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Yd=(()=>{class e{appRef=w(Co);taskService=w(Sn);ngZone=w(ee);zonelessEnabled=w(Ls);tracing=w(po,{optional:!0});disableScheduling=w(cl,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new L;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Br):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(js,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Hr||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Iu:ll;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Br+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Iu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function V0(){return he("NgZoneless"),Yp([{provide:Be,useExisting:Yd},{provide:ee,useClass:Hr},{provide:Ls,useValue:!0},{provide:js,useValue:!1},[]])}function pD(){return typeof $localize<"u"&&$localize.locale||eo}var ra=new N("",{providedIn:"root",factory:()=>w(ra,M.Optional|M.SkipSelf)||pD()});var ys=new N("");function yr(e){return!e.moduleRef}function hD(e){let t=yr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ee);return n.run(()=>{yr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(dt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),yr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(ys);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ys);s.add(i),e.moduleRef.onDestroy(()=>{Cr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return pv(r,n,()=>{let i=t.get(Ad);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(ra,eo);if(zv(s||eo),yr(e)){let a=t.get(Co);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return gD(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function gD(e,t){let n=e.injector.get(Co);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new S(-403,!1);t.push(e)}var br=null;function mD(e=[],t){return Ie.create({name:t,providers:[{provide:vc,useValue:"platform"},{provide:ys,useValue:new Set([()=>br=null])},...e]})}function yD(e=[]){if(br)return br;let t=mD(e);return br=t,lv(),vD(t),t}function vD(e){let t=e.get(lg,null);Ec(e,()=>{t?.forEach(n=>n())})}var bo=(()=>{class e{static __NG_ELEMENT_ID__=DD}return e})();function DD(e){return ED(V(),I(),(e&16)===16)}function ED(e,t,n){if(uo(e)&&!n){let r=Ue(e.index,t);return new pt(r,r)}else if(e.type&175){let r=t[ie];return new pt(r,t)}return null}var vs=class{constructor(){}supports(t){return t instanceof Map||xd(t)}create(){return new Ds}},Ds=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||xd(t)))throw new S(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new Es(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},Es=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}};function Zu(){return new oa([new vs])}var oa=(()=>{class e{static \u0275prov=F({token:e,providedIn:"root",factory:Zu});factories;constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Zu()),deps:[[e,new $p,new Hp]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new S(901,!1)}}return e})();function B0(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=yD(r),i=[lD({}),{provide:Be,useExisting:Yd},...n||[]],s=new Zr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return hD({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function ID(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function wD(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function H0(e,t){he("NgSignals");let n=Fo(e);return t?.equal&&(n[B].equal=t.equal),n}function ia(e){let t=b(null);try{return e()}finally{b(t)}}var Qd=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=CD}return e})();function CD(){return new Qd(I(),V())}var bD=!1,_D=(()=>{class e extends Qr{pendingTasks=w(Sn);taskId=null;schedule(n){super.schedule(n),this.taskId===null&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{this.taskId!==null&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}return e})(),Is=class{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.zone=r,this.injector=i,this.watcher=Ma(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(dt,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function MD(){}function SD(e,t){he("NgSignals"),!t?.injector&&so(MD);let n=t?.injector??w(Ie),r=t?.manualCleanup!==!0?n.get(Mn):null,o=new Is(n.get(_D),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(bo,null,{optional:!0});return!i||!(i._lView[m]&8)?o.watcher.notify():(i._lView[Dr]??=[]).push(o.watcher.notify),o}var TD=bD;var ws=class{[B];constructor(t){this[B]=t}destroy(){this[B].destroy()}};function xD(e,t){if(TD)return SD(e,t);he("NgSignals"),!t?.injector&&so(xD);let n=t?.injector??w(Ie),r=t?.manualCleanup!==!0?n.get(Mn):null,o,i=n.get(Qd,null,{optional:!0}),s=n.get(Be);return i!==null&&!t?.forceRoot?(o=OD(i.view,s,e),r instanceof Vr&&r._lView===i.view&&(r=null)):o=FD(e,n.get(Od),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new ws(o)}var Kd=Y(Z({},qe),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:mn,run(){if(this.dirty=!1,this.hasRun&&!en(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=Dt(this),n=Rr(!1);try{this.maybeCleanup(),this.fn(e)}finally{Rr(n),Xt(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),ND=Y(Z({},Kd),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){Et(this),this.onDestroyFn(),this.maybeCleanup()}}),AD=Y(Z({},Kd),{consumerMarkedDirty(){this.view[m]|=8192,bn(this.view),this.notifier.notify(14)},destroy(){Et(this),this.onDestroyFn(),this.maybeCleanup(),this.view[it]?.delete(this)}});function OD(e,t,n){let r=Object.create(AD);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[it]??=new Set,e[it].add(r),r.consumerMarkedDirty(r),r}function FD(e,t,n){let r=Object.create(ND);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(13),r}function $0(e,t){let n=Le(e),r=t.elementInjector||io();return new Wt(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}var rf=null;function sa(){return rf}function pT(e){rf??=e}var Jd=class{};var of=new N(""),sf=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:()=>w(kD),providedIn:"platform"})}return e})();var kD=(()=>{class e extends sf{_location;_history;_doc=w(of);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return sa().getBaseHref(this._doc)}onPopState(n){let r=sa().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=sa().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function af(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function Xd(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function mt(e){return e&&e[0]!=="?"?"?"+e:e}var la=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:()=>w(LD),providedIn:"root"})}return e})(),PD=new N(""),LD=(()=>{class e extends la{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??w(of).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 af(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+mt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+mt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+mt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(te(sf),te(PD,8))};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var jD=(()=>{class e{_subject=new Q;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=HD(Xd(ef(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+mt(r))}normalize(n){return e.stripTrailingSlash(BD(this._basePath,ef(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+mt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+mt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=mt;static joinWithSlash=af;static stripTrailingSlash=Xd;static \u0275fac=function(r){return new(r||e)(te(la))};static \u0275prov=F({token:e,factory:()=>VD(),providedIn:"root"})}return e})();function VD(){return new jD(te(la))}function BD(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function ef(e){return e.replace(/\/index.html$/,"")}function HD(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function hT(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var aa=/\s+/,tf=[],gT=(()=>{class e{_ngEl;_renderer;initialClasses=tf;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(aa):tf}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(aa):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(aa).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(ae(Ge),ae(Eo))};static \u0275dir=Io({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var mT=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:vn.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||e)(ae(Ge),ae(oa),ae(Eo))};static \u0275dir=Io({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),yT=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(ae(Fn))};static \u0275dir=Io({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Mc]})}return e})();function $D(e,t){return new S(2100,!1)}var ua=class{createSubscription(t,n){return ia(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){ia(()=>t.unsubscribe())}},ca=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},UD=new ca,zD=new ua,vT=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(n){this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(wo(n))return UD;if(na(n))return zD;throw $D(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||e)(ae(bo,16))};static \u0275pipe=Md({name:"async",type:e,pure:!1})}return e})();var DT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=_d({type:e});static \u0275inj=nc({})}return e})(),GD="browser",qD="server";function ET(e){return e===GD}function IT(e){return e===qD}var nf=class{};var Oe=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Oe||{}),bT="*";function _T(e,t){return{type:Oe.Trigger,name:e,definitions:t,options:{}}}function MT(e,t=null){return{type:Oe.Animate,styles:t,timings:e}}function ST(e,t=null){return{type:Oe.Sequence,steps:e,options:t}}function TT(e){return{type:Oe.Style,styles:e,offset:null}}function xT(e,t,n){return{type:Oe.State,name:e,styles:t,options:n}}function NT(e,t,n=null){return{type:Oe.Transition,expr:e,animation:t,options:n}}function AT(e=null){return{type:Oe.AnimateChild,options:e}}function OT(e,t,n=null){return{type:Oe.Query,selector:e,animation:t,options:n}}var uf=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,n=0){this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},cf=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},FT="!";export{Z as a,Y as b,WD as c,L as d,bf as e,T as f,Uo as g,zo as h,Q as i,tn as j,Nf as k,Je as l,ye as m,jf as n,Vf as o,Bf as p,et as q,_e as r,Zf as s,le as t,sn as u,Nt as v,Qf as w,Kf as x,Zo as y,an as z,op as A,tt as B,ip as C,tu as D,sp as E,ru as F,un as G,At as H,Yo as I,ap as J,up as K,dp as L,iu as M,Ko as N,fp as O,pp as P,hp as Q,Xo as R,gp as S,mp as T,yp as U,su as V,au as W,vp as X,Dp as Y,S as Z,ec as _,F as $,nc as aa,HS as ba,N as ca,M as da,te as ea,w as fa,Yp as ga,Qp as ha,vc as ia,je as ja,Ec as ka,Mc as la,$S as ma,US as na,zS as oa,GS as pa,qS as qa,sl as ra,Ie as sa,Eu as ta,Be as ua,Sn as va,Re as wa,ee as xa,dt as ya,WS as za,Ge as Aa,Ai as Ba,ZS as Ca,YS as Da,lg as Ea,dg as Fa,QS as Ga,KS as Ha,he as Ia,yg as Ja,vg as Ka,yn as La,Tn as Ma,wl as Na,JS as Oa,XS as Pa,e0 as Qa,t0 as Ra,n0 as Sa,Cl as Ta,r0 as Ua,Us as Va,o0 as Wa,vn as Xa,i0 as Ya,ae as Za,s0 as _a,En as $a,Gr as ab,Eo as bb,Fn as cb,Ry as db,ky as eb,l0 as fb,$e as gb,ns as hb,$y as ib,d0 as jb,_d as kb,Io as lb,Zy as mb,ev as nb,ov as ob,f0 as pb,wo as qb,cv as rb,Co as sb,gv as tb,Mv as ub,Pd as vb,Sv as wb,p0 as xb,h0 as yb,g0 as zb,m0 as Ab,y0 as Bb,v0 as Cb,D0 as Db,zd as Eb,Gd as Fb,Bv as Gb,E0 as Hb,$v as Ib,qv as Jb,I0 as Kb,w0 as Lb,C0 as Mb,b0 as Nb,_0 as Ob,M0 as Pb,S0 as Qb,T0 as Rb,x0 as Sb,N0 as Tb,A0 as Ub,Jv as Vb,Wd as Wb,Xv as Xb,O0 as Yb,eD as Zb,F0 as _b,R0 as $b,k0 as ac,P0 as bc,L0 as cc,j0 as dc,V0 as ec,bo as fc,B0 as gc,ID as hc,wD as ic,H0 as jc,ia as kc,xD as lc,$0 as mc,sa as nc,pT as oc,Jd as pc,of as qc,la as rc,jD as sc,hT as tc,gT as uc,mT as vc,yT as wc,vT as xc,DT as yc,GD as zc,ET as Ac,IT as Bc,nf as Cc,Oe as Dc,bT as Ec,_T as Fc,MT as Gc,ST as Hc,TT as Ic,xT as Jc,NT as Kc,AT as Lc,OT as Mc,uf as Nc,cf as Oc,FT as Pc}; diff --git a/chunk-HPGNNBGR.js b/chunk-HPGNNBGR.js deleted file mode 100644 index 819fcc3..0000000 --- a/chunk-HPGNNBGR.js +++ /dev/null @@ -1,7 +0,0 @@ -var pf=Object.defineProperty,hf=Object.defineProperties;var gf=Object.getOwnPropertyDescriptors;var Rn=Object.getOwnPropertySymbols;var da=Object.prototype.hasOwnProperty,fa=Object.prototype.propertyIsEnumerable;var la=(e,t,n)=>t in e?pf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z=(e,t)=>{for(var n in t||={})da.call(t,n)&&la(e,n,t[n]);if(Rn)for(var n of Rn(t))fa.call(t,n)&&la(e,n,t[n]);return e},Y=(e,t)=>hf(e,gf(t));var YD=(e,t)=>{var n={};for(var r in e)da.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Rn)for(var r of Rn(e))t.indexOf(r)<0&&fa.call(e,r)&&(n[r]=e[r]);return n};var pa=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{a(n.next(u))}catch(c){o(c)}},s=u=>{try{a(n.throw(u))}catch(c){o(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});function xo(e,t){return Object.is(e,t)}var j=null,Kt=!1,No=1,B=Symbol("SIGNAL");function b(e){let t=j;return j=e,t}function ha(){return j}function mf(){return Kt}var Ge={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 Pn(e){if(Kt)throw new Error("");if(j===null)return;j.consumerOnSignalRead(e);let t=j.nextProducerIndex++;if(jn(j),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function en(e){jn(e);for(let t=0;t0}function jn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Da(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Ea(e){return e.producerNode!==void 0}function Oo(e){let t=Object.create(vf);t.computation=e;let n=()=>{if(Ao(t),Pn(t),t.value===kn)throw t.error;return t.value};return n[B]=t,n}var _o=Symbol("UNSET"),Mo=Symbol("COMPUTING"),kn=Symbol("ERRORED"),vf=Y(Z({},Ge),{value:_o,dirty:!0,error:null,equal:xo,producerMustRecompute(e){return e.value===_o||e.value===Mo},producerRecomputeValue(e){if(e.value===Mo)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Mo;let n=Dt(e),r;try{r=e.computation()}catch(o){r=kn,e.error=o}finally{Xt(e,n)}if(t!==_o&&t!==kn&&r!==kn&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Df(){throw new Error}var Ia=Df;function wa(){Ia()}function Ca(e){Ia=e}var Ef=null;function ba(e){let t=Object.create(Fo);t.value=e;let n=()=>(Pn(t),t.value);return n[B]=t,n}function Vn(e,t){ma()||wa(),e.equal(e.value,t)||(e.value=t,If(e))}function _a(e,t){ma()||wa(),Vn(e,t(e.value))}var Fo=Y(Z({},Ge),{equal:xo,value:void 0});function If(e){e.version++,yf(),ga(e),Ef?.()}function Ma(e,t,n){let r=Object.create(wf);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=u=>{r.cleanupFn=u};function i(u){return u.fn===null&&u.schedule===null}function s(u){i(u)||(Et(u),u.cleanupFn(),u.fn=null,u.schedule=null,u.cleanupFn=To)}let a=()=>{if(r.fn===null)return;if(mf())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!en(r))return;r.hasRun=!0;let u=Dt(r);try{r.cleanupFn(),r.cleanupFn=To,r.fn(o)}finally{Xt(r,u)}};return r.ref={notify:()=>ya(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[B]:r},r.ref}var To=()=>{},wf=Y(Z({},Ge),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:To});function g(e){return typeof e=="function"}function It(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Bn=It(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function qe(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var L=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(g(r))try{r()}catch(i){t=i instanceof Bn?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Sa(i)}catch(s){t=t??[],s instanceof Bn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Bn(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Sa(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&qe(n,t)}remove(t){let{_finalizers:n}=this;n&&qe(n,t),t instanceof e&&t._removeParent(this)}};L.EMPTY=(()=>{let e=new L;return e.closed=!0,e})();var Ro=L.EMPTY;function Hn(e){return e instanceof L||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function Sa(e){g(e)?e():e.unsubscribe()}var ce={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var wt={setTimeout(e,t,...n){let{delegate:r}=wt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=wt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function $n(e){wt.setTimeout(()=>{let{onUnhandledError:t}=ce;if(t)t(e);else throw e})}function We(){}var Ta=ko("C",void 0,void 0);function xa(e){return ko("E",void 0,e)}function Na(e){return ko("N",e,void 0)}function ko(e,t,n){return{kind:e,value:t,error:n}}var Ze=null;function Ct(e){if(ce.useDeprecatedSynchronousErrorHandling){let t=!Ze;if(t&&(Ze={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Ze;if(Ze=null,n)throw r}}else e()}function Aa(e){ce.useDeprecatedSynchronousErrorHandling&&Ze&&(Ze.errorThrown=!0,Ze.error=e)}var Ye=class extends L{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Hn(t)&&t.add(this)):this.destination=_f}static create(t,n,r){return new be(t,n,r)}next(t){this.isStopped?Lo(Na(t),this):this._next(t)}error(t){this.isStopped?Lo(xa(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Lo(Ta,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()}}},Cf=Function.prototype.bind;function Po(e,t){return Cf.call(e,t)}var jo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Un(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Un(r)}else Un(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Un(n)}}},be=class extends Ye{constructor(t,n,r){super();let o;if(g(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ce.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Po(t.next,i),error:t.error&&Po(t.error,i),complete:t.complete&&Po(t.complete,i)}):o=t}this.destination=new jo(o)}};function Un(e){ce.useDeprecatedSynchronousErrorHandling?Aa(e):$n(e)}function bf(e){throw e}function Lo(e,t){let{onStoppedNotification:n}=ce;n&&wt.setTimeout(()=>n(e,t))}var _f={closed:!0,next:We,error:bf,complete:We};var bt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function G(e){return e}function Mf(...e){return Vo(e)}function Vo(e){return e.length===0?G:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var T=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Tf(n)?n:new be(n,r,o);return Ct(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Oa(r),new r((o,i)=>{let s=new be({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[bt](){return this}pipe(...n){return Vo(n)(this)}toPromise(n){return n=Oa(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Oa(e){var t;return(t=e??ce.Promise)!==null&&t!==void 0?t:Promise}function Sf(e){return e&&g(e.next)&&g(e.error)&&g(e.complete)}function Tf(e){return e&&e instanceof Ye||Sf(e)&&Hn(e)}function Bo(e){return g(e?.lift)}function v(e){return t=>{if(Bo(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function y(e,t,n,r,o){return new Ho(e,t,n,r,o)}var Ho=class extends Ye{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function $o(){return v((e,t)=>{let n=null;e._refCount++;let r=y(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Uo=class extends T{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Bo(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 L;let n=this.getSubject();t.add(this.source.subscribe(y(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=L.EMPTY)}return t}refCount(){return $o()(this)}};var Fa=It(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Q=(()=>{class e extends T{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new zn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Fa}next(n){Ct(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Ct(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ct(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ro:(this.currentObservers=null,i.push(n),new L(()=>{this.currentObservers=null,qe(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new T;return n.source=this,n}}return e.create=(t,n)=>new zn(t,n),e})(),zn=class extends Q{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ro}};var tn=class extends Q{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var nn={now(){return(nn.delegate||Date).now()},delegate:void 0};var Gn=class extends Q{constructor(t=1/0,n=1/0,r=nn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;sRa(t)&&e()),t},clearImmediate(e){Ra(e)}};var{setImmediate:Nf,clearImmediate:Af}=ka,on={setImmediate(...e){let{delegate:t}=on;return(t?.setImmediate||Nf)(...e)},clearImmediate(e){let{delegate:t}=on;return(t?.clearImmediate||Af)(e)},delegate:void 0};var Wn=class extends _t{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=on.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(on.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var Mt=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Mt.now=nn.now;var St=class extends Mt{constructor(t,n=Mt.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Zn=class extends St{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Of=new Zn(Wn);var Qe=new St(_t),Pa=Qe;var Ke=new T(e=>e.complete());function Yn(e){return e&&g(e.schedule)}function qo(e){return e[e.length-1]}function Qn(e){return g(qo(e))?e.pop():void 0}function me(e){return Yn(qo(e))?e.pop():void 0}function La(e,t){return typeof qo(e)=="number"?e.pop():t}function Va(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function ja(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Je(e){return this instanceof Je?(this.v=e,this):new Je(e)}function Ba(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(D){return new Promise(function(O,_){i.push([f,D,O,_])>1||u(f,D)})},h&&(o[f]=h(o[f])))}function u(f,h){try{c(r[f](h))}catch(D){p(i[0][3],D)}}function c(f){f.value instanceof Je?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function p(f,h){f(h),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Ha(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ja=="function"?ja(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var Tt=e=>e&&typeof e.length=="number"&&typeof e!="function";function Kn(e){return g(e?.then)}function Jn(e){return g(e[bt])}function Xn(e){return Symbol.asyncIterator&&g(e?.[Symbol.asyncIterator])}function er(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 Ff(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var tr=Ff();function nr(e){return g(e?.[tr])}function rr(e){return Ba(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Je(n.read());if(o)return yield Je(void 0);yield yield Je(r)}}finally{n.releaseLock()}})}function or(e){return g(e?.getReader)}function x(e){if(e instanceof T)return e;if(e!=null){if(Jn(e))return Rf(e);if(Tt(e))return kf(e);if(Kn(e))return Pf(e);if(Xn(e))return $a(e);if(nr(e))return Lf(e);if(or(e))return jf(e)}throw er(e)}function Rf(e){return new T(t=>{let n=e[bt]();if(g(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function kf(e){return new T(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,$n)})}function Lf(e){return new T(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function $a(e){return new T(t=>{Vf(e,t).catch(n=>t.error(n))})}function jf(e){return $a(rr(e))}function Vf(e,t){var n,r,o,i;return Va(this,void 0,void 0,function*(){try{for(n=Ha(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function K(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ir(e,t=0){return v((n,r)=>{n.subscribe(y(r,o=>K(r,e,()=>r.next(o),t),()=>K(r,e,()=>r.complete(),t),o=>K(r,e,()=>r.error(o),t)))})}function sr(e,t=0){return v((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ua(e,t){return x(e).pipe(sr(t),ir(t))}function za(e,t){return x(e).pipe(sr(t),ir(t))}function Ga(e,t){return new T(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function qa(e,t){return new T(n=>{let r;return K(n,t,()=>{r=e[tr](),K(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>g(r?.return)&&r.return()})}function ar(e,t){if(!e)throw new Error("Iterable cannot be null");return new T(n=>{K(n,t,()=>{let r=e[Symbol.asyncIterator]();K(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Wa(e,t){return ar(rr(e),t)}function Za(e,t){if(e!=null){if(Jn(e))return Ua(e,t);if(Tt(e))return Ga(e,t);if(Kn(e))return za(e,t);if(Xn(e))return ar(e,t);if(nr(e))return qa(e,t);if(or(e))return Wa(e,t)}throw er(e)}function ye(e,t){return t?Za(e,t):x(e)}function Bf(...e){let t=me(e);return ye(e,t)}function Hf(e,t){let n=g(e)?e:()=>e,r=o=>o.error(n());return new T(t?o=>t.schedule(r,0,o):r)}function $f(e){return!!e&&(e instanceof T||g(e.lift)&&g(e.subscribe))}var Xe=It(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ya(e){return e instanceof Date&&!isNaN(e)}function _e(e,t){return v((n,r)=>{let o=0;n.subscribe(y(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Uf}=Array;function zf(e,t){return Uf(t)?e(...t):e(t)}function xt(e){return _e(t=>zf(e,t))}var{isArray:Gf}=Array,{getPrototypeOf:qf,prototype:Wf,keys:Zf}=Object;function ur(e){if(e.length===1){let t=e[0];if(Gf(t))return{args:t,keys:null};if(Yf(t)){let n=Zf(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Yf(e){return e&&typeof e=="object"&&qf(e)===Wf}function cr(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Qf(...e){let t=me(e),n=Qn(e),{args:r,keys:o}=ur(e);if(r.length===0)return ye([],t);let i=new T(Kf(r,t,o?s=>cr(o,s):G));return n?i.pipe(xt(n)):i}function Kf(e,t,n=G){return r=>{Qa(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=ye(e[u],t),l=!1;c.subscribe(y(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Qa(e,t,n){e?K(n,e,t):t()}function Ka(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,p=()=>{d&&!u.length&&!c&&t.complete()},f=D=>c{i&&t.next(D),c++;let O=!1;x(n(D,l++)).subscribe(y(t,_=>{o?.(_),i?f(_):t.next(_)},()=>{O=!0},void 0,()=>{if(O)try{for(c--;u.length&&ch(_)):h(_)}p()}catch(_){t.error(_)}}))};return e.subscribe(y(t,f,()=>{d=!0,p()})),()=>{a?.()}}function le(e,t,n=1/0){return g(t)?le((r,o)=>_e((i,s)=>t(r,i,o,s))(x(e(r,o))),n):(typeof t=="number"&&(n=t),v((r,o)=>Ka(r,o,e,n)))}function sn(e=1/0){return le(G,e)}function Ja(){return sn(1)}function Nt(...e){return Ja()(ye(e,me(e)))}function Jf(e){return new T(t=>{x(e()).subscribe(t)})}function Xf(...e){let t=Qn(e),{args:n,keys:r}=ur(e),o=new T(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=p},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?cr(r,a):a),i.complete())}))}});return t?o.pipe(xt(t)):o}var ep=["addListener","removeListener"],tp=["addEventListener","removeEventListener"],np=["on","off"];function Wo(e,t,n,r){if(g(n)&&(r=n,n=void 0),r)return Wo(e,t,n).pipe(xt(r));let[o,i]=ip(e)?tp.map(s=>a=>e[s](t,a,n)):rp(e)?ep.map(Xa(e,t)):op(e)?np.map(Xa(e,t)):[];if(!o&&Tt(e))return le(s=>Wo(s,t,n))(x(e));if(!o)throw new TypeError("Invalid event target");return new T(s=>{let a=(...u)=>s.next(1i(a)})}function Xa(e,t){return n=>r=>e[n](t,r)}function rp(e){return g(e.addListener)&&g(e.removeListener)}function op(e){return g(e.on)&&g(e.off)}function ip(e){return g(e.addEventListener)&&g(e.removeEventListener)}function an(e=0,t,n=Pa){let r=-1;return t!=null&&(Yn(t)?n=t:r=t),new T(o=>{let i=Ya(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function sp(...e){let t=me(e),n=La(e,1/0),r=e;return r.length?r.length===1?x(r[0]):sn(n)(ye(r,t)):Ke}function et(e,t){return v((n,r)=>{let o=0;n.subscribe(y(r,i=>e.call(t,i,o++)&&r.next(i)))})}function eu(e){return v((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let c=o;o=null,n.next(c)}s&&n.complete()},u=()=>{i=null,s&&n.complete()};t.subscribe(y(n,c=>{r=!0,o=c,i||x(e(c)).subscribe(i=y(n,a,u))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function ap(e,t=Qe){return eu(()=>an(e,t))}function tu(e){return v((t,n)=>{let r=null,o=!1,i;r=t.subscribe(y(n,void 0,void 0,s=>{i=x(e(s,tu(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function nu(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(y(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function up(e,t){return g(t)?le(e,t,1):le(e,1)}function ru(e,t=Qe){return v((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function un(e){return v((t,n)=>{let r=!1;t.subscribe(y(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function At(e){return e<=0?()=>Ke:v((t,n)=>{let r=0;t.subscribe(y(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ou(){return v((e,t)=>{e.subscribe(y(t,We))})}function Zo(e){return _e(()=>e)}function Yo(e,t){return t?n=>Nt(t.pipe(At(1),ou()),n.pipe(Yo(e))):le((n,r)=>x(e(n,r)).pipe(At(1),Zo(n)))}function cp(e,t=Qe){let n=an(e,t);return Yo(()=>n)}function lp(e,t=G){return e=e??dp,v((n,r)=>{let o,i=!0;n.subscribe(y(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function dp(e,t){return e===t}function lr(e=fp){return v((t,n)=>{let r=!1;t.subscribe(y(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function fp(){return new Xe}function pp(e){return v((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function iu(e,t){let n=arguments.length>=2;return r=>r.pipe(e?et((o,i)=>e(o,i,r)):G,At(1),n?un(t):lr(()=>new Xe))}function Qo(e){return e<=0?()=>Ke:v((t,n)=>{let r=[];t.subscribe(y(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function hp(e,t){let n=arguments.length>=2;return r=>r.pipe(e?et((o,i)=>e(o,i,r)):G,Qo(1),n?un(t):lr(()=>new Xe))}function gp(){return v((e,t)=>{let n,r=!1;e.subscribe(y(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function mp(e,t){return v(nu(e,t,arguments.length>=2,!0))}function Jo(e={}){let{connector:t=()=>new Q,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=u=void 0,l=d=!1},h=()=>{let D=s;f(),D?.unsubscribe()};return v((D,O)=>{c++,!d&&!l&&p();let _=u=u??t();O.add(()=>{c--,c===0&&!d&&!l&&(a=Ko(h,o))}),_.subscribe(O),!s&&c>0&&(s=new be({next:R=>_.next(R),error:R=>{d=!0,p(),a=Ko(f,n,R),_.error(R)},complete:()=>{l=!0,p(),a=Ko(f,r),_.complete()}}),x(D).subscribe(s))})(i)}}function Ko(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new be({next:()=>{r.unsubscribe(),e()}});return x(t(...n)).subscribe(r)}function yp(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,Jo({connector:()=>new Gn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function vp(e){return et((t,n)=>e<=n)}function Dp(...e){let t=me(e);return v((n,r)=>{(t?Nt(e,n,t):Nt(e,n)).subscribe(r)})}function su(e,t){return v((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(y(r,u=>{o?.unsubscribe();let c=0,l=i++;x(e(u,l)).subscribe(o=y(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function au(e){return v((t,n)=>{x(e).subscribe(y(n,()=>n.complete(),We)),!n.closed&&t.subscribe(n)})}function Ep(e,t=!1){return v((n,r)=>{let o=0;n.subscribe(y(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function Ip(e,t,n){let r=g(e)||t||n?{next:e,error:t,complete:n}:e;return r?v((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(y(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):G}var Yu="https://g.co/ng/security#xss",S=class extends Error{code;constructor(t,n){super(Qu(t,n)),this.code=t}};function Qu(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var Ku=Symbol("InputSignalNode#UNSET"),wp=Y(Z({},Fo),{transformFn:void 0,applyValueToInputSignal(e,t){Vn(e,t)}});function Ju(e,t){let n=Object.create(wp);n.value=e,n.transformFn=t?.transform;function r(){if(Pn(n),n.value===Ku)throw new S(-950,!1);return n.value}return r[B]=n,r}function wn(e){return{toString:e}.toString()}var dr="__parameters__";function Cp(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Xu(e,t,n){return wn(()=>{let r=Cp(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(dr)?u[dr]:Object.defineProperty(u,dr,{value:[]})[dr];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var _r=globalThis;function A(e){for(let t in e)if(e[t]===A)return t;throw Error("Could not find renamed property on target object.")}function bp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function X(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(X).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 n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function di(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var _p=A({__forward_ref__:A});function ec(e){return e.__forward_ref__=ec,e.toString=function(){return X(this())},e}function q(e){return tc(e)?e():e}function tc(e){return typeof e=="function"&&e.hasOwnProperty(_p)&&e.__forward_ref__===ec}function F(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function nc(e){return{providers:e.providers||[],imports:e.imports||[]}}function eo(e){return uu(e,rc)||uu(e,oc)}function US(e){return eo(e)!==null}function uu(e,t){return e.hasOwnProperty(t)?e[t]:null}function Mp(e){let t=e&&(e[rc]||e[oc]);return t||null}function cu(e){return e&&(e.hasOwnProperty(lu)||e.hasOwnProperty(Sp))?e[lu]:null}var rc=A({\u0275prov:A}),lu=A({\u0275inj:A}),oc=A({ngInjectableDef:A}),Sp=A({ngInjectorDef:A}),N=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=F({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function ic(e){return e&&!!e.\u0275providers}var Tp=A({\u0275cmp:A}),xp=A({\u0275dir:A}),Np=A({\u0275pipe:A}),Ap=A({\u0275mod:A}),Mr=A({\u0275fac:A}),dn=A({__NG_ELEMENT_ID__:A}),du=A({__NG_ENV_ID__:A});function to(e){return typeof e=="string"?e:e==null?"":String(e)}function Op(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():to(e)}function Fp(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new S(-200,e)}function Cs(e,t){throw new S(-201,!1)}var M=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}(M||{}),fi;function sc(){return fi}function J(e){let t=fi;return fi=e,t}function ac(e,t,n){let r=eo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&M.Optional)return null;if(t!==void 0)return t;Cs(e,"Injector")}var Rp={},fn=Rp,pi="__NG_DI_FLAG__",Sr="ngTempTokenPath",kp="ngTokenPath",Pp=/\n/gm,Lp="\u0275",fu="__source",Pt;function jp(){return Pt}function Fe(e){let t=Pt;return Pt=e,t}function Vp(e,t=M.Default){if(Pt===void 0)throw new S(-203,!1);return Pt===null?ac(e,void 0,t):Pt.get(e,t&M.Optional?null:void 0,t)}function te(e,t=M.Default){return(sc()||Vp)(q(e),t)}function w(e,t=M.Default){return te(e,no(t))}function no(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function hi(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):X(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Pp,` - `)}`}var Up=uc(Xu("Optional"),8);var zp=uc(Xu("SkipSelf"),4);function nt(e,t){let n=e.hasOwnProperty(Mr);return n?e[Mr]:null}function Gp(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?bs(n,t):t(n))}function cc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Tr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Wp(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ro(e,t,n){let r=Cn(e,t);return r>=0?e[r|1]=n:(r=~r,Zp(e,r,t,n)),r}function Xo(e,t){let n=Cn(e,t);if(n>=0)return e[n|1]}function Cn(e,t){return Yp(e,t,1)}function Yp(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return bs(t,s=>{let a=s;gi(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&mc(o,i),n}function mc(e,t){for(let n=0;n{t(i,r)})}}function gi(e,t,n,r){if(e=q(e),!e)return!1;let o=null,i=cu(e),s=!i&&Le(e);if(!i&&!s){let u=e.ngModule;if(i=cu(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)gi(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{bs(i.imports,l=>{gi(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&mc(c,t)}if(!a){let c=nt(o)||(()=>new o);t({provide:o,useFactory:c,deps:W},o),t({provide:dc,useValue:o,multi:!0},o),t({provide:xr,useValue:()=>te(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;_s(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function _s(e,t){for(let n of e)ic(n)&&(n=n.\u0275providers),Array.isArray(n)?_s(n,t):t(n)}var Xp=A({provide:String,useValue:A});function yc(e){return e!==null&&typeof e=="object"&&Xp in e}function eh(e){return!!(e&&e.useExisting)}function th(e){return!!(e&&e.useFactory)}function Vt(e){return typeof e=="function"}function nh(e){return!!e.useClass}var vc=new N(""),vr={},rh={},ei;function oo(){return ei===void 0&&(ei=new Nr),ei}var je=class{},pn=class extends je{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,yi(t,s=>this.processProvider(s)),this.records.set(lc,Ot(void 0,this)),o.has("environment")&&this.records.set(je,Ot(void 0,this));let i=this.records.get(vc);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(dc,W,M.Self))}destroy(){cn(this),this._destroyed=!0;let t=b(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b(t)}}onDestroy(t){return cn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){cn(this);let n=Fe(this),r=J(void 0),o;try{return t()}finally{Fe(n),J(r)}}get(t,n=fn,r=M.Default){if(cn(this),t.hasOwnProperty(du))return t[du](this);r=no(r);let o,i=Fe(this),s=J(void 0);try{if(!(r&M.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=uh(t)&&eo(t);c&&this.injectableDefInScope(c)?u=Ot(mi(t),vr):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&M.Self?oo():this.parent;return n=r&M.Optional&&n===fn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Sr]=a[Sr]||[]).unshift(X(t)),i)throw a;return Hp(a,t,"R3InjectorError",this.source)}else throw a}finally{J(s),Fe(i)}}resolveInjectorInitializers(){let t=b(null),n=Fe(this),r=J(void 0),o;try{let i=this.get(xr,W,M.Self);for(let s of i)s()}finally{Fe(n),J(r),b(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(X(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=q(t);let n=Vt(t)?t:q(t&&t.provide),r=ih(t);if(!Vt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Ot(void 0,vr,!0),o.factory=()=>hi(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=b(null);try{return n.value===vr&&(n.value=rh,n.value=n.factory()),typeof n.value=="object"&&n.value&&ah(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=q(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function mi(e){let t=eo(e),n=t!==null?t.factory:nt(e);if(n!==null)return n;if(e instanceof N)throw new S(204,!1);if(e instanceof Function)return oh(e);throw new S(204,!1)}function oh(e){if(e.length>0)throw new S(204,!1);let n=Mp(e);return n!==null?()=>n.factory(e):()=>new e}function ih(e){if(yc(e))return Ot(void 0,e.useValue);{let t=Dc(e);return Ot(t,vr)}}function Dc(e,t,n){let r;if(Vt(e)){let o=q(e);return nt(o)||mi(o)}else if(yc(e))r=()=>q(e.useValue);else if(th(e))r=()=>e.useFactory(...hi(e.deps||[]));else if(eh(e))r=()=>te(q(e.useExisting));else{let o=q(e&&(e.useClass||e.provide));if(sh(e))r=()=>new o(...hi(e.deps));else return nt(o)||mi(o)}return r}function cn(e){if(e.destroyed)throw new S(205,!1)}function Ot(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function sh(e){return!!e.deps}function ah(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function uh(e){return typeof e=="function"||typeof e=="object"&&e instanceof N}function yi(e,t){for(let n of e)Array.isArray(n)?yi(n,t):n&&ic(n)?yi(n.\u0275providers,t):t(n)}function Ec(e,t){e instanceof pn&&cn(e);let n,r=Fe(e),o=J(void 0);try{return t()}finally{Fe(r),J(o)}}function Ic(){return sc()!==void 0||jp()!=null}function io(e){if(!Ic())throw new S(-203,!1)}function ch(e){return typeof e=="function"}var xe=0,E=1,m=2,U=3,pe=4,ne=5,Bt=6,Ar=7,H=8,Ht=9,Me=10,k=11,hn=12,pu=13,Yt=14,ie=15,rt=16,Ft=17,Se=18,so=19,wc=20,ke=21,Dr=22,ot=23,oe=24,z=25,Cc=1;var it=7,Or=8,$t=9,$=10,Fr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Fr||{});function Pe(e){return Array.isArray(e)&&typeof e[Cc]=="object"}function Ne(e){return Array.isArray(e)&&e[Cc]===!0}function bc(e){return(e.flags&4)!==0}function ao(e){return e.componentOffset>-1}function Ms(e){return(e.flags&1)===1}function Ve(e){return!!e.template}function vi(e){return(e[m]&512)!==0}var Di=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function _c(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Mc=(()=>{let e=()=>Sc;return e.ngInherit=!0,e})();function Sc(e){return e.type.prototype.ngOnChanges&&(e.setInput=dh),lh}function lh(){let e=xc(this),t=e?.current;if(t){let n=e.previous;if(n===jt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function dh(e,t,n,r,o){let i=this.declaredInputs[r],s=xc(e)||fh(e,{previous:jt,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Di(c&&c.currentValue,n,u===jt),_c(e,t,o,n)}var Tc="__ngSimpleChanges__";function xc(e){return e[Tc]||null}function fh(e,t){return e[Tc]=t}var hu=null;var ve=function(e,t,n){hu?.(e,t,n)},Nc="svg",ph="math";function Ee(e){for(;Array.isArray(e);)e=e[xe];return e}function Ac(e,t){return Ee(t[e])}function se(e,t){return Ee(t[e.index])}function Ss(e,t){return e.data[t]}function Oc(e,t){return e[t]}function $e(e,t){let n=t[e];return Pe(n)?n:n[xe]}function hh(e){return(e[m]&4)===4}function Ts(e){return(e[m]&128)===128}function gh(e){return Ne(e[U])}function Ut(e,t){return t==null?null:e[t]}function Fc(e){e[Ft]=0}function xs(e){e[m]&1024||(e[m]|=1024,Ts(e)&&bn(e))}function mh(e,t){for(;e>0;)t=t[Yt],e--;return t}function uo(e){return!!(e[m]&9216||e[oe]?.dirty)}function Ei(e){e[Me].changeDetectionScheduler?.notify(9),e[m]&64&&(e[m]|=1024),uo(e)&&bn(e)}function bn(e){e[Me].changeDetectionScheduler?.notify(0);let t=st(e);for(;t!==null&&!(t[m]&8192||(t[m]|=8192,!Ts(t)));)t=st(t)}function Rc(e,t){if((e[m]&256)===256)throw new S(911,!1);e[ke]===null&&(e[ke]=[]),e[ke].push(t)}function yh(e,t){if(e[ke]===null)return;let n=e[ke].indexOf(t);n!==-1&&e[ke].splice(n,1)}function st(e){let t=e[U];return Ne(t)?t[U]:t}var C={lFrame:Gc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ii=!1;function vh(){return C.lFrame.elementDepthCount}function Dh(){C.lFrame.elementDepthCount++}function Eh(){C.lFrame.elementDepthCount--}function kc(){return C.bindingsEnabled}function Pc(){return C.skipHydrationRootTNode!==null}function Ih(e){return C.skipHydrationRootTNode===e}function wh(){C.skipHydrationRootTNode=null}function I(){return C.lFrame.lView}function P(){return C.lFrame.tView}function zS(e){return C.lFrame.contextLView=e,e[H]}function GS(e){return C.lFrame.contextLView=null,e}function V(){let e=Lc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Lc(){return C.lFrame.currentTNode}function Ch(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _n(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t}function jc(){return C.lFrame.isParent}function Vc(){C.lFrame.isParent=!1}function bh(){return C.lFrame.contextLView}function Bc(){return Ii}function Rr(e){let t=Ii;return Ii=e,t}function Hc(){let e=C.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function _h(e){return C.lFrame.bindingIndex=e}function gt(){return C.lFrame.bindingIndex++}function $c(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Mh(){return C.lFrame.inI18n}function Sh(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,wi(t)}function Th(){return C.lFrame.currentDirectiveIndex}function wi(e){C.lFrame.currentDirectiveIndex=e}function xh(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Ns(){return C.lFrame.currentQueryIndex}function co(e){C.lFrame.currentQueryIndex=e}function Nh(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[ne]:null}function Uc(e,t,n){if(n&M.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&M.Host);)if(o=Nh(i),o===null||(i=i[Yt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=C.lFrame=zc();return r.currentTNode=t,r.lView=e,!0}function As(e){let t=zc(),n=e[E];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zc(){let e=C.lFrame,t=e===null?null:e.child;return t===null?Gc(e):t}function Gc(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 qc(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Wc=qc;function Os(){let e=qc();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 Ah(e){return(C.lFrame.contextLView=mh(e,C.lFrame.contextLView))[H]}function Ue(){return C.lFrame.selectedIndex}function at(e){C.lFrame.selectedIndex=e}function lo(){let e=C.lFrame;return Ss(e.tView,e.selectedIndex)}function qS(){C.lFrame.currentNamespace=Nc}function WS(){Oh()}function Oh(){C.lFrame.currentNamespace=null}function Fh(){return C.lFrame.currentNamespace}var Zc=!0;function Fs(){return Zc}function Rs(e){Zc=e}function Rh(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Sc(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ks(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[Ft]+=65536),(a>14>16&&(e[m]&3)===t&&(e[m]+=16384,gu(a,i)):gu(a,i)}var Lt=-1,ut=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Ph(e){return e instanceof ut}function Lh(e){return(e.flags&8)!==0}function jh(e){return(e.flags&16)!==0}function Ci(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function Pr(e,t){let n=Bh(e),r=t;for(;n>0;)r=r[Yt],n--;return r}var _i=!0;function Lr(e){let t=_i;return _i=e,t}var Hh=256,Jc=Hh-1,Xc=5,$h=0,De={};function Uh(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(dn)&&(r=n[dn]),r==null&&(r=n[dn]=$h++);let o=r&Jc,i=1<>Xc)]|=i}function jr(e,t){let n=el(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,ri(r.data,e),ri(t,null),ri(r.blueprint,null));let o=Ps(e,t),i=e.injectorIndex;if(Kc(o)){let s=kr(o),a=Pr(o,t),u=a[E].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function ri(e,t){e.push(0,0,0,0,0,0,0,0,t)}function el(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ps(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=il(o),r===null)return Lt;if(n++,o=o[Yt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Lt}function Mi(e,t,n){Uh(e,t,n)}function zh(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,p=o?a+l:c;for(let f=d;f=u&&h.type===n)return f}if(o){let f=s[u];if(f&&Ve(f)&&f.type===n)return u}return null}function ct(e,t,n,r){let o=e[n],i=t.data;if(Ph(o)){let s=o;s.resolving&&Fp(Op(i[n]));let a=Lr(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?J(s.injectImpl):null,l=Uc(e,r,M.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Rh(n,i[n],t)}finally{c!==null&&J(c),Lr(a),s.resolving=!1,Wc()}}return o}function qh(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(dn)?e[dn]:void 0;return typeof t=="number"?t>=0?t&Jc:Wh:t}function yu(e,t,n){let r=1<>Xc)]&r)}function vu(e,t){return!(e&M.Self)&&!(e&M.Host&&t)}var tt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return rl(this._tNode,this._lView,t,no(r),n)}};function Wh(){return new tt(V(),I())}function ZS(e){return wn(()=>{let t=e.prototype.constructor,n=t[Mr]||Si(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Mr]||Si(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Si(e){return tc(e)?()=>{let t=Si(q(e));return t&&t()}:nt(e)}function Zh(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[m]&2048&&!(s[m]&512);){let a=ol(i,s,n,r|M.Self,De);if(a!==De)return a;let u=i.parent;if(!u){let c=s[wc];if(c){let l=c.get(n,De,r);if(l!==De)return l}u=il(s),s=s[Yt]}i=u}return o}function il(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[ne]:null}function sl(e){return zh(V(),e)}function Du(e,t=null,n=null,r){let o=al(e,t,n,r);return o.resolveInjectorInitializers(),o}function al(e,t=null,n=null,r,o=new Set){let i=[n||W,Jp(e)];return r=r||(typeof e=="object"?void 0:X(e)),new pn(i,t||oo(),r||null,o)}var Ie=class e{static THROW_IF_NOT_FOUND=fn;static NULL=new Nr;static create(t,n){if(Array.isArray(t))return Du({name:""},n,t,"");{let r=t.name??"";return Du({name:r},t.parent,t.providers,r)}}static \u0275prov=F({token:e,providedIn:"any",factory:()=>te(lc)});static __NG_ELEMENT_ID__=-1};var Eu=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>sl(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},Yh=new N("");Yh.__NG_ELEMENT_ID__=e=>{let t=V();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&M.Optional)return null;throw new S(204,!1)};var ul=!1,Mn=(()=>{class e{static __NG_ELEMENT_ID__=Qh;static __NG_ENV_ID__=n=>n}return e})(),Vr=class extends Mn{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return Rc(this._lView,t),()=>yh(this._lView,t)}};function Qh(){return new Vr(I())}var lt=class{},Ls=new N("",{providedIn:"root",factory:()=>!1});var cl=new N(""),ll=new N(""),Sn=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new tn(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ti=class extends Q{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Ic()&&(this.destroyRef=w(Mn,{optional:!0})??void 0,this.pendingTasks=w(Sn,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof L&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Re=Ti;function mn(...e){}function dl(e){let t,n;function r(){e=mn;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Iu(e){return queueMicrotask(()=>e()),()=>{e=mn}}var js="isAngularZone",Br=js+"_ID",Kh=0,ee=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Re(!1);onMicrotaskEmpty=new Re(!1);onStable=new Re(!1);onError=new Re(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=ul}=t;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,eg(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(js)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Jh,mn,mn);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Jh={};function Vs(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 Xh(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){dl(()=>{e.callbackScheduled=!1,xi(e),e.isCheckStableRunning=!0,Vs(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),xi(e)}function eg(e){let t=()=>{Xh(e)},n=Kh++;e._inner=e._inner.fork({name:"angular",properties:{[js]:!0,[Br]:n,[Br+n]:!0},onInvokeTask:(r,o,i,s,a,u)=>{if(tg(u))return r.invokeTask(i,s,a,u);try{return wu(e),r.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Cu(e)}},onInvoke:(r,o,i,s,a,u,c)=>{try{return wu(e),r.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!ng(u)&&t(),Cu(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,xi(e),Vs(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function xi(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function wu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Cu(e){e._nesting--,Vs(e)}var Ni=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Re;onMicrotaskEmpty=new Re;onStable=new Re;onError=new Re;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function tg(e){return fl(e,"__ignore_ng_zone__")}function ng(e){return fl(e,"__scheduler_tick__")}function fl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var dt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},rg=new N("",{providedIn:"root",factory:()=>{let e=w(ee),t=w(dt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function bu(e,t){return Ju(e,t)}function og(e){return Ju(Ku,e)}var YS=(bu.required=og,bu);function ig(){return Qt(V(),I())}function Qt(e,t){return new ze(se(e,t))}var ze=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=ig}return e})();function pl(e){return e instanceof ze?e.nativeElement:e}function sg(){return this._results[Symbol.iterator]()}var Ai=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Q}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=qp(t);(this._changesDetected=!Gp(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=sg};function hl(e){return(e.flags&128)===128}var gl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(gl||{}),ml=new Map,ag=0;function ug(){return ag++}function cg(e){ml.set(e[so],e)}function Oi(e){ml.delete(e[so])}var _u="__ngContext__";function ft(e,t){Pe(t)?(e[_u]=t[so],cg(t)):e[_u]=t}function yl(e){return Dl(e[hn])}function vl(e){return Dl(e[pe])}function Dl(e){for(;e!==null&&!Ne(e);)e=e[pe];return e}var Fi;function QS(e){Fi=e}function lg(){if(Fi!==void 0)return Fi;if(typeof document<"u")return document;throw new S(210,!1)}var KS=new N("",{providedIn:"root",factory:()=>dg}),dg="ng",fg=new N(""),pg=new N("",{providedIn:"platform",factory:()=>"unknown"});var JS=new N(""),XS=new N("",{providedIn:"root",factory:()=>lg().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var hg="h",gg="b";var El=!1,mg=new N("",{providedIn:"root",factory:()=>El});var Bs=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Bs||{}),fo=new N(""),Mu=new Set;function he(e){Mu.has(e)||(Mu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Rt=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Rt||{}),Il=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}return e})(),yg=[Rt.EarlyRead,Rt.Write,Rt.MixedReadWrite,Rt.Read],vg=(()=>{class e{ngZone=w(ee);scheduler=w(lt);errorHandler=w(dt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){w(fo,{optional:!0})}execute(){this.executing=!0;for(let n of yg)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>r.hooks[n](r.pipelinedValue),r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(7))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?.run(Bs.AFTER_NEXT_RENDER,n)??n()}static \u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ri=class{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i=null){this.impl=t,this.hooks=n,this.once=r,this.snapshot=i,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Dg(e,t){!t?.injector&&io(Dg);let n=t?.injector??w(Ie);return he("NgAfterRender"),wl(e,n,t,!1)}function Eg(e,t){!t?.injector&&io(Eg);let n=t?.injector??w(Ie);return he("NgAfterNextRender"),wl(e,n,t,!0)}function Ig(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function wl(e,t,n,r){let o=t.get(Il);o.impl??=t.get(vg);let i=t.get(fo,null,{optional:!0}),s=n?.phase??Rt.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(Mn):null,u=new Ri(o.impl,Ig(e,s),r,a,i?.snapshot(null));return o.impl.register(u),u}var wg=()=>null;function Hs(e,t,n=!1){return wg(e,t,n)}var yn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(yn||{}),fr;function Cg(){if(fr===void 0&&(fr=null,_r.trustedTypes))try{fr=_r.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return fr}function po(e){return Cg()?.createHTML(e)||e}var pr;function bg(){if(pr===void 0&&(pr=null,_r.trustedTypes))try{pr=_r.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return pr}function Su(e){return bg()?.createScriptURL(e)||e}var Te=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Yu})`}},ki=class extends Te{getTypeName(){return"HTML"}},Pi=class extends Te{getTypeName(){return"Style"}},Li=class extends Te{getTypeName(){return"Script"}},ji=class extends Te{getTypeName(){return"URL"}},Vi=class extends Te{getTypeName(){return"ResourceURL"}};function Tn(e){return e instanceof Te?e.changingThisBreaksApplicationSecurity:e}function Cl(e,t){let n=_g(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Yu})`)}return n===t}function _g(e){return e instanceof Te&&e.getTypeName()||null}function e0(e){return new ki(e)}function t0(e){return new Pi(e)}function n0(e){return new Li(e)}function r0(e){return new ji(e)}function o0(e){return new Vi(e)}function Mg(e){let t=new Hi(e);return Sg()?new Bi(t):t}var Bi=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(po(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Hi=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=po(t),n}};function Sg(){try{return!!new window.DOMParser().parseFromString(po(""),"text/html")}catch{return!1}}var Tg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bl(e){return e=String(e),e.match(Tg)?e:"unsafe:"+e}function Ae(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function xn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var _l=Ae("area,br,col,hr,img,wbr"),Ml=Ae("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Sl=Ae("rp,rt"),xg=xn(Sl,Ml),Ng=xn(Ml,Ae("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")),Ag=xn(Sl,Ae("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")),Tu=xn(_l,Ng,Ag,xg),Tl=Ae("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Og=Ae("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"),Fg=Ae("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"),Rg=xn(Tl,Og,Fg),kg=Ae("script,style,template"),$i=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=jg(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Lg(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=xu(t).toLowerCase();if(!Tu.hasOwnProperty(n))return this.sanitizedSomething=!0,!kg.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=xu(t).toLowerCase();Tu.hasOwnProperty(n)&&!_l.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Nu(t))}};function Pg(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Lg(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw xl(t);return t}function jg(e){let t=e.firstChild;if(t&&Pg(e,t))throw xl(t);return t}function xu(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function xl(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Vg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bg=/([^\#-~ |!])/g;function Nu(e){return e.replace(/&/g,"&").replace(Vg,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Bg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var hr;function i0(e,t){let n=null;try{hr=hr||Mg(e);let r=t?String(t):"";n=hr.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=hr.getInertBodyElement(r)}while(r!==i);let a=new $i().sanitizeChildren(Au(n)||n);return po(a)}finally{if(n){let r=Au(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Au(e){return"content"in e&&Hg(e)?e.content:null}function Hg(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var $s=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}($s||{});function $g(e){let t=Nl();return t?t.sanitize($s.URL,e)||"":Cl(e,"URL")?Tn(e):bl(to(e))}function Ug(e){let t=Nl();if(t)return Su(t.sanitize($s.RESOURCE_URL,e)||"");if(Cl(e,"ResourceURL"))return Su(Tn(e));throw new S(904,!1)}function zg(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Ug:$g}function s0(e,t,n){return zg(t,n)(e)}function Nl(){let e=I();return e&&e[Me].sanitizer}function Al(e){return e instanceof Function?e():e}var Be=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Be||{}),vn=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(vn||{}),Gg;function Us(e,t){return Gg(e,t)}function kt(e,t,n,r,o){if(r!=null){let i,s=!1;Ne(r)?i=r:Pe(r)&&(s=!0,r=r[xe]);let a=Ee(r);e===0&&n!==null?o==null?Pl(t,n,a):Hr(t,n,a,o||null,!0):e===1&&n!==null?Hr(t,n,a,o||null,!0):e===2?om(t,a,s):e===3&&t.destroyNode(a),i!=null&&sm(t,e,i,n,o)}}function qg(e,t){return e.createText(t)}function Wg(e,t,n){e.setValue(t,n)}function Ol(e,t,n){return e.createElement(t,n)}function Zg(e,t){Fl(e,t),t[xe]=null,t[ne]=null}function Yg(e,t,n,r,o,i){r[xe]=o,r[ne]=t,go(e,r,n,1,o,i)}function Fl(e,t){t[Me].changeDetectionScheduler?.notify(10),go(e,t,t[k],2,null,null)}function Qg(e){let t=e[hn];if(!t)return oi(e[E],e);for(;t;){let n=null;if(Pe(t))n=t[hn];else{let r=t[$];r&&(n=r)}if(!n){for(;t&&!t[pe]&&t!==e;)Pe(t)&&oi(t[E],t),t=t[U];t===null&&(t=e),Pe(t)&&oi(t[E],t),n=t&&t[pe]}t=n}}function Kg(e,t,n,r){let o=$+r,i=n.length;r>0&&(n[o-1][pe]=t),r0&&(e[n-1][pe]=r[pe]);let i=Tr(e,$+t);Zg(r[E],r);let s=i[Se];s!==null&&s.detachView(i[E]),r[U]=null,r[pe]=null,r[m]&=-129}return r}function ho(e,t){if(!(t[m]&256)){let n=t[k];n.destroyNode&&go(e,t,n,3,null,null),Qg(t)}}function oi(e,t){if(t[m]&256)return;let n=b(null);try{t[m]&=-129,t[m]|=256,t[oe]&&Et(t[oe]),Xg(e,t),Jg(e,t),t[E].type===1&&t[k].destroy();let r=t[rt];if(r!==null&&Ne(t[U])){r!==t[U]&&zs(r,t);let o=t[Se];o!==null&&o.detachView(e)}Oi(t)}finally{b(n)}}function Jg(e,t){let n=e.cleanup,r=t[Ar];if(n!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Ar]=null);let o=t[ke];if(o!==null){t[ke]=null;for(let s=0;s-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===yn.None||i===yn.Emulated)return null}return se(r,n)}}function Hr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Pl(e,t,n){e.appendChild(t,n)}function Ou(e,t,n,r,o){r!==null?Hr(e,t,n,r,o):Pl(e,t,n)}function Ll(e,t){return e.parentNode(t)}function tm(e,t){return e.nextSibling(t)}function jl(e,t,n){return rm(e,t,n)}function nm(e,t,n){return e.type&40?se(e,n):null}var rm=nm,Fu;function Gs(e,t,n,r){let o=kl(e,r,t),i=t[k],s=r.parent||t[ne],a=jl(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;u-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(de(r))return!1;s=!0}}}}return de(r)||s}function de(e){return(e&1)===0}function pm(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!de(s)&&(t+=Ru(i,o),o=""),r=s,i=i||!de(r);n++}return o!==""&&(t+=Ru(i,o)),t}function Dm(e){return e.map(vm).join(",")}function Em(e){let t=[],n=[],r=1,o=2;for(;rz&&Gl(e,t,z,!1),ve(s?2:0,o),n(r,o)}finally{at(i),ve(s?3:1,o)}}function Yl(e,t,n){if(bc(t)){let r=b(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function Sm(e,t,n,r){let o=id(t);o.push(n),e.firstCreatePass&&sd(e).push(r,o.length-1)}function Tm(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Pc()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,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 ku(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=Be.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Pu(r,n,c,a,u):Pu(r,n,c,a)}return r}function Pu(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function xm(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Rm(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;ao(n)&&Hm(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||jr(n,t),ft(r,t);let s=n.initialInputs;for(let a=o;a{bn(e.lView)},consumerOnSignalRead(){this.lView[oe]=this}});function ty(e){let t=e[oe]??Object.create(ny);return t.lView=e,t}var ny=Y(Z({},Ge),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=st(e.lView);for(;t&&!dd(t[E]);)t=st(t);t&&xs(t)},consumerOnSignalRead(){this.lView[oe]=this}});function dd(e){return e.type!==2}function fd(e){if(e[ot]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[ot])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[m]&8192)}}var ry=100;function pd(e,t=!0,n=0){let o=e[Me].rendererFactory,i=!1;i||o.begin?.();try{oy(e,n)}catch(s){throw t&&ad(e,s),s}finally{i||o.end?.()}}function oy(e,t){let n=Bc();try{Rr(!0),qi(e,t);let r=0;for(;uo(e);){if(r===ry)throw new S(103,!1);r++,qi(e,1)}}finally{Rr(n)}}function iy(e,t,n,r){let o=t[m];if((o&256)===256)return;let i=!1,s=!1;As(t);let a=!0,u=null,c=null;i||(dd(e)?(c=Km(t),u=Dt(c)):ha()===null?(a=!1,c=ty(t),u=Dt(c)):t[oe]&&(Et(t[oe]),t[oe]=null));try{Fc(t),_h(e.bindingStartIndex),n!==null&&Zl(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Er(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Ir(t,f,0,null),ti(t,0)}if(s||sy(t),fd(t),hd(t,0),e.contentQueries!==null&&od(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Er(t,f)}else{let f=e.contentHooks;f!==null&&Ir(t,f,1),ti(t,1)}Im(e,t);let d=e.components;d!==null&&md(t,d,0);let p=e.viewQuery;if(p!==null&&Gi(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Er(t,f)}else{let f=e.viewHooks;f!==null&&Ir(t,f,2),ti(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Dr]){for(let f of t[Dr])f();t[Dr]=null}i||(t[m]&=-73)}catch(l){throw i||bn(t),l}finally{c!==null&&(Xt(c,u),a&&Xm(c)),Os()}}function hd(e,t){for(let n=yl(e);n!==null;n=vl(n))for(let r=$;r-1&&(Dn(t,r),Tr(n,r))}this._attachedToViewContainer=!1}ho(this._lView[E],this._lView)}onDestroy(t){Rc(this._lView,t)}markForCheck(){Js(this._cdRefInjectingView||this._lView,4)}markForRefresh(){xs(this._cdRefInjectingView||this._lView)}detach(){this._lView[m]&=-129}reattach(){Ei(this._lView),this._lView[m]|=128}detectChanges(){this._lView[m]|=1024,pd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=vi(this._lView),n=this._lView[rt];n!==null&&!t&&zs(n,this._lView),Fl(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=vi(this._lView),r=this._lView[rt];r!==null&&!n&&Rl(r,this._lView),Ei(this._lView)}},En=(()=>{class e{static __NG_ELEMENT_ID__=ly}return e})(),uy=En,cy=class extends uy{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=An(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new pt(o)}};function ly(){return vo(V(),I())}function vo(e,t){return e.type&4?new cy(t,e,Qt(e,t)):null}var l0=new RegExp(`^(\\d+)*(${gg}|${hg})*(.*)`);var dy=()=>null;function Gt(e,t){return dy(e,t)}var Wi=class{},Ur=class{},Zi=class{resolveComponentFactory(t){throw Error(`No component factory found for ${X(t)}.`)}},qt=class{static NULL=new Zi},zr=class{},Do=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>fy()}return e})();function fy(){let e=I(),t=V(),n=$e(t.index,e);return(Pe(n)?n:e)[k]}var py=(()=>{class e{static \u0275prov=F({token:e,providedIn:"root",factory:()=>null})}return e})();function Yi(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Hl(e,n,i.join(" "))}}function Ey(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static __NG_ELEMENT_ID__=wy}return e})();function wy(){let e=V();return vd(e,I())}var Cy=Fn,yd=class extends Cy{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Qt(this._hostTNode,this._hostLView)}get injector(){return new tt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ps(this._hostTNode,this._hostLView);if(Kc(t)){let n=Pr(t,this._hostLView),r=kr(t),o=n[E].data[r+8];return new tt(o,n)}else return new tt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=ju(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-$}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Gt(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,zt(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!ch(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let u=s?t:new Wt(Le(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let D=(s?c:this.parentInjector).get(je,null);D&&(i=D)}let l=Le(u.componentType??{}),d=Gt(this._lContainer,l?.id??null),p=d?.firstChild??null,f=u.create(c,o,p,i);return this.insertImpl(f.hostView,a,zt(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(gh(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[U],c=new yd(u,u[ne],u[U]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return On(s,o,i,r),t.attachToViewContainerRef(),cc(ii(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=ju(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Dn(this._lContainer,n);r&&(Tr(ii(this._lContainer),n),ho(r[E],r))}detach(t){let n=this._adjustIndex(t,-1),r=Dn(this._lContainer,n);return r&&Tr(ii(this._lContainer),n)!=null?new pt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function ju(e){return e[Or]}function ii(e){return e[Or]||(e[Or]=[])}function vd(e,t){let n,r=t[e.index];return Ne(r)?n=r:(n=rd(r,t,null,e),t[e.index]=n,yo(t,n)),_y(n,t,e,r),new yd(n,e,t)}function by(e,t){let n=e[k],r=n.createComment(""),o=se(t,e),i=Ll(n,o);return Hr(n,i,r,tm(n,o),!1),r}var _y=Ty,My=()=>!1;function Sy(e,t,n){return My(e,t,n)}function Ty(e,t,n,r){if(e[it])return;let o;n.type&8?o=Ee(r):o=by(t,n),e[it]=o}var Ki=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ji=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=$;dt.trim())}function wd(e,t,n){e.queries===null&&(e.queries=new Xi),e.queries.track(new es(t,n))}function ky(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function ea(e,t){return e.queries.getByIndex(t)}function Cd(e,t){let n=e[E],r=ea(n,t);return r.crossesNgTemplate?ts(n,e,t,[]):Dd(n,e,r,t)}function Py(e){return typeof e=="function"&&e[B]!==void 0}function Ly(e,t){he("NgSignals");let n=ba(e),r=n[B];return t?.equal&&(r.equal=t.equal),n.set=o=>Vn(r,o),n.update=o=>_a(r,o),n.asReadonly=jy.bind(n),n}function jy(){let e=this[B];if(e.readonlyFn===void 0){let t=()=>this();t[B]=e,e.readonlyFn=t}return e.readonlyFn}function bd(e){return Py(e)&&typeof e.set=="function"}function _d(e,t,n){let r,o=Oo(()=>{r._dirtyCounter();let i=$y(r,e);if(t&&i===void 0)throw new S(-951,!1);return i});return r=o[B],r._dirtyCounter=Ly(0),r._flatValue=void 0,o}function Vy(e){return _d(!0,!1,e)}function By(e){return _d(!0,!0,e)}function Hy(e,t){let n=e[B];n._lView=I(),n._queryIndex=t,n._queryList=Xs(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function $y(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[m]&4)return t?void 0:W;let o=Xs(n,r),i=Cd(n,r);return o.reset(i,pl),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Vu(e,t){return Vy(t)}function Uy(e,t){return By(t)}var f0=(Vu.required=Uy,Vu);var He=class{},ns=class{};var rs=class extends He{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Gr(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=fc(t);this._bootstrapComponents=Al(i.bootstrap),this._r3Injector=al(t,n,[{provide:He,useValue:this},{provide:qt,useValue:this.componentFactoryResolver},...r],X(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},os=class extends ns{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new rs(this.moduleType,t,[])}};var Wr=class extends He{injector;componentFactoryResolver=new Gr(this);instance=null;constructor(t){super();let n=new pn([...t.providers,{provide:He,useValue:this},{provide:qt,useValue:this.componentFactoryResolver}],t.parent||oo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function zy(e,t,n=null){return new Wr({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Gy=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=gc(!1,n.type),o=r.length>0?zy([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=F({token:e,providedIn:"environment",factory:()=>new e(te(je))})}return e})();function p0(e){return wn(()=>{let t=Td(e),n=Y(Z({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===gl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Gy).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||yn.Emulated,styles:e.styles||W,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&he("NgStandalone"),xd(n);let r=e.dependencies;return n.directiveDefs=Hu(r,!1),n.pipeDefs=Hu(r,!0),n.id=Zy(n),n})}function qy(e){return Le(e)||pc(e)}function Wy(e){return e!==null}function Md(e){return wn(()=>({type:e.type,bootstrap:e.bootstrap||W,declarations:e.declarations||W,imports:e.imports||W,exports:e.exports||W,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Bu(e,t){if(e==null)return jt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Be.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Be.None?[r,a]:r,t[i]=s):n[i]=r}return n}function Eo(e){return wn(()=>{let t=Td(e);return xd(t),t})}function Sd(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Td(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||jt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||W,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Bu(e.inputs,t),outputs:Bu(e.outputs),debugInfo:null}}function xd(e){e.features?.forEach(t=>t(e))}function Hu(e,t){if(!e)return null;let n=t?hc:qy;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Wy)}function Zy(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Yy(e){return Object.getPrototypeOf(e.prototype).constructor}function Qy(e){let t=Yy(e.type),n=!0,r=[e];for(;t;){let o;if(Ve(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new S(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=gr(e.inputs),s.inputTransforms=gr(e.inputTransforms),s.declaredInputs=gr(e.declaredInputs),s.outputs=gr(e.outputs);let a=o.hostBindings;a&&tv(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&Xy(e,u),c&&ev(e,c),Ky(e,o),bp(e.outputs,o.outputs),Ve(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=gn(o.hostAttrs,n=gn(n,o.hostAttrs))}}function gr(e){return e===jt?{}:e===W?[]:e}function Xy(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function ev(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function tv(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function nv(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)&&o[3]&&(n[r]=o[3])}e.inputTransforms=n}function Nd(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Ad(e,t,n){return e[t]=n}function rv(e,t){return e[t]}function we(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function ov(e){return(e.flags&32)===32}function iv(e,t,n,r,o,i,s,a,u){let c=t.consts,l=Nn(t,e,4,s||null,a||null);Xl(t,n,l,Ut(c,u)),ks(t,l);let d=l.tView=Zs(2,l,r,o,i,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 Zr(e,t,n,r,o,i,s,a,u,c){let l=n+z,d=t.firstCreatePass?iv(l,t,e,r,o,i,s,a,u):t.data[l];_n(d,!1);let p=av(t,e,d,n);Fs()&&Gs(t,e,p,d),ft(p,e);let f=rd(p,e,p,d);return e[l]=f,yo(e,f),Sy(f,d,e),Ms(d)&&Ql(t,e,d),u!=null&&Kl(e,d,c),d}function sv(e,t,n,r,o,i,s,a){let u=I(),c=P(),l=Ut(c.consts,i);return Zr(u,c,e,t,n,r,o,l,s,a),sv}var av=uv;function uv(e,t,n,r){return Rs(!0),t[k].createComment("")}var h0=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var cv=new N("");function Io(e){return!!e&&typeof e.then=="function"}function ta(e){return!!e&&typeof e.subscribe=="function"}var lv=new N("");var Od=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=w(lv,{optional:!0})??[];injector=w(Ie);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ec(this.injector,o);if(Io(i))n.push(i);else if(ta(i)){let s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Fd=(()=>{class e{static \u0275prov=F({token:e,providedIn:"root",factory:()=>new Yr})}return e})(),Yr=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},dv=new N("");function fv(){Ca(()=>{throw new S(600,!1)})}function pv(e){return e.isBoundToModule}var hv=10;function gv(e,t,n){try{let r=n();return Io(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var wo=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=w(rg);afterRenderManager=w(Il);zonelessEnabled=w(Ls);rootEffectScheduler=w(Fd);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Q;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=w(Sn).hasPendingTasks.pipe(_e(n=>!n));constructor(){w(fo,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=w(je);get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Ur;if(!this._injector.get(Od).done){let p=!o&&Qp(n),f=!1;throw new S(405,f)}let s;o?s=n:s=this._injector.get(qt).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=pv(s)?void 0:this._injector.get(He),u=r||s.selector,c=s.create(Ie.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(cv,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Cr(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run(Bs.CHANGE_DETECTION,this._tick);return}if(this._runningTick)throw new S(101,!1);let n=b(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,b(n),this.afterTick.next()}};synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(zr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++uo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Cr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(dv,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Cr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Cr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function mv(e,t,n,r){if(!n&&!uo(e))return;pd(e,t,n&&!r?0:1)}function yv(e,t,n,r){let o=I(),i=gt();if(we(o,i,t)){let s=P(),a=lo();$m(a,o,e,t,n,r)}return yv}function Rd(e,t,n,r){return we(e,gt(),n)?t+to(n)+r:ge}function mr(e,t){return e<<17|t<<2}function ht(e){return e>>17&32767}function vv(e){return(e&2)==2}function Dv(e,t){return e&131071|t<<17}function is(e){return e|2}function Zt(e){return(e&131068)>>2}function si(e,t){return e&-131069|t<<2}function Ev(e){return(e&1)===1}function ss(e){return e|1}function Iv(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ht(s),u=Zt(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Cn(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let p=ht(e[a+1]);e[r+1]=mr(p,a),p!==0&&(e[p+1]=si(e[p+1],r)),e[a+1]=Dv(e[a+1],r)}else e[r+1]=mr(a,0),a!==0&&(e[a+1]=si(e[a+1],r)),a=r;else e[r+1]=mr(u,0),a===0?a=r:e[u+1]=si(e[u+1],r),u=r;c&&(e[r+1]=is(e[r+1])),$u(e,l,r,!0),$u(e,l,r,!1),wv(t,l,e,r,i),s=mr(a,u),i?t.classBindings=s:t.styleBindings=s}function wv(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Cn(i,t)>=0&&(n[r+1]=ss(n[r+1]))}function $u(e,t,n,r){let o=e[n+1],i=t===null,s=r?ht(o):Zt(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];Cv(u,t)&&(a=!0,e[s+1]=r?ss(c):is(c)),s=r?ht(c):Zt(c)}a&&(e[n+1]=r?is(o):ss(o))}function Cv(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Cn(e,t)>=0:!1}var fe={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bv(e){return e.substring(fe.key,fe.keyEnd)}function _v(e){return Mv(e),kd(e,Pd(e,0,fe.textEnd))}function kd(e,t){let n=fe.textEnd;return n===t?-1:(t=fe.keyEnd=Sv(e,fe.key=t,n),Pd(e,t,n))}function Mv(e){fe.key=0,fe.keyEnd=0,fe.value=0,fe.valueEnd=0,fe.textEnd=e.length}function Pd(e,t,n){for(;t32;)t++;return t}function Tv(e,t,n){let r=I(),o=gt();if(we(r,o,t)){let i=P(),s=lo();Ys(i,s,r,e,t,r[k],n,!1)}return Tv}function as(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Qs(e,n,i[s],s,r)}function Ld(e,t,n){return Vd(e,t,n,!1),Ld}function xv(e,t){return Vd(e,t,null,!0),xv}function g0(e){Bd(kv,jd,e,!0)}function jd(e,t){for(let n=_v(t);n>=0;n=kd(t,n))ro(e,bv(t),!0)}function Vd(e,t,n,r){let o=I(),i=P(),s=$c(2);if(i.firstUpdatePass&&$d(i,e,s,r),t!==ge&&we(o,s,t)){let a=i.data[Ue()];Ud(i,a,o,o[k],e,o[s+1]=Lv(t,n),r,s)}}function Bd(e,t,n,r){let o=P(),i=$c(2);o.firstUpdatePass&&$d(o,null,i,r);let s=I();if(n!==ge&&we(s,i,n)){let a=o.data[Ue()];if(zd(a,r)&&!Hd(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=di(u,n||"")),as(o,a,s,n,r)}else Pv(o,a,s,s[k],s[i+1],s[i+1]=Rv(e,t,n),r,i)}}function Hd(e,t){return t>=e.expandoStartIndex}function $d(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ue()],s=Hd(e,n);zd(i,r)&&t===null&&!s&&(t=!1),t=Nv(o,i,t,r),Iv(o,i,t,n,s,r)}}function Nv(e,t,n,r){let o=xh(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ai(null,e,t,n,r),n=In(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ai(o,e,t,n,r),i===null){let u=Av(e,t,r);u!==void 0&&Array.isArray(u)&&(u=ai(null,e,t,u[1],r),u=In(u,t.attrs,r),Ov(e,t,r,u))}else i=Fv(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Av(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Zt(r)!==0)return e[ht(r)]}function Ov(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ht(o)]=r}function Fv(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,p=n[o+1];p===ge&&(p=d?W:void 0);let f=d?Xo(p,r):l===r?p:void 0;if(c&&!Qr(f)&&(f=Xo(u,r)),Qr(f)&&(a=f,s))return a;let h=e[o+1];o=s?ht(h):Zt(h)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=Xo(u,r))}return a}function Qr(e){return e!==void 0}function Lv(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=X(Tn(e)))),e}function zd(e,t){return(e.flags&(t?8:16))!==0}function m0(e,t,n){let r=I(),o=Rd(r,e,t,n);Bd(ro,jd,o,!0)}var us=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function ui(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function jv(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=ui(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let p=e.at(s),f=t[u],h=ui(s,p,u,f,n);if(h!==0){h<0&&e.updateValue(s,f),s--,u--;continue}let D=n(i,c),O=n(s,p),_=n(i,l);if(Object.is(_,O)){let R=n(u,f);Object.is(R,D)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new Kr,o??=Gu(e,i,s,n),cs(e,r,i,_))e.updateValue(i,l),i++,s++;else if(o.has(_))r.set(D,e.detach(i)),s--;else{let R=e.create(i,t[i]);e.attach(i,R),i++,s++}}for(;i<=u;)zu(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,p=ui(i,l,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new Kr,o??=Gu(e,i,s,n);let f=n(i,d);if(cs(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let h=n(i,l);r.set(h,e.detach(i)),s--}}}for(;!c.done;)zu(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function cs(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function zu(e,t,n,r,o){if(cs(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Gu(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Kr=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function y0(e,t){he("NgControlFlow");let n=I(),r=gt(),o=n[r]!==ge?n[r]:-1,i=o!==-1?Jr(n,z+o):void 0,s=0;if(we(n,r,e)){let a=b(null);try{if(i!==void 0&&cd(i,s),e!==-1){let u=z+e,c=Jr(n,u),l=ps(n[E],u),d=Gt(c,l.tView.ssrId),p=An(n,l,t,{dehydratedView:d});On(c,p,s,zt(l,d))}}finally{b(a)}}else if(i!==void 0){let a=ud(i,s);a!==void 0&&(a[H]=t)}}var ls=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-$}};function v0(e){return e}function D0(e,t){return t}var ds=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function E0(e,t,n,r,o,i,s,a,u,c,l,d,p){he("NgControlFlow");let f=I(),h=P(),D=u!==void 0,O=I(),_=a?s.bind(O[ie][H]):s,R=new ds(D,_);O[z+e]=R,Zr(f,h,e+1,t,n,r,o,Ut(h.consts,i)),D&&Zr(f,h,e+2,u,c,l,d,Ut(h.consts,p))}var fs=class extends us{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-$}at(t){return this.getLView(t)[H].$implicit}attach(t,n){let r=n[Bt];this.needsIndexUpdate||=t!==this.length,On(this.lContainer,n,t,zt(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Vv(this.lContainer,t)}create(t,n){let r=Gt(this.lContainer,this.templateTNode.tView.ssrId),o=An(this.hostLView,this.templateTNode,new ls(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){ho(t[E],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[H].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(Rs(!0),Ol(r,o,Fh()));function w0(){return I()}function zv(e,t,n){let r=I(),o=gt();if(we(r,o,t)){let i=P(),s=lo();Ys(i,s,r,e,t,r[k],n,!0)}return zv}var Xr="en-US";var Gv=Xr;function qv(e){typeof e=="string"&&(Gv=e.toLowerCase().replace(/_/g,"-"))}var Wv=(e,t,n)=>{};function Zv(e,t,n,r){let o=I(),i=P(),s=V();return Wd(i,o,o[k],s,e,t,r),Zv}function Yv(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function Wd(e,t,n,r,o,i,s){let a=Ms(r),c=e.firstCreatePass&&sd(e),l=t[H],d=id(t),p=!0;if(r.type&3||s){let D=se(r,t),O=s?s(D):D,_=d.length,R=s?ue=>s(Ee(ue[r.index])):r.index,Ce=null;if(!s&&a&&(Ce=Yv(e,t,o,r.index)),Ce!==null){let ue=Ce.__ngLastListenerFn__||Ce;ue.__ngNextListenerFn__=i,Ce.__ngLastListenerFn__=i,p=!1}else{i=Wu(r,t,l,i),Wv(D,o,i);let ue=n.listen(O,o,i);d.push(i,ue),c&&c.push(o,R,_,_+1)}}else i=Wu(r,t,l,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let D=h.length;if(D)for(let O=0;O-1?$e(e.index,t):t;Js(s,5);let a=qu(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=qu(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function C0(e=1){return Ah(e)}function Qv(e,t){let n=null,r=hm(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function O0(e){let t=bh();return Oc(t,z+e)}function F0(e,t=""){let n=I(),r=P(),o=e+z,i=r.firstCreatePass?Nn(r,o,1,t,null):r.data[o],s=Xv(r,n,i,t,e);n[o]=s,Fs()&&Gs(r,n,s,i),_n(i,!1)}var Xv=(e,t,n,r,o)=>(Rs(!0),qg(t[k],r));function eD(e){return Zd("",e,""),eD}function Zd(e,t,n){let r=I(),o=Rd(r,e,t,n);return o!==ge&&qm(r,Ue(),o),Zd}function tD(e,t,n){bd(t)&&(t=t());let r=I(),o=gt();if(we(r,o,t)){let i=P(),s=lo();Ys(i,s,r,e,t,r[k],n,!1)}return tD}function R0(e,t){let n=bd(e);return n&&e.set(t),n}function nD(e,t){let n=I(),r=P(),o=V();return Wd(r,n,n[k],o,e,t),nD}function rD(e,t,n){let r=P();if(r.firstCreatePass){let o=Ve(e);hs(n,r.data,r.blueprint,o,!0),hs(t,r.data,r.blueprint,o,!1)}}function hs(e,t,n,r,o){if(e=q(e),Array.isArray(e))for(let i=0;i>20;if(Vt(e)||!e.multi){let f=new ut(c,o,ae),h=li(u,t,o?l:l+p,d);h===-1?(Mi(jr(a,s),i,u),ci(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=li(u,t,l+p,d),h=li(u,t,l,l+p),D=f>=0&&n[f],O=h>=0&&n[h];if(o&&!O||!o&&!D){Mi(jr(a,s),i,u);let _=sD(o?iD:oD,n.length,o,r,c);!o&&O&&(n[h].providerFactory=_),ci(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(_),s.push(_)}else{let _=Yd(n[o?h:f],c,!o&&r);ci(i,e,f>-1?f:h,_)}!o&&r&&O&&n[h].componentProviders++}}}function ci(e,t,n,r){let o=Vt(t),i=nh(t);if(o||i){let u=(i?q(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function Yd(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function li(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>rD(r,o?o(e):e,t)}}function P0(e,t,n){let r=Hc()+e,o=I();return o[r]===ge?Ad(o,r,n?t.call(n):t()):rv(o,r)}function aD(e,t){let n=e[t];return n===ge?void 0:n}function uD(e,t,n,r,o,i){let s=t+n;return we(e,s,o)?Ad(e,s+1,i?r.call(i,o):r(o)):aD(e,s+1)}function L0(e,t){let n=P(),r,o=e+z;n.firstCreatePass?(r=cD(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=nt(r.type,!0)),s,a=J(ae);try{let u=Lr(!1),c=i();return Lr(u),Jv(n,I(),o,c),c}finally{J(a)}}function cD(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function j0(e,t,n){let r=e+z,o=I(),i=Oc(o,r);return lD(o,r)?uD(o,Hc(),t,i.transform,n,i):i.transform(n)}function lD(e,t){return e[E].data[t].pure}function V0(e,t){return vo(e,t)}var ms=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},B0=(()=>{class e{compileModuleSync(n){return new os(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=fc(n),i=Al(o.declarations).reduce((s,a)=>{let u=Le(a);return u&&s.push(new Wt(u)),s},[]);return new ms(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var dD=(()=>{class e{zone=w(ee);changeDetectionScheduler=w(lt);applicationRef=w(wo);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fD=new N("",{factory:()=>!1});function Qd({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ee(Y(Z({},Kd()),{scheduleInRootZone:n})),[{provide:ee,useFactory:e},{provide:xr,multi:!0,useFactory:()=>{let r=w(dD,{optional:!0});return()=>r.initialize()}},{provide:xr,multi:!0,useFactory:()=>{let r=w(pD);return()=>{r.initialize()}}},t===!0?{provide:cl,useValue:!0}:[],{provide:ll,useValue:n??ul}]}function H0(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Qd({ngZoneFactory:()=>{let o=Kd(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&he("NgZone_CoalesceEvent"),new ee(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Kp([{provide:fD,useValue:!0},{provide:Ls,useValue:!1},r])}function Kd(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var pD=(()=>{class e{subscription=new L;initialized=!1;zone=w(ee);pendingTasks=w(Sn);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(()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ee.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var hD=(()=>{class e{appRef=w(wo);taskService=w(Sn);ngZone=w(ee);zonelessEnabled=w(Ls);tracing=w(fo,{optional:!0});disableScheduling=w(cl,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new L;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Br):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(ll,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ni||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Iu:dl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Br+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Iu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function gD(){return typeof $localize<"u"&&$localize.locale||Xr}var na=new N("",{providedIn:"root",factory:()=>w(na,M.Optional|M.SkipSelf)||gD()});var ys=new N("");function yr(e){return!e.moduleRef}function mD(e){let t=yr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ee);return n.run(()=>{yr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(dt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),yr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(ys);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ys);s.add(i),e.moduleRef.onDestroy(()=>{Cr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return gv(r,n,()=>{let i=t.get(Od);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(na,Xr);if(qv(s||Xr),yr(e)){let a=t.get(wo);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return yD(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function yD(e,t){let n=e.injector.get(wo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new S(-403,!1);t.push(e)}var br=null;function vD(e=[],t){return Ie.create({name:t,providers:[{provide:vc,useValue:"platform"},{provide:ys,useValue:new Set([()=>br=null])},...e]})}function DD(e=[]){if(br)return br;let t=vD(e);return br=t,fv(),ED(t),t}function ED(e){let t=e.get(fg,null);Ec(e,()=>{t?.forEach(n=>n())})}var Co=(()=>{class e{static __NG_ELEMENT_ID__=ID}return e})();function ID(e){return wD(V(),I(),(e&16)===16)}function wD(e,t,n){if(ao(e)&&!n){let r=$e(e.index,t);return new pt(r,r)}else if(e.type&175){let r=t[ie];return new pt(r,t)}return null}var vs=class{constructor(){}supports(t){return t instanceof Map||Nd(t)}create(){return new Ds}},Ds=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||Nd(t)))throw new S(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new Es(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},Es=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}};function Zu(){return new ra([new vs])}var ra=(()=>{class e{static \u0275prov=F({token:e,providedIn:"root",factory:Zu});factories;constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Zu()),deps:[[e,new zp,new Up]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new S(901,!1)}}return e})();function $0(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=DD(r),i=[Qd({}),{provide:lt,useExisting:hD},...n||[]],s=new Wr({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return mD({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function CD(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function bD(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function U0(e,t){he("NgSignals");let n=Oo(e);return t?.equal&&(n[B].equal=t.equal),n}function oa(e){let t=b(null);try{return e()}finally{b(t)}}var Jd=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=_D}return e})();function _D(){return new Jd(I(),V())}var MD=!1,SD=(()=>{class e extends Yr{pendingTasks=w(Sn);taskId=null;schedule(n){super.schedule(n),this.taskId===null&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{this.taskId!==null&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=F({token:e,providedIn:"root",factory:()=>new e})}return e})(),Is=class{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.zone=r,this.injector=i,this.watcher=Ma(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(dt,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function TD(){}function xD(e,t){he("NgSignals"),!t?.injector&&io(TD);let n=t?.injector??w(Ie),r=t?.manualCleanup!==!0?n.get(Mn):null,o=new Is(n.get(SD),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(Co,null,{optional:!0});return!i||!(i._lView[m]&8)?o.watcher.notify():(i._lView[Dr]??=[]).push(o.watcher.notify),o}var ND=MD;var ws=class{[B];constructor(t){this[B]=t}destroy(){this[B].destroy()}};function AD(e,t){if(ND)return xD(e,t);he("NgSignals"),!t?.injector&&io(AD);let n=t?.injector??w(Ie),r=t?.manualCleanup!==!0?n.get(Mn):null,o,i=n.get(Jd,null,{optional:!0}),s=n.get(lt);return i!==null&&!t?.forceRoot?(o=RD(i.view,s,e),r instanceof Vr&&r._lView===i.view&&(r=null)):o=kD(e,n.get(Fd),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new ws(o)}var Xd=Y(Z({},Ge),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:mn,run(){if(this.dirty=!1,this.hasRun&&!en(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=Dt(this),n=Rr(!1);try{this.maybeCleanup(),this.fn(e)}finally{Rr(n),Xt(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),OD=Y(Z({},Xd),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){Et(this),this.onDestroyFn(),this.maybeCleanup()}}),FD=Y(Z({},Xd),{consumerMarkedDirty(){this.view[m]|=8192,bn(this.view),this.notifier.notify(14)},destroy(){Et(this),this.onDestroyFn(),this.maybeCleanup(),this.view[ot]?.delete(this)}});function RD(e,t,n){let r=Object.create(FD);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[ot]??=new Set,e[ot].add(r),r.consumerMarkedDirty(r),r}function kD(e,t,n){let r=Object.create(OD);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(13),r}function z0(e,t){let n=Le(e),r=t.elementInjector||oo();return new Wt(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}var sf=null;function ia(){return sf}function gT(e){sf??=e}var ef=class{};var af=new N(""),uf=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:()=>w(LD),providedIn:"platform"})}return e})();var LD=(()=>{class e extends uf{_location;_history;_doc=w(af);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ia().getBaseHref(this._doc)}onPopState(n){let r=ia().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=ia().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function cf(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function tf(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function mt(e){return e&&e[0]!=="?"?"?"+e:e}var ca=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=F({token:e,factory:()=>w(VD),providedIn:"root"})}return e})(),jD=new N(""),VD=(()=>{class e extends ca{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??w(af).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 cf(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+mt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+mt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+mt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(te(uf),te(jD,8))};static \u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var BD=(()=>{class e{_subject=new Q;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=UD(tf(nf(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+mt(r))}normalize(n){return e.stripTrailingSlash($D(this._basePath,nf(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+mt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+mt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=mt;static joinWithSlash=cf;static stripTrailingSlash=tf;static \u0275fac=function(r){return new(r||e)(te(ca))};static \u0275prov=F({token:e,factory:()=>HD(),providedIn:"root"})}return e})();function HD(){return new BD(te(ca))}function $D(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function nf(e){return e.replace(/\/index.html$/,"")}function UD(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function mT(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var sa=/\s+/,rf=[],yT=(()=>{class e{_ngEl;_renderer;initialClasses=rf;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(sa):rf}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(sa):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(sa).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(ae(ze),ae(Do))};static \u0275dir=Eo({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var vT=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:vn.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||e)(ae(ze),ae(ra),ae(Do))};static \u0275dir=Eo({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),DT=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(ae(Fn))};static \u0275dir=Eo({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Mc]})}return e})();function zD(e,t){return new S(2100,!1)}var aa=class{createSubscription(t,n){return oa(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){oa(()=>t.unsubscribe())}},ua=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},GD=new ua,qD=new aa,ET=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(n){this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Io(n))return GD;if(ta(n))return qD;throw zD(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||e)(ae(Co,16))};static \u0275pipe=Sd({name:"async",type:e,pure:!1})}return e})();var IT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Md({type:e});static \u0275inj=nc({})}return e})(),WD="browser",ZD="server";function wT(e){return e===WD}function CT(e){return e===ZD}var of=class{};var Oe=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(Oe||{}),MT="*";function ST(e,t){return{type:Oe.Trigger,name:e,definitions:t,options:{}}}function TT(e,t=null){return{type:Oe.Animate,styles:t,timings:e}}function xT(e,t=null){return{type:Oe.Sequence,steps:e,options:t}}function NT(e){return{type:Oe.Style,styles:e,offset:null}}function AT(e,t,n){return{type:Oe.State,name:e,styles:t,options:n}}function OT(e,t,n=null){return{type:Oe.Transition,expr:e,animation:t,options:n}}function FT(e=null){return{type:Oe.AnimateChild,options:e}}function RT(e,t,n=null){return{type:Oe.Query,selector:e,animation:t,options:n}}var lf=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(t=0,n=0){this.totalTime=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},df=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(t){this.players=t;let n=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(o)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},kT="!";export{Z as a,Y as b,YD as c,pa as d,L as e,Mf as f,T as g,$o as h,Uo as i,Q as j,tn as k,Of as l,Ke as m,ye as n,Bf as o,Hf as p,$f as q,Xe as r,_e as s,Qf as t,le as u,sn as v,Nt as w,Jf as x,Xf as y,Wo as z,an as A,sp as B,et as C,ap as D,tu as E,up as F,ru as G,un as H,At as I,Zo as J,cp as K,lp as L,pp as M,iu as N,Qo as O,hp as P,gp as Q,mp as R,Jo as S,yp as T,vp as U,Dp as V,su as W,au as X,Ep as Y,Ip as Z,S as _,ec as $,F as aa,nc as ba,US as ca,N as da,M as ea,te as fa,w as ga,Kp as ha,Jp as ia,vc as ja,je as ka,Ec as la,Mc as ma,zS as na,GS as oa,qS as pa,WS as qa,ZS as ra,sl as sa,Ie as ta,Eu as ua,lt as va,Sn as wa,Re as xa,ee as ya,dt as za,YS as Aa,ze as Ba,Ai as Ca,QS as Da,KS as Ea,fg as Fa,pg as Ga,JS as Ha,XS as Ia,he as Ja,Dg as Ka,Eg as La,yn as Ma,Tn as Na,Cl as Oa,e0 as Pa,t0 as Qa,n0 as Ra,r0 as Sa,o0 as Ta,bl as Ua,i0 as Va,$s as Wa,s0 as Xa,vn as Ya,a0 as Za,ae as _a,u0 as $a,En as ab,zr as bb,Do as cb,Fn as db,Py as eb,Ly as fb,f0 as gb,He as hb,ns as ib,zy as jb,p0 as kb,Md as lb,Eo as mb,Qy as nb,nv as ob,sv as pb,h0 as qb,Io as rb,dv as sb,wo as tb,yv as ub,Tv as vb,Ld as wb,xv as xb,g0 as yb,m0 as zb,y0 as Ab,v0 as Bb,D0 as Cb,E0 as Db,I0 as Eb,Gd as Fb,qd as Gb,$v as Hb,w0 as Ib,zv as Jb,Zv as Kb,C0 as Lb,b0 as Mb,_0 as Nb,M0 as Ob,S0 as Pb,T0 as Qb,x0 as Rb,N0 as Sb,A0 as Tb,O0 as Ub,F0 as Vb,eD as Wb,Zd as Xb,tD as Yb,R0 as Zb,nD as _b,k0 as $b,P0 as ac,L0 as bc,j0 as cc,V0 as dc,B0 as ec,H0 as fc,Co as gc,$0 as hc,CD as ic,bD as jc,U0 as kc,oa as lc,AD as mc,z0 as nc,ia as oc,gT as pc,ef as qc,af as rc,ca as sc,BD as tc,mT as uc,yT as vc,vT as wc,DT as xc,ET as yc,IT as zc,WD as Ac,wT as Bc,CT as Cc,of as Dc,Oe as Ec,MT as Fc,ST as Gc,TT as Hc,xT as Ic,NT as Jc,AT as Kc,OT as Lc,FT as Mc,RT as Nc,lf as Oc,df as Pc,kT as Qc}; diff --git a/chunk-PQGE3PBD.js b/chunk-PQGE3PBD.js deleted file mode 100644 index e7386d2..0000000 --- a/chunk-PQGE3PBD.js +++ /dev/null @@ -1 +0,0 @@ -import{Ec as E,Fc as B,Ic as mt,Jc as Ne,Oc as x,Pc as Me,Qc as ue,_ as S,a as le,aa as dt,c as ft}from"./chunk-HPGNNBGR.js";function pt(i){return new S(3e3,!1)}function jt(){return new S(3100,!1)}function Wt(){return new S(3101,!1)}function Gt(i){return new S(3001,!1)}function Ht(i){return new S(3003,!1)}function Yt(i){return new S(3004,!1)}function Xt(i,e){return new S(3005,!1)}function Zt(){return new S(3006,!1)}function Jt(){return new S(3007,!1)}function xt(i,e){return new S(3008,!1)}function es(i){return new S(3002,!1)}function ts(i,e,t,s,n){return new S(3010,!1)}function ss(){return new S(3011,!1)}function ns(){return new S(3012,!1)}function is(){return new S(3200,!1)}function rs(){return new S(3202,!1)}function as(){return new S(3013,!1)}function os(i){return new S(3014,!1)}function ls(i){return new S(3015,!1)}function us(i){return new S(3016,!1)}function cs(i){return new S(3500,!1)}function hs(i){return new S(3501,!1)}function fs(i,e){return new S(3404,!1)}function ds(i){return new S(3502,!1)}function ms(i){return new S(3503,!1)}function ps(){return new S(3300,!1)}function gs(i){return new S(3504,!1)}function ys(i){return new S(3301,!1)}function _s(i,e){return new S(3302,!1)}function Ss(i){return new S(3303,!1)}function Es(i,e){return new S(3400,!1)}function Ts(i){return new S(3401,!1)}function vs(i){return new S(3402,!1)}function ws(i,e){return new S(3505,!1)}var bs=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(i){switch(i.length){case 0:return new x;case 1:return i[0];default:return new Me(i)}}function Ot(i,e,t=new Map,s=new Map){let n=[],r=[],a=-1,o=null;if(e.forEach(l=>{let u=l.get("offset"),h=u==a,c=h&&o||new Map;l.forEach((_,y)=>{let d=y,g=_;if(y!=="offset")switch(d=i.normalizePropertyName(d,n),g){case ue:g=t.get(y);break;case B:g=s.get(y);break;default:g=i.normalizeStyleValue(y,d,g,n);break}c.set(d,g)}),h||r.push(c),o=c,a=u}),n.length)throw ds(n);return r}function xe(i,e,t,s){switch(e){case"start":i.onStart(()=>s(t&&Ce(t,"start",i)));break;case"done":i.onDone(()=>s(t&&Ce(t,"done",i)));break;case"destroy":i.onDestroy(()=>s(t&&Ce(t,"destroy",i)));break}}function Ce(i,e,t){let s=t.totalTime,n=!!t.disabled,r=et(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,s??i.totalTime,n),a=i._data;return a!=null&&(r._data=a),r}function et(i,e,t,s,n="",r=0,a){return{element:i,triggerName:e,fromState:t,toState:s,phaseName:n,totalTime:r,disabled:!!a}}function L(i,e,t){let s=i.get(e);return s||i.set(e,s=t),s}function gt(i){let e=i.indexOf(":"),t=i.substring(1,e),s=i.slice(e+1);return[t,s]}var As=typeof document>"u"?null:document.documentElement;function tt(i){let e=i.parentNode||i.host||null;return e===As?null:e}function Ps(i){return i.substring(1,6)=="ebkit"}var H=null,yt=!1;function Ns(i){H||(H=Ms()||{},yt=H.style?"WebkitAppearance"in H.style:!1);let e=!0;return H.style&&!Ps(i)&&(e=i in H.style,!e&&yt&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in H.style)),e}function bn(i){return bs.has(i)}function Ms(){return typeof document<"u"?document.body:null}function Lt(i,e){for(;e;){if(e===i)return!0;e=tt(e)}return!1}function Ft(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let s=i.querySelector(e);return s?[s]:[]}var It=(()=>{class i{validateStyleProperty(t){return Ns(t)}containsElement(t,s){return Lt(t,s)}getParentElement(t){return tt(t)}query(t,s,n){return Ft(t,s,n)}computeStyle(t,s,n){return n||""}animate(t,s,n,r,a,o=[],l){return new x(n,r)}static \u0275fac=function(s){return new(s||i)};static \u0275prov=dt({token:i,factory:i.\u0275fac})}return i})(),_t=class{static NOOP=new It},Fe=class{},Ie=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}},Cs=1e3,zt="{{",ks="}}",st="ng-enter",pe="ng-leave",ce="ng-trigger",ge=".ng-trigger",St="ng-animating",ze=".ng-animating";function $(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ke(parseFloat(e[1]),e[2])}function Ke(i,e){switch(e){case"s":return i*Cs;default:return i}}function ye(i,e,t){return i.hasOwnProperty("duration")?i:Ds(i,e,t)}function Ds(i,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,r=0,a="";if(typeof i=="string"){let o=i.match(s);if(o===null)return e.push(pt(i)),{duration:0,delay:0,easing:""};n=Ke(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=Ke(parseFloat(l),o[4]));let u=o[5];u&&(a=u)}else n=i;if(!t){let o=!1,l=e.length;n<0&&(e.push(jt()),o=!0),r<0&&(e.push(Wt()),o=!0),o&&e.splice(l,0,pt(i))}return{duration:n,delay:r,easing:a}}function Rs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function Et(i){return Array.isArray(i)?new Map(...i):new Map(i)}function Q(i,e,t){e.forEach((s,n)=>{let r=nt(n);t&&!t.has(n)&&t.set(n,i.style[r]),i.style[r]=s})}function X(i,e){e.forEach((t,s)=>{let n=nt(s);i.style[n]=""})}function se(i){return Array.isArray(i)?i.length==1?i[0]:mt(i):i}function Os(i,e,t){let s=e.params||{},n=Kt(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Gt(r))})}var qe=new RegExp(`${zt}\\s*(.+?)\\s*${ks}`,"g");function Kt(i){let e=[];if(typeof i=="string"){let t;for(;t=qe.exec(i);)e.push(t[1]);qe.lastIndex=0}return e}function ie(i,e,t){let s=`${i}`,n=s.replace(qe,(r,a)=>{let o=e[a];return o==null&&(t.push(Ht(a)),o=""),o.toString()});return n==s?i:n}var Ls=/-+([a-z0-9])/g;function nt(i){return i.replace(Ls,(...e)=>e[1].toUpperCase())}function An(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Fs(i,e){return i===0||e===0}function Is(i,e,t){if(t.size&&e.length){let s=e[0],n=[];if(t.forEach((r,a)=>{s.has(a)||n.push(a),s.set(a,r)}),n.length)for(let r=1;ra.set(o,it(i,o)))}}return e}function O(i,e,t){switch(e.type){case E.Trigger:return i.visitTrigger(e,t);case E.State:return i.visitState(e,t);case E.Transition:return i.visitTransition(e,t);case E.Sequence:return i.visitSequence(e,t);case E.Group:return i.visitGroup(e,t);case E.Animate:return i.visitAnimate(e,t);case E.Keyframes:return i.visitKeyframes(e,t);case E.Style:return i.visitStyle(e,t);case E.Reference:return i.visitReference(e,t);case E.AnimateChild:return i.visitAnimateChild(e,t);case E.AnimateRef:return i.visitAnimateRef(e,t);case E.Query:return i.visitQuery(e,t);case E.Stagger:return i.visitStagger(e,t);default:throw Yt(e.type)}}function it(i,e){return window.getComputedStyle(i)[e]}var zs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Be=class extends Fe{normalizePropertyName(e,t){return nt(e)}normalizeStyleValue(e,t,s,n){let r="",a=s.toString().trim();if(zs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&n.push(Xt(e,s))}return a+r}};var _e="*";function Ks(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(s=>qs(s,t,e)):t.push(i),t}function qs(i,e,t){if(i[0]==":"){let l=Bs(i,t);if(typeof l=="function"){e.push(l);return}i=l}let s=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(ls(i)),e;let n=s[1],r=s[2],a=s[3];e.push(Tt(n,a));let o=n==_e&&a==_e;r[0]=="<"&&!o&&e.push(Tt(a,n))}function Bs(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var he=new Set(["true","1"]),fe=new Set(["false","0"]);function Tt(i,e){let t=he.has(i)||fe.has(i),s=he.has(e)||fe.has(e);return(n,r)=>{let a=i==_e||i==n,o=e==_e||e==r;return!a&&t&&typeof n=="boolean"&&(a=n?he.has(i):fe.has(i)),!o&&s&&typeof r=="boolean"&&(o=r?he.has(e):fe.has(e)),a&&o}}var qt=":self",Qs=new RegExp(`s*${qt}s*,?`,"g");function rt(i,e,t,s){return new Qe(i).build(e,t,s)}var vt="",Qe=class{_driver;constructor(e){this._driver=e}build(e,t,s){let n=new $e(t);return this._resetContextStyleTimingState(n),O(this,se(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=vt,e.collectedStyles=new Map,e.collectedStyles.set(vt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Zt()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==E.State){let l=o,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t))}),l.name=u}else if(o.type==E.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,n+=l.depCount,a.push(l)}else t.errors.push(Jt())}),{type:E.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:n,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=n||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{Kt(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&t.errors.push(xt(e.name,[...r.values()]))}return{type:E.State,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,se(e.animation),t),n=Ks(e.expr,t.errors);return{type:E.Transition,matchers:n,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Y(e.options)}}visitSequence(e,t){return{type:E.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:Y(e.options)}}visitGroup(e,t){let s=t.currentTime,n=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return n=Math.max(n,t.currentTime),o});return t.currentTime=n,{type:E.Group,steps:r,options:Y(e.options)}}visitAnimate(e,t){let s=js(e.timings,t.errors);t.currentAnimateTimings=s;let n,r=e.styles?e.styles:Ne({});if(r.type==E.Keyframes)n=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let u={};s.easing&&(u.easing=s.easing),a=Ne(u)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:E.Animate,timings:s,style:n,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of n)typeof o=="string"?o===B?s.push(o):t.errors.push(es(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(zt)>=0){r=!0;break}}}),{type:E.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),h=u.get(l),c=!0;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(ts(l,h.startTime,h.endTime,r,n)),c=!1),r=h.startTime),c&&u.set(l,{startTime:r,endTime:n}),t.options&&Os(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:E.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(ss()),s;let n=1,r=0,a=[],o=!1,l=!1,u=0,h=e.steps.map(b=>{let A=this._makeStyleAst(b,t),C=A.offset!=null?A.offset:Us(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N0&&r{let C=_>0?A==y?1:_*A:a[A],N=C*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=C,s.styles.push(b)}),s}visitReference(e,t){return{type:E.Reference,animation:O(this,se(e.animation),t),options:Y(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:E.AnimateChild,options:Y(e.options)}}visitAnimateRef(e,t){return{type:E.AnimateRef,animation:this.visitReference(e.animation,t),options:Y(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=$s(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,se(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:E.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Y(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(as());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ye(e.timings,t.errors,!0);return{type:E.Stagger,animation:O(this,se(e.animation),t),timings:s,options:null}}};function $s(i){let e=!!i.split(/\s*,\s*/).find(t=>t==qt);return e&&(i=i.replace(Qs,"")),i=i.replace(/@\*/g,ge).replace(/@\w+/g,t=>ge+"-"+t.slice(1)).replace(/:animating/g,ze),[i,e]}function Vs(i){return i?le({},i):null}var $e=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function Us(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function js(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=ye(i,e).duration;return ke(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let n=ye(t,e);return ke(n.duration,n.delay,n.easing)}function Y(i){return i?(i=le({},i),i.params&&(i.params=Vs(i.params))):i={},i}function ke(i,e,t){return{duration:i,delay:e,easing:t}}function at(i,e,t,s,n,r,a=null,o=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:a,subTimeline:o}}var te=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ws=1,Gs=":enter",Hs=new RegExp(Gs,"g"),Ys=":leave",Xs=new RegExp(Ys,"g");function ot(i,e,t,s,n,r=new Map,a=new Map,o,l,u=[]){return new Ve().buildKeyframes(i,e,t,s,n,r,a,o,l,u)}var Ve=class{buildKeyframes(e,t,s,n,r,a,o,l,u,h=[]){u=u||new te;let c=new Ue(e,t,u,n,r,h,[]);c.options=l;let _=l.delay?$(l.delay):0;c.currentTimeline.delayNextStep(_),c.currentTimeline.setStyles([a],null,c.errors,l),O(this,s,c);let y=c.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,c.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[at(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,n,n.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let n of e){let r=n?.delay;if(r){let a=typeof r=="number"?r:$(ie(r,n?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,u.duration+u.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==E.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Se);let a=$(r.delay);n.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),n=Math.max(n,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,n=t.params?ie(s,t.params,t.errors):s;return ye(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());let r=e.style;r.type==E.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,n=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;o.forwardTime(u*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?$(n.delay):0;r&&(t.previousNode.type===E.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Se);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((u,h)=>{t.currentQueryIndex=h;let c=t.createSubContext(e.options,u);r&&c.delayNextStep(r),u===t.element&&(l=c.currentTimeline),O(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let _=c.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,n=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-c+(n.startTime-s.currentTimeline.startTime)}},Se={},Ue=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Se;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,n,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new Ee(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,n=this.options;s.duration!=null&&(n.duration=$(s.duration)),s.delay!=null&&(n.delay=$(s.delay));let r=s.params;if(r){let a=n.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=ie(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(n=>{s[n]=t[n]})}}return e}createSubContext(e=null,t,s){let n=t||this.element,r=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Se,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new je(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,r,a){let o=[];if(n&&o.push(this.element),e.length>0){e=e.replace(Hs,"."+this._enterClassName),e=e.replace(Xs,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),o.push(...u)}return!r&&o.length==0&&a.push(os(t)),o}},Ee=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ws,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},a=Zs(e,this._globalTimelineStyles);for(let[o,l]of a){let u=ie(l,r,s);this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let n=this._styleSummary.get(s);(!n||t.time>n.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((o,l)=>{let u=new Map([...this._backFill,...o]);u.forEach((h,c)=>{h===ue?e.add(c):h===B&&t.add(c)}),s||u.set("offset",l/this.duration),n.push(u)});let r=[...e.values()],a=[...t.values()];if(s){let o=n[0],l=new Map(o);o.set("offset",0),l.set("offset",1),n=[o,l]}return at(this.element,n,r,a,this.duration,this.startTime,this.easing,!1)}},je=class extends Ee{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,n,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",wt(o)),r.push(u);let h=e.length-1;for(let c=1;c<=h;c++){let _=new Map(e[c]),y=_.get("offset"),d=t+y*s;_.set("offset",wt(d/a)),r.push(_)}s=a,t=0,n="",e=r}return at(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}};function wt(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Zs(i,e){let t=new Map,s;return i.forEach(n=>{if(n==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,a]of n)t.set(r,a)}),t}function bt(i,e,t,s,n,r,a,o,l,u,h,c,_){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:c,errors:_}}var De={},Te=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return Js(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,r,a,o,l,u,h){let c=[],_=this.ast.options&&this.ast.options.params||De,y=o&&o.params||De,d=this.buildStyles(s,y,c),g=l&&l.params||De,v=this.buildStyles(n,g,c),b=new Set,A=new Map,C=new Map,N=n==="void",Z={params:Bt(g,_),delay:this.ast.options?.delay},K=h?[]:ot(e,t,this.ast.animation,r,a,d,v,Z,u,c),k=0;return K.forEach(D=>{k=Math.max(D.duration+D.delay,k)}),c.length?bt(t,this._triggerName,s,n,N,d,v,[],[],A,C,k,c):(K.forEach(D=>{let j=D.element,J=L(A,j,new Set);D.preStyleProps.forEach(W=>J.add(W));let lt=L(C,j,new Set);D.postStyleProps.forEach(W=>lt.add(W)),j!==t&&b.add(j)}),bt(t,this._triggerName,s,n,N,d,v,K,[...b.values()],A,C,k))}};function Js(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function Bt(i,e){let t=le({},e);return Object.entries(i).forEach(([s,n])=>{n!=null&&(t[s]=n)}),t}var We=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,n=Bt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=ie(a,n,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function xs(i,e,t){return new Ge(i,e,t)}var Ge=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new We(n.style,r,s))}),At(this.states,"true","1"),At(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Te(e,n,this.states))}),this.fallbackTransition=en(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find(a=>a.match(e,t,s,n))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function en(i,e,t){let s=[(a,o)=>!0],n={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:n,matchers:s,options:null,queryCount:0,depCount:0};return new Te(i,r,e)}function At(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var tn=new te,He=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s}register(e,t){let s=[],n=[],r=rt(this._driver,t,s,n);if(s.length)throw ms(s);n.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let n=e.element,r=Ot(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let n=[],r=this._animations.get(e),a,o=new Map;if(r?(a=ot(this._driver,t,r,st,pe,new Map,new Map,s,tn,n),a.forEach(h=>{let c=L(o,h.element,new Map);h.postStyleProps.forEach(_=>c.set(_,null))})):(n.push(ps()),a=[]),n.length)throw gs(n);o.forEach((h,c)=>{h.forEach((_,y)=>{h.set(y,this._driver.computeStyle(c,y,B))})});let l=a.map(h=>{let c=o.get(h.element);return this._buildPlayer(h,new Map,c)}),u=U(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw ys(e);return t}listen(e,t,s,n){let r=et(t,"","","");return xe(this._getPlayer(e),s,r,n),()=>{}}command(e,t,s,n){if(s=="register"){this.register(e,n[0]);return}if(s=="create"){let a=n[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},Pt="ng-animate-queued",sn=".ng-animate-queued",Re="ng-animate-disabled",nn=".ng-animate-disabled",rn="ng-star-inserted",an=".ng-star-inserted",on=[],Qt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ln={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",re=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=cn(n),s){let r=e,{value:a}=r,o=ft(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(n=>{s[n]==null&&(s[n]=t[n])})}}},ne="void",Oe=new re(ne),Ye=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw _s(s,t);if(s==null||s.length==0)throw Ss(t);if(!hn(s))throw Es(s,t);let r=L(this._elementListeners,e,[]),a={name:t,phase:s,callback:n};r.push(a);let o=L(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,ce),I(e,ce+"-"+t),o.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Ts(e);return t}trigger(e,t,s,n=!0){let r=this._getTrigger(t),a=new ae(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,ce),I(e,ce+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),u=new re(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),o.set(t,u),l||(l=Oe),!(u.value===ne)&&l.value===u.value){if(!mn(l.params,u.params)){let g=[],v=r.matchStyles(l.value,l.params,g),b=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{X(e,v),Q(e,b)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,u.value,e,u.params),d=!1;if(!y){if(!n)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:a,isFallbackTransition:d}),d||(I(e,Pt),a.onStart(()=>{ee(e,Pt)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(a);b>=0&&v.splice(b,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ge,!0);s.forEach(n=>{if(n[z])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(a=>a.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,s,n){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(e,u,ne,n);h&&o.push(h)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let n=new Set;t.forEach(r=>{let a=r.name;if(n.has(a))return;n.add(a);let l=this._triggers.get(a).fallbackTransition,u=s.get(a)||Oe,h=new re(ne),c=new ae(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:h,player:c,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[z];(!r||r===Qt)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let n=s.player;if(n.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=et(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,xe(s.player,o.phase,l,o.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(s)}),this._queue=[],t.sort((s,n)=>{let r=s.transition.ast.depCount,a=n.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Xe=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Ye(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=n.get(o);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let n of s.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,n){if(de(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!de(t))return;let r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(de(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,n,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,n,r){return de(t)?this._fetchNamespace(e).listen(t,s,n,r):()=>{}}_buildInstruction(e,t,s,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ge,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ze,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[z];if(t&&t.setForRemoval){if(e[z]=Qt,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,nn,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,n)=>this._balanceNamespaceList(s,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(n=>n())}):s.forEach(n=>n())}}reportError(e){throw vs(e)}_flushAnimations(e,t){let s=new te,n=[],r=new Map,a=[],o=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(f=>{h.add(f);let m=this.driver.query(f,sn,!0);for(let p=0;p{let p=st+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],b=new Set,A=new Set;for(let f=0;fb.add(T)):A.add(m))}let C=new Map,N=Ct(_,Array.from(b));N.forEach((f,m)=>{let p=pe+g++;C.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ee(T,p))}),N.forEach((f,m)=>{let p=C.get(m);f.forEach(T=>ee(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let Z=[],K=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,P=p.element;if(Z.push(T),this.collectedEnterElements.length){let M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let oe=F.get(p.triggerName);oe.value=G,F.set(p.triggerName,oe)}}T.destroy();return}}let q=!c||!this.driver.containsElement(c,P),R=C.get(P),V=d.get(P),w=this._buildInstruction(p,s,V,R,q);if(w.errors&&w.errors.length){K.push(w);return}if(q){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),n.push(T);return}if(p.isFallbackTransition){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),n.push(T);return}let ht=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||ht.push(M)}),w.timelines=ht,s.append(P,w.timelines);let Ut={instruction:w,player:T,element:P};a.push(Ut),w.queriedElements.forEach(M=>L(o,M,[]).push(T)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))}}),w.postStyleProps.forEach((M,G)=>{let F=u.get(G);F||u.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))})});if(K.length){let f=[];K.forEach(m=>{f.push(ws(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let k=new Map,D=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(D.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,k))}),n.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{L(k,m,[]).push(T),T.destroy()})});let j=v.filter(f=>kt(f,l,u)),J=new Map;Mt(J,this.driver,A,u,B).forEach(f=>{kt(f,l,u)&&j.push(f)});let W=new Map;y.forEach((f,m)=>{Mt(W,this.driver,new Set(f),l,ue)}),j.forEach(f=>{let m=J.get(f),p=W.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ae=[],ut=[],ct={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(h.has(m)){p.onDestroy(()=>Q(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),n.push(p);return}let P=ct;if(D.size>1){let R=m,V=[];for(;R=R.parentNode;){let w=D.get(R);if(w){P=w;break}V.push(R)}V.forEach(w=>D.set(w,P))}let q=this._buildAnimation(p.namespaceId,T,k,r,W,J);if(p.setRealPlayer(q),P===ct)Ae.push(p);else{let R=this.playersByElement.get(P);R&&R.length&&(p.parentPlayer=U(R)),n.push(p)}}else X(m,T.fromStyles),p.onDestroy(()=>Q(m,T.toStyles)),ut.push(p),h.has(m)&&n.push(p)}),ut.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),n.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!q.destroyed);P.length?fn(this,m,P):this.processLeaveNode(m)}return v.length=0,Ae.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ae}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==ne;o.forEach(u=>{u.queued||!l&&u.triggerName!=n||a.push(u)})}}return(s||n)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||n&&n!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let n=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let u=l.element,h=u!==r,c=L(s,u,[]);this._getPreviousPlayers(u,h,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),c.push(y)})}X(r,t.fromStyles)}_buildAnimation(e,t,s,n,r,a){let o=t.triggerName,l=t.element,u=[],h=new Set,c=new Set,_=t.timelines.map(d=>{let g=d.element;h.add(g);let v=g[z];if(v&&v.removedBeforeQueried)return new x(d.duration,d.delay);let b=g!==l,A=dn((s.get(g)||on).map(k=>k.getRealPlayer())).filter(k=>{let D=k;return D.element?D.element===g:!1}),C=r.get(g),N=a.get(g),Z=Ot(this._normalizer,d.keyframes,C,N),K=this._buildPlayer(d,Z,A);if(d.subTimeline&&n&&c.add(g),b){let k=new ae(e,o,g);k.setRealPlayer(K),u.push(k)}return K});u.forEach(d=>{L(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>un(this.playersByQueriedElement,d.element,d))}),h.forEach(d=>I(d,St));let y=U(_);return y.onDestroy(()=>{h.forEach(d=>ee(d,St)),Q(l,t.toStyles)}),c.forEach(d=>{L(n,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new x(e.duration,e.delay)}},ae=class{namespaceId;triggerName;element;_player=new x;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(n=>xe(e,s,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function un(i,e,t){let s=i.get(e);if(s){if(s.length){let n=s.indexOf(t);s.splice(n,1)}s.length==0&&i.delete(e)}return s}function cn(i){return i??null}function de(i){return i&&i.nodeType===1}function hn(i){return i=="start"||i=="done"}function Nt(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Mt(i,e,t,s,n){let r=[];t.forEach(l=>r.push(Nt(l)));let a=[];s.forEach((l,u)=>{let h=new Map;l.forEach(c=>{let _=e.computeStyle(u,c,n);h.set(c,_),(!_||_.length==0)&&(u[z]=ln,a.push(u))}),i.set(u,h)});let o=0;return t.forEach(l=>Nt(l,r[o++])),a}function Ct(i,e){let t=new Map;if(i.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,n=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let u=o.parentNode;return t.has(u)?l=u:n.has(u)?l=s:l=a(u),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(i,e){i.classList?.add(e)}function ee(i,e){i.classList?.remove(e)}function fn(i,e,t){U(t).onDone(()=>i.processLeaveNode(e))}function dn(i){let e=[];return $t(i,e),e}function $t(i,e){for(let t=0;tn.add(r)):e.set(i,s),t.delete(i),!0}var ve=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Xe(e.body,t,s),this._timelineEngine=new He(e.body,t,s),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,s,n,r){let a=e+"-"+n,o=this._triggerCache[a];if(!o){let l=[],u=[],h=rt(this._driver,r,l,u);if(l.length)throw fs(n,l);u.length&&void 0,o=xs(n,h,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if(s.charAt(0)=="@"){let[r,a]=gt(s),o=n;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,r){if(s.charAt(0)=="@"){let[a,o]=gt(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,n,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function pn(i,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new gn(i,t,s):null}var gn=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,n){this._element=t,this._startStyles=s,this._endStyles=n;let r=i.initialStylesByElement.get(t);r||i.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}}return i})();function Le(i){let e=null;return i.forEach((t,s)=>{yn(s)&&(e=e||new Map,e.set(s,t))}),e}function yn(i){return i==="display"||i==="position"}var we=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,n)=>{n!=="offset"&&e.set(n,this._finished?s:it(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Ze=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Lt(e,t)}getParentElement(e){return tt(e)}query(e,t,s){return Ft(e,t,s)}computeStyle(e,t,s){return it(e,t)}animate(e,t,s,n,r,a=[]){let o=n==0?"both":"forwards",l={duration:s,delay:n,fill:o};r&&(l.easing=r);let u=new Map,h=a.filter(y=>y instanceof we);Fs(s,n)&&h.forEach(y=>{y.currentSnapshot.forEach((d,g)=>u.set(g,d))});let c=Rs(t).map(y=>new Map(y));c=Is(e,c,u);let _=pn(e,c);return new we(e,c,l,_)}};function Pn(i,e){return i==="noop"?new ve(e,new It,new Ie):new ve(e,new Ze,new Be)}var Dt=class{_driver;_animationAst;constructor(e,t){this._driver=e;let s=[],n=[],r=rt(e,t,s,n);if(s.length)throw cs(s);n.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,n,r){let a=Array.isArray(t)?Et(t):t,o=Array.isArray(s)?Et(s):s,l=[];r=r||new te;let u=ot(this._driver,e,this._animationAst,st,pe,a,o,n,r,l);if(l.length)throw hs(l);return u}},me="@",Vt="@.disabled",be=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,n=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,n){this.delegate.setAttribute(e,t,s,n)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==me&&t==Vt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Je=class extends be{factory;constructor(e,t,s,n,r){super(t,s,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==me?t.charAt(1)=="."&&t==Vt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==me){let n=_n(e),r=t.slice(1),a="";return r.charAt(0)!=me&&([r,a]=Sn(r)),this.engine.listen(this.namespaceId,n,r,a,o=>{let l=o._data||-1;this.factory.scheduleListenerCallback(l,s,o)})}return this.delegate.listen(e,t,s)}};function _n(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Sn(i){let e=i.indexOf("."),t=i.substring(0,e),s=i.slice(e+1);return[t,s]}var Rt=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n)}}createRenderer(e,t){let s="",n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,h=u.get(n);if(!h){let c=()=>u.delete(n);h=new be(s,n,this.engine,c),u.set(n,h)}return h}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(r,a,e,u.name,u)};return t.data.animation.forEach(o),new Je(this,a,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),n.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{_t as AnimationDriver,It as NoopAnimationDriver,Dt as \u0275Animation,ve as \u0275AnimationEngine,Je as \u0275AnimationRenderer,Rt as \u0275AnimationRendererFactory,Fe as \u0275AnimationStyleNormalizer,be as \u0275BaseAnimationRenderer,Ie as \u0275NoopAnimationStyleNormalizer,Ze as \u0275WebAnimationsDriver,we as \u0275WebAnimationsPlayer,Be as \u0275WebAnimationsStyleNormalizer,Fs as \u0275allowPreviousPlayerStylesMerge,An as \u0275camelCaseToDashCase,Lt as \u0275containsElement,Pn as \u0275createEngine,tt as \u0275getParentElement,Ft as \u0275invokeQuery,Rs as \u0275normalizeKeyframes,Ns as \u0275validateStyleProperty,bn as \u0275validateWebAnimatableStyleProperty}; diff --git a/chunk-X6FBGTMZ.js b/chunk-X6FBGTMZ.js new file mode 100644 index 0000000..fdeb87b --- /dev/null +++ b/chunk-X6FBGTMZ.js @@ -0,0 +1 @@ +import{$ as dt,Dc as E,Ec as B,Hc as mt,Ic as Ne,Nc as x,Oc as Me,Pc as ue,Z as S,a as le,c as ft}from"./chunk-HNCQXACW.js";function pt(i){return new S(3e3,!1)}function jt(){return new S(3100,!1)}function Wt(){return new S(3101,!1)}function Gt(i){return new S(3001,!1)}function Ht(i){return new S(3003,!1)}function Yt(i){return new S(3004,!1)}function Xt(i,e){return new S(3005,!1)}function Zt(){return new S(3006,!1)}function Jt(){return new S(3007,!1)}function xt(i,e){return new S(3008,!1)}function es(i){return new S(3002,!1)}function ts(i,e,t,s,n){return new S(3010,!1)}function ss(){return new S(3011,!1)}function ns(){return new S(3012,!1)}function is(){return new S(3200,!1)}function rs(){return new S(3202,!1)}function as(){return new S(3013,!1)}function os(i){return new S(3014,!1)}function ls(i){return new S(3015,!1)}function us(i){return new S(3016,!1)}function cs(i){return new S(3500,!1)}function hs(i){return new S(3501,!1)}function fs(i,e){return new S(3404,!1)}function ds(i){return new S(3502,!1)}function ms(i){return new S(3503,!1)}function ps(){return new S(3300,!1)}function gs(i){return new S(3504,!1)}function ys(i){return new S(3301,!1)}function _s(i,e){return new S(3302,!1)}function Ss(i){return new S(3303,!1)}function Es(i,e){return new S(3400,!1)}function Ts(i){return new S(3401,!1)}function vs(i){return new S(3402,!1)}function ws(i,e){return new S(3505,!1)}var bs=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(i){switch(i.length){case 0:return new x;case 1:return i[0];default:return new Me(i)}}function Ot(i,e,t=new Map,s=new Map){let n=[],r=[],a=-1,o=null;if(e.forEach(l=>{let u=l.get("offset"),h=u==a,c=h&&o||new Map;l.forEach((_,y)=>{let d=y,g=_;if(y!=="offset")switch(d=i.normalizePropertyName(d,n),g){case ue:g=t.get(y);break;case B:g=s.get(y);break;default:g=i.normalizeStyleValue(y,d,g,n);break}c.set(d,g)}),h||r.push(c),o=c,a=u}),n.length)throw ds(n);return r}function xe(i,e,t,s){switch(e){case"start":i.onStart(()=>s(t&&Ce(t,"start",i)));break;case"done":i.onDone(()=>s(t&&Ce(t,"done",i)));break;case"destroy":i.onDestroy(()=>s(t&&Ce(t,"destroy",i)));break}}function Ce(i,e,t){let s=t.totalTime,n=!!t.disabled,r=et(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,s??i.totalTime,n),a=i._data;return a!=null&&(r._data=a),r}function et(i,e,t,s,n="",r=0,a){return{element:i,triggerName:e,fromState:t,toState:s,phaseName:n,totalTime:r,disabled:!!a}}function L(i,e,t){let s=i.get(e);return s||i.set(e,s=t),s}function gt(i){let e=i.indexOf(":"),t=i.substring(1,e),s=i.slice(e+1);return[t,s]}var As=typeof document>"u"?null:document.documentElement;function tt(i){let e=i.parentNode||i.host||null;return e===As?null:e}function Ps(i){return i.substring(1,6)=="ebkit"}var H=null,yt=!1;function Ns(i){H||(H=Ms()||{},yt=H.style?"WebkitAppearance"in H.style:!1);let e=!0;return H.style&&!Ps(i)&&(e=i in H.style,!e&&yt&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in H.style)),e}function bn(i){return bs.has(i)}function Ms(){return typeof document<"u"?document.body:null}function Lt(i,e){for(;e;){if(e===i)return!0;e=tt(e)}return!1}function Ft(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let s=i.querySelector(e);return s?[s]:[]}var It=(()=>{class i{validateStyleProperty(t){return Ns(t)}containsElement(t,s){return Lt(t,s)}getParentElement(t){return tt(t)}query(t,s,n){return Ft(t,s,n)}computeStyle(t,s,n){return n||""}animate(t,s,n,r,a,o=[],l){return new x(n,r)}static \u0275fac=function(s){return new(s||i)};static \u0275prov=dt({token:i,factory:i.\u0275fac})}return i})(),_t=class{static NOOP=new It},Fe=class{},Ie=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,n){return s}},Cs=1e3,zt="{{",ks="}}",st="ng-enter",pe="ng-leave",ce="ng-trigger",ge=".ng-trigger",St="ng-animating",ze=".ng-animating";function $(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ke(parseFloat(e[1]),e[2])}function Ke(i,e){switch(e){case"s":return i*Cs;default:return i}}function ye(i,e,t){return i.hasOwnProperty("duration")?i:Ds(i,e,t)}function Ds(i,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,r=0,a="";if(typeof i=="string"){let o=i.match(s);if(o===null)return e.push(pt(i)),{duration:0,delay:0,easing:""};n=Ke(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=Ke(parseFloat(l),o[4]));let u=o[5];u&&(a=u)}else n=i;if(!t){let o=!1,l=e.length;n<0&&(e.push(jt()),o=!0),r<0&&(e.push(Wt()),o=!0),o&&e.splice(l,0,pt(i))}return{duration:n,delay:r,easing:a}}function Rs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function Et(i){return Array.isArray(i)?new Map(...i):new Map(i)}function Q(i,e,t){e.forEach((s,n)=>{let r=nt(n);t&&!t.has(n)&&t.set(n,i.style[r]),i.style[r]=s})}function X(i,e){e.forEach((t,s)=>{let n=nt(s);i.style[n]=""})}function se(i){return Array.isArray(i)?i.length==1?i[0]:mt(i):i}function Os(i,e,t){let s=e.params||{},n=Kt(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Gt(r))})}var qe=new RegExp(`${zt}\\s*(.+?)\\s*${ks}`,"g");function Kt(i){let e=[];if(typeof i=="string"){let t;for(;t=qe.exec(i);)e.push(t[1]);qe.lastIndex=0}return e}function ie(i,e,t){let s=`${i}`,n=s.replace(qe,(r,a)=>{let o=e[a];return o==null&&(t.push(Ht(a)),o=""),o.toString()});return n==s?i:n}var Ls=/-+([a-z0-9])/g;function nt(i){return i.replace(Ls,(...e)=>e[1].toUpperCase())}function An(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Fs(i,e){return i===0||e===0}function Is(i,e,t){if(t.size&&e.length){let s=e[0],n=[];if(t.forEach((r,a)=>{s.has(a)||n.push(a),s.set(a,r)}),n.length)for(let r=1;ra.set(o,it(i,o)))}}return e}function O(i,e,t){switch(e.type){case E.Trigger:return i.visitTrigger(e,t);case E.State:return i.visitState(e,t);case E.Transition:return i.visitTransition(e,t);case E.Sequence:return i.visitSequence(e,t);case E.Group:return i.visitGroup(e,t);case E.Animate:return i.visitAnimate(e,t);case E.Keyframes:return i.visitKeyframes(e,t);case E.Style:return i.visitStyle(e,t);case E.Reference:return i.visitReference(e,t);case E.AnimateChild:return i.visitAnimateChild(e,t);case E.AnimateRef:return i.visitAnimateRef(e,t);case E.Query:return i.visitQuery(e,t);case E.Stagger:return i.visitStagger(e,t);default:throw Yt(e.type)}}function it(i,e){return window.getComputedStyle(i)[e]}var zs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Be=class extends Fe{normalizePropertyName(e,t){return nt(e)}normalizeStyleValue(e,t,s,n){let r="",a=s.toString().trim();if(zs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&n.push(Xt(e,s))}return a+r}};var _e="*";function Ks(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(s=>qs(s,t,e)):t.push(i),t}function qs(i,e,t){if(i[0]==":"){let l=Bs(i,t);if(typeof l=="function"){e.push(l);return}i=l}let s=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(ls(i)),e;let n=s[1],r=s[2],a=s[3];e.push(Tt(n,a));let o=n==_e&&a==_e;r[0]=="<"&&!o&&e.push(Tt(a,n))}function Bs(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var he=new Set(["true","1"]),fe=new Set(["false","0"]);function Tt(i,e){let t=he.has(i)||fe.has(i),s=he.has(e)||fe.has(e);return(n,r)=>{let a=i==_e||i==n,o=e==_e||e==r;return!a&&t&&typeof n=="boolean"&&(a=n?he.has(i):fe.has(i)),!o&&s&&typeof r=="boolean"&&(o=r?he.has(e):fe.has(e)),a&&o}}var qt=":self",Qs=new RegExp(`s*${qt}s*,?`,"g");function rt(i,e,t,s){return new Qe(i).build(e,t,s)}var vt="",Qe=class{_driver;constructor(e){this._driver=e}build(e,t,s){let n=new $e(t);return this._resetContextStyleTimingState(n),O(this,se(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=vt,e.collectedStyles=new Map,e.collectedStyles.set(vt,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(Zt()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==E.State){let l=o,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t))}),l.name=u}else if(o.type==E.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,n+=l.depCount,a.push(l)}else t.errors.push(Jt())}),{type:E.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:n,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=n||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{Kt(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&t.errors.push(xt(e.name,[...r.values()]))}return{type:E.State,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=O(this,se(e.animation),t),n=Ks(e.expr,t.errors);return{type:E.Transition,matchers:n,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Y(e.options)}}visitSequence(e,t){return{type:E.Sequence,steps:e.steps.map(s=>O(this,s,t)),options:Y(e.options)}}visitGroup(e,t){let s=t.currentTime,n=0,r=e.steps.map(a=>{t.currentTime=s;let o=O(this,a,t);return n=Math.max(n,t.currentTime),o});return t.currentTime=n,{type:E.Group,steps:r,options:Y(e.options)}}visitAnimate(e,t){let s=js(e.timings,t.errors);t.currentAnimateTimings=s;let n,r=e.styles?e.styles:Ne({});if(r.type==E.Keyframes)n=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let u={};s.easing&&(u.easing=s.easing),a=Ne(u)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:E.Animate,timings:s,style:n,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of n)typeof o=="string"?o===B?s.push(o):t.errors.push(es(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(zt)>=0){r=!0;break}}}),{type:E.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),h=u.get(l),c=!0;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(ts(l,h.startTime,h.endTime,r,n)),c=!1),r=h.startTime),c&&u.set(l,{startTime:r,endTime:n}),t.options&&Os(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:E.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(ss()),s;let n=1,r=0,a=[],o=!1,l=!1,u=0,h=e.steps.map(b=>{let A=this._makeStyleAst(b,t),C=A.offset!=null?A.offset:Us(A.styles),N=0;return C!=null&&(r++,N=A.offset=C),l=l||N<0||N>1,o=o||N0&&r{let C=_>0?A==y?1:_*A:a[A],N=C*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(b,t),b.offset=C,s.styles.push(b)}),s}visitReference(e,t){return{type:E.Reference,animation:O(this,se(e.animation),t),options:Y(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:E.AnimateChild,options:Y(e.options)}}visitAnimateRef(e,t){return{type:E.AnimateRef,animation:this.visitReference(e.animation,t),options:Y(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=$s(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,L(t.collectedStyles,t.currentQuerySelector,new Map);let o=O(this,se(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:E.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Y(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(as());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ye(e.timings,t.errors,!0);return{type:E.Stagger,animation:O(this,se(e.animation),t),timings:s,options:null}}};function $s(i){let e=!!i.split(/\s*,\s*/).find(t=>t==qt);return e&&(i=i.replace(Qs,"")),i=i.replace(/@\*/g,ge).replace(/@\w+/g,t=>ge+"-"+t.slice(1)).replace(/:animating/g,ze),[i,e]}function Vs(i){return i?le({},i):null}var $e=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function Us(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function js(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=ye(i,e).duration;return ke(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ke(0,0,"");return r.dynamic=!0,r.strValue=t,r}let n=ye(t,e);return ke(n.duration,n.delay,n.easing)}function Y(i){return i?(i=le({},i),i.params&&(i.params=Vs(i.params))):i={},i}function ke(i,e,t){return{duration:i,delay:e,easing:t}}function at(i,e,t,s,n,r,a=null,o=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:a,subTimeline:o}}var te=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ws=1,Gs=":enter",Hs=new RegExp(Gs,"g"),Ys=":leave",Xs=new RegExp(Ys,"g");function ot(i,e,t,s,n,r=new Map,a=new Map,o,l,u=[]){return new Ve().buildKeyframes(i,e,t,s,n,r,a,o,l,u)}var Ve=class{buildKeyframes(e,t,s,n,r,a,o,l,u,h=[]){u=u||new te;let c=new Ue(e,t,u,n,r,h,[]);c.options=l;let _=l.delay?$(l.delay):0;c.currentTimeline.delayNextStep(_),c.currentTimeline.setStyles([a],null,c.errors,l),O(this,s,c);let y=c.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,c.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[at(t,[],[],[],0,_,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,n,n.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let n of e){let r=n?.delay;if(r){let a=typeof r=="number"?r:$(ie(r,n?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?$(s.duration):null,o=s.delay!=null?$(s.delay):null;return a!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,u.duration+u.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),O(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==E.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Se);let a=$(r.delay);n.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>O(this,a,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?$(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),O(this,a,o),n=Math.max(n,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,n=t.params?ie(s,t.params,t.errors):s;return ye(n,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());let r=e.style;r.type==E.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,n=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;o.forwardTime(u*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(n+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?$(n.delay):0;r&&(t.previousNode.type===E.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Se);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((u,h)=>{t.currentQueryIndex=h;let c=t.createSubContext(e.options,u);r&&c.delayNextStep(r),u===t.element&&(l=c.currentTimeline),O(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let _=c.currentTimeline.currentTime;a=Math.max(a,_)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,n=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;O(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-c+(n.startTime-s.currentTimeline.startTime)}},Se={},Ue=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Se;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,n,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new Ee(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,n=this.options;s.duration!=null&&(n.duration=$(s.duration)),s.delay!=null&&(n.delay=$(s.delay));let r=s.params;if(r){let a=n.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=ie(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(n=>{s[n]=t[n]})}}return e}createSubContext(e=null,t,s){let n=t||this.element,r=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Se,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new je(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,r,a){let o=[];if(n&&o.push(this.element),e.length>0){e=e.replace(Hs,"."+this._enterClassName),e=e.replace(Xs,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),o.push(...u)}return!r&&o.length==0&&a.push(os(t)),o}},Ee=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ws,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},a=Zs(e,this._globalTimelineStyles);for(let[o,l]of a){let u=ie(l,r,s);this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let n=this._styleSummary.get(s);(!n||t.time>n.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((o,l)=>{let u=new Map([...this._backFill,...o]);u.forEach((h,c)=>{h===ue?e.add(c):h===B&&t.add(c)}),s||u.set("offset",l/this.duration),n.push(u)});let r=[...e.values()],a=[...t.values()];if(s){let o=n[0],l=new Map(o);o.set("offset",0),l.set("offset",1),n=[o,l]}return at(this.element,n,r,a,this.duration,this.startTime,this.easing,!1)}},je=class extends Ee{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,n,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",wt(o)),r.push(u);let h=e.length-1;for(let c=1;c<=h;c++){let _=new Map(e[c]),y=_.get("offset"),d=t+y*s;_.set("offset",wt(d/a)),r.push(_)}s=a,t=0,n="",e=r}return at(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}};function wt(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Zs(i,e){let t=new Map,s;return i.forEach(n=>{if(n==="*"){s??=e.keys();for(let r of s)t.set(r,B)}else for(let[r,a]of n)t.set(r,a)}),t}function bt(i,e,t,s,n,r,a,o,l,u,h,c,_){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:c,errors:_}}var De={},Te=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return Js(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,r,a,o,l,u,h){let c=[],_=this.ast.options&&this.ast.options.params||De,y=o&&o.params||De,d=this.buildStyles(s,y,c),g=l&&l.params||De,v=this.buildStyles(n,g,c),b=new Set,A=new Map,C=new Map,N=n==="void",Z={params:Bt(g,_),delay:this.ast.options?.delay},K=h?[]:ot(e,t,this.ast.animation,r,a,d,v,Z,u,c),k=0;return K.forEach(D=>{k=Math.max(D.duration+D.delay,k)}),c.length?bt(t,this._triggerName,s,n,N,d,v,[],[],A,C,k,c):(K.forEach(D=>{let j=D.element,J=L(A,j,new Set);D.preStyleProps.forEach(W=>J.add(W));let lt=L(C,j,new Set);D.postStyleProps.forEach(W=>lt.add(W)),j!==t&&b.add(j)}),bt(t,this._triggerName,s,n,N,d,v,K,[...b.values()],A,C,k))}};function Js(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function Bt(i,e){let t=le({},e);return Object.entries(i).forEach(([s,n])=>{n!=null&&(t[s]=n)}),t}var We=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,n=Bt(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=ie(a,n,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function xs(i,e,t){return new Ge(i,e,t)}var Ge=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new We(n.style,r,s))}),At(this.states,"true","1"),At(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Te(e,n,this.states))}),this.fallbackTransition=en(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find(a=>a.match(e,t,s,n))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function en(i,e,t){let s=[(a,o)=>!0],n={type:E.Sequence,steps:[],options:null},r={type:E.Transition,animation:n,matchers:s,options:null,queryCount:0,depCount:0};return new Te(i,r,e)}function At(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var tn=new te,He=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s}register(e,t){let s=[],n=[],r=rt(this._driver,t,s,n);if(s.length)throw ms(s);n.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let n=e.element,r=Ot(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let n=[],r=this._animations.get(e),a,o=new Map;if(r?(a=ot(this._driver,t,r,st,pe,new Map,new Map,s,tn,n),a.forEach(h=>{let c=L(o,h.element,new Map);h.postStyleProps.forEach(_=>c.set(_,null))})):(n.push(ps()),a=[]),n.length)throw gs(n);o.forEach((h,c)=>{h.forEach((_,y)=>{h.set(y,this._driver.computeStyle(c,y,B))})});let l=a.map(h=>{let c=o.get(h.element);return this._buildPlayer(h,new Map,c)}),u=U(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw ys(e);return t}listen(e,t,s,n){let r=et(t,"","","");return xe(this._getPlayer(e),s,r,n),()=>{}}command(e,t,s,n){if(s=="register"){this.register(e,n[0]);return}if(s=="create"){let a=n[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},Pt="ng-animate-queued",sn=".ng-animate-queued",Re="ng-animate-disabled",nn=".ng-animate-disabled",rn="ng-star-inserted",an=".ng-star-inserted",on=[],Qt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ln={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},z="__ng_removed",re=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=cn(n),s){let r=e,{value:a}=r,o=ft(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(n=>{s[n]==null&&(s[n]=t[n])})}}},ne="void",Oe=new re(ne),Ye=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,n){if(!this._triggers.has(t))throw _s(s,t);if(s==null||s.length==0)throw Ss(t);if(!hn(s))throw Es(s,t);let r=L(this._elementListeners,e,[]),a={name:t,phase:s,callback:n};r.push(a);let o=L(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,ce),I(e,ce+"-"+t),o.set(t,Oe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Ts(e);return t}trigger(e,t,s,n=!0){let r=this._getTrigger(t),a=new ae(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,ce),I(e,ce+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),u=new re(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),o.set(t,u),l||(l=Oe),!(u.value===ne)&&l.value===u.value){if(!mn(l.params,u.params)){let g=[],v=r.matchStyles(l.value,l.params,g),b=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{X(e,v),Q(e,b)})}return}let _=L(this._engine.playersByElement,e,[]);_.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,u.value,e,u.params),d=!1;if(!y){if(!n)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:a,isFallbackTransition:d}),d||(I(e,Pt),a.onStart(()=>{ee(e,Pt)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let b=v.indexOf(a);b>=0&&v.splice(b,1)}}),this.players.push(a),_.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,ge,!0);s.forEach(n=>{if(n[z])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(a=>a.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,s,n){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let h=this.trigger(e,u,ne,n);h&&o.push(h)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let n=new Set;t.forEach(r=>{let a=r.name;if(n.has(a))return;n.add(a);let l=this._triggers.get(a).fallbackTransition,u=s.get(a)||Oe,h=new re(ne),c=new ae(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:h,player:c,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let n=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[z];(!r||r===Qt)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let n=s.player;if(n.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=et(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,xe(s.player,o.phase,l,o.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(s)}),this._queue=[],t.sort((s,n)=>{let r=s.transition.ast.depCount,a=n.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Xe=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Ye(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=n.get(o);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let n of s.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,n){if(de(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!de(t))return;let r=t[z];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Re)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,Re))}removeNode(e,t,s){if(de(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,n,r){this.collectedLeaveElements.push(t),t[z]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,n,r){return de(t)?this._fetchNamespace(e).listen(t,s,n,r):()=>{}}_buildInstruction(e,t,s,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ge,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,ze,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[z];if(t&&t.setForRemoval){if(e[z]=Qt,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Re)&&this.markElementAsDisabled(e,!1),this.driver.query(e,nn,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,n)=>this._balanceNamespaceList(s,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(n=>n())}):s.forEach(n=>n())}}reportError(e){throw vs(e)}_flushAnimations(e,t){let s=new te,n=[],r=new Map,a=[],o=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(f=>{h.add(f);let m=this.driver.query(f,sn,!0);for(let p=0;p{let p=st+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],b=new Set,A=new Set;for(let f=0;fb.add(T)):A.add(m))}let C=new Map,N=Ct(_,Array.from(b));N.forEach((f,m)=>{let p=pe+g++;C.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ee(T,p))}),N.forEach((f,m)=>{let p=C.get(m);f.forEach(T=>ee(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let Z=[],K=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,P=p.element;if(Z.push(T),this.collectedEnterElements.length){let M=P[z];if(M&&M.setForMove){if(M.previousTriggersValues&&M.previousTriggersValues.has(p.triggerName)){let G=M.previousTriggersValues.get(p.triggerName),F=this.statesByElement.get(p.element);if(F&&F.has(p.triggerName)){let oe=F.get(p.triggerName);oe.value=G,F.set(p.triggerName,oe)}}T.destroy();return}}let q=!c||!this.driver.containsElement(c,P),R=C.get(P),V=d.get(P),w=this._buildInstruction(p,s,V,R,q);if(w.errors&&w.errors.length){K.push(w);return}if(q){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),n.push(T);return}if(p.isFallbackTransition){T.onStart(()=>X(P,w.fromStyles)),T.onDestroy(()=>Q(P,w.toStyles)),n.push(T);return}let ht=[];w.timelines.forEach(M=>{M.stretchStartingKeyframe=!0,this.disabledNodes.has(M.element)||ht.push(M)}),w.timelines=ht,s.append(P,w.timelines);let Ut={instruction:w,player:T,element:P};a.push(Ut),w.queriedElements.forEach(M=>L(o,M,[]).push(T)),w.preStyleProps.forEach((M,G)=>{if(M.size){let F=l.get(G);F||l.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))}}),w.postStyleProps.forEach((M,G)=>{let F=u.get(G);F||u.set(G,F=new Set),M.forEach((oe,Pe)=>F.add(Pe))})});if(K.length){let f=[];K.forEach(m=>{f.push(ws(m.triggerName,m.errors))}),Z.forEach(m=>m.destroy()),this.reportError(f)}let k=new Map,D=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(D.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,k))}),n.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{L(k,m,[]).push(T),T.destroy()})});let j=v.filter(f=>kt(f,l,u)),J=new Map;Mt(J,this.driver,A,u,B).forEach(f=>{kt(f,l,u)&&j.push(f)});let W=new Map;y.forEach((f,m)=>{Mt(W,this.driver,new Set(f),l,ue)}),j.forEach(f=>{let m=J.get(f),p=W.get(f);J.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Ae=[],ut=[],ct={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(h.has(m)){p.onDestroy(()=>Q(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),n.push(p);return}let P=ct;if(D.size>1){let R=m,V=[];for(;R=R.parentNode;){let w=D.get(R);if(w){P=w;break}V.push(R)}V.forEach(w=>D.set(w,P))}let q=this._buildAnimation(p.namespaceId,T,k,r,W,J);if(p.setRealPlayer(q),P===ct)Ae.push(p);else{let R=this.playersByElement.get(P);R&&R.length&&(p.parentPlayer=U(R)),n.push(p)}}else X(m,T.fromStyles),p.onDestroy(()=>Q(m,T.toStyles)),ut.push(p),h.has(m)&&n.push(p)}),ut.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),n.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!q.destroyed);P.length?fn(this,m,P):this.processLeaveNode(m)}return v.length=0,Ae.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Ae}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==ne;o.forEach(u=>{u.queued||!l&&u.triggerName!=n||a.push(u)})}}return(s||n)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||n&&n!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let n=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let u=l.element,h=u!==r,c=L(s,u,[]);this._getPreviousPlayers(u,h,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),c.push(y)})}X(r,t.fromStyles)}_buildAnimation(e,t,s,n,r,a){let o=t.triggerName,l=t.element,u=[],h=new Set,c=new Set,_=t.timelines.map(d=>{let g=d.element;h.add(g);let v=g[z];if(v&&v.removedBeforeQueried)return new x(d.duration,d.delay);let b=g!==l,A=dn((s.get(g)||on).map(k=>k.getRealPlayer())).filter(k=>{let D=k;return D.element?D.element===g:!1}),C=r.get(g),N=a.get(g),Z=Ot(this._normalizer,d.keyframes,C,N),K=this._buildPlayer(d,Z,A);if(d.subTimeline&&n&&c.add(g),b){let k=new ae(e,o,g);k.setRealPlayer(K),u.push(k)}return K});u.forEach(d=>{L(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>un(this.playersByQueriedElement,d.element,d))}),h.forEach(d=>I(d,St));let y=U(_);return y.onDestroy(()=>{h.forEach(d=>ee(d,St)),Q(l,t.toStyles)}),c.forEach(d=>{L(n,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new x(e.duration,e.delay)}},ae=class{namespaceId;triggerName;element;_player=new x;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(n=>xe(e,s,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){L(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function un(i,e,t){let s=i.get(e);if(s){if(s.length){let n=s.indexOf(t);s.splice(n,1)}s.length==0&&i.delete(e)}return s}function cn(i){return i??null}function de(i){return i&&i.nodeType===1}function hn(i){return i=="start"||i=="done"}function Nt(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Mt(i,e,t,s,n){let r=[];t.forEach(l=>r.push(Nt(l)));let a=[];s.forEach((l,u)=>{let h=new Map;l.forEach(c=>{let _=e.computeStyle(u,c,n);h.set(c,_),(!_||_.length==0)&&(u[z]=ln,a.push(u))}),i.set(u,h)});let o=0;return t.forEach(l=>Nt(l,r[o++])),a}function Ct(i,e){let t=new Map;if(i.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,n=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let u=o.parentNode;return t.has(u)?l=u:n.has(u)?l=s:l=a(u),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(i,e){i.classList?.add(e)}function ee(i,e){i.classList?.remove(e)}function fn(i,e,t){U(t).onDone(()=>i.processLeaveNode(e))}function dn(i){let e=[];return $t(i,e),e}function $t(i,e){for(let t=0;tn.add(r)):e.set(i,s),t.delete(i),!0}var ve=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Xe(e.body,t,s),this._timelineEngine=new He(e.body,t,s),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,s,n,r){let a=e+"-"+n,o=this._triggerCache[a];if(!o){let l=[],u=[],h=rt(this._driver,r,l,u);if(l.length)throw fs(n,l);u.length&&void 0,o=xs(n,h,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,n,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if(s.charAt(0)=="@"){let[r,a]=gt(s),o=n;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,r){if(s.charAt(0)=="@"){let[a,o]=gt(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,n,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function pn(i,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Le(e[0]),e.length>1&&(s=Le(e[e.length-1]))):e instanceof Map&&(t=Le(e)),t||s?new gn(i,t,s):null}var gn=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,n){this._element=t,this._startStyles=s,this._endStyles=n;let r=i.initialStylesByElement.get(t);r||i.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Q(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Q(this._element,this._initialStyles),this._endStyles&&(Q(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(X(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),Q(this._element,this._initialStyles),this._state=3)}}return i})();function Le(i){let e=null;return i.forEach((t,s)=>{yn(s)&&(e=e||new Map,e.set(s,t))}),e}function yn(i){return i==="display"||i==="position"}var we=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,n)=>{n!=="offset"&&e.set(n,this._finished?s:it(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Ze=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Lt(e,t)}getParentElement(e){return tt(e)}query(e,t,s){return Ft(e,t,s)}computeStyle(e,t,s){return it(e,t)}animate(e,t,s,n,r,a=[]){let o=n==0?"both":"forwards",l={duration:s,delay:n,fill:o};r&&(l.easing=r);let u=new Map,h=a.filter(y=>y instanceof we);Fs(s,n)&&h.forEach(y=>{y.currentSnapshot.forEach((d,g)=>u.set(g,d))});let c=Rs(t).map(y=>new Map(y));c=Is(e,c,u);let _=pn(e,c);return new we(e,c,l,_)}};function Pn(i,e){return i==="noop"?new ve(e,new It,new Ie):new ve(e,new Ze,new Be)}var Dt=class{_driver;_animationAst;constructor(e,t){this._driver=e;let s=[],n=[],r=rt(e,t,s,n);if(s.length)throw cs(s);n.length&&void 0,this._animationAst=r}buildTimelines(e,t,s,n,r){let a=Array.isArray(t)?Et(t):t,o=Array.isArray(s)?Et(s):s,l=[];r=r||new te;let u=ot(this._driver,e,this._animationAst,st,pe,a,o,n,r,l);if(l.length)throw hs(l);return u}},me="@",Vt="@.disabled",be=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,n=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,n){this.delegate.setAttribute(e,t,s,n)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==me&&t==Vt?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Je=class extends be{factory;constructor(e,t,s,n,r){super(t,s,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==me?t.charAt(1)=="."&&t==Vt?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==me){let n=_n(e),r=t.slice(1),a="";return r.charAt(0)!=me&&([r,a]=Sn(r)),this.engine.listen(this.namespaceId,n,r,a,o=>{let l=o._data||-1;this.factory.scheduleListenerCallback(l,s,o)})}return this.delegate.listen(e,t,s)}};function _n(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Sn(i){let e=i.indexOf("."),t=i.substring(0,e),s=i.slice(e+1);return[t,s]}var Rt=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n)}}createRenderer(e,t){let s="",n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,h=u.get(n);if(!h){let c=()=>u.delete(n);h=new be(s,n,this.engine,c),u.set(n,h)}return h}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(r,a,e,u.name,u)};return t.data.animation.forEach(o),new Je(this,a,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),n.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};export{_t as AnimationDriver,It as NoopAnimationDriver,Dt as \u0275Animation,ve as \u0275AnimationEngine,Je as \u0275AnimationRenderer,Rt as \u0275AnimationRendererFactory,Fe as \u0275AnimationStyleNormalizer,be as \u0275BaseAnimationRenderer,Ie as \u0275NoopAnimationStyleNormalizer,Ze as \u0275WebAnimationsDriver,we as \u0275WebAnimationsPlayer,Be as \u0275WebAnimationsStyleNormalizer,Fs as \u0275allowPreviousPlayerStylesMerge,An as \u0275camelCaseToDashCase,Lt as \u0275containsElement,Pn as \u0275createEngine,tt as \u0275getParentElement,Ft as \u0275invokeQuery,Rs as \u0275normalizeKeyframes,Ns as \u0275validateStyleProperty,bn as \u0275validateWebAnimatableStyleProperty}; diff --git a/index.html b/index.html index e3182b1..2bf2822 100644 --- a/index.html +++ b/index.html @@ -11,5 +11,5 @@ Loading... - + diff --git a/main-AJ357CP3.js b/main-AJ357CP3.js new file mode 100644 index 0000000..20e92d2 --- /dev/null +++ b/main-AJ357CP3.js @@ -0,0 +1,67 @@ +import{$ as O,$a as vn,$b as kd,A as mt,Aa as W,Ab as ka,Ac as di,B as De,Ba as io,Bb as ge,Bc as Tr,C as ua,Ca as ad,Cb as ie,Cc as Dr,D as Ci,Da as no,Db as ne,E as Wi,Ea as ld,Eb as l,F as ki,Fa as Wt,Fb as d,Fc as Si,G as pa,Ga as pt,Gb as D,Gc as mi,H as ht,Ha as oo,Hb as F,I as br,Ia as ya,Ib as Ei,Ic as Mt,J as fa,Ja as xr,Jb as g,Jc as Zi,K as ji,Ka as Yi,Kb as f,Kc as ei,L as Mi,La as ro,Lb as Te,Lc as Fd,M as ai,Ma as _n,Mb as H,Mc as Pd,N as ga,Na as bn,Nb as qe,O as Kc,Oa as cd,Ob as Pe,P as _a,Pa as dd,Pb as J,Q as Qc,Qa as md,Qb as ee,R as Jc,Ra as hd,Rb as wd,S as to,Sa as ud,Sb as Cd,T as vr,Ta as pd,Tb as At,U as ut,Ua as fd,Ub as m,V as $e,Va as vt,Vb as Ze,W as Ce,Wa as gd,Wb as Mr,X as ed,Xa as so,Xb as x,Y as Ue,Ya as h,Yb as w,Z as Se,Za as Q,Zb as C,_ as Rt,_a as xa,_b as Ve,a as k,aa as X,ab as wr,ac as Ma,b as re,ba as td,bb as jt,bc as Ia,ca as R,cb as Jt,cc as Ea,d as Ge,da as ba,db as qi,dc as Sa,e as Xc,ea as K,eb as Ii,ec as Md,f as Vt,fa as u,fb as _d,fc as He,g as da,ga as $i,gb as bd,gc as Id,h as ur,ha as id,hb as vd,hc as q,i as N,ia as nd,ib as yd,ic as Xi,j as Ct,ja as Qt,jb as E,jc as ci,k as pr,ka as Bt,kb as Z,kc as Ut,l as Kt,la as ze,lb as j,lc as Ir,m as dt,ma as b,mb as Ne,mc as Er,n as V,na as v,nb as Fe,nc as yn,o as Bi,oa as Ui,ob as Y,oc as Ed,p as Qn,pa as va,pb as Cr,pc as Sd,q as Zc,qa as Ye,qb as kr,qc as ae,r as B,ra as od,rb as wa,rc as Ta,s as Jn,sa as Je,sb as li,sc as xn,t as Dt,ta as Hi,tb as fe,tc as Sr,u as ma,ua as rd,ub as M,uc as Td,v as fr,va as yr,vb as Ca,vc as Dd,w as eo,wa as U,wb as te,wc as Rd,x as gr,xa as G,xb as $t,xc as Ad,y as ha,ya as Gi,yb as xd,yc as Da,z as _r,za as sd,zb as L,zc as Od}from"./chunk-HNCQXACW.js";var lo=class{},Ar=class{},hi=class o{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` +`).forEach(e=>{let t=e.indexOf(":");if(t>0){let n=e.slice(0,t),r=e.slice(t+1).trim();this.addHeaderEntry(n,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,t)=>{this.addHeaderEntry(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof o?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new o;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof o?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let t=i.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(i.name,e);let n=(i.op==="a"?this.headers.get(e):void 0)||[];n.push(...t),this.headers.set(e,n);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>r.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(i,e){let t=i.toLowerCase();this.maybeSetNormalizedName(i,t),this.headers.has(t)?this.headers.get(t).push(e):this.headers.set(t,[e])}setHeaderEntries(i,e){let t=(Array.isArray(e)?e:[e]).map(r=>r.toString()),n=i.toLowerCase();this.headers.set(n,t),this.maybeSetNormalizedName(i,n)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Aa=class{encodeKey(i){return Ld(i)}encodeValue(i){return Ld(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function hp(o,i){let e=new Map;return o.length>0&&o.replace(/^\?/,"").split("&").forEach(n=>{let r=n.indexOf("="),[s,a]=r==-1?[i.decodeKey(n),""]:[i.decodeKey(n.slice(0,r)),i.decodeValue(n.slice(r+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var up=/%(\d[a-f0-9])/gi,pp={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ld(o){return encodeURIComponent(o).replace(up,(i,e)=>pp[e]??i)}function Rr(o){return`${o}`}var Di=class o{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Aa,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=hp(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let t=i.fromObject[e],n=Array.isArray(t)?t.map(Rr):[Rr(t)];this.map.set(e,n)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(t=>{let n=i[t];Array.isArray(n)?n.forEach(r=>{e.push({param:t,value:r,op:"a"})}):e.push({param:t,value:n,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new o({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(Rr(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let t=this.map.get(i.param)||[],n=t.indexOf(Rr(i.value));n!==-1&&t.splice(n,1),t.length>0?this.map.set(i.param,t):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};var Oa=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function fp(o){switch(o){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function zd(o){return typeof ArrayBuffer<"u"&&o instanceof ArrayBuffer}function Nd(o){return typeof Blob<"u"&&o instanceof Blob}function Vd(o){return typeof FormData<"u"&&o instanceof FormData}function gp(o){return typeof URLSearchParams<"u"&&o instanceof URLSearchParams}var ao=class o{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,t,n){this.url=e,this.method=i.toUpperCase();let r;if(fp(this.method)||n?(this.body=t!==void 0?t:null,r=n):r=t,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new hi,this.context??=new Oa,!this.params)this.params=new Di,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":aI.set(S,i.setHeaders[S]),p)),i.setParams&&(_=Object.keys(i.setParams).reduce((I,S)=>I.set(S,i.setParams[S]),_)),new o(e,t,s,{params:_,headers:p,context:y,reportProgress:c,responseType:n,withCredentials:a,transferCache:r})}},Ri=function(o){return o[o.Sent=0]="Sent",o[o.UploadProgress=1]="UploadProgress",o[o.ResponseHeader=2]="ResponseHeader",o[o.DownloadProgress=3]="DownloadProgress",o[o.Response=4]="Response",o[o.User=5]="User",o}(Ri||{}),co=class{headers;status;statusText;url;ok;type;constructor(i,e=200,t="OK"){this.headers=i.headers||new hi,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||t,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Or=class o extends co{constructor(i={}){super(i)}type=Ri.ResponseHeader;clone(i={}){return new o({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},mo=class o extends co{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Ri.Response;clone(i={}){return new o({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},Ti=class extends co{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},$d=200,_p=204;function Ra(o,i){return{body:i,headers:o.headers,context:o.context,observe:o.observe,params:o.params,reportProgress:o.reportProgress,responseType:o.responseType,withCredentials:o.withCredentials,transferCache:o.transferCache}}var Ki=(()=>{class o{handler;constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof ao)r=e;else{let c;n.headers instanceof hi?c=n.headers:c=new hi(n.headers);let p;n.params&&(n.params instanceof Di?p=n.params:p=new Di({fromObject:n.params})),r=new ao(e,t,n.body!==void 0?n.body:null,{headers:c,context:n.context,params:p,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials,transferCache:n.transferCache})}let s=V(r).pipe(Wi(c=>this.handler.handle(c)));if(e instanceof ao||n.observe==="events")return s;let a=s.pipe(De(c=>c instanceof mo));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(B(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(B(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(B(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(B(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:new Di().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,Ra(n,t))}post(e,t,n={}){return this.request("POST",e,Ra(n,t))}put(e,t,n={}){return this.request("PUT",e,Ra(n,t))}static \u0275fac=function(t){return new(t||o)(K(lo))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),bp=/^\)\]\}',?\n/,vp="X-Request-URL";function Bd(o){if(o.url)return o.url;let i=vp.toLocaleLowerCase();return o.headers.get(i)}var yp=(()=>{class o{fetchImpl=u(Fa,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=u(G);handle(e){return new Vt(t=>{let n=new AbortController;return this.doRequest(e,n.signal,t).then(Pa,r=>t.error(new Ti({error:r}))),()=>n.abort()})}async doRequest(e,t,n){let r=this.createRequestInit(e),s;try{let S=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,k({signal:t},r)));xp(S),n.next({type:Ri.Sent}),s=await S}catch(S){n.error(new Ti({error:S,status:S.status??0,statusText:S.statusText,url:e.urlWithParams,headers:S.headers}));return}let a=new hi(s.headers),c=s.statusText,p=Bd(s)??e.urlWithParams,_=s.status,y=null;if(e.reportProgress&&n.next(new Or({headers:a,status:_,statusText:c,url:p})),s.body){let S=s.headers.get("content-length"),A=[],T=s.body.getReader(),z=0,Le,rt,we=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:Zt,value:Vi}=await T.read();if(Zt)break;if(A.push(Vi),z+=Vi.length,e.reportProgress){rt=e.responseType==="text"?(rt??"")+(Le??=new TextDecoder).decode(Vi,{stream:!0}):void 0;let gn=()=>n.next({type:Ri.DownloadProgress,total:S?+S:void 0,loaded:z,partialText:rt});we?we.run(gn):gn()}}});let wi=this.concatChunks(A,z);try{let Zt=s.headers.get("Content-Type")??"";y=this.parseBody(e,wi,Zt)}catch(Zt){n.error(new Ti({error:Zt,headers:new hi(s.headers),status:s.status,statusText:s.statusText,url:Bd(s)??e.urlWithParams}));return}}_===0&&(_=y?$d:0),_>=200&&_<300?(n.next(new mo({body:y,headers:a,status:_,statusText:c,url:p})),n.complete()):n.error(new Ti({error:y,headers:a,status:_,statusText:c,url:p}))}parseBody(e,t,n){switch(e.responseType){case"json":let r=new TextDecoder().decode(t).replace(bp,"");return r===""?null:JSON.parse(r);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:n});case"arraybuffer":return t.buffer}}createRequestInit(e){let t={},n=e.withCredentials?"include":void 0;if(e.headers.forEach((r,s)=>t[r]=s.join(",")),e.headers.has("Accept")||(t.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let r=e.detectContentTypeHeader();r!==null&&(t["Content-Type"]=r)}return{body:e.serializeBody(),method:e.method,headers:t,credentials:n}}concatChunks(e,t){let n=new Uint8Array(t),r=0;for(let s of e)n.set(s,r),r+=s.length;return n}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),Fa=class{};function Pa(){}function xp(o){o.then(Pa,Pa)}function wp(o,i){return i(o)}function Cp(o,i,e){return(t,n)=>Bt(e,()=>i(t,r=>o(r,n)))}var Ud=new R(""),kp=new R(""),Mp=new R("",{providedIn:"root",factory:()=>!0});var Wd=(()=>{class o extends lo{backend;injector;chain=null;pendingTasks=u(yr);contributeToStability=u(Mp);constructor(e,t){super(),this.backend=e,this.injector=t}handle(e){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(Ud),...this.injector.get(kp,[])]));this.chain=t.reduceRight((n,r)=>Cp(n,r,this.injector),wp)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(e,n=>this.backend.handle(n)).pipe(Mi(()=>this.pendingTasks.remove(t)))}else return this.chain(e,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||o)(K(Ar),K(Qt))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})();var Ip=/^\)\]\}',?\n/;function Ep(o){return"responseURL"in o&&o.responseURL?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):null}var jd=(()=>{class o{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Se(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?dt(t.\u0275loadImpl()):V(null)).pipe($e(()=>new Vt(r=>{let s=t.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((T,z)=>s.setRequestHeader(T,z.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let T=e.detectContentTypeHeader();T!==null&&s.setRequestHeader("Content-Type",T)}if(e.responseType){let T=e.responseType.toLowerCase();s.responseType=T!=="json"?T:"text"}let a=e.serializeBody(),c=null,p=()=>{if(c!==null)return c;let T=s.statusText||"OK",z=new hi(s.getAllResponseHeaders()),Le=Ep(s)||e.url;return c=new Or({headers:z,status:s.status,statusText:T,url:Le}),c},_=()=>{let{headers:T,status:z,statusText:Le,url:rt}=p(),we=null;z!==_p&&(we=typeof s.response>"u"?s.responseText:s.response),z===0&&(z=we?$d:0);let wi=z>=200&&z<300;if(e.responseType==="json"&&typeof we=="string"){let Zt=we;we=we.replace(Ip,"");try{we=we!==""?JSON.parse(we):null}catch(Vi){we=Zt,wi&&(wi=!1,we={error:Vi,text:we})}}wi?(r.next(new mo({body:we,headers:T,status:z,statusText:Le,url:rt||void 0})),r.complete()):r.error(new Ti({error:we,headers:T,status:z,statusText:Le,url:rt||void 0}))},y=T=>{let{url:z}=p(),Le=new Ti({error:T,status:s.status||0,statusText:s.statusText||"Unknown Error",url:z||void 0});r.error(Le)},I=!1,S=T=>{I||(r.next(p()),I=!0);let z={type:Ri.DownloadProgress,loaded:T.loaded};T.lengthComputable&&(z.total=T.total),e.responseType==="text"&&s.responseText&&(z.partialText=s.responseText),r.next(z)},A=T=>{let z={type:Ri.UploadProgress,loaded:T.loaded};T.lengthComputable&&(z.total=T.total),r.next(z)};return s.addEventListener("load",_),s.addEventListener("error",y),s.addEventListener("timeout",y),s.addEventListener("abort",y),e.reportProgress&&(s.addEventListener("progress",S),a!==null&&s.upload&&s.upload.addEventListener("progress",A)),s.send(a),r.next({type:Ri.Sent}),()=>{s.removeEventListener("error",y),s.removeEventListener("abort",y),s.removeEventListener("load",_),s.removeEventListener("timeout",y),e.reportProgress&&(s.removeEventListener("progress",S),a!==null&&s.upload&&s.upload.removeEventListener("progress",A)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(t){return new(t||o)(K(Dr))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),Hd=new R(""),Sp="XSRF-TOKEN",Tp=new R("",{providedIn:"root",factory:()=>Sp}),Dp="X-XSRF-TOKEN",Rp=new R("",{providedIn:"root",factory:()=>Dp}),Fr=class{},Ap=(()=>{class o{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Sr(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(t){return new(t||o)(K(ae),K(Wt),K(Tp))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})();function Op(o,i){let e=o.url.toLowerCase();if(!u(Hd)||o.method==="GET"||o.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(o);let t=u(Fr).getToken(),n=u(Rp);return t!=null&&!o.headers.has(n)&&(o=o.clone({headers:o.headers.set(n,t)})),i(o)}function Gd(...o){let i=[Ki,jd,Wd,{provide:lo,useExisting:Wd},{provide:Ar,useFactory:()=>u(yp,{optional:!0})??u(jd)},{provide:Ud,useValue:Op,multi:!0},{provide:Hd,useValue:!0},{provide:Fr,useClass:Ap}];for(let e of o)i.push(...e.\u0275providers);return $i(i)}var za=class extends Sd{supportsDOMEvents=!0},Na=class o extends za{static makeCurrent(){Ed(new o)}onAndCancel(i,e,t){return i.addEventListener(e,t),()=>{i.removeEventListener(e,t)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=Pp();return e==null?null:Lp(e)}resetBaseElement(){ho=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return Sr(document.cookie,i)}},ho=null;function Pp(){return ho=ho||document.querySelector("base"),ho?ho.getAttribute("href"):null}function Lp(o){return new URL(o,document.baseURI).pathname}var zp=(()=>{class o{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),Va=new R(""),Qd=(()=>{class o{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(n=>{n.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(r=>r.supports(e)),!t)throw new Se(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||o)(K(Va),K(G))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),Pr=class{_doc;constructor(i){this._doc=i}manager},Ba="ng-app-id";function qd(o){for(let i of o)i.remove()}function Xd(o,i){let e=i.createElement("style");return e.textContent=o,e}function Np(o,i,e){let t=o.head?.querySelectorAll(`style[${Ba}="${i}"]`);if(t)for(let n of t)n.textContent&&(n.removeAttribute(Ba),e.set(n.textContent,{usage:0,elements:[n]}))}function Wa(o,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",o),e}var Jd=(()=>{class o{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,n,r={}){this.doc=e,this.appId=t,this.nonce=n,this.isServer=Tr(r),Np(e,t,this.inline),this.hosts.add(e.head)}addStyles(e,t){for(let n of e)this.addUsage(n,this.inline,Xd);t?.forEach(n=>this.addUsage(n,this.external,Wa))}removeStyles(e,t){for(let n of e)this.removeUsage(n,this.inline);t?.forEach(n=>this.removeUsage(n,this.external))}addUsage(e,t,n){let r=t.get(e);r?r.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,n(e,this.doc)))})}removeUsage(e,t){let n=t.get(e);n&&(n.usage--,n.usage<=0&&(qd(n.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])qd(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:n}]of this.inline)n.push(this.addElement(e,Xd(t,this.doc)));for(let[t,{elements:n}]of this.external)n.push(this.addElement(e,Wa(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(Ba,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||o)(K(ae),K(no),K(oo,8),K(Wt))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),La={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ha=/%COMP%/g,em="%COMP%",Vp=`_nghost-${em}`,Bp=`_ngcontent-${em}`,Wp=!0,jp=new R("",{providedIn:"root",factory:()=>Wp});function $p(o){return Bp.replace(Ha,o)}function Up(o){return Vp.replace(Ha,o)}function tm(o,i){return i.map(e=>e.replace(Ha,o))}var Lr=(()=>{class o{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,n,r,s,a,c,p=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=r,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=p,this.platformIsServer=Tr(a),this.defaultRenderer=new uo(e,s,c,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===ro.ShadowDom&&(t=re(k({},t),{encapsulation:ro.Emulated}));let n=this.getOrCreateRenderer(e,t);return n instanceof zr?n.applyToHost(e):n instanceof po&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,r=n.get(t.id);if(!r){let s=this.doc,a=this.ngZone,c=this.eventManager,p=this.sharedStylesHost,_=this.removeStylesOnCompDestroy,y=this.platformIsServer;switch(t.encapsulation){case ro.Emulated:r=new zr(c,p,t,this.appId,_,s,a,y);break;case ro.ShadowDom:return new ja(c,p,e,t,s,a,this.nonce,y);default:r=new po(c,p,t,_,s,a,y);break}n.set(t.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(t){return new(t||o)(K(Qd),K(Jd),K(no),K(jp),K(ae),K(Wt),K(G),K(oo))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),uo=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,t,n){this.eventManager=i,this.doc=e,this.ngZone=t,this.platformIsServer=n}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(La[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(Zd(i)?i.content:i).appendChild(e)}insertBefore(i,e,t){i&&(Zd(i)?i.content:i).insertBefore(e,t)}removeChild(i,e){e.remove()}selectRootElement(i,e){let t=typeof i=="string"?this.doc.querySelector(i):i;if(!t)throw new Se(-5104,!1);return e||(t.textContent=""),t}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,t,n){if(n){e=n+":"+e;let r=La[n];r?i.setAttributeNS(r,e,t):i.setAttribute(e,t)}else i.setAttribute(e,t)}removeAttribute(i,e,t){if(t){let n=La[t];n?i.removeAttributeNS(n,e):i.removeAttribute(`${t}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,t,n){n&(so.DashCase|so.Important)?i.style.setProperty(e,t,n&so.Important?"important":""):i.style[e]=t}removeStyle(i,e,t){t&so.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,t){i!=null&&(i[e]=t)}setValue(i,e){i.nodeValue=e}listen(i,e,t){if(typeof i=="string"&&(i=yn().getGlobalEventTarget(this.doc,i),!i))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(t))}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))===!1&&e.preventDefault()}}};function Zd(o){return o.tagName==="TEMPLATE"&&o.content!==void 0}var ja=class extends uo{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,t,n,r,s,a,c){super(i,r,s,c),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let p=tm(n.id,n.styles);for(let y of p){let I=document.createElement("style");a&&I.setAttribute("nonce",a),I.textContent=y,this.shadowRoot.appendChild(I)}let _=n.getExternalStyles?.();if(_)for(let y of _){let I=Wa(y,r);a&&I.setAttribute("nonce",a),this.shadowRoot.appendChild(I)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,t){return super.insertBefore(this.nodeOrShadowRoot(i),e,t)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},po=class extends uo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,t,n,r,s,a,c){super(i,r,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=n,this.styles=c?tm(c,t.styles):t.styles,this.styleUrls=t.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},zr=class extends po{contentAttr;hostAttr;constructor(i,e,t,n,r,s,a,c){let p=n+"-"+t.id;super(i,e,t,r,s,a,c,p),this.contentAttr=$p(p),this.hostAttr=Up(p)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let t=super.createElement(i,e);return super.setAttribute(t,this.contentAttr,""),t}},Hp=(()=>{class o extends Pr{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}static \u0275fac=function(t){return new(t||o)(K(ae))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),Kd=["alt","control","meta","shift"],Gp={"\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"},Yp={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey},qp=(()=>{class o extends Pr{constructor(e){super(e)}supports(e){return o.parseEventName(e)!=null}addEventListener(e,t,n){let r=o.parseEventName(t),s=o.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>yn().onAndCancel(e,r.domEventName,s))}static parseEventName(e){let t=e.toLowerCase().split("."),n=t.shift();if(t.length===0||!(n==="keydown"||n==="keyup"))return null;let r=o._normalizeKey(t.pop()),s="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),s="code."),Kd.forEach(p=>{let _=t.indexOf(p);_>-1&&(t.splice(_,1),s+=p+".")}),s+=r,t.length!=0||r.length===0)return null;let c={};return c.domEventName=n,c.fullKey=s,c}static matchEventFullKeyCode(e,t){let n=Gp[e.key]||e.key,r="";return t.indexOf("code.")>-1&&(n=e.code,r="code."),n==null||!n?!1:(n=n.toLowerCase(),n===" "?n="space":n==="."&&(n="dot"),Kd.forEach(s=>{if(s!==n){let a=Yp[s];a(e)&&(r+=s+".")}}),r+=n,r===t)}static eventCallback(e,t,n){return r=>{o.matchEventFullKeyCode(r,e)&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||o)(K(ae))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})();function im(o,i){return Id(k({rootComponent:o},Xp(i)))}function Xp(o){return{appProviders:[...ef,...o?.providers??[]],platformProviders:Jp}}function Zp(){Na.makeCurrent()}function Kp(){return new Gi}function Qp(){return ad(document),document}var Jp=[{provide:Wt,useValue:Od},{provide:ld,useValue:Zp,multi:!0},{provide:ae,useFactory:Qp,deps:[]}];var ef=[{provide:nd,useValue:"root"},{provide:Gi,useFactory:Kp,deps:[]},{provide:Va,useClass:Hp,multi:!0,deps:[ae,G,Wt]},{provide:Va,useClass:qp,multi:!0,deps:[ae]},Lr,Jd,Qd,{provide:wr,useExisting:Lr},{provide:Dr,useClass:zp,deps:[]},[]];var nm=(()=>{class o{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||o)(K(ae))};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var fo=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:function(t){let n=null;return t?n=new(t||o):n=K(tf),n},providedIn:"root"})}return o})(),tf=(()=>{class o extends fo{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case vt.NONE:return t;case vt.HTML:return bn(t,"HTML")?_n(t):fd(this._doc,String(t)).toString();case vt.STYLE:return bn(t,"Style")?_n(t):t;case vt.SCRIPT:if(bn(t,"Script"))return _n(t);throw new Se(5200,!1);case vt.URL:return bn(t,"URL")?_n(t):pd(String(t));case vt.RESOURCE_URL:if(bn(t,"ResourceURL"))return _n(t);throw new Se(5201,!1);default:throw new Se(5202,!1)}}bypassSecurityTrustHtml(e){return cd(e)}bypassSecurityTrustStyle(e){return dd(e)}bypassSecurityTrustScript(e){return md(e)}bypassSecurityTrustUrl(e){return hd(e)}bypassSecurityTrustResourceUrl(e){return ud(e)}static \u0275fac=function(t){return new(t||o)(K(ae))};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function Ot(o){return o!=null&&`${o}`!="false"}function wn(o,i=0){return nf(o)?Number(o):arguments.length===2?i:0}function nf(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function Cn(o){return Array.isArray(o)?o:[o]}function Ke(o){return o==null?"":typeof o=="string"?o:`${o}px`}function kt(o){return o instanceof W?o.nativeElement:o}var qa;try{qa=typeof Intl<"u"&&Intl.v8BreakIterator}catch{qa=!1}var Ae=(()=>{class o{_platformId=u(Wt);isBrowser=this._platformId?di(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||qa)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var kn,om=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Xa(){if(kn)return kn;if(typeof document!="object"||!document)return kn=new Set(om),kn;let o=document.createElement("input");return kn=new Set(om.filter(i=>(o.setAttribute("type",i),o.type===i))),kn}var go;function of(){if(go==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>go=!0}))}finally{go=go||!1}return go}function ti(o){return of()?o:!!o.capture}var Qi;function Za(){if(Qi==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Qi=!1,Qi;if("scrollBehavior"in document.documentElement.style)Qi=!0;else{let o=Element.prototype.scrollTo;o?Qi=!/\{\s*\[native code\]\s*\}/.test(o.toString()):Qi=!1}}return Qi}var Ya;function rf(){if(Ya==null){let o=typeof document<"u"?document.head:null;Ya=!!(o&&(o.createShadowRoot||o.attachShadow))}return Ya}function rm(o){if(rf()){let i=o.getRootNode?o.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function It(o){return o.composedPath?o.composedPath()[0]:o.target}function Ka(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Nr=new WeakMap,lt=(()=>{class o{_appRef;_injector=u(Je);_environmentInjector=u(Qt);load(e){let t=this._appRef=this._appRef||this._injector.get(li),n=Nr.get(t);n||(n={loaders:new Set,refs:[]},Nr.set(t,n),t.onDestroy(()=>{Nr.get(t)?.refs.forEach(r=>r.destroy()),Nr.delete(t)})),n.loaders.has(e)||(n.loaders.add(e),n.refs.push(Er(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),sm=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(t,n){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return o})();function Ht(o,...i){return i.length?i.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}function sf(o){if(o.type==="characterData"&&o.target instanceof Comment)return!0;if(o.type==="childList"){for(let i=0;i{class o{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),af=(()=>{class o{_mutationObserverFactory=u(am);_observedElements=new Map;_ngZone=u(G);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){let t=kt(e);return new Vt(n=>{let s=this._observeElement(t).pipe(B(a=>a.filter(c=>!sf(c))),De(a=>!!a.length)).subscribe(a=>{this._ngZone.run(()=>{n.next(a)})});return()=>{s.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let t=new N,n=this._mutationObserverFactory.create(r=>t.next(r));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),lm=(()=>{class o{_contentObserver=u(af);_elementRef=u(W);event=new U;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=wn(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(ki(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",q],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[Fe]})}return o})(),Vr=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({providers:[am]})}return o})();var cm=new Set,Ji,lf=(()=>{class o{_platform=u(Ae);_nonce=u(oo,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):df}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&cf(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function cf(o,i){if(!cm.has(o))try{Ji||(Ji=document.createElement("style"),i&&Ji.setAttribute("nonce",i),Ji.setAttribute("type","text/css"),document.head.appendChild(Ji)),Ji.sheet&&(Ji.sheet.insertRule(`@media ${o} {body{ }}`,0),cm.add(o))}catch(e){console.error(e)}}function df(o){return{matches:o==="all"||o==="",media:o,addListener:()=>{},removeListener:()=>{}}}var mm=(()=>{class o{_mediaMatcher=u(lf);_zone=u(G);_queries=new Map;_destroySubject=new N;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return dm(Cn(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=dm(Cn(e)).map(s=>this._registerQuery(s).observable),r=Jn(n);return r=fr(r.pipe(ht(1)),r.pipe(vr(1),ki(0))),r.pipe(B(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:p})=>{a.matches=a.matches||c,a.breakpoints[p]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let t=this._mediaMatcher.matchMedia(e),r={observable:new Vt(s=>{let a=c=>this._zone.run(()=>s.next(c));return t.addListener(a),()=>{t.removeListener(a)}}).pipe(ut(t),B(({matches:s})=>({query:e,matches:s})),Ce(this._destroySubject)),mql:t};return this._queries.set(e,r),r}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function dm(o){return o.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}var pm=" ";function fm(o,i,e){let t=gm(o,i);e=e.trim(),!t.some(n=>n.trim()===e)&&(t.push(e),o.setAttribute(i,t.join(pm)))}function il(o,i,e){let t=gm(o,i);e=e.trim();let n=t.filter(r=>r!==e);n.length?o.setAttribute(i,n.join(pm)):o.removeAttribute(i)}function gm(o,i){return o.getAttribute(i)?.match(/\S+/g)??[]}var Mf=200,el=class{_letterKeyStream=new N;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new N;selectedItem=this._selectedItem;constructor(i,e){let t=typeof e?.debounceInterval=="number"?e.debounceInterval:Mf;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Ue(e=>this._pressedLetters.push(e)),ki(i),De(()=>this._pressedLetters.length>0),B(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let t=1;ti.disabled;constructor(i,e){this._items=i,i instanceof io?this._itemChangesSubscription=i.changes.subscribe(t=>this._itemsChanged(t.toArray())):qi(i)&&(this._effectRef=Ir(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new N;change=new N;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new el(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){let e=i.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t,this._typeahead?.setCurrentSelectedItemIndex(t))}}},$r=class extends jr{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}},Ur=class extends jr{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};function _o(o){return o.buttons===0||o.detail===0}function bo(o){let i=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var If=new R("cdk-input-modality-detector-options"),Ef={ignoreKeys:[18,17,224,91,16]},_m=650,Mn=ti({passive:!0,capture:!0}),Sf=(()=>{class o{_platform=u(Ae);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Ct(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(t=>t===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=It(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs<_m||(this._modality.next(_o(e)?"keyboard":"mouse"),this._mostRecentTarget=It(e))};_onTouchstart=e=>{if(bo(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=It(e)};constructor(){let e=u(G),t=u(ae),n=u(If,{optional:!0});this._options=k(k({},Ef),n),this.modalityDetected=this._modality.pipe(vr(1)),this.modalityChanged=this.modalityDetected.pipe(ji()),this._platform.isBrowser&&e.runOutsideAngular(()=>{t.addEventListener("keydown",this._onKeydown,Mn),t.addEventListener("mousedown",this._onMousedown,Mn),t.addEventListener("touchstart",this._onTouchstart,Mn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Mn),document.removeEventListener("mousedown",this._onMousedown,Mn),document.removeEventListener("touchstart",this._onTouchstart,Mn))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Tf=new R("liveAnnouncerElement",{providedIn:"root",factory:Df});function Df(){return null}var Rf=new R("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Af=0,bm=(()=>{class o{_ngZone=u(G);_defaultOptions=u(Rf,{optional:!0});_liveElement;_document=u(ae);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(Tf,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...t){let n=this._defaultOptions,r,s;return t.length===1&&typeof t[0]=="number"?s=t[0]:[r,s]=t,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),s==null&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let n=0;n{class o{_ngZone=u(G);_platform=u(Ae);_inputModalityDetector=u(Sf);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=u(ae,{optional:!0});_stopInputModalityDetector=new N;constructor(){let e=u(Of,{optional:!0});this._detectionMode=e?.detectionMode||Wr.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let t=It(e);for(let n=t;n;n=n.parentElement)e.type==="focus"?this._onFocus(e,n):this._onBlur(e,n)};monitor(e,t=!1){let n=kt(e);if(!this._platform.isBrowser||n.nodeType!==1)return V();let r=rm(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return t&&(s.checkChildren=!0),s.subject;let a={checkChildren:t,subject:new N,rootNode:r};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let t=kt(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){let r=kt(e),s=this._getDocument().activeElement;r===s?this._getClosestElementsInfo(r).forEach(([a,c])=>this._originChanged(a,t,c)):(this._setOrigin(t),typeof r.focus=="function"&&r.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Wr.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused",t==="touch"),e.classList.toggle("cdk-keyboard-focused",t==="keyboard"),e.classList.toggle("cdk-mouse-focused",t==="mouse"),e.classList.toggle("cdk-program-focused",t==="program")}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&t,this._detectionMode===Wr.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?_m:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(e,t){let n=this._elementInfo.get(t),r=It(e);!n||!n.checkChildren&&t!==r||this._originChanged(t,this._getFocusOrigin(r),n)}_onBlur(e,t){let n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Br),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Br)}),this._rootNodeFocusListenerCount.set(t,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ce(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){let n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Br),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Br),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){let t=[];return this._elementInfo.forEach((n,r)=>{(r===e||n.checkChildren&&r.contains(e))&&t.push([r,n])}),t}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:t,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!t||t===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let s=0;s{class o{_platform=u(Ae);_hasCheckedHighContrastMode;_document=u(ae);_breakpointSubscription;constructor(){this._breakpointSubscription=u(mm).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return en.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return en.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return en.BLACK_ON_WHITE}return en.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Qa,hm,um),this._hasCheckedHighContrastMode=!0;let t=this.getHighContrastMode();t===en.BLACK_ON_WHITE?e.add(Qa,hm):t===en.WHITE_ON_BLACK&&e.add(Qa,um)}}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Ja={},yt=(()=>{class o{_appId=u(no);getId(e){return this._appId!=="ng"&&(e+=this._appId),Ja.hasOwnProperty(e)||(Ja[e]=0),`${e}${Ja[e]++}`}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Ff=new R("cdk-dir-doc",{providedIn:"root",factory:Pf});function Pf(){return u(ae)}var Lf=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function zf(o){let i=o?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?Lf.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var ii=(()=>{class o{value="ltr";change=new U;constructor(){let e=u(Ff,{optional:!0});if(e){let t=e.body?e.body.dir:null,n=e.documentElement?e.documentElement.dir:null;this.value=zf(t||n||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Ai=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({})}return o})();var Nf=["text"],Vf=[[["mat-icon"]],"*"],Bf=["mat-icon","*"];function Wf(o,i){if(o&1&&D(0,"mat-pseudo-checkbox",1),o&2){let e=f();M("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function jf(o,i){if(o&1&&D(0,"mat-pseudo-checkbox",3),o&2){let e=f();M("disabled",e.disabled)}}function $f(o,i){if(o&1&&(l(0,"span",4),m(1),d()),o&2){let e=f();h(),Mr("(",e.group.label,")")}}var Uf=["mat-internal-form-field",""],Hf=["*"];var ke=(()=>{class o{constructor(){u(vm)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[Ai,Ai]})}return o})(),Dn=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,t,n,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,r=t?.isErrorState(n,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var Yr=(()=>{class o{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),ui=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["structural-styles"]],decls:0,vars:0,template:function(t,n){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return o})();var Ft=function(o){return o[o.FADING_IN=0]="FADING_IN",o[o.VISIBLE=1]="VISIBLE",o[o.FADING_OUT=2]="FADING_OUT",o[o.HIDDEN=3]="HIDDEN",o}(Ft||{}),rl=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Ft.HIDDEN;constructor(i,e,t,n=!1){this._renderer=i,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=n}fadeOut(){this._renderer.fadeOutRipple(this)}},ym=ti({passive:!0,capture:!0}),sl=class{_events=new Map;addHandler(i,e,t,n){let r=this._events.get(e);if(r){let s=r.get(t);s?s.add(n):r.set(t,new Set([n]))}else this._events.set(e,new Map([[t,new Set([n])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,ym)})}removeHandler(i,e,t){let n=this._events.get(i);if(!n)return;let r=n.get(e);r&&(r.delete(t),r.size===0&&n.delete(e),n.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,ym)))}_delegateEventHandler=i=>{let e=It(i);e&&this._events.get(i.type)?.forEach((t,n)=>{(n===e||n.contains(e))&&t.forEach(r=>r.handleEvent(i))})}},Gr={enterDuration:225,exitDuration:150},Gf=800,xm=ti({passive:!0,capture:!0}),wm=["mousedown","touchstart"],Cm=["mouseup","mouseleave","touchend","touchcancel"],Yf=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return o})(),Rn=class o{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new sl;constructor(i,e,t,n,r){this._target=i,this._ngZone=e,this._platform=n,n.isBrowser&&(this._containerElement=kt(t)),r&&r.get(lt).load(Yf)}fadeInRipple(i,e,t={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=k(k({},Gr),t.animation);t.centered&&(i=n.left+n.width/2,e=n.top+n.height/2);let s=t.radius||qf(i,e,n),a=i-n.left,c=e-n.top,p=r.enterDuration,_=document.createElement("div");_.classList.add("mat-ripple-element"),_.style.left=`${a-s}px`,_.style.top=`${c-s}px`,_.style.height=`${s*2}px`,_.style.width=`${s*2}px`,t.color!=null&&(_.style.backgroundColor=t.color),_.style.transitionDuration=`${p}ms`,this._containerElement.appendChild(_);let y=window.getComputedStyle(_),I=y.transitionProperty,S=y.transitionDuration,A=I==="none"||S==="0s"||S==="0s, 0s"||n.width===0&&n.height===0,T=new rl(this,_,t,A);_.style.transform="scale3d(1, 1, 1)",T.state=Ft.FADING_IN,t.persistent||(this._mostRecentTransientRipple=T);let z=null;return!A&&(p||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Le=()=>{z&&(z.fallbackTimer=null),clearTimeout(we),this._finishRippleTransition(T)},rt=()=>this._destroyRipple(T),we=setTimeout(rt,p+100);_.addEventListener("transitionend",Le),_.addEventListener("transitioncancel",rt),z={onTransitionEnd:Le,onTransitionCancel:rt,fallbackTimer:we}}),this._activeRipples.set(T,z),(A||!p)&&this._finishRippleTransition(T),T}fadeOutRipple(i){if(i.state===Ft.FADING_OUT||i.state===Ft.HIDDEN)return;let e=i.element,t=k(k({},Gr),i.config.animation);e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",i.state=Ft.FADING_OUT,(i._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=kt(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,wm.forEach(t=>{o._eventManager.addHandler(this._ngZone,t,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Cm.forEach(e=>{this._triggerElement.addEventListener(e,this,xm)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Ft.FADING_IN?this._startFadeOutTransition(i):i.state===Ft.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:t}=i.config;i.state=Ft.VISIBLE,!t&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Ft.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=_o(i),t=this._lastTouchStartEvent&&Date.now(){let e=i.state===Ft.VISIBLE||i.config.terminateOnPointerUp&&i.state===Ft.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(wm.forEach(e=>o._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(Cm.forEach(e=>i.removeEventListener(e,this,xm)),this._pointerUpEventsRegistered=!1))}};function qf(o,i,e){let t=Math.max(Math.abs(o-e.left),Math.abs(o-e.right)),n=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(t*t+n*n)}var qr=new R("mat-ripple-global-options"),yo=(()=>{class o{_elementRef=u(W);_animationMode=u(pt,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=u(G),t=u(Ae),n=u(qr,{optional:!0}),r=u(Je);this._globalOptions=n||{},this._rippleRenderer=new Rn(this,e,this._elementRef,t,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:k(k(k({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,n){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,t,k(k({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,k(k({},this.rippleConfig),e))}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){t&2&&te("mat-ripple-unbounded",n.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return o})(),tn=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,ke]})}return o})(),Xf=(()=>{class o{_animationMode=u(pt,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,n){t&2&&te("mat-pseudo-checkbox-indeterminate",n.state==="indeterminate")("mat-pseudo-checkbox-checked",n.state==="checked")("mat-pseudo-checkbox-disabled",n.disabled)("mat-pseudo-checkbox-minimal",n.appearance==="minimal")("mat-pseudo-checkbox-full",n.appearance==="full")("_mat-animation-noopable",n._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,n){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return o})(),ll=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke]})}return o})(),cl=new R("MAT_OPTION_PARENT_COMPONENT"),dl=new R("MatOptgroup");var al=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},st=(()=>{class o{_element=u(W);_changeDetectorRef=u(He);_parent=u(cl,{optional:!0});group=u(dl,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=u(yt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new U;_text;_stateChanges=new N;constructor(){u(lt).load(ui),u(lt).load(sm),this._signalDisableRipple=!!this._parent&&qi(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let n=this._getHostElement();typeof n.focus=="function"&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!Ht(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new al(this,e))}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-option"]],viewQuery:function(t,n){if(t&1&&Pe(Nf,7),t&2){let r;J(r=ee())&&(n._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,n){t&1&&g("click",function(){return n._selectViaInteraction()})("keydown",function(s){return n._handleKeydown(s)}),t&2&&(Ei("id",n.id),fe("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),te("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",q]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[Fe],ngContentSelectors:Bf,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){t&1&&(Te(Vf),Y(0,Wf,1,2,"mat-pseudo-checkbox",1),H(1),l(2,"span",2,0),H(4,1),d(),Y(5,jf,1,1,"mat-pseudo-checkbox",3)(6,$f,2,1,"span",4),D(7,"div",5)),t&2&&(L(n.multiple?0:-1),h(5),L(!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator?5:-1),h(),L(n.group&&n.group._inert?6:-1),h(),M("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[Xf,yo],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return o})();function Em(o,i,e){if(e.length){let t=i.toArray(),n=e.toArray(),r=0;for(let s=0;se+t?Math.max(0,o-t+i):e}var ml=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[tn,ke,ll]})}return o})(),km={capture:!0},Mm=["focus","mousedown","mouseenter","touchstart"],nl="mat-ripple-loader-uninitialized",ol="mat-ripple-loader-class-name",Im="mat-ripple-loader-centered",Hr="mat-ripple-loader-disabled",Tm=(()=>{class o{_document=u(ae,{optional:!0});_animationMode=u(pt,{optional:!0});_globalRippleOptions=u(qr,{optional:!0});_platform=u(Ae);_ngZone=u(G);_injector=u(Je);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(let e of Mm)this._document?.addEventListener(e,this._onInteraction,km)})}ngOnDestroy(){let e=this._hosts.keys();for(let t of e)this.destroyRipple(t);for(let t of Mm)this._document?.removeEventListener(t,this._onInteraction,km)}configureRipple(e,t){e.setAttribute(nl,this._globalRippleOptions?.namespace??""),(t.className||!e.hasAttribute(ol))&&e.setAttribute(ol,t.className||""),t.centered&&e.setAttribute(Im,""),t.disabled&&e.setAttribute(Hr,"")}setDisabled(e,t){let n=this._hosts.get(e);n?(n.target.rippleDisabled=t,!t&&!n.hasSetUpEvents&&(n.hasSetUpEvents=!0,n.renderer.setupTriggerEvents(e))):t?e.setAttribute(Hr,""):e.removeAttribute(Hr)}_onInteraction=e=>{let t=It(e);if(t instanceof HTMLElement){let n=t.closest(`[${nl}="${this._globalRippleOptions?.namespace??""}"]`);n&&this._createRipple(n)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let t=this._document.createElement("span");t.classList.add("mat-ripple",e.getAttribute(ol)),e.append(t);let n=this._animationMode==="NoopAnimations",r=this._globalRippleOptions,s=n?0:r?.animation?.enterDuration??Gr.enterDuration,a=n?0:r?.animation?.exitDuration??Gr.exitDuration,c={rippleDisabled:n||r?.disabled||e.hasAttribute(Hr),rippleConfig:{centered:e.hasAttribute(Im),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:s,exitDuration:a}}},p=new Rn(c,this._ngZone,t,this._platform,this._injector),_=!c.rippleDisabled;_&&p.setupTriggerEvents(e),this._hosts.set(e,{target:c,renderer:p,hasSetUpEvents:_}),e.removeAttribute(nl)}destroyRipple(e){let t=this._hosts.get(e);t&&(t.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Dm=(()=>{class o{labelPosition;static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,n){t&2&&te("mdc-form-field--align-end",n.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:Uf,ngContentSelectors:Hf,decls:1,vars:0,template:function(t,n){t&1&&(Te(),H(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return o})();var Rm=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,ke]})}return o})();var Xr=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new N;constructor(i=!1,e,t=!0,n){this._multiple=i,this._emitChanges=t,this.compareWith=n,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,t=new Set(i);i.forEach(r=>this._markSelected(r)),e.filter(r=>!t.has(this._getConcreteValue(r,t))).forEach(r=>this._unmarkSelected(r));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(i,t))return t;return i}else return i}};var Vm=(()=>{class o{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,t){this._renderer=e,this._elementRef=t}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(t){return new(t||o)(Q(jt),Q(W))};static \u0275dir=j({type:o})}return o})(),Bm=(()=>{class o extends Vm{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275dir=j({type:o,features:[Ne]})}return o})(),Io=new R("");var Zf={provide:Io,useExisting:Rt(()=>Xe),multi:!0};function Kf(){let o=yn()?yn().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}var Qf=new R(""),Xe=(()=>{class o extends Vm{_compositionMode;_composing=!1;constructor(e,t,n){super(e,t),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!Kf())}writeValue(e){let t=e??"";this.setProperty("value",t)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(t){return new(t||o)(Q(jt),Q(W),Q(Qf,8))};static \u0275dir=j({type:o,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(t,n){t&1&&g("input",function(s){return n._handleInput(s.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(s){return n._compositionEnd(s.target.value)})},standalone:!1,features:[Ve([Zf]),Ne]})}return o})();function Fi(o){return o==null||(typeof o=="string"||Array.isArray(o))&&o.length===0}function Wm(o){return o!=null&&typeof o.length=="number"}var on=new R(""),gl=new R(""),Jf=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ln=class{static min(i){return jm(i)}static max(i){return $m(i)}static required(i){return eg(i)}static requiredTrue(i){return tg(i)}static email(i){return ig(i)}static minLength(i){return ng(i)}static maxLength(i){return og(i)}static pattern(i){return rg(i)}static nullValidator(i){return Kr(i)}static compose(i){return Xm(i)}static composeAsync(i){return Zm(i)}};function jm(o){return i=>{if(Fi(i.value)||Fi(o))return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(Fi(i.value)||Fi(o))return null;let e=parseFloat(i.value);return!isNaN(e)&&e>o?{max:{max:o,actual:i.value}}:null}}function eg(o){return Fi(o.value)?{required:!0}:null}function tg(o){return o.value===!0?null:{required:!0}}function ig(o){return Fi(o.value)||Jf.test(o.value)?null:{email:!0}}function ng(o){return i=>Fi(i.value)||!Wm(i.value)?null:i.value.lengthWm(i.value)&&i.value.length>o?{maxlength:{requiredLength:o,actualLength:i.value.length}}:null}function rg(o){if(!o)return Kr;let i,e;return typeof o=="string"?(e="",o.charAt(0)!=="^"&&(e+="^"),e+=o,o.charAt(o.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=o.toString(),i=o),t=>{if(Fi(t.value))return null;let n=t.value;return i.test(n)?null:{pattern:{requiredPattern:e,actualValue:n}}}}function Kr(o){return null}function Um(o){return o!=null}function Hm(o){return kr(o)?dt(o):o}function Gm(o){let i={};return o.forEach(e=>{i=e!=null?k(k({},i),e):i}),Object.keys(i).length===0?null:i}function Ym(o,i){return i.map(e=>e(o))}function sg(o){return!o.validate}function qm(o){return o.map(i=>sg(i)?i:e=>i.validate(e))}function Xm(o){if(!o)return null;let i=o.filter(Um);return i.length==0?null:function(e){return Gm(Ym(e,i))}}function _l(o){return o!=null?Xm(qm(o)):null}function Zm(o){if(!o)return null;let i=o.filter(Um);return i.length==0?null:function(e){let t=Ym(e,i).map(Hm);return gr(t).pipe(B(Gm))}}function bl(o){return o!=null?Zm(qm(o)):null}function Am(o,i){return o===null?[i]:Array.isArray(o)?[...o,i]:[o,i]}function Km(o){return o._rawValidators}function Qm(o){return o._rawAsyncValidators}function hl(o){return o?Array.isArray(o)?o:[o]:[]}function Qr(o,i){return Array.isArray(o)?o.includes(i):o===i}function Om(o,i){let e=hl(i);return hl(o).forEach(n=>{Qr(e,n)||e.push(n)}),e}function Fm(o,i){return hl(i).filter(e=>!Qr(o,e))}var Jr=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=_l(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=bl(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},nn=class extends Jr{name;get formDirective(){return null}get path(){return null}},pi=class extends Jr{_parent=null;name=null;valueAccessor=null},ul=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},ag={"[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"},ZC=re(k({},ag),{"[class.ng-submitted]":"isSubmitted"}),Me=(()=>{class o extends ul{constructor(e){super(e)}static \u0275fac=function(t){return new(t||o)(Q(pi,2))};static \u0275dir=j({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){t&2&&te("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[Ne]})}return o})();var xo="VALID",Zr="INVALID",Fn="PENDING",wo="DISABLED",Pi=class{},es=class extends Pi{value;source;constructor(i,e){super(),this.value=i,this.source=e}},ko=class extends Pi{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Mo=class extends Pi{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Pn=class extends Pi{status;source;constructor(i,e){super(),this.status=i,this.source=e}},pl=class extends Pi{source;constructor(i){super(),this.source=i}},fl=class extends Pi{source;constructor(i){super(),this.source=i}};function Jm(o){return(ss(o)?o.validators:o)||null}function lg(o){return Array.isArray(o)?_l(o):o||null}function eh(o,i){return(ss(i)?i.asyncValidators:o)||null}function cg(o){return Array.isArray(o)?bl(o):o||null}function ss(o){return o!=null&&!Array.isArray(o)&&typeof o=="object"}function dg(o,i,e){let t=o.controls;if(!(i?Object.keys(t):t).length)throw new Se(1e3,"");if(!t[e])throw new Se(1001,"")}function mg(o,i,e){o._forEachChild((t,n)=>{if(e[n]===void 0)throw new Se(1002,"")})}var ts=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return Ut(this.statusReactive)}set status(i){Ut(()=>this.statusReactive.set(i))}_status=ci(()=>this.statusReactive());statusReactive=Ii(void 0);get valid(){return this.status===xo}get invalid(){return this.status===Zr}get pending(){return this.status==Fn}get disabled(){return this.status===wo}get enabled(){return this.status!==wo}errors;get pristine(){return Ut(this.pristineReactive)}set pristine(i){Ut(()=>this.pristineReactive.set(i))}_pristine=ci(()=>this.pristineReactive());pristineReactive=Ii(!0);get dirty(){return!this.pristine}get touched(){return Ut(this.touchedReactive)}set touched(i){Ut(()=>this.touchedReactive.set(i))}_touched=ci(()=>this.touchedReactive());touchedReactive=Ii(!1);get untouched(){return!this.touched}_events=new N;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(Om(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(Om(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(Fm(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(Fm(i,this._rawAsyncValidators))}hasValidator(i){return Qr(this._rawValidators,i)}hasAsyncValidator(i){return Qr(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let t=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(re(k({},i),{sourceControl:t})),e&&i.emitEvent!==!1&&this._events.next(new Mo(!0,t))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=i.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:t})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,t),e&&i.emitEvent!==!1&&this._events.next(new Mo(!1,t))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let t=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(re(k({},i),{sourceControl:t})),e&&i.emitEvent!==!1&&this._events.next(new ko(!1,t))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=i.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,t),e&&i.emitEvent!==!1&&this._events.next(new ko(!0,t))}markAsPending(i={}){this.status=Fn;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Pn(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(re(k({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=wo,this.errors=null,this._forEachChild(n=>{n.disable(re(k({},i),{onlySelf:!0}))}),this._updateValue();let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new es(this.value,t)),this._events.next(new Pn(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(re(k({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=xo,this._forEachChild(t=>{t.enable(re(k({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(re(k({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===xo||this.status===Fn)&&this._runAsyncValidator(t,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new es(this.value,e)),this._events.next(new Pn(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(re(k({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wo:xo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Fn,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let t=Hm(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,n)=>t&&t._find(n),this)}getError(i,e){let t=e?this.get(e):this;return t&&t.errors?t.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,t){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||t)&&this._events.next(new Pn(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,t)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?wo:this.errors?Zr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fn)?Fn:this._anyControlsHaveStatus(Zr)?Zr:xo}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),n&&this._events.next(new ko(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Mo(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){ss(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=lg(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=cg(this._rawAsyncValidators)}},is=class extends ts{constructor(i,e,t){super(Jm(e),eh(t,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,t={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,t={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){mg(this,!0,i),Object.keys(i).forEach(t=>{dg(this,!0,t),this.controls[t].setValue(i[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(t=>{let n=this.controls[t];n&&n.patchValue(i[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((t,n)=>{t.reset(i?i[n]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,t)=>(i[t]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&i(t,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&i(t))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(i,e){let t=i;return this._forEachChild((n,r)=>{t=e(t,n,r)}),t}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var as=new R("CallSetDisabledState",{providedIn:"root",factory:()=>vl}),vl="always";function hg(o,i){return[...i.path,o]}function ns(o,i,e=vl){yl(o,i),i.valueAccessor.writeValue(o.value),(o.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(o.disabled),pg(o,i),gg(o,i),fg(o,i),ug(o,i)}function Pm(o,i,e=!0){let t=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(t),i.valueAccessor.registerOnTouched(t)),rs(o,i),o&&(i._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function os(o,i){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function ug(o,i){if(i.valueAccessor.setDisabledState){let e=t=>{i.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),i._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}function yl(o,i){let e=Km(o);i.validator!==null?o.setValidators(Am(e,i.validator)):typeof e=="function"&&o.setValidators([e]);let t=Qm(o);i.asyncValidator!==null?o.setAsyncValidators(Am(t,i.asyncValidator)):typeof t=="function"&&o.setAsyncValidators([t]);let n=()=>o.updateValueAndValidity();os(i._rawValidators,n),os(i._rawAsyncValidators,n)}function rs(o,i){let e=!1;if(o!==null){if(i.validator!==null){let n=Km(o);if(Array.isArray(n)&&n.length>0){let r=n.filter(s=>s!==i.validator);r.length!==n.length&&(e=!0,o.setValidators(r))}}if(i.asyncValidator!==null){let n=Qm(o);if(Array.isArray(n)&&n.length>0){let r=n.filter(s=>s!==i.asyncValidator);r.length!==n.length&&(e=!0,o.setAsyncValidators(r))}}}let t=()=>{};return os(i._rawValidators,t),os(i._rawAsyncValidators,t),e}function pg(o,i){i.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,o.updateOn==="change"&&th(o,i)})}function fg(o,i){i.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,o.updateOn==="blur"&&o._pendingChange&&th(o,i),o.updateOn!=="submit"&&o.markAsTouched()})}function th(o,i){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function gg(o,i){let e=(t,n)=>{i.valueAccessor.writeValue(t),n&&i.viewToModelUpdate(t)};o.registerOnChange(e),i._registerOnDestroy(()=>{o._unregisterOnChange(e)})}function ih(o,i){o==null,yl(o,i)}function _g(o,i){return rs(o,i)}function bg(o,i){if(!o.hasOwnProperty("model"))return!1;let e=o.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function vg(o){return Object.getPrototypeOf(o.constructor)===Bm}function nh(o,i){o._syncPendingControls(),i.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function yg(o,i){if(!i)return null;Array.isArray(i);let e,t,n;return i.forEach(r=>{r.constructor===Xe?e=r:vg(r)?t=r:n=r}),n||t||e||null}function xg(o,i){let e=o.indexOf(i);e>-1&&o.splice(e,1)}var wg={provide:nn,useExisting:Rt(()=>Eo)},Co=Promise.resolve(),Eo=(()=>{class o extends nn{callSetDisabledState;get submitted(){return Ut(this.submittedReactive)}_submitted=ci(()=>this.submittedReactive());submittedReactive=Ii(!1);_directives=new Set;form;ngSubmit=new U;options;constructor(e,t,n){super(),this.callSetDisabledState=n,this.form=new is({},_l(e),bl(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Co.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),ns(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Co.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Co.then(()=>{let t=this._findContainer(e.path),n=new is({});ih(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Co.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Co.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),nh(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(t){return new(t||o)(Q(on,10),Q(gl,10),Q(as,8))};static \u0275dir=j({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){t&1&&g("submit",function(s){return n.onSubmit(s)})("reset",function(){return n.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ve([wg]),Ne]})}return o})();function Lm(o,i){let e=o.indexOf(i);e>-1&&o.splice(e,1)}function zm(o){return typeof o=="object"&&o!==null&&Object.keys(o).length===2&&"value"in o&&"disabled"in o}var oh=class extends ts{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,t){super(Jm(e),eh(t,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ss(e)&&(e.nonNullable||e.initialValueIsDefault)&&(zm(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){Lm(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){Lm(this._onDisabledChange,i)}_forEachChild(i){}_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(i){zm(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var Cg=o=>o instanceof oh;var kg={provide:pi,useExisting:Rt(()=>xe)},Nm=Promise.resolve(),xe=(()=>{class o extends pi{_changeDetectorRef;callSetDisabledState;control=new oh;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new U;constructor(e,t,n,r,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=yg(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),bg(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){ns(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(e){Nm.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,n=t!==0&&q(t);Nm.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?hg(e,this._parent):[e]}static \u0275fac=function(t){return new(t||o)(Q(nn,9),Q(on,10),Q(gl,10),Q(Io,10),Q(He,8),Q(as,8))};static \u0275dir=j({type:o,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Ve([kg]),Ne,ze]})}return o})();var Mg={provide:Io,useExisting:Rt(()=>Qe),multi:!0},Qe=(()=>{class o extends Bm{writeValue(e){let t=e??"";this.setProperty("value",t)}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275dir=j({type:o,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){t&1&&g("input",function(s){return n.onChange(s.target.value)})("blur",function(){return n.onTouched()})},standalone:!1,features:[Ve([Mg]),Ne]})}return o})();var Ig={provide:nn,useExisting:Rt(()=>So)},So=(()=>{class o extends nn{callSetDisabledState;get submitted(){return Ut(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=ci(()=>this._submittedReactive());_submittedReactive=Ii(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new U;constructor(e,t,n){super(),this.callSetDisabledState=n,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(rs(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let t=this.form.get(e.path);return ns(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Pm(e.control||null,e,!1),xg(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this._submittedReactive.set(!0),nh(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new pl(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new fl(this.form))}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,n=this.form.get(e.path);t!==n&&(Pm(t||null,e),Cg(n)&&(ns(n,e,this.callSetDisabledState),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let t=this.form.get(e.path);ih(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let t=this.form.get(e.path);t&&_g(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){yl(this.form,this),this._oldForm&&rs(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(t){return new(t||o)(Q(on,10),Q(gl,10),Q(as,8))};static \u0275dir=j({type:o,selectors:[["","formGroup",""]],hostBindings:function(t,n){t&1&&g("submit",function(s){return n.onSubmit(s)})("reset",function(){return n.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ve([Ig]),Ne,ze]})}return o})();function rh(o){return typeof o=="number"?o:parseFloat(o)}var sh=(()=>{class o{_validator=Kr;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Kr,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,features:[ze]})}return o})(),Eg={provide:on,useExisting:Rt(()=>fi),multi:!0},fi=(()=>{class o extends sh{max;inputName="max";normalizeInput=e=>rh(e);createValidator=e=>$m(e);static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275dir=j({type:o,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,n){t&2&&fe("max",n._enabled?n.max:null)},inputs:{max:"max"},standalone:!1,features:[Ve([Eg]),Ne]})}return o})(),Sg={provide:on,useExisting:Rt(()=>gi),multi:!0},gi=(()=>{class o extends sh{min;inputName="min";normalizeInput=e=>rh(e);createValidator=e=>jm(e);static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275dir=j({type:o,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,n){t&2&&fe("min",n._enabled?n.min:null)},inputs:{min:"min"},standalone:!1,features:[Ve([Sg]),Ne]})}return o})();var Tg=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({})}return o})();var Ie=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:as,useValue:e.callSetDisabledState??vl}]}}static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[Tg]})}return o})();var Dg=["*"],Rg='.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mdc-list-list-item-container-color, transparent);border-radius:var(--mdc-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-leading-icon-size, 24px);height:var(--mdc-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size, 40px);height:var(--mdc-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mdc-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-trailing-icon-size, 24px);height:var(--mdc-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mdc-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mdc-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mdc-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mdc-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mdc-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mdc-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mdc-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mdc-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mdc-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mdc-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}',Ag=["unscopedContent"],Og=["text"],Fg=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Pg=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var Lg=new R("ListOption"),zg=(()=>{class o{_elementRef=u(W);constructor(){}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return o})(),Ng=(()=>{class o{_elementRef=u(W);constructor(){}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return o})(),Vg=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return o})(),ah=(()=>{class o{_listOption=u(Lg,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,hostVars:4,hostBindings:function(t,n){t&2&&te("mdc-list-item__start",n._isAlignedAtStart())("mdc-list-item__end",!n._isAlignedAtStart())}})}return o})(),Bg=(()=>{class o extends ah{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275dir=j({type:o,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Ne]})}return o})(),Wg=(()=>{class o extends ah{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275dir=j({type:o,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Ne]})}return o})(),jg=new R("MAT_LIST_CONFIG"),xl=(()=>{class o{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ot(e)}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ot(e)}_disabled=!1;_defaultOptions=u(jg,{optional:!0});static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,hostVars:1,hostBindings:function(t,n){t&2&&fe("aria-disabled",n.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return o})(),$g=(()=>{class o{_elementRef=u(W);_ngZone=u(G);_listBase=u(xl,{optional:!0});_platform=u(Ae);_hostElement;_isButtonElement;_noopAnimations;_avatars;_icons;set lines(e){this._explicitLines=wn(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Ot(e)}_disableRipple=!1;get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(e){this._disabled=Ot(e)}_disabled=!1;_subscriptions=new Ge;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){u(lt).load(ui);let e=u(qr,{optional:!0}),t=u(pt,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=t==="NoopAnimations",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Rn(this,this._ngZone,this._hostElement,this._platform,u(Je)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(mt(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let t=this._explicitLines??this._inferLinesFromContent(),n=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",t===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",t===3),this._hasUnscopedTextContent){let r=this._titles.length===0&&t===1;n.classList.toggle("mdc-list-item__primary-text",r),n.classList.toggle("mdc-list-item__secondary-text",!r)}else n.classList.remove("mdc-list-item__primary-text"),n.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,contentQueries:function(t,n,r){if(t&1&&(qe(r,Bg,4),qe(r,Wg,4)),t&2){let s;J(s=ee())&&(n._avatars=s),J(s=ee())&&(n._icons=s)}},hostVars:4,hostBindings:function(t,n){t&2&&(fe("aria-disabled",n.disabled)("disabled",n._isButtonElement&&n.disabled||null),te("mdc-list-item--disabled",n.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return o})();var lh=(()=>{class o extends $g{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Ot(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275cmp=E({type:o,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,n,r){if(t&1&&(qe(r,Ng,5),qe(r,zg,5),qe(r,Vg,5)),t&2){let s;J(s=ee())&&(n._lines=s),J(s=ee())&&(n._titles=s),J(s=ee())&&(n._meta=s)}},viewQuery:function(t,n){if(t&1&&(Pe(Ag,5),Pe(Og,5)),t&2){let r;J(r=ee())&&(n._unscopedContent=r.first),J(r=ee())&&(n._itemText=r.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(t,n){t&2&&(fe("aria-current",n._getAriaCurrent()),te("mdc-list-item--activated",n.activated)("mdc-list-item--with-leading-avatar",n._avatars.length!==0)("mdc-list-item--with-leading-icon",n._icons.length!==0)("mdc-list-item--with-trailing-meta",n._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",n._hasBothLeadingAndTrailing())("_mat-animation-noopable",n._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[Ne],ngContentSelectors:Pg,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(t,n){if(t&1){let r=F();Te(Fg),H(0),l(1,"span",1),H(2,1),H(3,2),l(4,"span",2,0),g("cdkObserveContent",function(){return b(r),v(n._updateItemLines(!0))}),H(6,3),d()(),H(7,4),H(8,5),D(9,"div",3)}},dependencies:[lm],encapsulation:2,changeDetection:0})}return o})();var ch=(()=>{class o extends xl{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275cmp=E({type:o,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ve([{provide:xl,useExisting:o}]),Ne],ngContentSelectors:Dg,decls:1,vars:0,template:function(t,n){t&1&&(Te(),H(0))},styles:[Rg],encapsulation:2,changeDetection:0})}return o})();var dh=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[Vr,ke,tn,ll,Rm]})}return o})();var oe="primary",Uo=Symbol("RouteTitle"),Il=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function jn(o){return new Il(o)}function Gg(o,i,e){let t=e.path.split("/");if(t.length>o.length||e.pathMatch==="full"&&(i.hasChildren()||t.lengtht[r]===n)}else return o===i}function vh(o){return o.length>0?o[o.length-1]:null}function Li(o){return Qn(o)?o:kr(o)?dt(Promise.resolve(o)):V(o)}var qg={exact:xh,subset:wh},yh={exact:Xg,subset:Zg,ignored:()=>!0};function mh(o,i,e){return qg[e.paths](o.root,i.root,e.matrixParams)&&yh[e.queryParams](o.queryParams,i.queryParams)&&!(e.fragment==="exact"&&o.fragment!==i.fragment)}function Xg(o,i){return ni(o,i)}function xh(o,i,e){if(!sn(o.segments,i.segments)||!ds(o.segments,i.segments,e)||o.numberOfChildren!==i.numberOfChildren)return!1;for(let t in i.children)if(!o.children[t]||!xh(o.children[t],i.children[t],e))return!1;return!0}function Zg(o,i){return Object.keys(i).length<=Object.keys(o).length&&Object.keys(i).every(e=>bh(o[e],i[e]))}function wh(o,i,e){return Ch(o,i,i.segments,e)}function Ch(o,i,e,t){if(o.segments.length>e.length){let n=o.segments.slice(0,e.length);return!(!sn(n,e)||i.hasChildren()||!ds(n,e,t))}else if(o.segments.length===e.length){if(!sn(o.segments,e)||!ds(o.segments,e,t))return!1;for(let n in i.children)if(!o.children[n]||!wh(o.children[n],i.children[n],t))return!1;return!0}else{let n=e.slice(0,o.segments.length),r=e.slice(o.segments.length);return!sn(o.segments,n)||!ds(o.segments,n,t)||!o.children[oe]?!1:Ch(o.children[oe],i,r,t)}}function ds(o,i,e){return i.every((t,n)=>yh[e](o[n].parameters,t.parameters))}var bi=class{root;queryParams;fragment;_queryParamMap;constructor(i=new Ee([],{}),e={},t=null){this.root=i,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=jn(this.queryParams),this._queryParamMap}toString(){return Jg.serialize(this)}},Ee=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ms(this)}},rn=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=jn(this.parameters),this._parameterMap}toString(){return Mh(this)}};function Kg(o,i){return sn(o,i)&&o.every((e,t)=>ni(e.parameters,i[t].parameters))}function sn(o,i){return o.length!==i.length?!1:o.every((e,t)=>e.path===i[t].path)}function Qg(o,i){let e=[];return Object.entries(o.children).forEach(([t,n])=>{t===oe&&(e=e.concat(i(n,t)))}),Object.entries(o.children).forEach(([t,n])=>{t!==oe&&(e=e.concat(i(n,t)))}),e}var Jl=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:()=>new Po,providedIn:"root"})}return o})(),Po=class{parse(i){let e=new Tl(i);return new bi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${To(i.root,!0)}`,t=i_(i.queryParams),n=typeof i.fragment=="string"?`#${e_(i.fragment)}`:"";return`${e}${t}${n}`}},Jg=new Po;function ms(o){return o.segments.map(i=>Mh(i)).join("/")}function To(o,i){if(!o.hasChildren())return ms(o);if(i){let e=o.children[oe]?To(o.children[oe],!1):"",t=[];return Object.entries(o.children).forEach(([n,r])=>{n!==oe&&t.push(`${n}:${To(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=Qg(o,(t,n)=>n===oe?[To(o.children[oe],!1)]:[`${n}:${To(t,!1)}`]);return Object.keys(o.children).length===1&&o.children[oe]!=null?`${ms(o)}/${e[0]}`:`${ms(o)}/(${e.join("//")})`}}function kh(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ls(o){return kh(o).replace(/%3B/gi,";")}function e_(o){return encodeURI(o)}function Sl(o){return kh(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hs(o){return decodeURIComponent(o)}function hh(o){return hs(o.replace(/\+/g,"%20"))}function Mh(o){return`${Sl(o.path)}${t_(o.parameters)}`}function t_(o){return Object.entries(o).map(([i,e])=>`;${Sl(i)}=${Sl(e)}`).join("")}function i_(o){let i=Object.entries(o).map(([e,t])=>Array.isArray(t)?t.map(n=>`${ls(e)}=${ls(n)}`).join("&"):`${ls(e)}=${ls(t)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var n_=/^[^\/()?;#]+/;function wl(o){let i=o.match(n_);return i?i[0]:""}var o_=/^[^\/()?;=#]+/;function r_(o){let i=o.match(o_);return i?i[0]:""}var s_=/^[^=?&#]+/;function a_(o){let i=o.match(s_);return i?i[0]:""}var l_=/^[^&#]+/;function c_(o){let i=o.match(l_);return i?i[0]:""}var Tl=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ee([],{}):new Ee([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(t[oe]=new Ee(i,e)),t}parseSegment(){let i=wl(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new Se(4009,!1);return this.capture(i),new rn(hs(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=r_(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let n=wl(this.remaining);n&&(t=n,this.capture(t))}i[hs(e)]=hs(t)}parseQueryParam(i){let e=a_(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let s=c_(this.remaining);s&&(t=s,this.capture(t))}let n=hh(e),r=hh(t);if(i.hasOwnProperty(n)){let s=i[n];Array.isArray(s)||(s=[s],i[n]=s),s.push(r)}else i[n]=r}parseParens(i){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=wl(this.remaining),n=this.remaining[t.length];if(n!=="/"&&n!==")"&&n!==";")throw new Se(4010,!1);let r;t.indexOf(":")>-1?(r=t.slice(0,t.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=oe);let s=this.parseChildren();e[r]=Object.keys(s).length===1?s[oe]:new Ee([],s),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new Se(4011,!1)}};function Ih(o){return o.segments.length>0?new Ee([],{[oe]:o}):o}function Eh(o){let i={};for(let[t,n]of Object.entries(o.children)){let r=Eh(n);if(t===oe&&r.segments.length===0&&r.hasChildren())for(let[s,a]of Object.entries(r.children))i[s]=a;else(r.segments.length>0||r.hasChildren())&&(i[t]=r)}let e=new Ee(o.segments,i);return d_(e)}function d_(o){if(o.numberOfChildren===1&&o.children[oe]){let i=o.children[oe];return new Ee(o.segments.concat(i.segments),i.children)}return o}function an(o){return o instanceof bi}function m_(o,i,e=null,t=null){let n=Sh(o);return Th(n,i,e,t)}function Sh(o){let i;function e(r){let s={};for(let c of r.children){let p=e(c);s[c.outlet]=p}let a=new Ee(r.url,s);return r===o&&(i=a),a}let t=e(o.root),n=Ih(t);return i??n}function Th(o,i,e,t){let n=o;for(;n.parent;)n=n.parent;if(i.length===0)return Cl(n,n,n,e,t);let r=h_(i);if(r.toRoot())return Cl(n,n,new Ee([],{}),e,t);let s=u_(r,n,o),a=s.processChildren?Ao(s.segmentGroup,s.index,r.commands):Rh(s.segmentGroup,s.index,r.commands);return Cl(n,s.segmentGroup,a,e,t)}function us(o){return typeof o=="object"&&o!=null&&!o.outlets&&!o.segmentPath}function Lo(o){return typeof o=="object"&&o!=null&&o.outlets}function Cl(o,i,e,t,n){let r={};t&&Object.entries(t).forEach(([c,p])=>{r[c]=Array.isArray(p)?p.map(_=>`${_}`):`${p}`});let s;o===i?s=e:s=Dh(o,i,e);let a=Ih(Eh(s));return new bi(a,r,n)}function Dh(o,i,e){let t={};return Object.entries(o.children).forEach(([n,r])=>{r===i?t[n]=e:t[n]=Dh(r,i,e)}),new Ee(o.segments,t)}var ps=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,t){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=t,i&&t.length>0&&us(t[0]))throw new Se(4003,!1);let n=t.find(Lo);if(n&&n!==vh(t))throw new Se(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function h_(o){if(typeof o[0]=="string"&&o.length===1&&o[0]==="/")return new ps(!0,0,o);let i=0,e=!1,t=o.reduce((n,r,s)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let a={};return Object.entries(r.outlets).forEach(([c,p])=>{a[c]=typeof p=="string"?p.split("/"):p}),[...n,{outlets:a}]}if(r.segmentPath)return[...n,r.segmentPath]}return typeof r!="string"?[...n,r]:s===0?(r.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?i++:a!=""&&n.push(a))}),n):[...n,r]},[]);return new ps(e,i,t)}var Vn=class{segmentGroup;processChildren;index;constructor(i,e,t){this.segmentGroup=i,this.processChildren=e,this.index=t}};function u_(o,i,e){if(o.isAbsolute)return new Vn(i,!0,0);if(!e)return new Vn(i,!1,NaN);if(e.parent===null)return new Vn(e,!0,0);let t=us(o.commands[0])?0:1,n=e.segments.length-1+t;return p_(e,n,o.numberOfDoubleDots)}function p_(o,i,e){let t=o,n=i,r=e;for(;r>n;){if(r-=n,t=t.parent,!t)throw new Se(4005,!1);n=t.segments.length}return new Vn(t,!1,n-r)}function f_(o){return Lo(o[0])?o[0].outlets:{[oe]:o}}function Rh(o,i,e){if(o??=new Ee([],{}),o.segments.length===0&&o.hasChildren())return Ao(o,i,e);let t=g_(o,i,e),n=e.slice(t.commandIndex);if(t.match&&t.pathIndexr!==oe)&&o.children[oe]&&o.numberOfChildren===1&&o.children[oe].segments.length===0){let r=Ao(o.children[oe],i,e);return new Ee(o.segments,r.children)}return Object.entries(t).forEach(([r,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(n[r]=Rh(o.children[r],i,s))}),Object.entries(o.children).forEach(([r,s])=>{t[r]===void 0&&(n[r]=s)}),new Ee(o.segments,n)}}function g_(o,i,e){let t=0,n=i,r={match:!1,pathIndex:0,commandIndex:0};for(;n=e.length)return r;let s=o.segments[n],a=e[t];if(Lo(a))break;let c=`${a}`,p=t0&&c===void 0)break;if(c&&p&&typeof p=="object"&&p.outlets===void 0){if(!ph(c,p,s))return r;t+=2}else{if(!ph(c,{},s))return r;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function Dl(o,i,e){let t=o.segments.slice(0,i),n=0;for(;n{typeof t=="string"&&(t=[t]),t!==null&&(i[e]=Dl(new Ee([],{}),0,t))}),i}function uh(o){let i={};return Object.entries(o).forEach(([e,t])=>i[e]=`${t}`),i}function ph(o,i,e){return o==e.path&&ni(i,e.parameters)}var Oo="imperative",ct=function(o){return o[o.NavigationStart=0]="NavigationStart",o[o.NavigationEnd=1]="NavigationEnd",o[o.NavigationCancel=2]="NavigationCancel",o[o.NavigationError=3]="NavigationError",o[o.RoutesRecognized=4]="RoutesRecognized",o[o.ResolveStart=5]="ResolveStart",o[o.ResolveEnd=6]="ResolveEnd",o[o.GuardsCheckStart=7]="GuardsCheckStart",o[o.GuardsCheckEnd=8]="GuardsCheckEnd",o[o.RouteConfigLoadStart=9]="RouteConfigLoadStart",o[o.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",o[o.ChildActivationStart=11]="ChildActivationStart",o[o.ChildActivationEnd=12]="ChildActivationEnd",o[o.ActivationStart=13]="ActivationStart",o[o.ActivationEnd=14]="ActivationEnd",o[o.Scroll=15]="Scroll",o[o.NavigationSkipped=16]="NavigationSkipped",o}(ct||{}),Pt=class{id;url;constructor(i,e){this.id=i,this.url=e}},zo=class extends Pt{type=ct.NavigationStart;navigationTrigger;restoredState;constructor(i,e,t="imperative",n=null){super(i,e),this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vi=class extends Pt{urlAfterRedirects;type=ct.NavigationEnd;constructor(i,e,t){super(i,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},St=function(o){return o[o.Redirect=0]="Redirect",o[o.SupersededByNewNavigation=1]="SupersededByNewNavigation",o[o.NoDataFromResolver=2]="NoDataFromResolver",o[o.GuardRejected=3]="GuardRejected",o}(St||{}),Rl=function(o){return o[o.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",o[o.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",o}(Rl||{}),_i=class extends Pt{reason;code;type=ct.NavigationCancel;constructor(i,e,t,n){super(i,e),this.reason=t,this.code=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ln=class extends Pt{reason;code;type=ct.NavigationSkipped;constructor(i,e,t,n){super(i,e),this.reason=t,this.code=n}},No=class extends Pt{error;target;type=ct.NavigationError;constructor(i,e,t,n){super(i,e),this.error=t,this.target=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},fs=class extends Pt{urlAfterRedirects;state;type=ct.RoutesRecognized;constructor(i,e,t,n){super(i,e),this.urlAfterRedirects=t,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Al=class extends Pt{urlAfterRedirects;state;type=ct.GuardsCheckStart;constructor(i,e,t,n){super(i,e),this.urlAfterRedirects=t,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ol=class extends Pt{urlAfterRedirects;state;shouldActivate;type=ct.GuardsCheckEnd;constructor(i,e,t,n,r){super(i,e),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Fl=class extends Pt{urlAfterRedirects;state;type=ct.ResolveStart;constructor(i,e,t,n){super(i,e),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pl=class extends Pt{urlAfterRedirects;state;type=ct.ResolveEnd;constructor(i,e,t,n){super(i,e),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ll=class{route;type=ct.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},zl=class{route;type=ct.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Nl=class{snapshot;type=ct.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vl=class{snapshot;type=ct.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bl=class{snapshot;type=ct.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wl=class{snapshot;type=ct.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Vo=class{},$n=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function b_(o,i){return o.providers&&!o._injector&&(o._injector=yd(o.providers,i,`Route: ${o.path}`)),o._injector??i}function Gt(o){return o.outlet||oe}function v_(o,i){let e=o.filter(t=>Gt(t)===i);return e.push(...o.filter(t=>Gt(t)!==i)),e}function Ho(o){if(!o)return null;if(o.routeConfig?._injector)return o.routeConfig._injector;for(let i=o.parent;i;i=i.parent){let e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var jl=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ho(this.route?.snapshot)??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new Cs(this.rootInjector)}},Cs=(()=>{class o{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new jl(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||o)(K(Qt))};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),gs=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=$l(i,this._root);return e?e.children.map(t=>t.value):[]}firstChild(i){let e=$l(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=Ul(i,this._root);return e.length<2?[]:e[e.length-2].children.map(n=>n.value).filter(n=>n!==i)}pathFromRoot(i){return Ul(i,this._root).map(e=>e.value)}};function $l(o,i){if(o===i.value)return i;for(let e of i.children){let t=$l(o,e);if(t)return t}return null}function Ul(o,i){if(o===i.value)return[i];for(let e of i.children){let t=Ul(o,e);if(t.length)return t.unshift(i),t}return[]}var Et=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Nn(o){let i={};return o&&o.children.forEach(e=>i[e.value.outlet]=e),i}var _s=class extends gs{snapshot;constructor(i,e){super(i),this.snapshot=e,ec(this,i)}toString(){return this.snapshot.toString()}};function Ah(o){let i=y_(o),e=new Ct([new rn("",{})]),t=new Ct({}),n=new Ct({}),r=new Ct({}),s=new Ct(""),a=new cn(e,t,r,s,n,oe,o,i.root);return a.snapshot=i.root,new _s(new Et(a,[]),i)}function y_(o){let i={},e={},t={},n="",r=new Bn([],i,t,n,e,oe,o,null,{});return new vs("",new Et(r,[]))}var cn=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,t,n,r,s,a,c){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=r,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(B(p=>p[Uo]))??V(void 0),this.url=i,this.params=e,this.queryParams=t,this.fragment=n,this.data=r}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(B(i=>jn(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(B(i=>jn(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function bs(o,i,e="emptyOnly"){let t,{routeConfig:n}=o;return i!==null&&(e==="always"||n?.path===""||!i.component&&!i.routeConfig?.loadComponent)?t={params:k(k({},i.params),o.params),data:k(k({},i.data),o.data),resolve:k(k(k(k({},o.data),i.data),n?.data),o._resolvedData)}:t={params:k({},o.params),data:k({},o.data),resolve:k(k({},o.data),o._resolvedData??{})},n&&Fh(n)&&(t.resolve[Uo]=n.title),t}var Bn=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Uo]}constructor(i,e,t,n,r,s,a,c,p){this.url=i,this.params=e,this.queryParams=t,this.fragment=n,this.data=r,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=p}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??=jn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=jn(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},vs=class extends gs{url;constructor(i,e){super(e),this.url=i,ec(this,e)}toString(){return Oh(this._root)}};function ec(o,i){i.value._routerState=o,i.children.forEach(e=>ec(o,e))}function Oh(o){let i=o.children.length>0?` { ${o.children.map(Oh).join(", ")} } `:"";return`${o.value}${i}`}function kl(o){if(o.snapshot){let i=o.snapshot,e=o._futureSnapshot;o.snapshot=e,ni(i.queryParams,e.queryParams)||o.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&o.fragmentSubject.next(e.fragment),ni(i.params,e.params)||o.paramsSubject.next(e.params),Yg(i.url,e.url)||o.urlSubject.next(e.url),ni(i.data,e.data)||o.dataSubject.next(e.data)}else o.snapshot=o._futureSnapshot,o.dataSubject.next(o._futureSnapshot.data)}function Hl(o,i){let e=ni(o.params,i.params)&&Kg(o.url,i.url),t=!o.parent!=!i.parent;return e&&!t&&(!o.parent||Hl(o.parent,i.parent))}function Fh(o){return typeof o.title=="string"||o.title===null}var x_=new R(""),tc=(()=>{class o{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=oe;activateEvents=new U;deactivateEvents=new U;attachEvents=new U;detachEvents=new U;routerOutletData=sd(void 0);parentContexts=u(Cs);location=u(Jt);changeDetector=u(He);inputBinder=u(ic,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:n}=e.name;if(t)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Se(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Se(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Se(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Se(4013,!1);this._activatedRoute=e;let n=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Gl(e,a,n.injector,this.routerOutletData);this.activated=n.createComponent(s,{index:n.length,injector:c,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ze]})}return o})(),Gl=class o{route;childContexts;parent;outletData;__ngOutletInjector(i){return new o(this.route,this.childContexts,i,this.outletData)}constructor(i,e,t,n){this.route=i,this.childContexts=e,this.parent=t,this.outletData=n}get(i,e){return i===cn?this.route:i===Cs?this.childContexts:i===x_?this.outletData:this.parent.get(i,e)}},ic=new R("");function w_(o,i,e){let t=Bo(o,i._root,e?e._root:void 0);return new _s(t,i)}function Bo(o,i,e){if(e&&o.shouldReuseRoute(i.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=i.value;let n=C_(o,i,e);return new Et(t,n)}else{if(o.shouldAttach(i.value)){let r=o.retrieve(i.value);if(r!==null){let s=r.route;return s.value._futureSnapshot=i.value,s.children=i.children.map(a=>Bo(o,a)),s}}let t=k_(i.value),n=i.children.map(r=>Bo(o,r));return new Et(t,n)}}function C_(o,i,e){return i.children.map(t=>{for(let n of e.children)if(o.shouldReuseRoute(t.value,n.value.snapshot))return Bo(o,t,n);return Bo(o,t)})}function k_(o){return new cn(new Ct(o.url),new Ct(o.params),new Ct(o.queryParams),new Ct(o.fragment),new Ct(o.data),o.outlet,o.component,o)}var Wo=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},Ph="ngNavigationCancelingError";function ys(o,i){let{redirectTo:e,navigationBehaviorOptions:t}=an(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,n=Lh(!1,St.Redirect);return n.url=e,n.navigationBehaviorOptions=t,n}function Lh(o,i){let e=new Error(`NavigationCancelingError: ${o||""}`);return e[Ph]=!0,e.cancellationCode=i,e}function M_(o){return zh(o)&&an(o.url)}function zh(o){return!!o&&o[Ph]}var I_=(o,i,e,t)=>B(n=>(new Yl(i,n.targetRouterState,n.currentRouterState,e,t).activate(o),n)),Yl=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,t,n,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,i),kl(this.futureState.root),this.activateChildRoutes(e,t,i)}deactivateChildRoutes(i,e,t){let n=Nn(e);i.children.forEach(r=>{let s=r.value.outlet;this.deactivateRoutes(r,n[s],t),delete n[s]}),Object.values(n).forEach(r=>{this.deactivateRouteAndItsChildren(r,t)})}deactivateRoutes(i,e,t){let n=i.value,r=e?e.value:null;if(n===r)if(n.component){let s=t.getContext(n.outlet);s&&this.deactivateChildRoutes(i,e,s.children)}else this.deactivateChildRoutes(i,e,t);else r&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let t=e.getContext(i.value.outlet),n=t&&i.value.component?t.children:e,r=Nn(i);for(let s of Object.values(r))this.deactivateRouteAndItsChildren(s,n);if(t&&t.outlet){let s=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:s,route:i,contexts:a})}}deactivateRouteAndOutlet(i,e){let t=e.getContext(i.value.outlet),n=t&&i.value.component?t.children:e,r=Nn(i);for(let s of Object.values(r))this.deactivateRouteAndItsChildren(s,n);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(i,e,t){let n=Nn(e);i.children.forEach(r=>{this.activateRoutes(r,n[r.value.outlet],t),this.forwardEvent(new Wl(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Vl(i.value.snapshot))}activateRoutes(i,e,t){let n=i.value,r=e?e.value:null;if(kl(n),n===r)if(n.component){let s=t.getOrCreateContext(n.outlet);this.activateChildRoutes(i,e,s.children)}else this.activateChildRoutes(i,e,t);else if(n.component){let s=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.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),kl(a.route.value),this.activateChildRoutes(i,null,s.children)}else s.attachRef=null,s.route=n,s.outlet&&s.outlet.activateWith(n,s.injector),this.activateChildRoutes(i,null,s.children)}else this.activateChildRoutes(i,null,t)}},xs=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},Wn=class{component;route;constructor(i,e){this.component=i,this.route=e}};function E_(o,i,e){let t=o._root,n=i?i._root:null;return Do(t,n,e,[t.value])}function S_(o){let i=o.routeConfig?o.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:o,guards:i}}function Hn(o,i){let e=Symbol(),t=i.get(o,e);return t===e?typeof o=="function"&&!td(o)?o:i.get(o):t}function Do(o,i,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let r=Nn(i);return o.children.forEach(s=>{T_(s,r[s.value.outlet],e,t.concat([s.value]),n),delete r[s.value.outlet]}),Object.entries(r).forEach(([s,a])=>Fo(a,e.getContext(s),n)),n}function T_(o,i,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let r=o.value,s=i?i.value:null,a=e?e.getContext(o.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){let c=D_(s,r,r.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new xs(t)):(r.data=s.data,r._resolvedData=s._resolvedData),r.component?Do(o,i,a?a.children:null,t,n):Do(o,i,e,t,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new Wn(a.outlet.component,s))}else s&&Fo(i,a,n),n.canActivateChecks.push(new xs(t)),r.component?Do(o,null,a?a.children:null,t,n):Do(o,null,e,t,n);return n}function D_(o,i,e){if(typeof e=="function")return e(o,i);switch(e){case"pathParamsChange":return!sn(o.url,i.url);case"pathParamsOrQueryParamsChange":return!sn(o.url,i.url)||!ni(o.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hl(o,i)||!ni(o.queryParams,i.queryParams);case"paramsChange":default:return!Hl(o,i)}}function Fo(o,i,e){let t=Nn(o),n=o.value;Object.entries(t).forEach(([r,s])=>{n.component?i?Fo(s,i.children.getContext(r),e):Fo(s,null,e):Fo(s,i,e)}),n.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new Wn(i.outlet.component,n)):e.canDeactivateChecks.push(new Wn(null,n)):e.canDeactivateChecks.push(new Wn(null,n))}function Go(o){return typeof o=="function"}function R_(o){return typeof o=="boolean"}function A_(o){return o&&Go(o.canLoad)}function O_(o){return o&&Go(o.canActivate)}function F_(o){return o&&Go(o.canActivateChild)}function P_(o){return o&&Go(o.canDeactivate)}function L_(o){return o&&Go(o.canMatch)}function Nh(o){return o instanceof Zc||o?.name==="EmptyError"}var cs=Symbol("INITIAL_VALUE");function Un(){return $e(o=>Jn(o.map(i=>i.pipe(ht(1),ut(cs)))).pipe(B(i=>{for(let e of i)if(e!==!0){if(e===cs)return cs;if(e===!1||z_(e))return e}return!0}),De(i=>i!==cs),ht(1)))}function z_(o){return an(o)||o instanceof Wo}function N_(o,i){return Dt(e=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:r,canDeactivateChecks:s}}=e;return s.length===0&&r.length===0?V(re(k({},e),{guardsResult:!0})):V_(s,t,n,o).pipe(Dt(a=>a&&R_(a)?B_(t,r,o,i):V(a)),B(a=>re(k({},e),{guardsResult:a})))})}function V_(o,i,e,t){return dt(o).pipe(Dt(n=>H_(n.component,n.route,e,i,t)),ai(n=>n!==!0,!0))}function B_(o,i,e,t){return dt(i).pipe(Wi(n=>fr(j_(n.route.parent,t),W_(n.route,t),U_(o,n.path,e),$_(o,n.route,e))),ai(n=>n!==!0,!0))}function W_(o,i){return o!==null&&i&&i(new Bl(o)),V(!0)}function j_(o,i){return o!==null&&i&&i(new Nl(o)),V(!0)}function $_(o,i,e){let t=i.routeConfig?i.routeConfig.canActivate:null;if(!t||t.length===0)return V(!0);let n=t.map(r=>eo(()=>{let s=Ho(i)??e,a=Hn(r,s),c=O_(a)?a.canActivate(i,o):Bt(s,()=>a(i,o));return Li(c).pipe(ai())}));return V(n).pipe(Un())}function U_(o,i,e){let t=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(s=>S_(s)).filter(s=>s!==null).map(s=>eo(()=>{let a=s.guards.map(c=>{let p=Ho(s.node)??e,_=Hn(c,p),y=F_(_)?_.canActivateChild(t,o):Bt(p,()=>_(t,o));return Li(y).pipe(ai())});return V(a).pipe(Un())}));return V(r).pipe(Un())}function H_(o,i,e,t,n){let r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!r||r.length===0)return V(!0);let s=r.map(a=>{let c=Ho(i)??n,p=Hn(a,c),_=P_(p)?p.canDeactivate(o,i,e,t):Bt(c,()=>p(o,i,e,t));return Li(_).pipe(ai())});return V(s).pipe(Un())}function G_(o,i,e,t){let n=i.canLoad;if(n===void 0||n.length===0)return V(!0);let r=n.map(s=>{let a=Hn(s,o),c=A_(a)?a.canLoad(i,e):Bt(o,()=>a(i,e));return Li(c)});return V(r).pipe(Un(),Vh(t))}function Vh(o){return Xc(Ue(i=>{if(typeof i!="boolean")throw ys(o,i)}),B(i=>i===!0))}function Y_(o,i,e,t){let n=i.canMatch;if(!n||n.length===0)return V(!0);let r=n.map(s=>{let a=Hn(s,o),c=L_(a)?a.canMatch(i,e):Bt(o,()=>a(i,e));return Li(c)});return V(r).pipe(Un(),Vh(t))}var jo=class{segmentGroup;constructor(i){this.segmentGroup=i||null}},$o=class extends Error{urlTree;constructor(i){super(),this.urlTree=i}};function zn(o){return Bi(new jo(o))}function q_(o){return Bi(new Se(4e3,!1))}function X_(o){return Bi(Lh(!1,St.GuardRejected))}var ql=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){let t=[],n=e.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return V(t);if(n.numberOfChildren>1||!n.children[oe])return q_(`${i.redirectTo}`);n=n.children[oe]}}applyRedirectCommands(i,e,t,n,r){if(typeof e!="string"){let a=e,{queryParams:c,fragment:p,routeConfig:_,url:y,outlet:I,params:S,data:A,title:T}=n,z=Bt(r,()=>a({params:S,data:A,queryParams:c,fragment:p,routeConfig:_,url:y,outlet:I,title:T}));if(z instanceof bi)throw new $o(z);e=z}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,t);if(e[0]==="/")throw new $o(s);return s}applyRedirectCreateUrlTree(i,e,t,n){let r=this.createSegmentGroup(i,e.root,t,n);return new bi(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let t={};return Object.entries(i).forEach(([n,r])=>{if(typeof r=="string"&&r[0]===":"){let a=r.substring(1);t[n]=e[a]}else t[n]=r}),t}createSegmentGroup(i,e,t,n){let r=this.createSegments(i,e.segments,t,n),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(i,c,t,n)}),new Ee(r,s)}createSegments(i,e,t,n){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,n):this.findOrReturn(r,t))}findPosParam(i,e,t){let n=t[e.path.substring(1)];if(!n)throw new Se(4001,!1);return n}findOrReturn(i,e){let t=0;for(let n of e){if(n.path===i.path)return e.splice(t),n;t++}return i}},Xl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Z_(o,i,e,t,n){let r=Bh(o,i,e);return r.matched?(t=b_(i,t),Y_(t,i,e,n).pipe(B(s=>s===!0?r:k({},Xl)))):V(r)}function Bh(o,i,e){if(i.path==="**")return K_(e);if(i.path==="")return i.pathMatch==="full"&&(o.hasChildren()||e.length>0)?k({},Xl):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let n=(i.matcher||Gg)(e,o,i);if(!n)return k({},Xl);let r={};Object.entries(n.posParams??{}).forEach(([a,c])=>{r[a]=c.path});let s=n.consumed.length>0?k(k({},r),n.consumed[n.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:n.consumed,remainingSegments:e.slice(n.consumed.length),parameters:s,positionalParamSegments:n.posParams??{}}}function K_(o){return{matched:!0,parameters:o.length>0?vh(o).parameters:{},consumedSegments:o,remainingSegments:[],positionalParamSegments:{}}}function fh(o,i,e,t){return e.length>0&&eb(o,e,t)?{segmentGroup:new Ee(i,J_(t,new Ee(e,o.children))),slicedSegments:[]}:e.length===0&&tb(o,e,t)?{segmentGroup:new Ee(o.segments,Q_(o,e,t,o.children)),slicedSegments:e}:{segmentGroup:new Ee(o.segments,o.children),slicedSegments:e}}function Q_(o,i,e,t){let n={};for(let r of e)if(ks(o,i,r)&&!t[Gt(r)]){let s=new Ee([],{});n[Gt(r)]=s}return k(k({},t),n)}function J_(o,i){let e={};e[oe]=i;for(let t of o)if(t.path===""&&Gt(t)!==oe){let n=new Ee([],{});e[Gt(t)]=n}return e}function eb(o,i,e){return e.some(t=>ks(o,i,t)&&Gt(t)!==oe)}function tb(o,i,e){return e.some(t=>ks(o,i,t))}function ks(o,i,e){return(o.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function ib(o,i,e){return i.length===0&&!o.children[e]}var Zl=class{};function nb(o,i,e,t,n,r,s="emptyOnly"){return new Kl(o,i,e,t,n,s,r).recognize()}var ob=31,Kl=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,t,n,r,s,a){this.injector=i,this.configLoader=e,this.rootComponentType=t,this.config=n,this.urlTree=r,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new ql(this.urlSerializer,this.urlTree)}noMatchError(i){return new Se(4002,`'${i.segmentGroup}'`)}recognize(){let i=fh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(B(({children:e,rootSnapshot:t})=>{let n=new Et(t,e),r=new vs("",n),s=m_(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(s),{state:r,tree:s}}))}match(i){let e=new Bn([],Object.freeze({}),Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),oe,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,i,oe,e).pipe(B(t=>({children:t,rootSnapshot:e})),Ci(t=>{if(t instanceof $o)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof jo?this.noMatchError(t):t}))}processSegmentGroup(i,e,t,n,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(i,e,t,r):this.processSegment(i,e,t,t.segments,n,!0,r).pipe(B(s=>s instanceof Et?[s]:[]))}processChildren(i,e,t,n){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return dt(r).pipe(Wi(s=>{let a=t.children[s],c=v_(e,s);return this.processSegmentGroup(i,c,a,s,n)}),Qc((s,a)=>(s.push(...a),s)),pa(null),Kc(),Dt(s=>{if(s===null)return zn(t);let a=Wh(s);return rb(a),V(a)}))}processSegment(i,e,t,n,r,s,a){return dt(e).pipe(Wi(c=>this.processSegmentAgainstRoute(c._injector??i,e,c,t,n,r,s,a).pipe(Ci(p=>{if(p instanceof jo)return V(null);throw p}))),ai(c=>!!c),Ci(c=>{if(Nh(c))return ib(t,n,r)?V(new Zl):zn(t);throw c}))}processSegmentAgainstRoute(i,e,t,n,r,s,a,c){return Gt(t)!==s&&(s===oe||!ks(n,r,t))?zn(n):t.redirectTo===void 0?this.matchSegmentAgainstRoute(i,n,t,r,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(i,n,e,t,r,s,c):zn(n)}expandSegmentAgainstRouteUsingRedirect(i,e,t,n,r,s,a){let{matched:c,parameters:p,consumedSegments:_,positionalParamSegments:y,remainingSegments:I}=Bh(e,n,r);if(!c)return zn(e);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ob&&(this.allowRedirects=!1));let S=new Bn(r,p,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,gh(n),Gt(n),n.component??n._loadedComponent??null,n,_h(n)),A=bs(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(A.params),S.data=Object.freeze(A.data);let T=this.applyRedirects.applyRedirectCommands(_,n.redirectTo,y,S,i);return this.applyRedirects.lineralizeSegments(n,T).pipe(Dt(z=>this.processSegment(i,t,e,z.concat(I),s,!1,a)))}matchSegmentAgainstRoute(i,e,t,n,r,s){let a=Z_(e,t,n,i,this.urlSerializer);return t.path==="**"&&(e.children={}),a.pipe($e(c=>c.matched?(i=t._injector??i,this.getChildConfig(i,t,n).pipe($e(({routes:p})=>{let _=t._loadedInjector??i,{parameters:y,consumedSegments:I,remainingSegments:S}=c,A=new Bn(I,y,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,gh(t),Gt(t),t.component??t._loadedComponent??null,t,_h(t)),T=bs(A,s,this.paramsInheritanceStrategy);A.params=Object.freeze(T.params),A.data=Object.freeze(T.data);let{segmentGroup:z,slicedSegments:Le}=fh(e,I,S,p);if(Le.length===0&&z.hasChildren())return this.processChildren(_,p,z,A).pipe(B(we=>new Et(A,we)));if(p.length===0&&Le.length===0)return V(new Et(A,[]));let rt=Gt(t)===r;return this.processSegment(_,p,z,Le,rt?oe:r,!0,A).pipe(B(we=>new Et(A,we instanceof Et?[we]:[])))}))):zn(e)))}getChildConfig(i,e,t){return e.children?V({routes:e.children,injector:i}):e.loadChildren?e._loadedRoutes!==void 0?V({routes:e._loadedRoutes,injector:e._loadedInjector}):G_(i,e,t,this.urlSerializer).pipe(Dt(n=>n?this.configLoader.loadChildren(i,e).pipe(Ue(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):X_(e))):V({routes:[],injector:i})}};function rb(o){o.sort((i,e)=>i.value.outlet===oe?-1:e.value.outlet===oe?1:i.value.outlet.localeCompare(e.value.outlet))}function sb(o){let i=o.value.routeConfig;return i&&i.path===""}function Wh(o){let i=[],e=new Set;for(let t of o){if(!sb(t)){i.push(t);continue}let n=i.find(r=>t.value.routeConfig===r.value.routeConfig);n!==void 0?(n.children.push(...t.children),e.add(n)):i.push(t)}for(let t of e){let n=Wh(t.children);i.push(new Et(t.value,n))}return i.filter(t=>!e.has(t))}function gh(o){return o.data||{}}function _h(o){return o.resolve||{}}function ab(o,i,e,t,n,r){return Dt(s=>nb(o,i,e,t,s.extractedUrl,n,r).pipe(B(({state:a,tree:c})=>re(k({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function lb(o,i){return Dt(e=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return V(e);let r=new Set(n.map(c=>c.route)),s=new Set;for(let c of r)if(!s.has(c))for(let p of jh(c))s.add(p);let a=0;return dt(s).pipe(Wi(c=>r.has(c)?cb(c,t,o,i):(c.data=bs(c,c.parent,o).resolve,V(void 0))),Ue(()=>a++),ga(1),Dt(c=>a===s.size?V(e):Kt))})}function jh(o){let i=o.children.map(e=>jh(e)).flat();return[o,...i]}function cb(o,i,e,t){let n=o.routeConfig,r=o._resolve;return n?.title!==void 0&&!Fh(n)&&(r[Uo]=n.title),db(r,o,i,t).pipe(B(s=>(o._resolvedData=s,o.data=bs(o,o.parent,e).resolve,null)))}function db(o,i,e,t){let n=El(o);if(n.length===0)return V({});let r={};return dt(n).pipe(Dt(s=>mb(o[s],i,e,t).pipe(ai(),Ue(a=>{if(a instanceof Wo)throw ys(new Po,a);r[s]=a}))),ga(1),br(r),Ci(s=>Nh(s)?Kt:Bi(s)))}function mb(o,i,e,t){let n=Ho(i)??t,r=Hn(o,n),s=r.resolve?r.resolve(i,e):Bt(n,()=>r(i,e));return Li(s)}function Ml(o){return $e(i=>{let e=o(i);return e?dt(e).pipe(B(()=>i)):V(i)})}var $h=(()=>{class o{buildTitle(e){let t,n=e.root;for(;n!==void 0;)t=this.getResolvedTitleForRoute(n)??t,n=n.children.find(r=>r.outlet===oe);return t}getResolvedTitleForRoute(e){return e.data[Uo]}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:()=>u(hb),providedIn:"root"})}return o})(),hb=(()=>{class o extends $h{title;constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||o)(K(nm))};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),nc=new R("",{providedIn:"root",factory:()=>({})}),ub=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,n){t&1&&D(0,"router-outlet")},dependencies:[tc],encapsulation:2})}return o})();function oc(o){let i=o.children&&o.children.map(oc),e=i?re(k({},o),{children:i}):k({},o);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==oe&&(e.component=ub),e}var rc=new R(""),pb=(()=>{class o{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(Sa);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return V(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let t=Li(e.loadComponent()).pipe(B(Uh),Ue(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Mi(()=>{this.componentLoaders.delete(e)})),n=new ur(t,()=>new N).pipe(da());return this.componentLoaders.set(e,n),n}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return V({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let r=fb(t,this.compiler,e,this.onLoadEndListener).pipe(Mi(()=>{this.childrenLoaders.delete(t)})),s=new ur(r,()=>new N).pipe(da());return this.childrenLoaders.set(t,s),s}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function fb(o,i,e,t){return Li(o.loadChildren()).pipe(B(Uh),Dt(n=>n instanceof vd||Array.isArray(n)?V(n):dt(i.compileModuleAsync(n))),B(n=>{t&&t(o);let r,s,a=!1;return Array.isArray(n)?(s=n,a=!0):(r=n.create(e).injector,s=r.get(rc,[],{optional:!0,self:!0}).flat()),{routes:s.map(oc),injector:r}}))}function gb(o){return o&&typeof o=="object"&&"default"in o}function Uh(o){return gb(o)?o.default:o}var sc=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:()=>u(_b),providedIn:"root"})}return o})(),_b=(()=>{class o{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),bb=new R("");var vb=new R(""),yb=(()=>{class o{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new N;transitionAbortSubject=new N;configLoader=u(pb);environmentInjector=u(Qt);urlSerializer=u(Jl);rootContexts=u(Cs);location=u(xn);inputBindingEnabled=u(ic,{optional:!0})!==null;titleStrategy=u($h);options=u(nc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(sc);createViewTransition=u(bb,{optional:!0});navigationErrorHandler=u(vb,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>V(void 0);rootComponentType=null;constructor(){let e=n=>this.events.next(new Ll(n)),t=n=>this.events.next(new zl(n));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(re(k(k({},this.transitions.value),e),{id:t}))}setupNavigations(e,t,n){return this.transitions=new Ct({id:0,currentUrlTree:t,currentRawUrl:t,extractedUrl:this.urlHandlingStrategy.extract(t),urlAfterRedirects:this.urlHandlingStrategy.extract(t),rawUrl:t,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Oo,restoredState:null,currentSnapshot:n.snapshot,targetSnapshot:null,currentRouterState:n,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(De(r=>r.id!==0),B(r=>re(k({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),$e(r=>{let s=!1,a=!1;return V(r).pipe($e(c=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",St.SupersededByNewNavigation),Kt;this.currentTransition=r,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?re(k({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let p=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),_=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!p&&_!=="reload"){let y="";return this.events.next(new ln(c.id,this.urlSerializer.serialize(c.rawUrl),y,Rl.IgnoredSameUrlNavigation)),c.resolve(!1),Kt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return V(c).pipe($e(y=>{let I=this.transitions?.getValue();return this.events.next(new zo(y.id,this.urlSerializer.serialize(y.extractedUrl),y.source,y.restoredState)),I!==this.transitions?.getValue()?Kt:Promise.resolve(y)}),ab(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Ue(y=>{r.targetSnapshot=y.targetSnapshot,r.urlAfterRedirects=y.urlAfterRedirects,this.currentNavigation=re(k({},this.currentNavigation),{finalUrl:y.urlAfterRedirects});let I=new fs(y.id,this.urlSerializer.serialize(y.extractedUrl),this.urlSerializer.serialize(y.urlAfterRedirects),y.targetSnapshot);this.events.next(I)}));if(p&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:y,extractedUrl:I,source:S,restoredState:A,extras:T}=c,z=new zo(y,this.urlSerializer.serialize(I),S,A);this.events.next(z);let Le=Ah(this.rootComponentType).snapshot;return this.currentTransition=r=re(k({},c),{targetSnapshot:Le,urlAfterRedirects:I,extras:re(k({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=I,V(r)}else{let y="";return this.events.next(new ln(c.id,this.urlSerializer.serialize(c.extractedUrl),y,Rl.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Kt}}),Ue(c=>{let p=new Al(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(p)}),B(c=>(this.currentTransition=r=re(k({},c),{guards:E_(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),r)),N_(this.environmentInjector,c=>this.events.next(c)),Ue(c=>{if(r.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw ys(this.urlSerializer,c.guardsResult);let p=new Ol(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(p)}),De(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",St.GuardRejected),!1)),Ml(c=>{if(c.guards.canActivateChecks.length)return V(c).pipe(Ue(p=>{let _=new Fl(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(_)}),$e(p=>{let _=!1;return V(p).pipe(lb(this.paramsInheritanceStrategy,this.environmentInjector),Ue({next:()=>_=!0,complete:()=>{_||this.cancelNavigationTransition(p,"",St.NoDataFromResolver)}}))}),Ue(p=>{let _=new Pl(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(_)}))}),Ml(c=>{let p=_=>{let y=[];_.routeConfig?.loadComponent&&!_.routeConfig._loadedComponent&&y.push(this.configLoader.loadComponent(_.routeConfig).pipe(Ue(I=>{_.component=I}),B(()=>{})));for(let I of _.children)y.push(...p(I));return y};return Jn(p(c.targetSnapshot.root)).pipe(pa(null),ht(1))}),Ml(()=>this.afterPreactivation()),$e(()=>{let{currentSnapshot:c,targetSnapshot:p}=r,_=this.createViewTransition?.(this.environmentInjector,c.root,p.root);return _?dt(_).pipe(B(()=>r)):V(r)}),B(c=>{let p=w_(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r=re(k({},c),{targetRouterState:p}),this.currentNavigation.targetRouterState=p,r}),Ue(()=>{this.events.next(new Vo)}),I_(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),ht(1),Ue({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new vi(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Ce(this.transitionAbortSubject.pipe(Ue(c=>{throw c}))),Mi(()=>{!s&&!a&&this.cancelNavigationTransition(r,"",St.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ci(c=>{if(a=!0,zh(c))this.events.next(new _i(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),M_(c)?this.events.next(new $n(c.url,c.navigationBehaviorOptions)):r.resolve(!1);else{let p=new No(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0);try{let _=Bt(this.environmentInjector,()=>this.navigationErrorHandler?.(p));if(_ instanceof Wo){let{message:y,cancellationCode:I}=ys(this.urlSerializer,_);this.events.next(new _i(r.id,this.urlSerializer.serialize(r.extractedUrl),y,I)),this.events.next(new $n(_.redirectTo,_.navigationBehaviorOptions))}else throw this.events.next(p),c}catch(_){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(_)}}return Kt}))}))}cancelNavigationTransition(e,t,n){let r=new _i(e.id,this.urlSerializer.serialize(e.extractedUrl),t,n);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function xb(o){return o!==Oo}var wb=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:()=>u(Cb),providedIn:"root"})}return o})(),Ql=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}},Cb=(()=>{class o extends Ql{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Hh=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:()=>u(kb),providedIn:"root"})}return o})(),kb=(()=>{class o extends Hh{location=u(xn);urlSerializer=u(Jl);options=u(nc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=u(sc);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new bi;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Ah(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&e(t.url,t.state)})}handleRouterEvent(e,t){if(e instanceof zo)this.stateMemento=this.createStateMemento();else if(e instanceof ln)this.rawUrlTree=t.initialUrl;else if(e instanceof fs){if(this.urlUpdateStrategy==="eager"&&!t.extras.skipLocationChange){let n=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl);this.setBrowserUrl(t.targetBrowserUrl??n,t)}}else e instanceof Vo?(this.currentUrlTree=t.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl),this.routerState=t.targetRouterState,this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(t.targetBrowserUrl??this.rawUrlTree,t)):e instanceof _i&&(e.code===St.GuardRejected||e.code===St.NoDataFromResolver)?this.restoreHistory(t):e instanceof No?this.restoreHistory(t,!0):e instanceof vi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,t){let n=e instanceof bi?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl){let r=this.browserPageId,s=k(k({},t.extras.state),this.generateNgRouterState(t.id,r));this.location.replaceState(n,"",s)}else{let r=k(k({},t.extras.state),this.generateNgRouterState(t.id,this.browserPageId+1));this.location.go(n,"",r)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let n=this.browserPageId,r=this.currentPageId-n;r!==0?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&r===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Ro=function(o){return o[o.COMPLETE=0]="COMPLETE",o[o.FAILED=1]="FAILED",o[o.REDIRECTING=2]="REDIRECTING",o}(Ro||{});function Mb(o,i){o.events.pipe(De(e=>e instanceof vi||e instanceof _i||e instanceof No||e instanceof ln),B(e=>e instanceof vi||e instanceof ln?Ro.COMPLETE:(e instanceof _i?e.code===St.Redirect||e.code===St.SupersededByNewNavigation:!1)?Ro.REDIRECTING:Ro.FAILED),De(e=>e!==Ro.REDIRECTING),ht(1)).subscribe(()=>{i()})}var Ib={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Eb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ms=(()=>{class o{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(Cr);stateManager=u(Hh);options=u(nc,{optional:!0})||{};pendingTasks=u(yr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(yb);urlSerializer=u(Jl);location=u(xn);urlHandlingStrategy=u(sc);_events=new N;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(wb);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(rc,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(ic,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Ge;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let n=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(n!==null&&r!==null){if(this.stateManager.handleRouterEvent(t,r),t instanceof _i&&t.code!==St.Redirect&&t.code!==St.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof vi)this.navigated=!0;else if(t instanceof $n){let s=t.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(t.url,n.currentRawUrl),c=k({browserUrl:n.extras.browserUrl,info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||this.urlUpdateStrategy==="eager"||xb(n.source)},s);this.scheduleNavigation(a,Oo,null,c,{resolve:n.resolve,reject:n.reject,promise:n.promise})}}Tb(t)&&this._events.next(t)}catch(n){this.navigationTransitions.transitionAbortSubject.next(n)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Oo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",t)},0)})}navigateToSyncWithBrowser(e,t,n){let r={replaceUrl:!0},s=n?.navigationId?n:null;if(n){let c=k({},n);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(r.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,t,s,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(oc),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(e,t={}){let{relativeTo:n,queryParams:r,fragment:s,queryParamsHandling:a,preserveFragment:c}=t,p=c?this.currentUrlTree.fragment:s,_=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":_=k(k({},this.currentUrlTree.queryParams),r);break;case"preserve":_=this.currentUrlTree.queryParams;break;default:_=r||null}_!==null&&(_=this.removeEmptyProps(_));let y;try{let I=n?n.snapshot:this.routerState.snapshot.root;y=Sh(I)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),y=this.currentUrlTree.root}return Th(y,e,_,p??null)}navigateByUrl(e,t={skipLocationChange:!1}){let n=an(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,Oo,null,t)}navigate(e,t={skipLocationChange:!1}){return Sb(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let n;if(t===!0?n=k({},Ib):t===!1?n=k({},Eb):n=t,an(e))return mh(this.currentUrlTree,e,n);let r=this.parseUrl(e);return mh(this.currentUrlTree,r,n)}removeEmptyProps(e){return Object.entries(e).reduce((t,[n,r])=>(r!=null&&(t[n]=r),t),{})}scheduleNavigation(e,t,n,r,s){if(this.disposed)return Promise.resolve(!1);let a,c,p;s?(a=s.resolve,c=s.reject,p=s.promise):p=new Promise((y,I)=>{a=y,c=I});let _=this.pendingTasks.add();return Mb(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(_))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:a,reject:c,promise:p,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),p.catch(y=>Promise.reject(y))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function Sb(o){for(let i=0;i{class o{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new N;constructor(e,t,n,r,s,a){this.router=e,this.route=t,this.tabIndexAttribute=n,this.renderer=r,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(p=>{p instanceof vi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(an(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,n,r,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||t||n||r||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let t=this.href===null?null:gd(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(e,t){let n=this.renderer,r=this.el.nativeElement;t!==null?n.setAttribute(r,e,t):n.removeAttribute(r,e)}get urlTree(){return this.routerLinkInput===null?null:an(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(t){return new(t||o)(Q(Ms),Q(cn),od("tabindex"),Q(jt),Q(W),Q(Ta))};static \u0275dir=j({type:o,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(t,n){t&1&&g("click",function(s){return n.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),t&2&&fe("target",n.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",q],skipLocationChange:[2,"skipLocationChange","skipLocationChange",q],replaceUrl:[2,"replaceUrl","replaceUrl",q],routerLink:"routerLink"},features:[Fe,ze]})}return o})(),Gh=(()=>{class o{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new U;constructor(e,t,n,r,s){this.router=e,this.element=t,this.renderer=n,this.cdr=r,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof vi&&this.update()})}ngAfterContentInit(){V(this.links.changes,V(null)).pipe(ma()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=dt(e).pipe(ma()).subscribe(t=>{this._isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(e){let t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(n=>!!n)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let t=Db(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>{let r=n.urlTree;return r?e.isActive(r,t):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(t){return new(t||o)(Q(Ms),Q(W),Q(jt),Q(He),Q(ws,8))};static \u0275dir=j({type:o,selectors:[["","routerLinkActive",""]],contentQueries:function(t,n,r){if(t&1&&qe(r,ws,5),t&2){let s;J(s=ee())&&(n.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ze]})}return o})();function Db(o){return!!o.paths}var Rb=new R("");function Yh(o,...i){return $i([{provide:rc,multi:!0,useValue:o},[],{provide:cn,useFactory:Ab,deps:[Ms]},{provide:wa,multi:!0,useFactory:Ob},i.map(e=>e.\u0275providers)])}function Ab(o){return o.routerState.root}function Ob(){let o=u(Je);return i=>{let e=o.get(li);if(i!==e.components[0])return;let t=o.get(Ms),n=o.get(Fb);o.get(Pb)===1&&t.initialNavigation(),o.get(Lb,null,ba.Optional)?.setUpPreloading(),o.get(Rb,null,ba.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var Fb=new R("",{factory:()=>new N}),Pb=new R("",{providedIn:"root",factory:()=>1});var Lb=new R("");var zb=()=>({exact:!0}),Is=class o{static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-root"]],decls:40,vars:2,consts:[["routerLink","","routerLinkActive","active","mat-list-item","",3,"routerLinkActiveOptions"],["routerLink","/api","routerLinkActive","active","mat-list-item",""],["routerLink","/compact","routerLinkActive","active","mat-list-item",""],["routerLink","/displayGrid","routerLinkActive","active","mat-list-item",""],["routerLink","/drag","routerLinkActive","active","mat-list-item",""],["mat-list-item","","routerLink","/dynamicWidgets","routerLinkActive","active"],["routerLink","/emptyCell","routerLinkActive","active","mat-list-item",""],["routerLink","/gridEvents","routerLinkActive","active","mat-list-item",""],["routerLink","/gridMargins","routerLinkActive","active","mat-list-item",""],["routerLink","/gridSizes","routerLinkActive","active","mat-list-item",""],["routerLink","/gridTypes","routerLinkActive","active","mat-list-item",""],["routerLink","/items","routerLinkActive","active","mat-list-item",""],["routerLink","/trackBy","routerLinkActive","active","mat-list-item",""],["routerLink","/push","routerLinkActive","active","mat-list-item",""],["routerLink","/resize","routerLinkActive","active","mat-list-item",""],["routerLink","/swap","routerLinkActive","active","mat-list-item",""],["routerLink","/multiLayer","routerLinkActive","active","mat-list-item",""],["routerLink","/misc","routerLinkActive","active","mat-list-item",""],["routerLink","/rtl","routerLinkActive","active","mat-list-item",""]],template:function(e,t){e&1&&(l(0,"mat-nav-list")(1,"a",0),m(2," Home"),d(),l(3,"a",1),m(4," API"),d(),l(5,"a",2),m(6," Compact"),d(),l(7,"a",3),m(8," Display Grid"),d(),l(9,"a",4),m(10," Drag"),d(),l(11,"a",5),m(12," Dynamic Widgets"),d(),l(13,"a",6),m(14," Empty Cell"),d(),l(15,"a",7),m(16," Grid Events"),d(),l(17,"a",8),m(18," Grid Margins"),d(),l(19,"a",9),m(20," Grid Sizes"),d(),l(21,"a",10),m(22," Grid Types"),d(),l(23,"a",11),m(24," Items"),d(),l(25,"a",12),m(26," Track By"),d(),l(27,"a",13),m(28," Push"),d(),l(29,"a",14),m(30," Resize"),d(),l(31,"a",15),m(32," Swap"),d(),l(33,"a",16),m(34," Multi Layer"),d(),l(35,"a",17),m(36," Misc"),d(),l(37,"a",18),m(38," RTL"),d()(),D(39,"router-outlet")),e&2&&(h(),M("routerLinkActiveOptions",kd(1,zb)))},dependencies:[ws,Gh,tc,dh,ch,lh],styles:[`app-root{width:100%;height:100%;display:flex;flex-direction:row;overflow-x:hidden}mat-nav-list{min-width:200px;width:20%;border-right:1px solid grey;overflow:auto}mat-nav-list .active{background:#afddff}router-outlet+*{width:100%;overflow:auto}gridster-item div.button-holder{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.options{padding:10px;display:grid}.options-header{padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}.source-code-button{justify-self:end}[draggable]{-webkit-user-select:none;user-select:none;cursor:pointer}app-parent-dynamic,app-widget-a,app-widget-b,app-widget-c{display:flex;height:100%;width:100%;color:#fff;font-weight:700;font-size:24px;align-items:center;justify-content:center}code{background:#d3d3d3}app-widget-a{background:red}app-widget-b{background:#00f}app-widget-c{background:#7cfc00} +`],encapsulation:2,changeDetection:0})};var Nb="@",Vb=(()=>{class o{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=u(rd,{optional:!0});loadingSchedulerFn=u(Bb,{optional:!0});_engine;constructor(e,t,n,r,s){this.doc=e,this.delegate=t,this.zone=n,this.animationType=r,this.moduleImpl=s}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-X6FBGTMZ.js").then(n=>n),t;return this.loadingSchedulerFn?t=this.loadingSchedulerFn(e):t=e(),t.catch(n=>{throw new Se(5300,!1)}).then(({\u0275createEngine:n,\u0275AnimationRendererFactory:r})=>{this._engine=n(this.animationType,this.doc);let s=new r(this.delegate,this._engine,this.zone);return this.delegate=s,s})}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(n.\u0275type===0)return n;typeof n.throwOnSyntheticProps=="boolean"&&(n.throwOnSyntheticProps=!1);let r=new ac(n);return t?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let a=s.createRenderer(e,t);r.use(a),this.scheduler?.notify(11)}).catch(s=>{r.use(n)}),r}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static \u0275fac=function(t){xa()};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),ac=class{delegate;replay=[];\u0275type=1;constructor(i){this.delegate=i}use(i){if(this.delegate=i,this.replay!==null){for(let e of this.replay)e(i);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}get destroyNode(){return this.delegate.destroyNode}appendChild(i,e){this.delegate.appendChild(i,e)}insertBefore(i,e,t,n){this.delegate.insertBefore(i,e,t,n)}removeChild(i,e,t){this.delegate.removeChild(i,e,t)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,t,n){this.delegate.setAttribute(i,e,t,n)}removeAttribute(i,e,t){this.delegate.removeAttribute(i,e,t)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,t,n){this.delegate.setStyle(i,e,t,n)}removeStyle(i,e,t){this.delegate.removeStyle(i,e,t)}setProperty(i,e,t){this.shouldReplay(e)&&this.replay.push(n=>n.setProperty(i,e,t)),this.delegate.setProperty(i,e,t)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,t){return this.shouldReplay(e)&&this.replay.push(n=>n.listen(i,e,t)),this.delegate.listen(i,e,t)}shouldReplay(i){return this.replay!==null&&i.startsWith(Nb)}},Bb=new R("");function lc(o="animations"){return ya("NgAsyncAnimations"),$i([{provide:wr,useFactory:(i,e,t)=>new Vb(i,e,t,o),deps:[ae,Lr,G]},{provide:pt,useValue:o==="noop"?"NoopAnimations":"BrowserAnimations"}])}function mc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var mn=mc();function Jh(o){mn=o}var Xo={exec:()=>null};function Re(o,i=""){let e=typeof o=="string"?o:o.source,t={replace:(n,r)=>{let s=typeof r=="string"?r:r.source;return s=s.replace(wt.caret,"$1"),e=e.replace(n,s),t},getRegex:()=>new RegExp(e,i)};return t}var wt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:o=>new RegExp(`^( {0,3}${o})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}#`),htmlBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}<(?:[a-z].*>|!--)`,"i")},Wb=/^(?:[ \t]*(?:\n|$))+/,jb=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,$b=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ko=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ub=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,eu=/(?:[*+-]|\d{1,9}[.)])/,tu=Re(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,eu).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),hc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Hb=/^[^\n]+/,uc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Gb=Re(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",uc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Yb=Re(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,eu).getRegex(),Ts="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",pc=/|$))/,qb=Re("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",pc).replace("tag",Ts).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),iu=Re(hc).replace("hr",Ko).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ts).getRegex(),Xb=Re(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",iu).getRegex(),fc={blockquote:Xb,code:jb,def:Gb,fences:$b,heading:Ub,hr:Ko,html:qb,lheading:tu,list:Yb,newline:Wb,paragraph:iu,table:Xo,text:Hb},qh=Re("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ko).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ts).getRegex(),Zb=re(k({},fc),{table:qh,paragraph:Re(hc).replace("hr",Ko).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qh).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ts).getRegex()}),Kb=re(k({},fc),{html:Re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",pc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Xo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Re(hc).replace("hr",Ko).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",tu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),nu=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Qb=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ou=/^( {2,}|\\)\n(?!\s*$)/,Jb=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,iv=Re(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,Ds).getRegex(),nv=Re("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,ru).replace(/punctSpace/g,gc).replace(/punct/g,Ds).getRegex(),ov=Re("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ru).replace(/punctSpace/g,gc).replace(/punct/g,Ds).getRegex(),rv=Re(/\\(punct)/,"gu").replace(/punct/g,Ds).getRegex(),sv=Re(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),av=Re(pc).replace("(?:-->|$)","-->").getRegex(),lv=Re("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",av).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ss=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,cv=Re(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Ss).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),su=Re(/^!?\[(label)\]\[(ref)\]/).replace("label",Ss).replace("ref",uc).getRegex(),au=Re(/^!?\[(ref)\](?:\[\])?/).replace("ref",uc).getRegex(),dv=Re("reflink|nolink(?!\\()","g").replace("reflink",su).replace("nolink",au).getRegex(),_c={_backpedal:Xo,anyPunctuation:rv,autolink:sv,blockSkip:tv,br:ou,code:Qb,del:Xo,emStrongLDelim:iv,emStrongRDelimAst:nv,emStrongRDelimUnd:ov,escape:nu,link:cv,nolink:au,punctuation:ev,reflink:su,reflinkSearch:dv,tag:lv,text:Jb,url:Xo},mv=re(k({},_c),{link:Re(/^!?\[(label)\]\((.*?)\)/).replace("label",Ss).getRegex(),reflink:Re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ss).getRegex()}),cc=re(k({},_c),{escape:Re(nu).replace("])","~|])").getRegex(),url:Re(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},Xh=o=>uv[o];function oi(o,i){if(i){if(wt.escapeTest.test(o))return o.replace(wt.escapeReplace,Xh)}else if(wt.escapeTestNoEncode.test(o))return o.replace(wt.escapeReplaceNoEncode,Xh);return o}function Zh(o){try{o=encodeURI(o).replace(wt.percentDecode,"%")}catch{return null}return o}function Kh(o,i){let e=o.replace(wt.findPipe,(r,s,a)=>{let c=!1,p=s;for(;--p>=0&&a[p]==="\\";)c=!c;return c?"|":" |"}),t=e.split(wt.splitPipe),n=0;if(t[0].trim()||t.shift(),t.length>0&&!t.at(-1)?.trim()&&t.pop(),i)if(t.length>i)t.splice(i);else for(;t.length{let s=r.match(e.other.beginningSpace);if(s===null)return r;let[a]=s;return a.length>=n.length?r.slice(n.length):r}).join(` +`)}var Yn=class{options;rules;lexer;constructor(i){this.options=i||mn}space(i){let e=this.rules.block.newline.exec(i);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(i){let e=this.rules.block.code.exec(i);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:qo(t,` +`)}}}fences(i){let e=this.rules.block.fences.exec(i);if(e){let t=e[0],n=fv(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(i){let e=this.rules.block.heading.exec(i);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let n=qo(t,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(t=n.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(i){let e=this.rules.block.hr.exec(i);if(e)return{type:"hr",raw:qo(e[0],` +`)}}blockquote(i){let e=this.rules.block.blockquote.exec(i);if(e){let t=qo(e[0],` +`).split(` +`),n="",r="",s=[];for(;t.length>0;){let a=!1,c=[],p;for(p=0;p1,r={type:"list",raw:"",ordered:n,start:n?+t.slice(0,-1):"",loose:!1,items:[]};t=n?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=n?t:"[*+-]");let s=this.rules.other.listItemRegex(t),a=!1;for(;i;){let p=!1,_="",y="";if(!(e=s.exec(i))||this.rules.block.hr.test(i))break;_=e[0],i=i.substring(_.length);let I=e[2].split(` +`,1)[0].replace(this.rules.other.listReplaceTabs,rt=>" ".repeat(3*rt.length)),S=i.split(` +`,1)[0],A=!I.trim(),T=0;if(this.options.pedantic?(T=2,y=I.trimStart()):A?T=e[1].length+1:(T=e[2].search(this.rules.other.nonSpaceChar),T=T>4?1:T,y=I.slice(T),T+=e[1].length),A&&this.rules.other.blankLine.test(S)&&(_+=S+` +`,i=i.substring(S.length+1),p=!0),!p){let rt=this.rules.other.nextBulletRegex(T),we=this.rules.other.hrRegex(T),wi=this.rules.other.fencesBeginRegex(T),Zt=this.rules.other.headingBeginRegex(T),Vi=this.rules.other.htmlBeginRegex(T);for(;i;){let gn=i.split(` +`,1)[0],Kn;if(S=gn,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),Kn=S):Kn=S.replace(this.rules.other.tabCharGlobal," "),wi.test(S)||Zt.test(S)||Vi.test(S)||rt.test(S)||we.test(S))break;if(Kn.search(this.rules.other.nonSpaceChar)>=T||!S.trim())y+=` +`+Kn.slice(T);else{if(A||I.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||wi.test(I)||Zt.test(I)||we.test(I))break;y+=` +`+S}!A&&!S.trim()&&(A=!0),_+=gn+` +`,i=i.substring(gn.length+1),I=Kn.slice(T)}}r.loose||(a?r.loose=!0:this.rules.other.doubleBlankLine.test(_)&&(a=!0));let z=null,Le;this.options.gfm&&(z=this.rules.other.listIsTask.exec(y),z&&(Le=z[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:_,task:!!z,checked:Le,loose:!1,text:y,tokens:[]}),r.raw+=_}let c=r.items.at(-1);c&&(c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd()),r.raw=r.raw.trimEnd();for(let p=0;pI.type==="space"),y=_.length>0&&_.some(I=>this.rules.other.anyLine.test(I.raw));r.loose=y}if(r.loose)for(let p=0;p({text:c,tokens:this.lexer.inline(c),header:!1,align:s.align[p]})));return s}}lheading(i){let e=this.rules.block.lheading.exec(i);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(i){let e=this.rules.block.paragraph.exec(i);if(e){let t=e[1].charAt(e[1].length-1)===` +`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(i){let e=this.rules.block.text.exec(i);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(i){let e=this.rules.inline.escape.exec(i);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(i){let e=this.rules.inline.tag.exec(i);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(i){let e=this.rules.inline.link.exec(i);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let s=qo(t.slice(0,-1),"\\");if((t.length-s.length)%2===0)return}else{let s=pv(e[2],"()");if(s>-1){let c=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,c).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],r=s[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n=n.slice(1):n=n.slice(1,-1)),Qh(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(i,e){let t;if((t=this.rules.inline.reflink.exec(i))||(t=this.rules.inline.nolink.exec(i))){let n=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[n.toLowerCase()];if(!r){let s=t[0].charAt(0);return{type:"text",raw:s,text:s}}return Qh(t,r,t[0],this.lexer,this.rules)}}emStrong(i,e,t=""){let n=this.rules.inline.emStrongLDelim.exec(i);if(!n||n[3]&&t.match(this.rules.other.unicodeAlphaNumeric))return;if(!(n[1]||n[2]||"")||!t||this.rules.inline.punctuation.exec(t)){let s=[...n[0]].length-1,a,c,p=s,_=0,y=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,e=e.slice(-1*i.length+s);(n=y.exec(e))!=null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(c=[...a].length,n[3]||n[4]){p+=c;continue}else if((n[5]||n[6])&&s%3&&!((s+c)%3)){_+=c;continue}if(p-=c,p>0)continue;c=Math.min(c,c+p+_);let I=[...n[0]][0].length,S=i.slice(0,s+n.index+I+c);if(Math.min(s,c)%2){let T=S.slice(1,-1);return{type:"em",raw:S,text:T,tokens:this.lexer.inlineTokens(T)}}let A=S.slice(2,-2);return{type:"strong",raw:S,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan(i){let e=this.rules.inline.code.exec(i);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(i){let e=this.rules.inline.br.exec(i);if(e)return{type:"br",raw:e[0]}}del(i){let e=this.rules.inline.del.exec(i);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(i){let e=this.rules.inline.autolink.exec(i);if(e){let t,n;return e[2]==="@"?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(i){let e;if(e=this.rules.inline.url.exec(i)){let t,n;if(e[2]==="@")t=e[0],n="mailto:"+t;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);t=e[0],e[1]==="www."?n="http://"+e[0]:n=e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(i){let e=this.rules.inline.text.exec(i);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},Yt=class o{tokens;options;state;tokenizer;inlineQueue;constructor(i){this.tokens=[],this.tokens.links=Object.create(null),this.options=i||mn,this.options.tokenizer=this.options.tokenizer||new Yn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:wt,block:Es.normal,inline:Yo.normal};this.options.pedantic?(e.block=Es.pedantic,e.inline=Yo.pedantic):this.options.gfm&&(e.block=Es.gfm,this.options.breaks?e.inline=Yo.breaks:e.inline=Yo.gfm),this.tokenizer.rules=e}static get rules(){return{block:Es,inline:Yo}}static lex(i,e){return new o(e).lex(i)}static lexInline(i,e){return new o(e).inlineTokens(i)}lex(i){i=i.replace(wt.carriageReturn,` +`),this.blockTokens(i,this.tokens);for(let e=0;e(n=s.call({lexer:this},i,e))?(i=i.substring(n.raw.length),e.push(n),!0):!1))continue;if(n=this.tokenizer.space(i)){i=i.substring(n.raw.length);let s=e.at(-1);n.raw.length===1&&s!==void 0?s.raw+=` +`:e.push(n);continue}if(n=this.tokenizer.code(i)){i=i.substring(n.raw.length);let s=e.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=` +`+n.raw,s.text+=` +`+n.text,this.inlineQueue.at(-1).src=s.text):e.push(n);continue}if(n=this.tokenizer.fences(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.heading(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.hr(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.blockquote(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.list(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.html(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(i)){i=i.substring(n.raw.length);let s=e.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=` +`+n.raw,s.text+=` +`+n.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.lheading(i)){i=i.substring(n.raw.length),e.push(n);continue}let r=i;if(this.options.extensions?.startBlock){let s=1/0,a=i.slice(1),c;this.options.extensions.startBlock.forEach(p=>{c=p.call({lexer:this},a),typeof c=="number"&&c>=0&&(s=Math.min(s,c))}),s<1/0&&s>=0&&(r=i.substring(0,s+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r))){let s=e.at(-1);t&&s?.type==="paragraph"?(s.raw+=` +`+n.raw,s.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):e.push(n),t=r.length!==i.length,i=i.substring(n.raw.length);continue}if(n=this.tokenizer.text(i)){i=i.substring(n.raw.length);let s=e.at(-1);s?.type==="text"?(s.raw+=` +`+n.raw,s.text+=` +`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):e.push(n);continue}if(i){let s="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,e}inline(i,e=[]){return this.inlineQueue.push({src:i,tokens:e}),e}inlineTokens(i,e=[]){let t=i,n=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(t))!=null;)a.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(t=t.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+t.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.blockSkip.exec(t))!=null;)t=t.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+t.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(t))!=null;)t=t.slice(0,n.index)+"++"+t.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r=!1,s="";for(;i;){r||(s=""),r=!1;let a;if(this.options.extensions?.inline?.some(p=>(a=p.call({lexer:this},i,e))?(i=i.substring(a.raw.length),e.push(a),!0):!1))continue;if(a=this.tokenizer.escape(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.tag(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.link(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(a.raw.length);let p=e.at(-1);a.type==="text"&&p?.type==="text"?(p.raw+=a.raw,p.text+=a.text):e.push(a);continue}if(a=this.tokenizer.emStrong(i,t,s)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.codespan(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.br(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.del(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.autolink(i)){i=i.substring(a.raw.length),e.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(i))){i=i.substring(a.raw.length),e.push(a);continue}let c=i;if(this.options.extensions?.startInline){let p=1/0,_=i.slice(1),y;this.options.extensions.startInline.forEach(I=>{y=I.call({lexer:this},_),typeof y=="number"&&y>=0&&(p=Math.min(p,y))}),p<1/0&&p>=0&&(c=i.substring(0,p+1))}if(a=this.tokenizer.inlineText(c)){i=i.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(s=a.raw.slice(-1)),r=!0;let p=e.at(-1);p?.type==="text"?(p.raw+=a.raw,p.text+=a.text):e.push(a);continue}if(i){let p="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return e}},ri=class{options;parser;constructor(i){this.options=i||mn}space(i){return""}code({text:i,lang:e,escaped:t}){let n=(e||"").match(wt.notSpaceStart)?.[0],r=i.replace(wt.endingNewline,"")+` +`;return n?'
'+(t?r:oi(r,!0))+`
+`:"
"+(t?r:oi(r,!0))+`
+`}blockquote({tokens:i}){return`
+${this.parser.parse(i)}
+`}html({text:i}){return i}heading({tokens:i,depth:e}){return`${this.parser.parseInline(i)} +`}hr(i){return`
+`}list(i){let e=i.ordered,t=i.start,n="";for(let a=0;a +`+n+" +`}listitem(i){let e="";if(i.task){let t=this.checkbox({checked:!!i.checked});i.loose?i.tokens[0]?.type==="paragraph"?(i.tokens[0].text=t+" "+i.tokens[0].text,i.tokens[0].tokens&&i.tokens[0].tokens.length>0&&i.tokens[0].tokens[0].type==="text"&&(i.tokens[0].tokens[0].text=t+" "+oi(i.tokens[0].tokens[0].text),i.tokens[0].tokens[0].escaped=!0)):i.tokens.unshift({type:"text",raw:t+" ",text:t+" ",escaped:!0}):e+=t+" "}return e+=this.parser.parse(i.tokens,!!i.loose),`
  • ${e}
  • +`}checkbox({checked:i}){return"'}paragraph({tokens:i}){return`

    ${this.parser.parseInline(i)}

    +`}table(i){let e="",t="";for(let r=0;r${n}`),` + +`+e+` +`+n+`
    +`}tablerow({text:i}){return` +${i} +`}tablecell(i){let e=this.parser.parseInline(i.tokens),t=i.header?"th":"td";return(i.align?`<${t} align="${i.align}">`:`<${t}>`)+e+` +`}strong({tokens:i}){return`${this.parser.parseInline(i)}`}em({tokens:i}){return`${this.parser.parseInline(i)}`}codespan({text:i}){return`${oi(i,!0)}`}br(i){return"
    "}del({tokens:i}){return`${this.parser.parseInline(i)}`}link({href:i,title:e,tokens:t}){let n=this.parser.parseInline(t),r=Zh(i);if(r===null)return n;i=r;let s='
    ",s}image({href:i,title:e,text:t}){let n=Zh(i);if(n===null)return oi(t);i=n;let r=`${t}{let a=r[s].flat(1/0);t=t.concat(this.walkTokens(a,e))}):r.tokens&&(t=t.concat(this.walkTokens(r.tokens,e)))}}return t}use(...i){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(t=>{let n=k({},t);if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let s=e.renderers[r.name];s?e.renderers[r.name]=function(...a){let c=r.renderer.apply(this,a);return c===!1&&(c=s.apply(this,a)),c}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[r.level];s?s.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),n.extensions=e),t.renderer){let r=this.defaults.renderer||new ri(this.defaults);for(let s in t.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,c=t.renderer[a],p=r[a];r[a]=(..._)=>{let y=c.apply(r,_);return y===!1&&(y=p.apply(r,_)),y||""}}n.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new Yn(this.defaults);for(let s in t.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,c=t.tokenizer[a],p=r[a];r[a]=(..._)=>{let y=c.apply(r,_);return y===!1&&(y=p.apply(r,_)),y}}n.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new Gn;for(let s in t.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,c=t.hooks[a],p=r[a];Gn.passThroughHooks.has(s)?r[a]=_=>{if(this.defaults.async)return Promise.resolve(c.call(r,_)).then(I=>p.call(r,I));let y=c.call(r,_);return p.call(r,y)}:r[a]=(..._)=>{let y=c.apply(r,_);return y===!1&&(y=p.apply(r,_)),y}}n.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,s=t.walkTokens;n.walkTokens=function(a){let c=[];return c.push(s.call(this,a)),r&&(c=c.concat(r.call(this,a))),c}}this.defaults=k(k({},this.defaults),n)}),this}setOptions(i){return this.defaults=k(k({},this.defaults),i),this}lexer(i,e){return Yt.lex(i,e??this.defaults)}parser(i,e){return qt.parse(i,e??this.defaults)}parseMarkdown(i){return(t,n)=>{let r=k({},n),s=k(k({},this.defaults),r),a=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=i);let c=s.hooks?s.hooks.provideLexer():i?Yt.lex:Yt.lexInline,p=s.hooks?s.hooks.provideParser():i?qt.parse:qt.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(t):t).then(_=>c(_,s)).then(_=>s.hooks?s.hooks.processAllTokens(_):_).then(_=>s.walkTokens?Promise.all(this.walkTokens(_,s.walkTokens)).then(()=>_):_).then(_=>p(_,s)).then(_=>s.hooks?s.hooks.postprocess(_):_).catch(a);try{s.hooks&&(t=s.hooks.preprocess(t));let _=c(t,s);s.hooks&&(_=s.hooks.processAllTokens(_)),s.walkTokens&&this.walkTokens(_,s.walkTokens);let y=p(_,s);return s.hooks&&(y=s.hooks.postprocess(y)),y}catch(_){return a(_)}}}onError(i,e){return t=>{if(t.message+=` +Please report this to https://github.com/markedjs/marked.`,i){let n="

    An error occurred:

    "+oi(t.message+"",!0)+"
    ";return e?Promise.resolve(n):n}if(e)return Promise.reject(t);throw t}}},dn=new dc;function ye(o,i){return dn.parse(o,i)}ye.options=ye.setOptions=function(o){return dn.setOptions(o),ye.defaults=dn.defaults,Jh(ye.defaults),ye};ye.getDefaults=mc;ye.defaults=mn;ye.use=function(...o){return dn.use(...o),ye.defaults=dn.defaults,Jh(ye.defaults),ye};ye.walkTokens=function(o,i){return dn.walkTokens(o,i)};ye.parseInline=dn.parseInline;ye.Parser=qt;ye.parser=qt.parse;ye.Renderer=ri;ye.TextRenderer=Zo;ye.Lexer=Yt;ye.lexer=Yt.lex;ye.Tokenizer=Yn;ye.Hooks=Gn;ye.parse=ye;var Zk=ye.options,Kk=ye.setOptions,Qk=ye.use,Jk=ye.walkTokens,eM=ye.parseInline;var tM=qt.parse,iM=Yt.lex;var gv=["*"],_v="Copy",bv="Copied",vv=(()=>{class o{constructor(){this._buttonClick$=new N,this.copied$=this._buttonClick$.pipe($e(()=>mt(V(!0),_r(3e3).pipe(br(!1)))),ji(),to(1)),this.copiedText$=this.copied$.pipe(ut(!1),B(e=>e?bv:_v))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=E({type:o,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(t,n){t&1&&(l(0,"button",0),Ma(1,"async"),g("click",function(){return n.onCopyToClipboardClick()}),m(2),Ma(3,"async"),d()),t&2&&(te("copied",Ia(1,3,n.copied$)),h(2),Ze(Ia(3,5,n.copiedText$)))},dependencies:[Ad],encapsulation:2,changeDetection:0})}}return o})(),yv=new R("CLIPBOARD_OPTIONS");var bc=function(o){return o.CommandLine="command-line",o.LineHighlight="line-highlight",o.LineNumbers="line-numbers",o}(bc||{}),lu=new R("MARKED_EXTENSIONS"),vc=new R("MARKED_OPTIONS"),xv=new R("MERMAID_OPTIONS"),wv="[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information",Cv="[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information",kv="[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information",Mv="[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information",Iv="[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function",Ev="[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information",cu=new R("SECURITY_CONTEXT");var du=(()=>{class o{get options(){return this._options}set options(e){this._options=k(k({},this.DEFAULT_MARKED_OPTIONS),e)}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}constructor(e,t,n,r,s,a,c,p){this.clipboardOptions=e,this.extensions=t,this.mermaidOptions=r,this.platform=s,this.securityContext=a,this.http=c,this.sanitizer=p,this.DEFAULT_MARKED_OPTIONS={renderer:new ri},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new N,this.reload$=this._reload$.asObservable(),this.options=n}parse(e,t=this.DEFAULT_PARSE_OPTIONS){let{decodeHtml:n,inline:r,emoji:s,mermaid:a,disableSanitizer:c}=t,p=k(k({},this.options),t.markedOptions),_=p.renderer||this.renderer||new ri;this.extensions&&(this.renderer=this.extendsRendererForExtensions(_)),a&&(this.renderer=this.extendsRendererForMermaid(_));let y=this.trimIndentation(e),I=n?this.decodeHtml(y):y,S=s?this.parseEmoji(I):I,A=this.parseMarked(S,p,r);return(c?A:this.sanitizer.sanitize(this.securityContext,A))||""}render(e,t=this.DEFAULT_RENDER_OPTIONS,n){let{clipboard:r,clipboardOptions:s,katex:a,katexOptions:c,mermaid:p,mermaidOptions:_}=t;a&&this.renderKatex(e,k(k({},this.DEFAULT_KATEX_OPTIONS),c)),p&&this.renderMermaid(e,k(k(k({},this.DEFAULT_MERMAID_OPTIONS),this.mermaidOptions),_)),r&&this.renderClipboard(e,n,k(k(k({},this.DEFAULT_CLIPBOARD_OPTIONS),this.clipboardOptions),s)),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error(Ev);return this.http.get(e,{responseType:"text"}).pipe(B(t=>this.handleExtension(e,t)))}highlight(e){if(!di(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);let t=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,n=>n.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!di(this.platform))return e;let t=document.createElement("textarea");return t.innerHTML=e,t.value}extendsRendererForExtensions(e){let t=e;return t.\u0275NgxMarkdownRendererExtendedForExtensions===!0||(this.extensions?.length>0&&ye.use(...this.extensions),t.\u0275NgxMarkdownRendererExtendedForExtensions=!0),e}extendsRendererForMermaid(e){let t=e;if(t.\u0275NgxMarkdownRendererExtendedForMermaid===!0)return e;let n=e.code;return e.code=r=>r.lang==="mermaid"?`
    ${r.text}
    `:n(r),t.\u0275NgxMarkdownRendererExtendedForMermaid=!0,e}handleExtension(e,t){let n=e.lastIndexOf("://"),r=n>-1?e.substring(n+4):e,s=r.lastIndexOf("/"),a=s>-1?r.substring(s+1).split("?")[0]:"",c=a.lastIndexOf("."),p=c>-1?a.substring(c+1):"";return p&&p!=="md"?"```"+p+` +`+t+"\n```":t}parseMarked(e,t,n=!1){if(t.renderer){let r=k({},t.renderer);delete r.\u0275NgxMarkdownRendererExtendedForExtensions,delete r.\u0275NgxMarkdownRendererExtendedForMermaid,delete t.renderer,ye.use({renderer:r})}return n?ye.parseInline(e,t):ye.parse(e,t)}parseEmoji(e){if(!di(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error(wv);return joypixels.shortnameToUnicode(e)}renderKatex(e,t){if(di(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error(Cv);renderMathInElement(e,t)}}renderClipboard(e,t,n){if(!di(this.platform))return;if(typeof ClipboardJS>"u")throw new Error(Mv);if(!t)throw new Error(Iv);let{buttonComponent:r,buttonTemplate:s}=n,a=e.querySelectorAll("pre");for(let c=0;cy.classList.add("hover"),_.onmouseleave=()=>y.classList.remove("hover");let I;if(r){let A=t.createComponent(r);I=A.hostView,A.changeDetectorRef.markForCheck()}else if(s)I=t.createEmbeddedView(s);else{let A=t.createComponent(vv);I=A.hostView,A.changeDetectorRef.markForCheck()}let S;I.rootNodes.forEach(A=>{y.appendChild(A),S=new ClipboardJS(A,{text:()=>p.innerText})}),I.onDestroy(()=>S.destroy())}}renderMermaid(e,t=this.DEFAULT_MERMAID_OPTIONS){if(!di(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error(kv);let n=e.querySelectorAll(".mermaid");n.length!==0&&(mermaid.initialize(t),mermaid.run({nodes:n}))}trimIndentation(e){if(!e)return"";let t;return e.split(` +`).map(n=>{let r=t;return n.length>0&&(r=isNaN(r)?n.search(/\S|$/):Math.min(n.search(/\S|$/),r)),isNaN(t)&&(t=r),r?n.substring(r):n}).join(` +`)}static{this.\u0275fac=function(t){return new(t||o)(K(yv,8),K(lu,8),K(vc,8),K(xv,8),K(Wt),K(cu),K(Ki,8),K(fo))}}static{this.\u0275prov=O({token:o,factory:o.\u0275fac})}}return o})(),_e=(()=>{class o{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(e){this._disableSanitizer=this.coerceBooleanProperty(e)}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}constructor(e,t,n){this.element=e,this.markdownService=t,this.viewContainerRef=n,this.error=new U,this.load=new U,this.ready=new U,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new N}ngOnChanges(){this.loadContent()}loadContent(){if(this.data!=null){this.handleData();return}if(this.src!=null){this.handleSrc();return}}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(Ce(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}async render(e,t=!1){let n={decodeHtml:t,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,disableSanitizer:this.disableSanitizer},r={clipboard:this.clipboard,clipboardOptions:this.getClipboardOptions(),katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},s=await this.markdownService.parse(e,n);this.element.nativeElement.innerHTML=s,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,r,this.viewContainerRef),this.ready.emit()}coerceBooleanProperty(e){return e!=null&&`${String(e)}`!="false"}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e).then(()=>{this.load.emit(e)})},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,bc.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,bc.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,t){let n=e.querySelectorAll("pre");for(let r=0;r{let a=t[s];if(a){let c=this.toLispCase(s);n.item(r).setAttribute(c,a.toString())}})}toLispCase(e){let t=e.match(/([A-Z])/g);if(!t)return e;let n=e.toString();for(let r=0,s=t.length;r{class o{static forRoot(e){return{ngModule:o,providers:[Sv(e)]}}static forChild(){return{ngModule:o}}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=Z({type:o})}static{this.\u0275inj=X({imports:[Da]})}}return o})();var hu=["mat-button",""],yc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],xc=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Tv='.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',uu="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}";var Dv=["mat-mini-fab",""],Rv='.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}',Av=["mat-icon-button",""],Ov=["*"];var Fv=new R("MAT_BUTTON_CONFIG");var Pv=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Rs=(()=>{class o{_elementRef=u(W);_platform=u(Ae);_ngZone=u(G);_animationMode=u(pt,{optional:!0});_focusMonitor=u(vo);_rippleLoader=u(Tm);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){u(lt).load(ui);let e=u(Fv,{optional:!0}),t=this._elementRef.nativeElement,n=t.classList;this.disabledInteractive=e?.disabledInteractive??!1,this.color=e?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"});for(let{attribute:r,mdcClasses:s}of Pv)t.hasAttribute(r)&&n.add(...s)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",t){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,t):this._elementRef.nativeElement.focus(t)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",q],disabled:[2,"disabled","disabled",q],ariaDisabled:[2,"aria-disabled","ariaDisabled",q],disabledInteractive:[2,"disabledInteractive","disabledInteractive",q]},features:[Fe]})}return o})();var Lv=(()=>{class o extends Rs{tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_haltDisabledEvents=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())};_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275dir=j({type:o,inputs:{tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Xi(e)]},features:[Fe,Ne]})}return o})(),As=(()=>{class o extends Rs{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275cmp=E({type:o,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(t,n){t&2&&(fe("disabled",n._getDisabledAttribute())("aria-disabled",n._getAriaDisabled()),$t(n.color?"mat-"+n.color:""),te("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Ne],attrs:hu,ngContentSelectors:xc,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(Te(yc),D(0,"span",0),H(1),l(2,"span",1),H(3,1),d(),H(4,2),D(5,"span",2)(6,"span",3)),t&2&&te("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return o})(),ce=(()=>{class o extends Lv{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275cmp=E({type:o,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(t,n){t&2&&(fe("disabled",n._getDisabledAttribute())("tabindex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex)("aria-disabled",n._getAriaDisabled()),$t(n.color?"mat-"+n.color:""),te("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[Ne],attrs:hu,ngContentSelectors:xc,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(Te(yc),D(0,"span",0),H(1),l(2,"span",1),H(3,1),d(),H(4,2),D(5,"span",2)(6,"span",3)),t&2&&te("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab)},styles:[Tv,uu],encapsulation:2,changeDetection:0})}return o})(),zv=new R("mat-mdc-fab-default-options",{providedIn:"root",factory:pu});function pu(){return{color:"accent"}}var mu=pu();var be=(()=>{class o extends Rs{_options=u(zv,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||mu,this.color=this._options.color||mu.color}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(t,n){t&2&&(fe("disabled",n._getDisabledAttribute())("aria-disabled",n._getAriaDisabled()),$t(n.color?"mat-"+n.color:""),te("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Ne],attrs:Dv,ngContentSelectors:xc,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(Te(yc),D(0,"span",0),H(1),l(2,"span",1),H(3,1),d(),H(4,2),D(5,"span",2)(6,"span",3)),t&2&&te("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab)},styles:[Rv],encapsulation:2,changeDetection:0})}return o})();var zi=(()=>{class o extends Rs{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(t,n){t&2&&(fe("disabled",n._getDisabledAttribute())("aria-disabled",n._getAriaDisabled()),$t(n.color?"mat-"+n.color:""),te("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Ne],attrs:Av,ngContentSelectors:Ov,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(Te(),D(0,"span",0),H(1),D(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',uu],encapsulation:2,changeDetection:0})}return o})();var de=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,tn,ke]})}return o})();var Nv=["*"],Os;function Vv(){if(Os===void 0&&(Os=null,typeof window<"u")){let o=window;o.trustedTypes!==void 0&&(Os=o.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Os}function Qo(o){return Vv()?.createHTML(o)||o}function fu(o){return Error(`Unable to find icon with the name "${o}"`)}function Bv(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function gu(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function _u(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}var yi=class{url;svgText;options;svgElement;constructor(i,e,t){this.url=i,this.svgText=e,this.options=t}},Wv=(()=>{class o{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,n,r){this._httpClient=e,this._sanitizer=t,this._errorHandler=r,this._document=n}addSvgIcon(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}addSvgIconLiteral(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}addSvgIconInNamespace(e,t,n,r){return this._addSvgIconConfig(e,t,new yi(n,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,n,r){let s=this._sanitizer.sanitize(vt.HTML,n);if(!s)throw _u(n);let a=Qo(s);return this._addSvgIconConfig(e,t,new yi("",a,r))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,n){return this._addSvgIconSetConfig(e,new yi(t,null,n))}addSvgIconSetLiteralInNamespace(e,t,n){let r=this._sanitizer.sanitize(vt.HTML,t);if(!r)throw _u(t);let s=Qo(r);return this._addSvgIconSetConfig(e,new yi("",s,n))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(vt.RESOURCE_URL,e);if(!t)throw gu(e);let n=this._cachedIconsByUrl.get(t);return n?V(Fs(n)):this._loadSvgIconFromConfig(new yi(e,null)).pipe(Ue(r=>this._cachedIconsByUrl.set(t,r)),B(r=>Fs(r)))}getNamedSvgIcon(e,t=""){let n=bu(t,e),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(t,e),r)return this._svgIconConfigs.set(n,r),this._getSvgFromConfig(r);let s=this._iconSetConfigs.get(t);return s?this._getSvgFromIconSetConfigs(e,s):Bi(fu(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?V(Fs(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(B(t=>Fs(t)))}_getSvgFromIconSetConfigs(e,t){let n=this._extractIconWithNameFromAnySet(e,t);if(n)return V(n);let r=t.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Ci(a=>{let p=`Loading icon set URL: ${this._sanitizer.sanitize(vt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(p)),V(null)})));return gr(r).pipe(B(()=>{let s=this._extractIconWithNameFromAnySet(e,t);if(!s)throw fu(e);return s}))}_extractIconWithNameFromAnySet(e,t){for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(r),a=this._extractSvgIconFromSet(s,e,r.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ue(t=>e.svgText=t),B(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?V(null):this._fetchIcon(e).pipe(Ue(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,n){let r=e.querySelector(`[id="${t}"]`);if(!r)return null;let s=r.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,n);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),n);let a=this._svgElementFromString(Qo(""));return a.appendChild(s),this._setSvgAttributes(a,n)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(e){let t=this._svgElementFromString(Qo("")),n=e.attributes;for(let r=0;rQo(p)),Mi(()=>this._inProgressUrlFetches.delete(s)),Jc());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,t,n){return this._svgIconConfigs.set(bu(e,t),n),this}_addSvgIconSetConfig(e,t){let n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let n=0;ni?i.pathname+i.search:""}}var vu=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Gv=vu.map(o=>`[${o}]`).join(", "),Yv=/^url\(['"]?#(.*?)['"]?\)$/,me=(()=>{class o{_elementRef=u(W);_iconRegistry=u(Wv);_location=u(Uv);_errorHandler=u(Gi);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Ge.EMPTY;constructor(){let e=u(new Hi("aria-hidden"),{optional:!0}),t=u($v,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let n=e.childNodes[t];(n.nodeType!==1||n.nodeName.toLowerCase()==="svg")&&n.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(n=>n.length>0);this._previousFontSetClass.forEach(n=>e.classList.remove(n)),t.forEach(n=>e.classList.add(n)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((n,r)=>{n.forEach(s=>{r.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(Gv),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let a=t[r],c=a.getAttribute(s),p=c?c.match(Yv):null;if(p){let _=n.get(a);_||(_=[],n.set(a,_)),_.push({name:s,value:p[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,n]=this._splitIconName(e);t&&(this._svgNamespace=t),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,t).pipe(ht(1)).subscribe(r=>this._setSvgElement(r),r=>{let s=`Error retrieving icon ${t}:${n}! ${r.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,n){t&2&&(fe("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),$t(n.color?"mat-"+n.color:""),te("mat-icon-inline",n.inline)("mat-icon-no-color",n.color!=="primary"&&n.color!=="accent"&&n.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",q],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Fe],ngContentSelectors:Nv,decls:1,vars:0,template:function(t,n){t&1&&(Te(),H(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return o})(),he=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,ke]})}return o})();var wu=["*"];function qv(o,i){if(o&1&&D(0,"div",0),o&2){let e=i.$index,t=f();M("ngStyle",t.gridRenderer.getGridColumnStyle(e))}}function Xv(o,i){if(o&1&&D(0,"div",1),o&2){let e=i.$index,t=f();M("ngStyle",t.gridRenderer.getGridRowStyle(e))}}function Zv(o,i){if(o&1){let e=F();l(0,"div",8),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function Kv(o,i){if(o&1){let e=F();l(0,"div",9),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function Qv(o,i){if(o&1){let e=F();l(0,"div",10),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function Jv(o,i){if(o&1){let e=F();l(0,"div",11),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function ey(o,i){if(o&1){let e=F();l(0,"div",12),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function ty(o,i){if(o&1){let e=F();l(0,"div",13),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function iy(o,i){if(o&1){let e=F();l(0,"div",14),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function ny(o,i){if(o&1){let e=F();l(0,"div",15),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}var P=function(o){return o.Fit="fit",o.ScrollVertical="scrollVertical",o.ScrollHorizontal="scrollHorizontal",o.Fixed="fixed",o.VerticalFixed="verticalFixed",o.HorizontalFixed="horizontalFixed",o}(P||{}),ve=function(o){return o.Always="always",o.OnDragAndResize="onDrag&Resize",o.None="none",o}(ve||{}),ue=function(o){return o.None="none",o.CompactUp="compactUp",o.CompactLeft="compactLeft",o.CompactUpAndLeft="compactUp&Left",o.CompactLeftAndUp="compactLeft&Up",o.CompactRight="compactRight",o.CompactUpAndRight="compactUp&Right",o.CompactRightAndUp="compactRight&Up",o.CompactDown="compactDown",o.CompactDownAndLeft="compactDown&Left",o.CompactLeftAndDown="compactLeft&Down",o.CompactDownAndRight="compactDown&Right",o.CompactRightAndDown="compactRight&Down",o}(ue||{}),ot=function(o){return o.LTR="ltr",o.RTL="rtl",o}(ot||{}),wc=class{gridster;constructor(i){this.gridster=i}destroy(){this.gridster=null}checkCompact(){this.gridster.$options.compactType!==ue.None&&(this.gridster.$options.compactType===ue.CompactUp?this.checkCompactMovement("y",-1):this.gridster.$options.compactType===ue.CompactLeft?this.checkCompactMovement("x",-1):this.gridster.$options.compactType===ue.CompactUpAndLeft?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===ue.CompactLeftAndUp?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===ue.CompactRight?this.checkCompactMovement("x",1):this.gridster.$options.compactType===ue.CompactUpAndRight?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===ue.CompactRightAndUp?(this.checkCompactMovement("x",1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===ue.CompactDown?this.checkCompactMovement("y",1):this.gridster.$options.compactType===ue.CompactDownAndLeft?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===ue.CompactDownAndRight?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===ue.CompactLeftAndDown?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",1)):this.gridster.$options.compactType===ue.CompactRightAndDown&&(this.checkCompactMovement("x",1),this.checkCompactMovement("y",1)))}checkCompactItem(i){this.gridster.$options.compactType!==ue.None&&(this.gridster.$options.compactType===ue.CompactUp?this.moveTillCollision(i,"y",-1):this.gridster.$options.compactType===ue.CompactLeft?this.moveTillCollision(i,"x",-1):this.gridster.$options.compactType===ue.CompactUpAndLeft?(this.moveTillCollision(i,"y",-1),this.moveTillCollision(i,"x",-1)):this.gridster.$options.compactType===ue.CompactLeftAndUp?(this.moveTillCollision(i,"x",-1),this.moveTillCollision(i,"y",-1)):this.gridster.$options.compactType===ue.CompactUpAndRight?(this.moveTillCollision(i,"y",-1),this.moveTillCollision(i,"x",1)):this.gridster.$options.compactType===ue.CompactDown?this.moveTillCollision(i,"y",1):this.gridster.$options.compactType===ue.CompactDownAndLeft?(this.moveTillCollision(i,"y",1),this.moveTillCollision(i,"x",-1)):this.gridster.$options.compactType===ue.CompactLeftAndDown?(this.moveTillCollision(i,"x",-1),this.moveTillCollision(i,"y",1)):this.gridster.$options.compactType===ue.CompactDownAndRight?(this.moveTillCollision(i,"y",1),this.moveTillCollision(i,"x",1)):this.gridster.$options.compactType===ue.CompactRightAndDown&&(this.moveTillCollision(i,"x",1),this.moveTillCollision(i,"y",1)))}checkCompactMovement(i,e){let t=!1;this.gridster.grid.forEach(n=>{n.$item.compactEnabled!==!1&&this.moveTillCollision(n.$item,i,e)&&(t=!0,n.item[i]=n.$item[i],n.itemChanged())}),t&&this.checkCompact()}moveTillCollision(i,e,t){return i[e]+=t,this.gridster.checkCollision(i)?(i[e]-=t,!1):(this.moveTillCollision(i,e,t),!0)}},oy={gridType:P.Fit,scale:1,fixedColWidth:250,fixedRowHeight:250,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,setGridSize:!1,compactType:ue.None,mobileBreakpoint:640,useBodyForBreakpoint:!1,allowMultiLayer:!1,defaultLayerIndex:0,maxLayerIndex:2,baseLayerIndex:1,minCols:1,maxCols:100,minRows:1,maxRows:100,defaultItemCols:1,defaultItemRows:1,maxItemCols:50,maxItemRows:50,minItemCols:1,minItemRows:1,minItemArea:1,maxItemArea:2500,addEmptyRowsCount:0,rowHeightRatio:1,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,scrollSensitivity:10,scrollSpeed:20,initCallback:void 0,destroyCallback:void 0,gridSizeChangedCallback:void 0,itemChangeCallback:void 0,itemResizeCallback:void 0,itemInitCallback:void 0,itemRemovedCallback:void 0,itemValidateCallback:void 0,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellClickCallback:void 0,emptyCellContextMenuCallback:void 0,emptyCellDropCallback:void 0,emptyCellDragCallback:void 0,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{delayStart:0,enabled:!1,ignoreContentClass:"gridster-item-content",ignoreContent:!1,dragHandleClass:"drag-handler",stop:void 0,start:void 0,dropOverItems:!1,dropOverItemsCallback:void 0},resizable:{delayStart:0,enabled:!1,handles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0},stop:void 0,start:void 0},swap:!0,swapWhileDragging:!1,pushItems:!1,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:ve.OnDragAndResize,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1,disableScrollHorizontal:!1,disableScrollVertical:!1,enableBoundaryControl:!1,disableAutoPositionOnConflict:!1,dirType:ot.LTR},ft=class o{static merge(i,e,t){for(let n in e)e[n]!==void 0&&t.hasOwnProperty(n)&&(typeof e[n]=="object"?(n in i||(i[n]={}),i[n]=o.merge(i[n],e[n],t[n])):i[n]=e[n]);return i}static checkTouchEvent(i){i.clientX===void 0&&i.touches&&(i.touches&&i.touches.length?(i.clientX=i.touches[0].clientX,i.clientY=i.touches[0].clientY):i.changedTouches&&i.changedTouches.length&&(i.clientX=i.changedTouches[0].clientX,i.clientY=i.changedTouches[0].clientY))}static checkContentClassForEvent(i,e){if(i.$options.draggable.ignoreContent){if(!o.checkDragHandleClass(e.target,e.currentTarget,i.$options.draggable.dragHandleClass,i.$options.draggable.ignoreContentClass))return!0}else if(o.checkContentClass(e.target,e.currentTarget,i.$options.draggable.ignoreContentClass))return!0;return!1}static checkContentClassForEmptyCellClickEvent(i,e){return o.checkContentClass(e.target,e.currentTarget,i.$options.draggable.ignoreContentClass)||o.checkContentClass(e.target,e.currentTarget,i.$options.draggable.dragHandleClass)}static checkDragHandleClass(i,e,t,n){if(!i||i===e)return!1;if(i.hasAttribute("class")){let r=i.getAttribute("class").split(" ");if(r.indexOf(t)>-1)return!0;if(r.indexOf(n)>-1)return!1}return o.checkDragHandleClass(i.parentNode,e,t,n)}static checkContentClass(i,e,t){return!i||i===e?!1:i.hasAttribute("class")&&i.getAttribute("class").split(" ").indexOf(t)>-1?!0:o.checkContentClass(i.parentNode,e,t)}static compareItems(i,e){return i.y>e.y?-1:i.ye.x?-1:1}},Cc=class{gridster;initialItem;removeEmptyCellClickListenerFn;removeEmptyCellTouchendListenerFn;removeEmptyCellContextMenuListenerFn;removeEmptyCellDropListenerFn;removeEmptyCellMousedownListenerFn;removeEmptyCellTouchstartListenerFn;removeWindowMousemoveListenerFn;removeWindowTouchmoveListenerFn;removeWindowMouseupListenerFn;removeWindowTouchendListenerFn;removeEmptyCellDragoverListenerFn;removeDocumentDragendListenerFn;constructor(i){this.gridster=i}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(),this.gridster.movingItem=null,this.initialItem=this.gridster=null,this.removeDocumentDragendListenerFn&&(this.removeDocumentDragendListenerFn(),this.removeDocumentDragendListenerFn=null)}updateOptions(){this.gridster.$options.enableEmptyCellClick&&!this.removeEmptyCellClickListenerFn&&this.gridster.options.emptyCellClickCallback?(this.removeEmptyCellClickListenerFn=this.gridster.renderer.listen(this.gridster.el,"click",this.emptyCellClickCb),this.removeEmptyCellTouchendListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchend",this.emptyCellClickCb)):!this.gridster.$options.enableEmptyCellClick&&this.removeEmptyCellClickListenerFn&&this.removeEmptyCellTouchendListenerFn&&(this.removeEmptyCellClickListenerFn(),this.removeEmptyCellTouchendListenerFn(),this.removeEmptyCellClickListenerFn=null,this.removeEmptyCellTouchendListenerFn=null),this.gridster.$options.enableEmptyCellContextMenu&&!this.removeEmptyCellContextMenuListenerFn&&this.gridster.options.emptyCellContextMenuCallback?this.removeEmptyCellContextMenuListenerFn=this.gridster.renderer.listen(this.gridster.el,"contextmenu",this.emptyCellContextMenuCb):!this.gridster.$options.enableEmptyCellContextMenu&&this.removeEmptyCellContextMenuListenerFn&&(this.removeEmptyCellContextMenuListenerFn(),this.removeEmptyCellContextMenuListenerFn=null),this.gridster.$options.enableEmptyCellDrop&&!this.removeEmptyCellDropListenerFn&&this.gridster.options.emptyCellDropCallback?(this.removeEmptyCellDropListenerFn=this.gridster.renderer.listen(this.gridster.el,"drop",this.emptyCellDragDrop),this.removeEmptyCellDragoverListenerFn=this.gridster.renderer.listen(this.gridster.el,"dragover",this.emptyCellDragOver),this.removeDocumentDragendListenerFn=this.gridster.renderer.listen("document","dragend",()=>{this.gridster.movingItem=null,this.gridster.previewStyle()})):!this.gridster.$options.enableEmptyCellDrop&&this.removeEmptyCellDropListenerFn&&this.removeEmptyCellDragoverListenerFn&&this.removeDocumentDragendListenerFn&&(this.removeEmptyCellDropListenerFn(),this.removeEmptyCellDragoverListenerFn(),this.removeDocumentDragendListenerFn(),this.removeEmptyCellDragoverListenerFn=null,this.removeEmptyCellDropListenerFn=null,this.removeDocumentDragendListenerFn=null),this.gridster.$options.enableEmptyCellDrag&&!this.removeEmptyCellMousedownListenerFn&&this.gridster.options.emptyCellDragCallback?(this.removeEmptyCellMousedownListenerFn=this.gridster.renderer.listen(this.gridster.el,"mousedown",this.emptyCellMouseDown),this.removeEmptyCellTouchstartListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchstart",this.emptyCellMouseDown)):!this.gridster.$options.enableEmptyCellDrag&&this.removeEmptyCellMousedownListenerFn&&this.removeEmptyCellTouchstartListenerFn&&(this.removeEmptyCellMousedownListenerFn(),this.removeEmptyCellTouchstartListenerFn(),this.removeEmptyCellMousedownListenerFn=null,this.removeEmptyCellTouchstartListenerFn=null)}emptyCellClickCb=i=>{if(!this.gridster||this.gridster.movingItem||ft.checkContentClassForEmptyCellClickEvent(this.gridster,i))return;let e=this.getValidItemFromEvent(i);e&&(this.gridster.options.emptyCellClickCallback&&this.gridster.options.emptyCellClickCallback(i,e),this.gridster.cdRef.markForCheck())};emptyCellContextMenuCb=i=>{if(this.gridster.movingItem||ft.checkContentClassForEmptyCellClickEvent(this.gridster,i))return;i.preventDefault(),i.stopPropagation();let e=this.getValidItemFromEvent(i);e&&(this.gridster.options.emptyCellContextMenuCallback&&this.gridster.options.emptyCellContextMenuCallback(i,e),this.gridster.cdRef.markForCheck())};emptyCellDragDrop=i=>{let e=this.getValidItemFromEvent(i);e&&(this.gridster.options.emptyCellDropCallback&&this.gridster.options.emptyCellDropCallback(i,e),this.gridster.cdRef.markForCheck())};emptyCellDragOver=i=>{i.preventDefault(),i.stopPropagation();let e=this.getValidItemFromEvent(i);e?(i.dataTransfer&&(i.dataTransfer.dropEffect="move"),this.gridster.movingItem=e):(i.dataTransfer&&(i.dataTransfer.dropEffect="none"),this.gridster.movingItem=null),this.gridster.previewStyle()};emptyCellMouseDown=i=>{if(ft.checkContentClassForEmptyCellClickEvent(this.gridster,i))return;i.preventDefault(),i.stopPropagation();let e=this.getValidItemFromEvent(i);!e||i.buttons!==1&&!(i instanceof TouchEvent)||(this.initialItem=e,this.gridster.movingItem=e,this.gridster.previewStyle(),this.removeWindowMousemoveListenerFn=this.gridster.renderer.listen("window","mousemove",this.emptyCellMouseMove),this.removeWindowTouchmoveListenerFn=this.gridster.renderer.listen("window","touchmove",this.emptyCellMouseMove),this.removeWindowMouseupListenerFn=this.gridster.renderer.listen("window","mouseup",this.emptyCellMouseUp),this.removeWindowTouchendListenerFn=this.gridster.renderer.listen("window","touchend",this.emptyCellMouseUp))};emptyCellMouseMove=i=>{i.preventDefault(),i.stopPropagation();let e=this.getValidItemFromEvent(i,this.initialItem);e&&(this.gridster.movingItem=e,this.gridster.previewStyle())};emptyCellMouseUp=i=>{this.removeWindowMousemoveListenerFn(),this.removeWindowTouchmoveListenerFn(),this.removeWindowMouseupListenerFn(),this.removeWindowTouchendListenerFn();let e=this.getValidItemFromEvent(i,this.initialItem);e&&(this.gridster.movingItem=e),this.gridster.options.emptyCellDragCallback&&this.gridster.movingItem&&this.gridster.options.emptyCellDragCallback(i,this.gridster.movingItem),setTimeout(()=>{this.initialItem=null,this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())}),this.gridster.cdRef.markForCheck()};getPixelsX(i,e){let t=this.gridster.options.scale;return t?(i.clientX-e.left)/t+this.gridster.el.scrollLeft-this.gridster.gridRenderer.getLeftMargin():i.clientX+this.gridster.el.scrollLeft-e.left-this.gridster.gridRenderer.getLeftMargin()}getPixelsY(i,e){let t=this.gridster.options.scale;return t?(i.clientY-e.top)/t+this.gridster.el.scrollTop-this.gridster.gridRenderer.getTopMargin():i.clientY+this.gridster.el.scrollTop-e.top-this.gridster.gridRenderer.getTopMargin()}getValidItemFromEvent(i,e){i.preventDefault(),i.stopPropagation(),ft.checkTouchEvent(i);let t=this.gridster.el.getBoundingClientRect(),n=this.getPixelsX(i,t),r=this.getPixelsY(i,t),s={x:this.gridster.pixelsToPositionX(n,Math.floor,!0),y:this.gridster.pixelsToPositionY(r,Math.floor,!0),cols:this.gridster.$options.defaultItemCols,rows:this.gridster.$options.defaultItemRows};if(e&&(s.cols=Math.min(Math.abs(e.x-s.x)+1,this.gridster.$options.emptyCellDragMaxCols),s.rows=Math.min(Math.abs(e.y-s.y)+1,this.gridster.$options.emptyCellDragMaxRows),e.xthis.gridster.$options.emptyCellDragMaxCols-1&&(s.x=this.gridster.movingItem?this.gridster.movingItem.x:0),e.ythis.gridster.$options.emptyCellDragMaxRows-1&&(s.y=this.gridster.movingItem?this.gridster.movingItem.y:0)),!(!this.gridster.$options.enableOccupiedCellDrop&&this.gridster.checkCollision(s)))return s}},kc=class{gridster;lastGridColumnStyles={};lastGridRowStyles={};constructor(i){this.gridster=i}destroy(){this.gridster=null}updateItem(i,e,t){if(this.gridster.mobile)this.clearCellPosition(t,i),this.gridster.$options.keepFixedHeightInMobile?t.setStyle(i,"height",(e.rows-1)*this.gridster.$options.margin+e.rows*this.gridster.$options.fixedRowHeight+"px"):t.setStyle(i,"height",e.rows*this.gridster.curWidth/e.cols+"px"),this.gridster.$options.keepFixedWidthInMobile?t.setStyle(i,"width",this.gridster.$options.fixedColWidth+"px"):t.setStyle(i,"width",""),t.setStyle(i,"margin-bottom",this.gridster.$options.margin+"px"),t.setStyle(i,ot.LTR?"margin-right":"margin-left","");else{let n=Math.round(this.gridster.curColWidth*e.x),r=Math.round(this.gridster.curRowHeight*e.y),s=this.gridster.curColWidth*e.cols-this.gridster.$options.margin,a=this.gridster.curRowHeight*e.rows-this.gridster.$options.margin;this.setCellPosition(t,i,n,r),t.setStyle(i,"width",s+"px"),t.setStyle(i,"height",a+"px");let c=null,p=null;this.gridster.$options.outerMargin&&(this.gridster.rows===e.rows+e.y&&(this.gridster.$options.outerMarginBottom!==null?c=this.gridster.$options.outerMarginBottom+"px":c=this.gridster.$options.margin+"px"),this.gridster.columns===e.cols+e.x&&(this.gridster.$options.outerMarginBottom!==null?p=this.gridster.$options.outerMarginRight+"px":p=this.gridster.$options.margin+"px")),t.setStyle(i,"margin-bottom",c),t.setStyle(i,ot.LTR?"margin-right":"margin-left",p)}}updateGridster(){let i="",e="",t="",n="";if(this.gridster.$options.gridType===P.Fit)i=P.Fit,e=P.ScrollVertical,t=P.ScrollHorizontal,n=P.Fixed;else if(this.gridster.$options.gridType===P.ScrollVertical)this.gridster.curRowHeight=this.gridster.curColWidth*this.gridster.$options.rowHeightRatio,i=P.ScrollVertical,e=P.Fit,t=P.ScrollHorizontal,n=P.Fixed;else if(this.gridster.$options.gridType===P.ScrollHorizontal){let r=this.gridster.$options.rowHeightRatio,s=r>=1?r:r+1;this.gridster.curColWidth=this.gridster.curRowHeight*s,i=P.ScrollHorizontal,e=P.Fit,t=P.ScrollVertical,n=P.Fixed}else this.gridster.$options.gridType===P.Fixed?(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=P.Fixed,e=P.Fit,t=P.ScrollVertical,n=P.ScrollHorizontal):this.gridster.$options.gridType===P.VerticalFixed?(this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=P.ScrollVertical,e=P.Fit,t=P.ScrollHorizontal,n=P.Fixed):this.gridster.$options.gridType===P.HorizontalFixed&&(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=P.ScrollHorizontal,e=P.Fit,t=P.ScrollVertical,n=P.Fixed);this.gridster.mobile||this.gridster.$options.setGridSize&&this.gridster.$options.gridType!==P.Fit?this.gridster.renderer.removeClass(this.gridster.el,i):this.gridster.renderer.addClass(this.gridster.el,i),this.gridster.renderer.removeClass(this.gridster.el,e),this.gridster.renderer.removeClass(this.gridster.el,t),this.gridster.renderer.removeClass(this.gridster.el,n)}getGridColumnStyle(i){let e={left:this.gridster.curColWidth*i,width:this.gridster.curColWidth-this.gridster.$options.margin,height:this.gridster.gridRows.length*this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};e.style=re(k({},this.getLeftPosition(e.left)),{width:e.width+"px",height:e.height+"px"});let t=this.lastGridColumnStyles[i];return t&&t.left===e.left&&t.width===e.width&&t.height===e.height?t.style:(this.lastGridColumnStyles[i]=e,e.style)}getGridRowStyle(i){let e={top:this.gridster.curRowHeight*i,width:this.gridster.gridColumns.length*this.gridster.curColWidth+this.gridster.$options.margin,height:this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};e.style=re(k({},this.getTopPosition(e.top)),{width:e.width+"px",height:e.height+"px"});let t=this.lastGridRowStyles[i];return t&&t.top===e.top&&t.width===e.width&&t.height===e.height?t.style:(this.lastGridRowStyles[i]=e,e.style)}getLeftPosition(i){let e=this.gridster.$options.dirType===ot.RTL?-i:i;return this.gridster.$options.useTransformPositioning?{transform:"translateX("+e+"px)"}:{left:this.getLeftMargin()+e+"px"}}getTopPosition(i){return this.gridster.$options.useTransformPositioning?{transform:"translateY("+i+"px)"}:{top:this.getTopMargin()+i+"px"}}clearCellPosition(i,e){this.gridster.$options.useTransformPositioning?i.setStyle(e,"transform",""):(i.setStyle(e,"top",""),i.setStyle(e,"left",""))}setCellPosition(i,e,t,n){let r=this.gridster.$options.dirType===ot.RTL?-t:t;if(this.gridster.$options.useTransformPositioning){let s="translate3d("+r+"px, "+n+"px, 0)";i.setStyle(e,"transform",s)}else i.setStyle(e,"left",this.getLeftMargin()+r+"px"),i.setStyle(e,"top",this.getTopMargin()+n+"px")}getLeftMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginLeft!==null?this.gridster.$options.outerMarginLeft:this.gridster.$options.margin:0}getTopMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginTop!==null?this.gridster.$options.outerMarginTop:this.gridster.$options.margin:0}},ry=(()=>{class o{renderer;previewStyle$;gridRenderer;el;sub;constructor(e,t){this.renderer=t,this.el=e.nativeElement}ngOnInit(){this.sub=this.previewStyle$.subscribe(e=>this.previewStyle(e))}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}previewStyle(e){e?(this.renderer.setStyle(this.el,"display","block"),this.gridRenderer.updateItem(this.el,e,this.renderer)):this.renderer.setStyle(this.el,"display","")}static \u0275fac=function(t){return new(t||o)(Q(W),Q(jt))};static \u0275cmp=E({type:o,selectors:[["gridster-preview"]],inputs:{previewStyle$:"previewStyle$",gridRenderer:"gridRenderer"},decls:0,vars:0,template:function(t,n){},styles:[`gridster-preview{position:absolute;display:none;background:#00000026} +`],encapsulation:2})}return o})(),se=(()=>{class o{renderer;cdRef;options;movingItem;el;$options;mobile;curWidth;curHeight;grid;columns=0;rows=0;curColWidth;curRowHeight;gridColumns=[];gridRows=[];windowResize;dragInProgress;emptyCell;compact;gridRenderer;previewStyle$=new U;calculateLayout$=new N;resize$=new N;destroy$=new N;constructor(e,t,n){this.renderer=t,this.cdRef=n,this.el=e.nativeElement,this.$options=JSON.parse(JSON.stringify(oy)),this.mobile=!1,this.curWidth=0,this.curHeight=0,this.grid=[],this.curColWidth=0,this.curRowHeight=0,this.dragInProgress=!1,this.emptyCell=new Cc(this),this.compact=new wc(this),this.gridRenderer=new kc(this)}static checkCollisionTwoItemsForSwaping(e,t){let n=e.cols===1?0:1,r=t.cols===1?0:1,s=e.rows===1?0:1,a=t.rows===1?0:1;return e.x+nt.x+r&&e.y+st.y+a}checkCollisionTwoItems(e,t){if(!(e.xt.x&&e.yt.y))return!1;if(!this.$options.allowMultiLayer)return!0;let r=this.$options.defaultLayerIndex,s=e.layerIndex===void 0?r:e.layerIndex,a=t.layerIndex===void 0?r:t.layerIndex;return s===a}ngOnInit(){this.options.initCallback&&this.options.initCallback(this),this.calculateLayout$.pipe(ki(0),Ce(this.destroy$)).subscribe(()=>this.calculateLayout()),this.resize$.pipe($e(()=>_r(100)),Ce(this.destroy$)).subscribe(()=>this.resize())}ngOnChanges(e){e.options&&(this.setOptions(),this.options.api={optionsChanged:this.optionsChanged,resize:this.onResize,getNextPossiblePosition:this.getNextPossiblePosition,getFirstPossiblePosition:this.getFirstPossiblePosition,getLastPossiblePosition:this.getLastPossiblePosition,getItemComponent:t=>this.getItemComponent(t)},this.columns=this.$options.minCols,this.rows=this.$options.minRows+this.$options.addEmptyRowsCount,this.setGridSize(),this.calculateLayout())}resize(){let e,t;this.$options.gridType==="fit"&&!this.mobile?(t=this.el.offsetWidth,e=this.el.offsetHeight):(t=this.el.clientWidth,e=this.el.clientHeight),(t!==this.curWidth||e!==this.curHeight)&&this.checkIfToResize()&&this.onResize()}setOptions(){this.$options=ft.merge(this.$options,this.options,this.$options),!this.$options.disableWindowResize&&!this.windowResize?this.windowResize=this.renderer.listen("window","resize",this.onResize):this.$options.disableWindowResize&&this.windowResize&&(this.windowResize(),this.windowResize=null),this.emptyCell.updateOptions()}optionsChanged=()=>{this.setOptions();let e=this.grid.length-1,t;for(;e>=0;e--)t=this.grid[e],t.updateOptions();this.calculateLayout()};ngOnDestroy(){this.destroy$.next(),this.previewStyle$.complete(),this.windowResize&&this.windowResize(),this.options&&this.options.destroyCallback&&this.options.destroyCallback(this),this.options&&this.options.api&&(this.options.api.resize=void 0,this.options.api.optionsChanged=void 0,this.options.api.getNextPossiblePosition=void 0,this.options.api=void 0),this.emptyCell.destroy(),this.emptyCell=null,this.compact.destroy(),this.compact=null}onResize=()=>{this.el.clientWidth&&(this.options.setGridSize&&(this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.setGridSize(),this.calculateLayout())};checkIfToResize(){let e=this.el.clientWidth,t=this.el.offsetWidth,n=this.el.scrollWidth,r=this.el.clientHeight,s=this.el.offsetHeight,a=this.el.scrollHeight,c=es&&a-st&&n-tdocument.body.clientWidth:this.$options.mobileBreakpoint>this.curWidth}setGridSize(){let e=this.el,t,n;this.$options.setGridSize||this.$options.gridType===P.Fit&&!this.mobile?(t=e.offsetWidth,n=e.offsetHeight):(t=e.clientWidth,n=e.clientHeight),this.curWidth=t,this.curHeight=n}setGridDimensions(){this.setGridSize(),!this.mobile&&this.checkIfMobile()?(this.mobile=!this.mobile,this.renderer.addClass(this.el,"mobile")):this.mobile&&!this.checkIfMobile()&&(this.mobile=!this.mobile,this.renderer.removeClass(this.el,"mobile"));let e=this.$options.minRows,t=this.$options.minCols,n=this.grid.length-1,r;for(;n>=0;n--)r=this.grid[n],r.notPlaced||(e=Math.max(e,r.$item.y+r.$item.rows),t=Math.max(t,r.$item.x+r.$item.cols));e+=this.$options.addEmptyRowsCount,(this.columns!==t||this.rows!==e)&&(this.columns=t,this.rows=e,this.options.gridSizeChangedCallback&&this.options.gridSizeChangedCallback(this))}calculateLayout(){if(this.compact&&this.compact.checkCompact(),this.setGridDimensions(),this.$options.outerMargin){let n=-this.$options.margin;this.$options.outerMarginLeft!==null?(n+=this.$options.outerMarginLeft,this.renderer.setStyle(this.el,"padding-left",this.$options.outerMarginLeft+"px")):(n+=this.$options.margin,this.renderer.setStyle(this.el,"padding-left",this.$options.margin+"px")),this.$options.outerMarginRight!==null?(n+=this.$options.outerMarginRight,this.renderer.setStyle(this.el,"padding-right",this.$options.outerMarginRight+"px")):(n+=this.$options.margin,this.renderer.setStyle(this.el,"padding-right",this.$options.margin+"px")),this.curColWidth=(this.curWidth-n)/this.columns;let r=-this.$options.margin;this.$options.outerMarginTop!==null?(r+=this.$options.outerMarginTop,this.renderer.setStyle(this.el,"padding-top",this.$options.outerMarginTop+"px")):(r+=this.$options.margin,this.renderer.setStyle(this.el,"padding-top",this.$options.margin+"px")),this.$options.outerMarginBottom!==null?(r+=this.$options.outerMarginBottom,this.renderer.setStyle(this.el,"padding-bottom",this.$options.outerMarginBottom+"px")):(r+=this.$options.margin,this.renderer.setStyle(this.el,"padding-bottom",this.$options.margin+"px")),this.curRowHeight=(this.curHeight-r)/this.rows*this.$options.rowHeightRatio}else this.curColWidth=(this.curWidth+this.$options.margin)/this.columns,this.curRowHeight=(this.curHeight+this.$options.margin)/this.rows*this.$options.rowHeightRatio,this.renderer.setStyle(this.el,"padding-left","0px"),this.renderer.setStyle(this.el,"padding-right","0px"),this.renderer.setStyle(this.el,"padding-top","0px"),this.renderer.setStyle(this.el,"padding-bottom","0px");this.gridRenderer.updateGridster(),this.$options.setGridSize?(this.renderer.addClass(this.el,"gridSize"),this.mobile||(this.renderer.setStyle(this.el,"width",this.columns*this.curColWidth+this.$options.margin+"px"),this.renderer.setStyle(this.el,"height",this.rows*this.curRowHeight+this.$options.margin+"px"))):(this.renderer.removeClass(this.el,"gridSize"),this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.updateGrid();let e=this.grid.length-1,t;for(;e>=0;e--)t=this.grid[e],t.setSize(),t.drag.toggle(),t.resize.toggle();this.resize$.next()}updateGrid(){this.$options.displayGrid==="always"&&!this.mobile?this.renderer.addClass(this.el,"display-grid"):this.$options.displayGrid==="onDrag&Resize"&&this.dragInProgress?this.renderer.addClass(this.el,"display-grid"):(this.$options.displayGrid==="none"||!this.dragInProgress||this.mobile)&&this.renderer.removeClass(this.el,"display-grid"),this.setGridDimensions(),this.gridColumns.length=o.getNewArrayLength(this.columns,this.curWidth,this.curColWidth),this.gridRows.length=o.getNewArrayLength(this.rows,this.curHeight,this.curRowHeight),this.cdRef.markForCheck()}addItem(e){e.$item.cols===void 0&&(e.$item.cols=this.$options.defaultItemCols,e.item.cols=e.$item.cols,e.itemChanged()),e.$item.rows===void 0&&(e.$item.rows=this.$options.defaultItemRows,e.item.rows=e.$item.rows,e.itemChanged()),e.$item.x===-1||e.$item.y===-1?this.autoPositionItem(e):this.checkCollision(e.$item)&&(this.$options.disableWarnings||(e.notPlaced=!0,console.warn("Can't be placed in the bounds of the dashboard, trying to auto position!/n"+JSON.stringify(e.item,["cols","rows","x","y"]))),this.$options.disableAutoPositionOnConflict?e.notPlaced=!0:this.autoPositionItem(e)),this.grid.push(e),this.calculateLayout$.next()}removeItem(e){this.grid.splice(this.grid.indexOf(e),1),this.calculateLayout$.next(),this.options.itemRemovedCallback&&this.options.itemRemovedCallback(e.item,e)}checkCollision(e){let t=!1;if(this.options.itemValidateCallback&&(t=!this.options.itemValidateCallback(e)),!t&&this.checkGridCollision(e)&&(t=!0),!t){let n=this.findItemWithItem(e);n&&(t=n)}return t}checkGridCollision(e){let t=e.y>-1&&e.x>-1,n=e.cols+e.x<=this.$options.maxCols,r=e.rows+e.y<=this.$options.maxRows,s=e.maxItemCols===void 0?this.$options.maxItemCols:e.maxItemCols,a=e.minItemCols===void 0?this.$options.minItemCols:e.minItemCols,c=e.maxItemRows===void 0?this.$options.maxItemRows:e.maxItemRows,p=e.minItemRows===void 0?this.$options.minItemRows:e.minItemRows,_=e.cols<=s&&e.cols>=a,y=e.rows<=c&&e.rows>=p,I=e.minItemArea===void 0?this.$options.minItemArea:e.minItemArea,S=e.maxItemArea===void 0?this.$options.maxItemArea:e.maxItemArea,A=e.cols*e.rows,T=I<=A,z=S>=A;return!(t&&n&&r&&_&&y&&T&&z)}findItemWithItem(e){let t=0,n;for(;t{e.cols===-1&&(e.cols=this.$options.defaultItemCols),e.rows===-1&&(e.rows=this.$options.defaultItemRows),this.setGridDimensions();let n=t.y||0,r;for(;n=this.rows+e.rows,a=this.$options.maxCols>=this.columns+e.cols;return!(this.rows<=this.columns&&s)&&a?(e.x=this.columns,e.y=0,!0):s?(e.y=this.rows,e.x=0,!0):!1};getFirstPossiblePosition=e=>{let t=Object.assign({},e);return this.getNextPossiblePosition(t),t};getLastPossiblePosition=e=>{let t={y:0,x:0};t=this.grid.reduce((r,s)=>{let a={y:s.$item.y+s.$item.rows-1,x:s.$item.x+s.$item.cols-1};return ft.compareItems(r,a)===1?a:r},t);let n=Object.assign({},e);return this.getNextPossiblePosition(n,t),n};pixelsToPositionX(e,t,n){let r=t(e/this.curColWidth);return n?r:Math.max(r,0)}pixelsToPositionY(e,t,n){let r=t(e/this.curRowHeight);return n?r:Math.max(r,0)}positionXToPixels(e){return e*this.curColWidth}positionYToPixels(e){return e*this.curRowHeight}getItemComponent(e){return this.grid.find(t=>t.item===e)}checkCollisionForSwaping(e){let t=!1;if(this.options.itemValidateCallback&&(t=!this.options.itemValidateCallback(e)),!t&&this.checkGridCollision(e)&&(t=!0),!t){let n=this.findItemWithItemForSwapping(e);n&&(t=n)}return t}findItemWithItemForSwapping(e){let t=this.grid.length-1,n;for(;t>-1;t--)if(n=this.grid[t],n.$item!==e&&o.checkCollisionTwoItemsForSwaping(n.$item,e))return n;return!1}previewStyle(e=!1){this.movingItem?(this.compact&&e&&this.compact.checkCompactItem(this.movingItem),this.previewStyle$.next(this.movingItem)):this.previewStyle$.next(null)}static getNewArrayLength(e,t,n){let r=Math.max(e,Math.floor(t/n));return r<0?0:Number.isFinite(r)?Math.floor(r):0}static \u0275fac=function(t){return new(t||o)(Q(W),Q(jt),Q(He))};static \u0275cmp=E({type:o,selectors:[["gridster"]],inputs:{options:"options"},features:[ze],ngContentSelectors:wu,decls:6,vars:2,consts:[[1,"gridster-column",3,"ngStyle"],[1,"gridster-row",3,"ngStyle"],[1,"gridster-preview",3,"gridRenderer","previewStyle$"]],template:function(t,n){t&1&&(Te(),ie(0,qv,1,1,"div",0,ka),ie(2,Xv,1,1,"div",1,ka),H(4),D(5,"gridster-preview",2)),t&2&&(ne(n.gridColumns),h(2),ne(n.gridRows),h(3),M("gridRenderer",n.gridRenderer)("previewStyle$",n.previewStyle$))},dependencies:[Dd,ry],styles:[`gridster{position:relative;box-sizing:border-box;background:gray;width:100%;height:100%;-webkit-user-select:none;user-select:none;display:block}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto}gridster.mobile gridster-item{position:relative}gridster.gridSize{height:initial;width:initial}gridster.gridSize.fit{height:100%;width:100%}gridster .gridster-column,gridster .gridster-row{position:absolute;display:none;transition:.3s;box-sizing:border-box}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid white;border-right:1px solid white}gridster .gridster-row{border-top:1px solid white;border-bottom:1px solid white} +`],encapsulation:2})}return o})(),qn=class{fromSouth;fromNorth;fromEast;fromWest;pushedItems;pushedItemsTemp;pushedItemsTempPath;pushedItemsPath;gridsterItem;gridster;pushedItemsOrder;tryPattern;iteration=0;constructor(i){this.pushedItems=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],this.pushedItemsPath=[],this.gridsterItem=i,this.gridster=i.gridster,this.tryPattern={fromEast:[this.tryWest,this.trySouth,this.tryNorth,this.tryEast],fromWest:[this.tryEast,this.trySouth,this.tryNorth,this.tryWest],fromNorth:[this.trySouth,this.tryEast,this.tryWest,this.tryNorth],fromSouth:[this.tryNorth,this.tryEast,this.tryWest,this.trySouth]},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){this.gridster=this.gridsterItem=null}pushItems(i,e){if(this.gridster.$options.pushItems&&!e){this.pushedItemsOrder=[],this.iteration=0;let t=this.push(this.gridsterItem,i);return t||this.restoreTempItems(),this.pushedItemsOrder=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],t}else return!1}restoreTempItems(){let i=this.pushedItemsTemp.length-1;for(;i>-1;i--)this.removeFromTempPushed(this.pushedItemsTemp[i])}restoreItems(){let i=0,e=this.pushedItems.length,t;for(;i-1;i--)this.checkPushedItem(this.pushedItems[i],i)&&(e=!0);e&&this.checkPushBack()}push(i,e){if(this.iteration>100)return console.warn("max iteration reached"),!1;if(this.gridster.checkGridCollision(i.$item)||e==="")return!1;let t=this.gridster.findItemsWithItem(i.$item),n=e===this.fromNorth||e===this.fromWest;t.sort((p,_)=>n?_.$item.y-p.$item.y||_.$item.x-p.$item.x:p.$item.y-_.$item.y||p.$item.x-_.$item.x);let r=0,s,a=!0,c=[];for(;r-1&&this.pushedItemsTempPath[p].length>10){a=!1;break}if(this.tryPattern[e][0].call(this,s,i))this.pushedItemsOrder.push(s),c.push(s);else if(this.tryPattern[e][1].call(this,s,i))this.pushedItemsOrder.push(s),c.push(s);else if(this.tryPattern[e][2].call(this,s,i))this.pushedItemsOrder.push(s),c.push(s);else if(this.tryPattern[e][3].call(this,s,i))this.pushedItemsOrder.push(s),c.push(s);else{a=!1;break}}if(!a&&(r=this.pushedItemsOrder.lastIndexOf(c[0]),r>-1)){let p=this.pushedItemsOrder.length-1;for(;p>=r;p--)s=this.pushedItemsOrder[p],this.pushedItemsOrder.pop(),this.removeFromTempPushed(s),this.removeFromPushedItem(s)}return this.iteration++,a}trySouth(i,e){return this.gridster.$options.pushDirections.south?(this.addToTempPushed(i),i.$item.y=e.$item.y+e.$item.rows,this.push(i,this.fromNorth)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}tryNorth(i,e){return this.gridster.$options.pushDirections.north?(this.addToTempPushed(i),i.$item.y=e.$item.y-i.$item.rows,this.push(i,this.fromSouth)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}tryEast(i,e){return this.gridster.$options.pushDirections.east?(this.addToTempPushed(i),i.$item.x=e.$item.x+e.$item.cols,this.push(i,this.fromWest)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}tryWest(i,e){return this.gridster.$options.pushDirections.west?(this.addToTempPushed(i),i.$item.x=e.$item.x-i.$item.cols,this.push(i,this.fromEast)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}addToTempPushed(i){let e=this.pushedItemsTemp.indexOf(i);e===-1&&(e=this.pushedItemsTemp.push(i)-1,this.pushedItemsTempPath[e]=[]),this.pushedItemsTempPath[e].push({x:i.$item.x,y:i.$item.y})}removeFromTempPushed(i){let e=this.pushedItemsTemp.indexOf(i),t=this.pushedItemsTempPath[e].pop();t&&(i.$item.x=t.x,i.$item.y=t.y,i.setSize(),this.pushedItemsTempPath[e].length||(this.pushedItemsTemp.splice(e,1),this.pushedItemsTempPath.splice(e,1)))}addToPushed(i){if(this.pushedItems.indexOf(i)<0)this.pushedItems.push(i),this.pushedItemsPath.push([{x:i.item.x||0,y:i.item.y||0},{x:i.$item.x,y:i.$item.y}]);else{let e=this.pushedItems.indexOf(i);this.pushedItemsPath[e].push({x:i.$item.x,y:i.$item.y})}}removeFromPushed(i){i>-1&&(this.pushedItems.splice(i,1),this.pushedItemsPath.splice(i,1))}removeFromPushedItem(i){let e=this.pushedItems.indexOf(i);e>-1&&(this.pushedItemsPath[e].pop(),this.pushedItemsPath.length||(this.pushedItems.splice(e,1),this.pushedItemsPath.splice(e,1)))}checkPushedItem(i,e){let t=this.pushedItemsPath[e],n=t.length-2,r,s,a,c=!1;for(;n>-1;n--)r=t[n],s=i.$item.x,a=i.$item.y,i.$item.x=r.x,i.$item.y=r.y,this.gridster.findItemWithItem(i.$item)?(i.$item.x=s,i.$item.y=a):(i.setSize(),t.splice(n+1,t.length-n-1),c=!0);return t.length<2&&this.removeFromPushed(e),c}},Jo,hn,Cu=50,Lt,er,xi,tr,ir,nr,or;function ku(o,i,e,t,n,r,s,a,c,p){Jo=o.$options.scrollSensitivity,hn=o.$options.scrollSpeed,Lt=o.el,er=c,xi=p;let _=Lt.offsetWidth,y=Lt.offsetHeight,I=Lt.scrollLeft,S=Lt.scrollTop,A=e-S,T=y+S-e-n,{clientX:z,clientY:Le}=r;if(!o.$options.disableScrollVertical)if(s.clientYLe&&S>0&&Az&&I>0&&we{(!Lt||o===-1&&Lt.scrollTop-hn<0)&&Dc(),Lt.scrollTop+=o*hn,t+=o*hn,i({clientX:e.clientX,clientY:t})},Cu)}function xu(o,i,e){let t=e.clientX;return window.setInterval(()=>{(!Lt||o===-1&&Lt.scrollLeft-hn<0)&&Tc(),Lt.scrollLeft+=o*hn,t+=o*hn,i({clientX:t,clientY:e.clientY})},Cu)}function Mu(){Tc(),Dc(),Lt=null}function Tc(){Iu(),Eu()}function Dc(){Tu(),Su()}function Iu(){tr&&(clearInterval(tr),tr=0)}function Eu(){ir&&(clearInterval(ir),ir=0)}function Su(){or&&(clearInterval(or),or=0)}function Tu(){nr&&(clearInterval(nr),nr=0)}var Mc=class{swapedItem;gridsterItem;gridster;constructor(i){this.gridsterItem=i,this.gridster=i.gridster}destroy(){this.gridster=this.gridsterItem=this.swapedItem=null}swapItems(){this.gridster.$options.swap&&(this.checkSwapBack(),this.checkSwap(this.gridsterItem))}checkSwapBack(){if(this.swapedItem){let i=this.swapedItem.$item.x,e=this.swapedItem.$item.y;this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.gridster.checkCollision(this.swapedItem.$item)?(this.swapedItem.$item.x=i,this.swapedItem.$item.y=e):(this.swapedItem.setSize(),this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.swapedItem=void 0)}}restoreSwapItem(){this.swapedItem&&(this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.swapedItem.setSize(),this.swapedItem=void 0)}setSwapItem(){this.swapedItem&&(this.swapedItem.checkItemChanges(this.swapedItem.$item,this.swapedItem.item),this.swapedItem=void 0)}checkSwap(i){let e;if(this.gridster.$options.swapWhileDragging?e=this.gridster.checkCollisionForSwaping(i.$item):e=this.gridster.checkCollision(i.$item),e&&e!==!0&&e.canBeDragged()){let t=e,n=t.$item.x,r=t.$item.y,s=i.$item.x,a=i.$item.y,c=s-n,p=a-r;t.$item.x=i.item.x-c,t.$item.y=i.item.y-p,i.$item.x=t.item.x+c,i.$item.y=t.item.y+p,this.gridster.checkCollision(t.$item)||this.gridster.checkCollision(i.$item)?(i.$item.x=s,i.$item.y=a,t.$item.x=n,t.$item.y=r):(t.setSize(),this.swapedItem=t,this.gridster.$options.swapWhileDragging&&(this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.setSwapItem()))}}},sy="gridster-item-resizable-handler",Tt=function(o){return o.UP="UP",o.DOWN="DOWN",o.LEFT="LEFT",o.RIGHT="RIGHT",o}(Tt||{}),Ic=class{gridsterItem;gridster;cdRef;lastMouse;offsetLeft;offsetTop;margin;outerMarginTop;outerMarginRight;outerMarginBottom;outerMarginLeft;diffTop;diffLeft;originalClientX;originalClientY;top;left;height;width;positionX;positionY;positionXBackup;positionYBackup;enabled;mousemove;mouseup;mouseleave;cancelOnBlur;touchmove;touchend;touchcancel;mousedown;touchstart;push;swap;path;collision=!1;constructor(i,e,t){this.gridsterItem=i,this.gridster=e,this.cdRef=t,this.lastMouse={clientX:0,clientY:0},this.path=[]}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(!0),this.gridsterItem=this.gridster=this.collision=null,this.mousedown&&(this.mousedown(),this.touchstart())}dragStart(i){i.which&&i.which!==1||(this.gridster.options.draggable&&this.gridster.options.draggable.start&&this.gridster.options.draggable.start(this.gridsterItem.item,this.gridsterItem,i),i.stopPropagation(),i.preventDefault(),this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragMove),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragMove),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStop),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStop),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStop),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStop),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStop),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-moving"),this.margin=this.gridster.$options.margin,this.outerMarginTop=this.gridster.$options.outerMarginTop,this.outerMarginRight=this.gridster.$options.outerMarginRight,this.outerMarginBottom=this.gridster.$options.outerMarginBottom,this.outerMarginLeft=this.gridster.$options.outerMarginLeft,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.left=this.gridsterItem.left-this.margin,this.top=this.gridsterItem.top-this.margin,this.originalClientX=i.clientX,this.originalClientY=i.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.gridster.$options.dirType===ot.RTL?this.diffLeft=i.clientX-this.gridster.el.scrollWidth+this.gridsterItem.left:this.diffLeft=i.clientX+this.offsetLeft-this.margin-this.left,this.diffTop=i.clientY+this.offsetTop-this.margin-this.top,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(!0),this.push=new qn(this.gridsterItem),this.swap=new Mc(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid(),this.path.push({x:this.gridsterItem.item.x||0,y:this.gridsterItem.item.y||0}))}dragMove=i=>{i.stopPropagation(),i.preventDefault(),ft.checkTouchEvent(i);let e=this.getDirections(i);this.gridster.options.enableBoundaryControl&&(e.includes(Tt.UP)&&this.gridsterItem.el.getBoundingClientRect().topt!=Tt.UP),i=new MouseEvent(i.type,{clientX:i.clientX,clientY:this.lastMouse.clientY})),e.includes(Tt.LEFT)&&this.gridsterItem.el.getBoundingClientRect().leftt!=Tt.LEFT),i=new MouseEvent(i.type,{clientX:this.lastMouse.clientX,clientY:i.clientY})),e.includes(Tt.RIGHT)&&this.gridsterItem.el.getBoundingClientRect().right>this.gridster.el.getBoundingClientRect().right-(this.outerMarginRight??this.margin)&&(e=e.filter(t=>t!=Tt.RIGHT),i=new MouseEvent(i.type,{clientX:this.lastMouse.clientX,clientY:i.clientY})),e.includes(Tt.DOWN)&&this.gridsterItem.el.getBoundingClientRect().bottom>this.gridster.el.getBoundingClientRect().bottom-(this.outerMarginBottom??this.margin)&&(e=e.filter(t=>t!=Tt.DOWN),i=new MouseEvent(i.type,{clientX:i.clientX,clientY:this.lastMouse.clientY}))),e.length&&(this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,ku(this.gridster,this.left,this.top,this.width,this.height,i,this.lastMouse,this.calculateItemPositionFromMousePosition),this.calculateItemPositionFromMousePosition(i))};calculateItemPositionFromMousePosition=i=>{this.gridster.options.scale?this.calculateItemPositionWithScale(i,this.gridster.options.scale):this.calculateItemPositionWithoutScale(i),this.calculateItemPosition(),this.lastMouse.clientX=i.clientX,this.lastMouse.clientY=i.clientY,this.gridster.updateGrid()};calculateItemPositionWithScale(i,e){this.gridster.$options.dirType===ot.RTL?this.left=this.gridster.el.scrollWidth-this.originalClientX+(i.clientX-this.originalClientX)/e+this.diffLeft:this.left=this.originalClientX+(i.clientX-this.originalClientX)/e+this.offsetLeft-this.diffLeft,this.top=this.originalClientY+(i.clientY-this.originalClientY)/e+this.offsetTop-this.diffTop}calculateItemPositionWithoutScale(i){this.gridster.$options.dirType===ot.RTL?this.left=this.gridster.el.scrollWidth-i.clientX+this.diffLeft:this.left=i.clientX+this.offsetLeft-this.diffLeft,this.top=i.clientY+this.offsetTop-this.diffTop}dragStop=i=>{i.stopPropagation(),i.preventDefault(),Mu(),this.cancelOnBlur(),this.mousemove(),this.mouseup(),this.mouseleave(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-moving"),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.path=[],this.gridster.options.draggable&&this.gridster.options.draggable.stop?Promise.resolve(this.gridster.options.draggable.stop(this.gridsterItem.item,this.gridsterItem,i)).then(this.makeDrag,this.cancelDrag):this.makeDrag(),setTimeout(()=>{this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle(!0),this.cdRef.markForCheck())})};cancelDrag=()=>{this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push&&this.push.restoreItems(),this.swap&&this.swap.restoreSwapItem(),this.push&&(this.push.destroy(),this.push=null),this.swap&&(this.swap.destroy(),this.swap=null)};makeDrag=()=>{this.gridster.$options.draggable.dropOverItems&&this.gridster.options.draggable&&this.gridster.options.draggable.dropOverItemsCallback&&this.collision&&this.collision!==!0&&this.collision.$item&&this.gridster.options.draggable.dropOverItemsCallback(this.gridsterItem.item,this.collision.item,this.gridster),this.collision=!1,this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push&&this.push.setPushedItems(),this.swap&&this.swap.setSwapItem(),this.push&&(this.push.destroy(),this.push=null),this.swap&&(this.swap.destroy(),this.swap=null)};calculateItemPosition(){if(this.gridster.movingItem=this.gridsterItem.$item,this.positionX=this.gridster.pixelsToPositionX(this.left,Math.round),this.positionY=this.gridster.pixelsToPositionY(this.top,Math.round),this.positionXBackup=this.gridsterItem.$item.x,this.positionYBackup=this.gridsterItem.$item.y,this.gridsterItem.$item.x=this.positionX,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.x=this.positionXBackup),this.gridsterItem.$item.y=this.positionY,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.y=this.positionYBackup),this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,this.top),this.positionXBackup!==this.gridsterItem.$item.x||this.positionYBackup!==this.gridsterItem.$item.y){let i=this.path[this.path.length-1],e="";i.xthis.gridsterItem.$item.x?e=this.push.fromEast:i.ythis.gridsterItem.$item.y&&(e=this.push.fromSouth),this.push.pushItems(e,this.gridster.$options.disablePushOnDrag),this.swap.swapItems(),this.collision=this.gridster.checkCollision(this.gridsterItem.$item),this.collision?(this.gridsterItem.$item.x=this.positionXBackup,this.gridsterItem.$item.y=this.positionYBackup,this.gridster.$options.draggable.dropOverItems&&this.collision!==!0&&this.collision.$item&&(this.gridster.movingItem=null)):this.path.push({x:this.gridsterItem.$item.x,y:this.gridsterItem.$item.y}),this.push.checkPushBack()}else this.collision=!1;this.gridster.previewStyle(!0)}toggle(){let i=this.gridsterItem.canBeDragged();!this.enabled&&i?(this.enabled=!this.enabled,this.mousedown=this.gridsterItem.renderer.listen(this.gridsterItem.el,"mousedown",this.dragStartDelay),this.touchstart=this.gridsterItem.renderer.listen(this.gridsterItem.el,"touchstart",this.dragStartDelay)):this.enabled&&!i&&(this.enabled=!this.enabled,this.mousedown(),this.touchstart())}dragStartDelay=i=>{if(i.target.classList.contains(sy)||ft.checkContentClassForEvent(this.gridster,i))return;if(ft.checkTouchEvent(i),!this.gridster.$options.draggable.delayStart){this.dragStart(i);return}let t=setTimeout(()=>{this.dragStart(i),y(),this.cdRef.markForCheck()},this.gridster.$options.draggable.delayStart),n=this.gridsterItem.renderer.listen("document","mouseup",y),r=this.gridsterItem.renderer.listen("document","mouseleave",y),s=this.gridsterItem.renderer.listen("window","blur",y),a=this.gridsterItem.renderer.listen("document","touchmove",_),c=this.gridsterItem.renderer.listen("document","touchend",y),p=this.gridsterItem.renderer.listen("document","touchcancel",y);function _(I){ft.checkTouchEvent(I),(Math.abs(I.clientX-i.clientX)>9||Math.abs(I.clientY-i.clientY)>9)&&y()}function y(){clearTimeout(t),s(),n(),r(),a(),c(),p()}};getDirections(i){let e=[];return this.lastMouse.clientX===0&&this.lastMouse.clientY===0&&(this.lastMouse.clientY=i.clientY,this.lastMouse.clientX=i.clientX),this.lastMouse.clientY>i.clientY&&e.push(Tt.UP),this.lastMouse.clientYi.clientX&&e.push(Tt.LEFT),e}},Ec=class{fromSouth;fromNorth;fromEast;fromWest;pushedItems;pushedItemsPath;gridsterItem;gridster;tryPattern;constructor(i){this.pushedItems=[],this.pushedItemsPath=[],this.gridsterItem=i,this.gridster=i.gridster,this.tryPattern={fromEast:this.tryWest,fromWest:this.tryEast,fromNorth:this.trySouth,fromSouth:this.tryNorth},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){this.gridster=this.gridsterItem=null}pushItems(i){return this.gridster.$options.pushResizeItems?this.push(this.gridsterItem,i):!1}restoreItems(){let i=0,e=this.pushedItems.length,t;for(;i-1;i--)this.checkPushedItem(this.pushedItems[i],i)&&(e=!0);e&&this.checkPushBack()}push(i,e){let t=this.gridster.checkCollision(i.$item);if(t&&t!==!0&&t!==this.gridsterItem&&t.canBeResized()){if(this.tryPattern[e].call(this,t,i,e))return!0}else if(t===!1)return!0;return!1}trySouth(i,e,t){let n=i.$item.y,r=i.$item.rows;return i.$item.y=e.$item.y+e.$item.rows,i.$item.rows=r+n-i.$item.y,!this.gridster.checkCollisionTwoItems(i.$item,e.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(e,t),!0):(i.$item.y=n,i.$item.rows=r,!1)}tryNorth(i,e,t){let n=i.$item.rows;return i.$item.rows=e.$item.y-i.$item.y,!this.gridster.checkCollisionTwoItems(i.$item,e.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(e,t),!0):(i.$item.rows=n,!1)}tryEast(i,e,t){let n=i.$item.x,r=i.$item.cols;return i.$item.x=e.$item.x+e.$item.cols,i.$item.cols=r+n-i.$item.x,!this.gridster.checkCollisionTwoItems(i.$item,e.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(e,t),!0):(i.$item.x=n,i.$item.cols=r,!1)}tryWest(i,e,t){let n=i.$item.cols;return i.$item.cols=e.$item.x-i.$item.x,!this.gridster.checkCollisionTwoItems(i.$item,e.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(e,t),!0):(i.$item.cols=n,!1)}addToPushed(i){if(this.pushedItems.indexOf(i)<0)this.pushedItems.push(i),this.pushedItemsPath.push([{x:i.item.x||0,y:i.item.y||0,cols:i.item.cols||0,rows:i.item.rows||0},{x:i.$item.x,y:i.$item.y,cols:i.$item.cols,rows:i.$item.rows}]);else{let e=this.pushedItems.indexOf(i);this.pushedItemsPath[e].push({x:i.$item.x,y:i.$item.y,cols:i.$item.cols,rows:i.$item.rows})}}removeFromPushed(i){i>-1&&(this.pushedItems.splice(i,1),this.pushedItemsPath.splice(i,1))}checkPushedItem(i,e){let t=this.pushedItemsPath[e],n=t.length-2,r,s,a,c,p;for(;n>-1;n--)r=t[n],s=i.$item.x,a=i.$item.y,c=i.$item.cols,p=i.$item.rows,i.$item.x=r.x,i.$item.y=r.y,i.$item.cols=r.cols,i.$item.rows=r.rows,this.gridster.findItemWithItem(i.$item)?(i.$item.x=s,i.$item.y=a,i.$item.cols=c,i.$item.rows=p):(i.setSize(),t.splice(n+1,t.length-1-n));return t.length<2?(this.removeFromPushed(e),!0):!1}},Sc=class{gridsterItem;gridster;lastMouse;itemBackup;resizeEventScrollType;directionFunction=null;resizeEnabled;resizableHandles;mousemove;mouseup;mouseleave;cancelOnBlur;touchmove;touchend;touchcancel;push;pushResize;minHeight;minWidth;offsetTop;offsetLeft;diffTop;diffLeft;diffRight;diffBottom;margin;outerMarginTop;outerMarginRight;outerMarginBottom;outerMarginLeft;originalClientX;originalClientY;top;left;bottom;right;width;height;newPosition;constructor(i,e){this.gridsterItem=i,this.gridster=e,this.lastMouse={clientX:0,clientY:0},this.itemBackup=[0,0,0,0],this.resizeEventScrollType={west:!1,east:!1,north:!1,south:!1}}destroy(){this.gridster?.previewStyle(),this.gridster=this.gridsterItem=null}dragStart(i){if(i.which&&i.which!==1)return;this.gridster.options.resizable&&this.gridster.options.resizable.start&&this.gridster.options.resizable.start(this.gridsterItem.item,this.gridsterItem,i),i.stopPropagation(),i.preventDefault(),this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragMove),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragMove),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStop),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStop),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStop),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStop),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStop),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-resizing"),this.lastMouse.clientX=i.clientX,this.lastMouse.clientY=i.clientY,this.left=this.gridsterItem.left,this.top=this.gridsterItem.top,this.originalClientX=i.clientX,this.originalClientY=i.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.bottom=this.gridsterItem.top+this.gridsterItem.height,this.right=this.gridsterItem.left+this.gridsterItem.width,this.margin=this.gridster.$options.margin,this.outerMarginTop=this.gridster.$options.outerMarginTop,this.outerMarginRight=this.gridster.$options.outerMarginRight,this.outerMarginBottom=this.gridster.$options.outerMarginBottom,this.outerMarginLeft=this.gridster.$options.outerMarginLeft,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.diffLeft=i.clientX+this.offsetLeft-this.left,this.diffRight=i.clientX+this.offsetLeft-this.right,this.diffTop=i.clientY+this.offsetTop-this.top,this.diffBottom=i.clientY+this.offsetTop-this.bottom,this.minHeight=this.gridster.positionYToPixels(this.gridsterItem.$item.minItemRows||this.gridster.$options.minItemRows)-this.margin,this.minWidth=this.gridster.positionXToPixels(this.gridsterItem.$item.minItemCols||this.gridster.$options.minItemCols)-this.margin,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(),this.push=new qn(this.gridsterItem),this.pushResize=new Ec(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid();let{classList:e}=i.target;e.contains("handle-n")?(this.resizeEventScrollType.north=!0,this.directionFunction=this.handleNorth):e.contains("handle-w")?this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):e.contains("handle-s")?(this.resizeEventScrollType.south=!0,this.directionFunction=this.handleSouth):e.contains("handle-e")?this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):e.contains("handle-nw")?this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleNorthEast):(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleNorthWest):e.contains("handle-ne")?this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleNorthWest):(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleNorthEast):e.contains("handle-sw")?this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleSouthEast):(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleSouthWest):e.contains("handle-se")&&(this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleSouthWest):(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleSouthEast))}dragMove=i=>{if(this.directionFunction===null)throw new Error("The `directionFunction` has not been set before calling `dragMove`.");i.stopPropagation(),i.preventDefault(),ft.checkTouchEvent(i),this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,ku(this.gridster,this.left,this.top,this.width,this.height,i,this.lastMouse,this.directionFunction,!0,this.resizeEventScrollType);let e=this.gridster.options.scale||1;this.directionFunction({clientX:this.originalClientX+(i.clientX-this.originalClientX)/e,clientY:this.originalClientY+(i.clientY-this.originalClientY)/e}),this.lastMouse.clientX=i.clientX,this.lastMouse.clientY=i.clientY,this.gridster.updateGrid()};dragStop=i=>{i.stopPropagation(),i.preventDefault(),Mu(),this.mousemove(),this.mouseup(),this.mouseleave(),this.cancelOnBlur(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.gridster.options.resizable&&this.gridster.options.resizable.stop?Promise.resolve(this.gridster.options.resizable.stop(this.gridsterItem.item,this.gridsterItem,i)).then(this.makeResize,this.cancelResize):this.makeResize(),setTimeout(()=>{this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-resizing"),this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())})};cancelResize=()=>{this.gridsterItem.$item.cols=this.gridsterItem.item.cols||1,this.gridsterItem.$item.rows=this.gridsterItem.item.rows||1,this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push.restoreItems(),this.pushResize.restoreItems(),this.push.destroy(),this.push=null,this.pushResize.destroy(),this.pushResize=null};makeResize=()=>{this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push.setPushedItems(),this.pushResize.setPushedItems(),this.push.destroy(),this.push=null,this.pushResize.destroy(),this.pushResize=null};handleNorth=i=>{this.top=i.clientY+this.offsetTop-this.diffTop,this.height=this.bottom-this.top,this.minHeight>this.height?(this.height=this.minHeight,this.top=this.bottom-this.minHeight):this.gridster.options.enableBoundaryControl&&(this.top=Math.max(0,this.top),this.height=this.bottom-this.top);let e=this.gridster.options.pushItems?this.margin:0;if(this.newPosition=this.gridster.pixelsToPositionY(this.top+e,Math.floor),this.gridsterItem.$item.y!==this.newPosition){if(this.itemBackup[1]=this.gridsterItem.$item.y,this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows+=this.gridsterItem.$item.y-this.newPosition,this.gridsterItem.$item.y=this.newPosition,this.pushResize.pushItems(this.pushResize.fromSouth),this.push.pushItems(this.push.fromSouth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.y=this.itemBackup[1],this.gridsterItem.$item.rows=this.itemBackup[3],this.top=this.gridster.positionYToPixels(this.gridsterItem.$item.y),this.setItemTop(this.gridster.positionYToPixels(this.gridsterItem.$item.y)),this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemTop(this.top),this.setItemHeight(this.height)};handleWest=i=>{let e=this.gridster.$options.dirType===ot.RTL?this.originalClientX+(this.originalClientX-i.clientX):i.clientX;this.left=e+this.offsetLeft-this.diffLeft,this.width=this.right-this.left,this.minWidth>this.width?(this.width=this.minWidth,this.left=this.right-this.minWidth):this.gridster.options.enableBoundaryControl&&(this.left=Math.max(0,this.left),this.width=this.right-this.left);let t=this.gridster.options.pushItems?this.margin:0;if(this.newPosition=this.gridster.pixelsToPositionX(this.left+t,Math.floor),this.gridsterItem.$item.x!==this.newPosition){if(this.itemBackup[0]=this.gridsterItem.$item.x,this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols+=this.gridsterItem.$item.x-this.newPosition,this.gridsterItem.$item.x=this.newPosition,this.pushResize.pushItems(this.pushResize.fromEast),this.push.pushItems(this.push.fromEast,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.x=this.itemBackup[0],this.gridsterItem.$item.cols=this.itemBackup[2],this.left=this.gridster.positionXToPixels(this.gridsterItem.$item.x),this.setItemLeft(this.gridster.positionXToPixels(this.gridsterItem.$item.x)),this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemLeft(this.left),this.setItemWidth(this.width)};handleSouth=i=>{if(this.height=i.clientY+this.offsetTop-this.diffBottom-this.top,this.minHeight>this.height&&(this.height=this.minHeight),this.bottom=this.top+this.height,this.gridster.options.enableBoundaryControl){let t=this.outerMarginBottom??this.margin,n=this.gridster.el.getBoundingClientRect();this.bottom=Math.min(this.bottom,n.bottom-n.top-2*t),this.height=this.bottom-this.top}let e=this.gridster.options.pushItems?0:this.margin;if(this.newPosition=this.gridster.pixelsToPositionY(this.bottom+e,Math.ceil),this.gridsterItem.$item.y+this.gridsterItem.$item.rows!==this.newPosition){if(this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows=this.newPosition-this.gridsterItem.$item.y,this.pushResize.pushItems(this.pushResize.fromNorth),this.push.pushItems(this.push.fromNorth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.rows=this.itemBackup[3],this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemHeight(this.height)};handleEast=i=>{let e=this.gridster.$options.dirType===ot.RTL?this.originalClientX+(this.originalClientX-i.clientX):i.clientX;if(this.width=e+this.offsetLeft-this.diffRight-this.left,this.minWidth>this.width&&(this.width=this.minWidth),this.right=this.left+this.width,this.gridster.options.enableBoundaryControl){let n=this.outerMarginRight??this.margin,r=this.gridster.el.getBoundingClientRect();this.right=Math.min(this.right,r.right-r.left-2*n),this.width=this.right-this.left}let t=this.gridster.options.pushItems?0:this.margin;if(this.newPosition=this.gridster.pixelsToPositionX(this.right+t,Math.ceil),this.gridsterItem.$item.x+this.gridsterItem.$item.cols!==this.newPosition){if(this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols=this.newPosition-this.gridsterItem.$item.x,this.pushResize.pushItems(this.pushResize.fromWest),this.push.pushItems(this.push.fromWest,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.cols=this.itemBackup[2],this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemWidth(this.width)};handleNorthWest=i=>{this.handleNorth(i),this.handleWest(i)};handleNorthEast=i=>{this.handleNorth(i),this.handleEast(i)};handleSouthWest=i=>{this.handleSouth(i),this.handleWest(i)};handleSouthEast=i=>{this.handleSouth(i),this.handleEast(i)};toggle(){this.resizeEnabled=this.gridsterItem.canBeResized(),this.resizableHandles=this.gridsterItem.getResizableHandles()}dragStartDelay(i){if(ft.checkTouchEvent(i),!this.gridster.$options.resizable.delayStart){this.dragStart(i);return}let e=setTimeout(()=>{this.dragStart(i),_()},this.gridster.$options.resizable.delayStart),t=this.gridsterItem.renderer.listen("document","mouseup",_),n=this.gridsterItem.renderer.listen("document","mouseleave",_),r=this.gridsterItem.renderer.listen("window","blur",_),s=this.gridsterItem.renderer.listen("document","touchmove",p),a=this.gridsterItem.renderer.listen("document","touchend",_),c=this.gridsterItem.renderer.listen("document","touchcancel",_);function p(y){ft.checkTouchEvent(y),(Math.abs(y.clientX-i.clientX)>9||Math.abs(y.clientY-i.clientY)>9)&&_()}function _(){clearTimeout(e),r(),t(),n(),s(),a(),c()}}setItemTop(i){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,i)}setItemLeft(i){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,i,this.top)}setItemHeight(i){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"height",i+"px")}setItemWidth(i){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"width",i+"px")}},pe=(()=>{class o{renderer;cdRef;item;itemInit=new U;itemChange=new U;itemResize=new U;$item;el;gridster;top;left;width;height;drag;resize;notPlaced;init;get zIndex(){return this.getLayerIndex()+this.gridster.$options.baseLayerIndex}constructor(e,t,n,r){this.renderer=n,this.cdRef=r,this.el=e.nativeElement,this.$item={cols:-1,rows:-1,x:-1,y:-1},this.gridster=t,this.drag=new Ic(this,t,this.cdRef),this.resize=new Sc(this,t)}ngOnInit(){this.gridster.addItem(this)}ngOnChanges(e){e.item&&(this.updateOptions(),this.init||this.gridster.calculateLayout$.next()),e.item&&e.item.previousValue&&this.setSize()}updateOptions(){this.$item=ft.merge(this.$item,this.item,{cols:void 0,rows:void 0,x:void 0,y:void 0,layerIndex:void 0,dragEnabled:void 0,resizeEnabled:void 0,compactEnabled:void 0,maxItemRows:void 0,minItemRows:void 0,maxItemCols:void 0,minItemCols:void 0,maxItemArea:void 0,minItemArea:void 0,resizableHandles:{s:void 0,e:void 0,n:void 0,w:void 0,se:void 0,ne:void 0,sw:void 0,nw:void 0}})}ngOnDestroy(){this.gridster.removeItem(this),this.drag.destroy(),this.resize.destroy(),this.gridster=this.drag=this.resize=null}setSize(){this.renderer.setStyle(this.el,"display",this.notPlaced?"":"block"),this.gridster.gridRenderer.updateItem(this.el,this.$item,this.renderer),this.updateItemSize()}updateItemSize(){let e=this.$item.y*this.gridster.curRowHeight,t=this.$item.x*this.gridster.curColWidth,n=this.$item.cols*this.gridster.curColWidth-this.gridster.$options.margin,r=this.$item.rows*this.gridster.curRowHeight-this.gridster.$options.margin;this.top=e,this.left=t,!this.init&&n>0&&r>0&&(this.init=!0,this.item.initCallback&&this.item.initCallback(this.item,this),this.gridster.options.itemInitCallback&&this.gridster.options.itemInitCallback(this.item,this),this.itemInit.next({item:this.item,itemComponent:this}),this.gridster.$options.scrollToNewItems&&this.el.scrollIntoView(!1)),(n!==this.width||r!==this.height)&&(this.width=n,this.height=r,this.gridster.options.itemResizeCallback&&this.gridster.options.itemResizeCallback(this.item,this),this.itemResize.next({item:this.item,itemComponent:this}))}itemChanged(){this.gridster.options.itemChangeCallback&&this.gridster.options.itemChangeCallback(this.item,this),this.itemChange.next({item:this.item,itemComponent:this})}checkItemChanges(e,t){e.rows===t.rows&&e.cols===t.cols&&e.x===t.x&&e.y===t.y||(this.gridster.checkCollision(this.$item)?(this.$item.x=t.x||0,this.$item.y=t.y||0,this.$item.cols=t.cols||1,this.$item.rows=t.rows||1,this.setSize()):(this.item.cols=this.$item.cols,this.item.rows=this.$item.rows,this.item.x=this.$item.x,this.item.y=this.$item.y,this.gridster.calculateLayout$.next(),this.itemChanged()))}canBeDragged(){let e=this.gridster.$options.draggable.enabled,t=this.$item.dragEnabled===void 0?e:this.$item.dragEnabled;return!this.gridster.mobile&&e&&t}canBeResized(){let e=this.gridster.$options.resizable.enabled,t=this.$item.resizeEnabled===void 0?e:this.$item.resizeEnabled;return!this.gridster.mobile&&e&&t}getResizableHandles(){let e=this.gridster.$options.resizable.handles,t=this.$item.resizableHandles;return t===void 0?e:k(k({},e),t)}bringToFront(e){if(e&&e<=0)return;let t=this.getLayerIndex(),n=this.gridster.$options.maxLayerIndex;if(tn?n:r}}sendToBack(e){if(e&&e<=0)return;let t=this.getLayerIndex();if(t>0){let n=e?t-e:0;this.item.layerIndex=this.$item.layerIndex=n<0?0:n}}getLayerIndex(){return this.item.layerIndex!==void 0?this.item.layerIndex:this.gridster.$options.defaultLayerIndex!==void 0?this.gridster.$options.defaultLayerIndex:0}static \u0275fac=function(t){return new(t||o)(Q(W),Q(se),Q(jt),Q(He))};static \u0275cmp=E({type:o,selectors:[["gridster-item"]],hostVars:2,hostBindings:function(t,n){t&2&&Ca("z-index",n.zIndex)},inputs:{item:"item"},outputs:{itemInit:"itemInit",itemChange:"itemChange",itemResize:"itemResize"},features:[ze],ngContentSelectors:wu,decls:9,vars:8,consts:[[1,"gridster-item-resizable-handler","handle-s"],[1,"gridster-item-resizable-handler","handle-e"],[1,"gridster-item-resizable-handler","handle-n"],[1,"gridster-item-resizable-handler","handle-w"],[1,"gridster-item-resizable-handler","handle-se"],[1,"gridster-item-resizable-handler","handle-ne"],[1,"gridster-item-resizable-handler","handle-sw"],[1,"gridster-item-resizable-handler","handle-nw"],[1,"gridster-item-resizable-handler","handle-s",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-e",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-n",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-w",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-se",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-ne",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-sw",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-nw",3,"mousedown","touchstart"]],template:function(t,n){t&1&&(Te(),H(0),Y(1,Zv,1,0,"div",0)(2,Kv,1,0,"div",1)(3,Qv,1,0,"div",2)(4,Jv,1,0,"div",3)(5,ey,1,0,"div",4)(6,ty,1,0,"div",5)(7,iy,1,0,"div",6)(8,ny,1,0,"div",7)),t&2&&(h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.s&&n.resize.resizeEnabled?1:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.e&&n.resize.resizeEnabled?2:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.n&&n.resize.resizeEnabled?3:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.w&&n.resize.resizeEnabled?4:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.se&&n.resize.resizeEnabled?5:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.ne&&n.resize.resizeEnabled?6:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.sw&&n.resize.resizeEnabled?7:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.nw&&n.resize.resizeEnabled?8:-1))},styles:[`gridster-item{box-sizing:border-box;z-index:1;position:absolute;overflow:hidden;transition:.3s;display:none;background:#fff;-webkit-user-select:text;user-select:text}gridster-item.gridster-item-moving{cursor:move}gridster-item.gridster-item-resizing,gridster-item.gridster-item-moving{transition:0s;z-index:2;box-shadow:0 0 5px 5px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.gridster-item-resizable-handler{position:absolute;z-index:2}.gridster-item-resizable-handler.handle-n{cursor:ns-resize;height:10px;right:0;top:0;left:0}.gridster-item-resizable-handler.handle-e{cursor:ew-resize;width:10px;bottom:0;right:0;top:0}.gridster-item-resizable-handler.handle-s{cursor:ns-resize;height:10px;right:0;bottom:0;left:0}.gridster-item-resizable-handler.handle-w{cursor:ew-resize;width:10px;left:0;top:0;bottom:0}.gridster-item-resizable-handler.handle-ne{cursor:ne-resize;width:10px;height:10px;right:0;top:0}.gridster-item-resizable-handler.handle-nw{cursor:nw-resize;width:10px;height:10px;left:0;top:0}.gridster-item-resizable-handler.handle-se{cursor:se-resize;width:0;height:0;right:0;bottom:0;border-style:solid;border-width:0 0 10px 10px;border-color:transparent}.gridster-item-resizable-handler.handle-sw{cursor:sw-resize;width:10px;height:10px;left:0;bottom:0}gridster-item:hover .gridster-item-resizable-handler.handle-se{border-color:transparent transparent #ccc} +`],encapsulation:2})}return o})();function ay(o,i){if(o&1){let e=F();l(0,"gridster-item",8)(1,"div",9)(2,"button",10),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Ps=class o{options;dashboard;itemToPush;ngOnInit(){this.options={gridType:P.Fit,compactType:ue.None,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0,initCallback:this.initItem.bind(this)},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}initItem(i,e){this.itemToPush=e}pushItem(){let i=new qn(this.itemToPush);this.itemToPush.$item.rows+=4,i.pushItems(i.fromNorth)?(i.checkPushBack(),i.setPushedItems(),this.itemToPush.setSize(),this.itemToPush.checkItemChanges(this.itemToPush.$item,this.itemToPush.item)):(this.itemToPush.$item.rows-=4,i.restoreItems()),i.destroy()}getItemComponent(){this.options.api&&this.options.api.getItemComponent&&console.log(this.options.api.getItemComponent(this.dashboard[0]))}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-api"]],decls:17,vars:2,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/api","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["mat-raised-button","","color","accent",1,"add-button","cols-2",3,"click"],["color","accent","mat-raised-button","",1,"add-button","cols-2",3,"click"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"button",4),g("click",function(){return t.pushItem()}),m(8," Resize first item and push others "),d(),l(9,"button",5),g("click",function(){return t.getItemComponent()}),m(10," Get item component in console "),d(),l(11,"button",6),g("click",function(){return t.addItem()}),l(12,"mat-icon"),m(13,"add"),d()()(),l(14,"gridster",7),ie(15,ay,5,1,"gridster-item",8,ge),d()),e&2&&(h(5),M("src","assets/api.md"),h(9),M("options",t.options),h(),ne(t.dashboard))},dependencies:[de,ce,As,be,he,me,le,_e,se,pe],encapsulation:2,changeDetection:0})};var ly=20,Du=(()=>{class o{_ngZone=u(G);_platform=u(Ae);_document=u(ae,{optional:!0});constructor(){}_scrolled=new N;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=ly){return this._platform.isBrowser?new Vt(t=>{this._globalSubscription||this._addGlobalListener();let n=e>0?this._scrolled.pipe(ua(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):V()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(De(r=>!r||n.indexOf(r)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((n,r)=>{this._scrollableContainsElement(r,e)&&t.push(r)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=kt(t),r=e.getElementRef().nativeElement;do if(n==r)return!0;while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return ha(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var cy=20,rr=(()=>{class o{_platform=u(Ae);_viewportSize;_change=new N;_changeListener=e=>{this._change.next(e)};_document=u(ae,{optional:!0});constructor(){u(G).runOutsideAngular(()=>{if(this._platform.isBrowser){let t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),n=e.documentElement,r=n.getBoundingClientRect(),s=-r.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,a=-r.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0;return{top:s,left:a}}change(e=cy){return e>0?this._change.pipe(ua(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Xn=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({})}return o})(),Rc=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[Ai,Xn,Ai,Xn]})}return o})();var sr=class{_attachedHost;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},Ac=class extends sr{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(i,e,t,n,r){super(),this.component=i,this.viewContainerRef=e,this.injector=t,this.projectableNodes=r}},un=class extends sr{templateRef;viewContainerRef;context;injector;constructor(i,e,t,n){super(),this.templateRef=i,this.viewContainerRef=e,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},Oc=class extends sr{element;constructor(i){super(),this.element=i instanceof W?i.nativeElement:i}},Fc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof Ac)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof un)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof Oc)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var ar=class extends Fc{outletElement;_appRef;_defaultInjector;_document;constructor(i,e,t,n,r){super(),this.outletElement=i,this._appRef=t,this._defaultInjector=n,this._document=r}attachComponentPortal(i){let e;if(i.viewContainerRef){let t=i.injector||i.viewContainerRef.injector,n=t.get(bd,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:t,ngModuleRef:n,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else e=Er(i.component,{elementInjector:i.injector||this._defaultInjector||Je.NULL,environmentInjector:this._appRef.injector,projectableNodes:i.projectableNodes||void 0}),this._appRef.attachView(e.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(e.hostView),e.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,t=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=e.indexOf(t);n!==-1&&e.remove(n)}),this._attachedPortal=i,t}attachDomPortal=i=>{let e=i.element;e.parentNode;let t=this._document.createComment("dom-portal");e.parentNode.insertBefore(t,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{t.parentNode&&t.parentNode.replaceChild(e,t)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var Ru=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({})}return o})();var Au=Za(),Pc=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ke(-this._previousScrollPosition.left),i.style.top=Ke(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,t=i.style,n=e.style,r=t.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),Au&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Au&&(t.scrollBehavior=r,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}};var Lc=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,t,n){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=t,this._config=n}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(De(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},Ls=class{enable(){}disable(){}attach(){}};function zc(o,i){return i.some(e=>{let t=o.bottome.bottom,r=o.righte.right;return t||n||r||s})}function Ou(o,i){return i.some(e=>{let t=o.tope.bottom,r=o.lefte.right;return t||n||r||s})}var Nc=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,t,n){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=t,this._config=n}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();zc(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},dy=(()=>{class o{_scrollDispatcher=u(Du);_viewportRuler=u(rr);_ngZone=u(G);_document=u(ae);constructor(){}noop=()=>new Ls;close=e=>new Lc(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new Pc(this._viewportRuler,this._document);reposition=e=>new Nc(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Zn=class{positionStrategy;scrollStrategy=new Ls;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let e=Object.keys(i);for(let t of e)i[t]!==void 0&&(this[t]=i[t])}}};var Vc=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var Vu=(()=>{class o{_attachedOverlays=[];_document=u(ae);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),my=(()=>{class o extends Vu{_ngZone=u(G,{optional:!0});add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}_keydownListener=e=>{let t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){let r=t[n]._keydownEvents;this._ngZone?this._ngZone.run(()=>r.next(e)):r.next(e);break}};static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),hy=(()=>{class o extends Vu{_platform=u(Ae);_ngZone=u(G,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(e){if(super.add(e),!this._isAttached){let t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=e=>{this._pointerDownEventTarget=It(e)};_clickListener=e=>{let t=It(e),n=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:t;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let s=r.length-1;s>-1;s--){let a=r[s];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(Fu(a.overlayElement,t)||Fu(a.overlayElement,n))break;let c=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}};static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ye(o)))(n||o)}})();static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function Fu(o,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,t=i;for(;t;){if(t===o)return!0;t=e&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var Bu=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return o})(),Wu=(()=>{class o{_platform=u(Ae);_containerElement;_document=u(ae);_styleLoader=u(lt);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Ka()){let n=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(i);_backdropTransitionendHandler=i=>{this._disposeBackdrop(i.target)};_previousHostParent;_keydownEvents=new N;_outsidePointerEvents=new N;_renders=new N;_afterRenderRef;_afterNextRenderRef;constructor(i,e,t,n,r,s,a,c,p,_=!1,y){this._portalOutlet=i,this._host=e,this._pane=t,this._config=n,this._ngZone=r,this._keyboardDispatcher=s,this._document=a,this._location=c,this._outsideClickDispatcher=p,this._animationsDisabled=_,this._injector=y,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=Ut(()=>xr(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Yi(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,i&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=k(k({},this._config),i),this._updateElementSize()}setDirection(i){this._config=re(k({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ke(this._config.width),i.height=Ke(this._config.height),i.minWidth=Ke(this._config.minWidth),i.minHeight=Ke(this._config.minHeight),i.maxWidth=Ke(this._config.maxWidth),i.maxHeight=Ke(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let i=this._backdropElement;if(i){if(this._animationsDisabled){this._disposeBackdrop(i);return}i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,e,t){let n=Cn(e||[]).filter(r=>!!r);n.length&&(t?i.classList.add(...n):i.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let i=this._renders.pipe(Ce(mt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){let i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Pu="cdk-overlay-connected-position-bounding-box",uy=/([A-Za-z%]+)$/,Wc=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new N;_resizeSubscription=Ge.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,t,n,r){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(Pu),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._originRect,e=this._overlayRect,t=this._viewportRect,n=this._containerRect,r=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(i,n,a),p=this._getOverlayPoint(c,e,a),_=this._getOverlayFit(p,e,t,a);if(_.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(_,p,t)){r.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleArea<_.visibleArea)&&(s={overlayFit:_,overlayPoint:p,originPoint:c,position:a,overlayRect:e})}if(r.length){let a=null,c=-1;for(let p of r){let _=p.boundingBoxRect.width*p.boundingBoxRect.height*(p.position.weight||1);_>c&&(c=_,a=p)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&pn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Pu),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,t){let n;if(t.originX=="center")n=i.left+i.width/2;else{let s=this._isRtl()?i.right:i.left,a=this._isRtl()?i.left:i.right;n=t.originX=="start"?s:a}e.left<0&&(n-=e.left);let r;return t.originY=="center"?r=i.top+i.height/2:r=t.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:n,y:r}}_getOverlayPoint(i,e,t){let n;t.overlayX=="center"?n=-e.width/2:t.overlayX==="start"?n=this._isRtl()?-e.width:0:n=this._isRtl()?0:-e.width;let r;return t.overlayY=="center"?r=-e.height/2:r=t.overlayY=="top"?0:-e.height,{x:i.x+n,y:i.y+r}}_getOverlayFit(i,e,t,n){let r=zu(e),{x:s,y:a}=i,c=this._getOffset(n,"x"),p=this._getOffset(n,"y");c&&(s+=c),p&&(a+=p);let _=0-s,y=s+r.width-t.width,I=0-a,S=a+r.height-t.height,A=this._subtractOverflows(r.width,_,y),T=this._subtractOverflows(r.height,I,S),z=A*T;return{visibleArea:z,isCompletelyWithinViewport:r.width*r.height===z,fitsInViewportVertically:T===r.height,fitsInViewportHorizontally:A==r.width}}_canFitWithFlexibleDimensions(i,e,t){if(this._hasFlexibleDimensions){let n=t.bottom-e.y,r=t.right-e.x,s=Lu(this._overlayRef.getConfig().minHeight),a=Lu(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||s!=null&&s<=n,p=i.fitsInViewportHorizontally||a!=null&&a<=r;return c&&p}return!1}_pushOverlayOnScreen(i,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let n=zu(e),r=this._viewportRect,s=Math.max(i.x+n.width-r.width,0),a=Math.max(i.y+n.height-r.height,0),c=Math.max(r.top-t.top-i.y,0),p=Math.max(r.left-t.left-i.x,0),_=0,y=0;return n.width<=r.width?_=p||-s:_=i.xA&&!this._isInitialRender&&!this._growAfterOpen&&(s=i.y-A/2)}let c=e.overlayX==="start"&&!n||e.overlayX==="end"&&n,p=e.overlayX==="end"&&!n||e.overlayX==="start"&&n,_,y,I;if(p)I=t.width-i.x+this._viewportMargin*2,_=i.x-this._viewportMargin;else if(c)y=i.x,_=t.right-i.x;else{let S=Math.min(t.right-i.x+t.left,i.x),A=this._lastBoundingBoxSize.width;_=S*2,y=i.x-S,_>A&&!this._isInitialRender&&!this._growAfterOpen&&(y=i.x-A/2)}return{top:s,left:y,bottom:a,right:I,width:_,height:r}}_setBoundingBoxStyles(i,e){let t=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=Ke(t.height),n.top=Ke(t.top),n.bottom=Ke(t.bottom),n.width=Ke(t.width),n.left=Ke(t.left),n.right=Ke(t.right),e.overlayX==="center"?n.alignItems="center":n.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?n.justifyContent="center":n.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(n.maxHeight=Ke(r)),s&&(n.maxWidth=Ke(s))}this._lastBoundingBoxSize=t,pn(this._boundingBox.style,n)}_resetBoundingBoxStyles(){pn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){pn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let t={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(n){let _=this._viewportRuler.getViewportScrollPosition();pn(t,this._getExactOverlayY(e,i,_)),pn(t,this._getExactOverlayX(e,i,_))}else t.position="static";let a="",c=this._getOffset(e,"x"),p=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),p&&(a+=`translateY(${p}px)`),t.transform=a.trim(),s.maxHeight&&(n?t.maxHeight=Ke(s.maxHeight):r&&(t.maxHeight="")),s.maxWidth&&(n?t.maxWidth=Ke(s.maxWidth):r&&(t.maxWidth="")),pn(this._pane.style,t)}_getExactOverlayY(i,e,t){let n={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,t)),i.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;n.bottom=`${s-(r.y+this._overlayRect.height)}px`}else n.top=Ke(r.y);return n}_getExactOverlayX(i,e,t){let n={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,t));let s;if(this._isRtl()?s=i.overlayX==="end"?"left":"right":s=i.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;n.right=`${a-(r.x+this._overlayRect.width)}px`}else n.left=Ke(r.x);return n}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ou(i,t),isOriginOutsideView:zc(i,t),isOverlayClipped:Ou(e,t),isOverlayOutsideView:zc(e,t)}}_subtractOverflows(i,...e){return e.reduce((t,n)=>t-Math.max(n,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+i-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Cn(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){let i=this._origin;if(i instanceof W)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,t=i.height||0;return{top:i.y,bottom:i.y+t,left:i.x,right:i.x+e,height:t,width:e}}};function pn(o,i){for(let e in i)i.hasOwnProperty(e)&&(o[e]=i[e]);return o}function Lu(o){if(typeof o!="number"&&o!=null){let[i,e]=o.split(uy);return!e||e==="px"?parseFloat(i):null}return o||null}function zu(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function py(o,i){return o===i?!0:o.isOriginClipped===i.isOriginClipped&&o.isOriginOutsideView===i.isOriginOutsideView&&o.isOverlayClipped===i.isOverlayClipped&&o.isOverlayOutsideView===i.isOverlayOutsideView}var Nu="cdk-global-overlay-wrapper",jc=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(Nu),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:n,height:r,maxWidth:s,maxHeight:a}=t,c=(n==="100%"||n==="100vw")&&(!s||s==="100%"||s==="100vw"),p=(r==="100%"||r==="100vh")&&(!a||a==="100%"||a==="100vh"),_=this._xPosition,y=this._xOffset,I=this._overlayRef.getConfig().direction==="rtl",S="",A="",T="";c?T="flex-start":_==="center"?(T="center",I?A=y:S=y):I?_==="left"||_==="end"?(T="flex-end",S=y):(_==="right"||_==="start")&&(T="flex-start",A=y):_==="left"||_==="start"?(T="flex-start",S=y):(_==="right"||_==="end")&&(T="flex-end",A=y),i.position=this._cssPosition,i.marginLeft=c?"0":S,i.marginTop=p?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":A,e.justifyContent=T,e.alignItems=p?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Nu),t.justifyContent=t.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},fy=(()=>{class o{_viewportRuler=u(rr);_document=u(ae);_platform=u(Ae);_overlayContainer=u(Wu);constructor(){}global(){return new jc}flexibleConnectedTo(e){return new Wc(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Xt=(()=>{class o{scrollStrategies=u(dy);_overlayContainer=u(Wu);_positionBuilder=u(fy);_keyboardDispatcher=u(my);_injector=u(Je);_ngZone=u(G);_document=u(ae);_directionality=u(ii);_location=u(xn);_outsideClickDispatcher=u(hy);_animationsModuleType=u(pt,{optional:!0});_idGenerator=u(yt);_appRef;_styleLoader=u(lt);constructor(){}create(e){this._styleLoader.load(Bu);let t=this._createHostElement(),n=this._createPaneElement(t),r=this._createPortalOutlet(n),s=new Zn(e);return s.direction=s.direction||this._directionality.value,new Bc(r,t,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Qt))}position(){return this._positionBuilder}_createPaneElement(e){let t=this._document.createElement("div");return t.id=this._idGenerator.getId("cdk-overlay-"),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(li)),new ar(e,null,this._appRef,this._injector,this._document)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),gy=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ju=new R("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=u(Xt);return()=>o.scrollStrategies.reposition()}}),lr=(()=>{class o{elementRef=u(W);constructor(){}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return o})(),Uc=(()=>{class o{_overlay=u(Xt);_dir=u(ii,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=Ge.EMPTY;_attachSubscription=Ge.EMPTY;_detachSubscription=Ge.EMPTY;_positionSubscription=Ge.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=u(ju);_disposeOnNavigation=!1;_ngZone=u(G);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new U;positionChange=new U;attach=new U;detach=new U;overlayKeydown=new U;overlayOutsideClick=new U;constructor(){let e=u(vn),t=u(Jt);this._templatePortal=new un(e,t),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=gy);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode===27&&!this.disableClose&&!Ht(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{let n=this._getOriginElement(),r=It(t);(!n||n!==r&&!n.contains(r))&&this.overlayOutsideClick.next(t)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Zn({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(t.width=this.width),(this.height||this.height===0)&&(t.height=this.height),(this.minWidth||this.minWidth===0)&&(t.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){let t=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof lr?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof lr?this.origin.elementRef.nativeElement:this.origin instanceof W?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(ed(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",q],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",q],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",q],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",q],push:[2,"cdkConnectedOverlayPush","push",q],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",q]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Fe,ze]})}return o})();function _y(o){return()=>o.scrollStrategies.reposition()}var by={provide:ju,deps:[Xt],useFactory:_y},zs=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({providers:[Xt,by],imports:[Ai,Ru,Rc,Rc]})}return o})();var Hc=class{_box;_destroyed=new N;_resizeSubject=new N;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new Vt(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),t.unsubscribe(),this._elementObservables.delete(i)}}).pipe(De(e=>e.some(t=>t.target===i)),to({bufferSize:1,refCount:!0}),Ce(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},$u=(()=>{class o{_observers=new Map;_ngZone=u(G);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,t){let n=t?.box||"content-box";return this._observers.has(n)||this._observers.set(n,new Hc(n)),this._observers.get(n).observe(e)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var vy=["notch"],yy=["matFormFieldNotchedOutline",""],xy=["*"],wy=["textField"],Cy=["iconPrefixContainer"],ky=["textPrefixContainer"],My=["iconSuffixContainer"],Iy=["textSuffixContainer"],Ey=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Sy=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Ty(o,i){o&1&&D(0,"span",21)}function Dy(o,i){if(o&1&&(l(0,"label",20),H(1,1),Y(2,Ty,1,0,"span",21),d()),o&2){let e=f(2);M("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),fe("for",e._control.disableAutomaticLabeling?null:e._control.id),h(2),L(!e.hideRequiredMarker&&e._control.required?2:-1)}}function Ry(o,i){if(o&1&&Y(0,Dy,3,5,"label",20),o&2){let e=f();L(e._hasFloatingLabel()?0:-1)}}function Ay(o,i){o&1&&D(0,"div",7)}function Oy(o,i){}function Fy(o,i){if(o&1&&Y(0,Oy,0,0,"ng-template",13),o&2){f(2);let e=At(1);M("ngTemplateOutlet",e)}}function Py(o,i){if(o&1&&(l(0,"div",9),Y(1,Fy,1,1,null,13),d()),o&2){let e=f();M("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),h(),L(e._forceDisplayInfixLabel()?-1:1)}}function Ly(o,i){o&1&&(l(0,"div",10,2),H(2,2),d())}function zy(o,i){o&1&&(l(0,"div",11,3),H(2,3),d())}function Ny(o,i){}function Vy(o,i){if(o&1&&Y(0,Ny,0,0,"ng-template",13),o&2){f();let e=At(1);M("ngTemplateOutlet",e)}}function By(o,i){o&1&&(l(0,"div",14,4),H(2,4),d())}function Wy(o,i){o&1&&(l(0,"div",15,5),H(2,5),d())}function jy(o,i){o&1&&D(0,"div",16)}function $y(o,i){if(o&1&&(l(0,"div",18),H(1,6),d()),o&2){let e=f();M("@transitionMessages",e._subscriptAnimationState)}}function Uy(o,i){if(o&1&&(l(0,"mat-hint",22),m(1),d()),o&2){let e=f(2);M("id",e._hintLabelId),h(),Ze(e.hintLabel)}}function Hy(o,i){if(o&1&&(l(0,"div",19),Y(1,Uy,2,2,"mat-hint",22),H(2,7),D(3,"div",23),H(4,8),d()),o&2){let e=f();M("@transitionMessages",e._subscriptAnimationState),h(),L(e.hintLabel?1:-1)}}var Vs=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["mat-label"]]})}return o})(),Gy=new R("MatError");var Uu=(()=>{class o{align="start";id=u(yt).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,n){t&2&&(Ei("id",n.id),fe("align",null),te("mat-mdc-form-field-hint-end",n.align==="end"))},inputs:{align:"align",id:"id"}})}return o})(),Yy=new R("MatPrefix");var qy=new R("MatSuffix");var Ku=new R("FloatingLabelParent"),Hu=(()=>{class o{_elementRef=u(W);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=u($u);_ngZone=u(G);_parent=u(Ku);_resizeSubscription=new Ge;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return Xy(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,n){t&2&&te("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return o})();function Xy(o){let i=o;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var Gu="mdc-line-ripple--active",Ns="mdc-line-ripple--deactivating",Yu=(()=>{class o{_elementRef=u(W);constructor(){u(G).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Ns),e.add(Gu)}deactivate(){this._elementRef.nativeElement.classList.add(Ns)}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,n=t.contains(Ns);e.propertyName==="opacity"&&n&&t.remove(Gu,Ns)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return o})(),qu=(()=>{class o{_elementRef=u(W);_ngZone=u(G);open=!1;_notch;constructor(){}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,n){if(t&1&&Pe(vy,5),t&2){let r;J(r=ee())&&(n._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,n){t&2&&te("mdc-notched-outline--notched",n.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:yy,ngContentSelectors:xy,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,n){t&1&&(Te(),D(0,"div",1),l(1,"div",2,0),H(3),d(),D(4,"div",3))},encapsulation:2,changeDetection:0})}return o})(),Zy={transitionMessages:Si("transitionMessages",[Zi("enter",Mt({opacity:1,transform:"translateY(0%)"})),ei("void => enter",[Mt({opacity:0,transform:"translateY(-5px)"}),mi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},cr=(()=>{class o{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o})}return o})();var dr=new R("MatFormField"),Ky=new R("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Xu="fill",Qy="auto",Zu="fixed",Jy="translateY(-50%)",We=(()=>{class o{_elementRef=u(W);_changeDetectorRef=u(He);_dir=u(ii);_platform=u(Ae);_idGenerator=u(yt);_defaults=u(Ky,{optional:!0});_animationMode=u(pt,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=_d(Vs);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ot(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Qy}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(e){let t=this._appearance,n=e||this._defaults?.appearance||Xu;this._appearance=n,this._appearance==="outline"&&this._appearance!==t&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=Xu;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Zu}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Zu}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new N;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=u(Je);constructor(){let e=this._defaults;e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=ci(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let t=this._control,n="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(n+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(n+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(ut([void 0,void 0]),B(()=>[t.errorState,t.userAriaDescribedBy]),_a(),De(([[r,s],[a,c]])=>r!==a||s!==c)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(Ce(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),mt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),xr(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(Ce(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=ci(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let t=this._hintChildren?this._hintChildren.find(r=>r.align==="start"):null,n=this._hintChildren?this._hintChildren.find(r=>r.align==="end"):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let t=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,s=this._textSuffixContainer?.nativeElement,a=t?.getBoundingClientRect().width??0,c=n?.getBoundingClientRect().width??0,p=r?.getBoundingClientRect().width??0,_=s?.getBoundingClientRect().width??0,y=this._dir.value==="rtl"?"-1":"1",I=`${a+c}px`,A=`calc(${y} * (${I} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( + --mat-mdc-form-field-label-transform, + ${Jy} translateX(${A}) + )`;let T=a+c+p+_;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${T}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-form-field"]],contentQueries:function(t,n,r){if(t&1&&(wd(r,n._labelChild,Vs,5),qe(r,cr,5),qe(r,Yy,5),qe(r,qy,5),qe(r,Gy,5),qe(r,Uu,5)),t&2){Cd();let s;J(s=ee())&&(n._formFieldControl=s.first),J(s=ee())&&(n._prefixChildren=s),J(s=ee())&&(n._suffixChildren=s),J(s=ee())&&(n._errorChildren=s),J(s=ee())&&(n._hintChildren=s)}},viewQuery:function(t,n){if(t&1&&(Pe(wy,5),Pe(Cy,5),Pe(ky,5),Pe(My,5),Pe(Iy,5),Pe(Hu,5),Pe(qu,5),Pe(Yu,5)),t&2){let r;J(r=ee())&&(n._textField=r.first),J(r=ee())&&(n._iconPrefixContainer=r.first),J(r=ee())&&(n._textPrefixContainer=r.first),J(r=ee())&&(n._iconSuffixContainer=r.first),J(r=ee())&&(n._textSuffixContainer=r.first),J(r=ee())&&(n._floatingLabel=r.first),J(r=ee())&&(n._notchedOutline=r.first),J(r=ee())&&(n._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(t,n){t&2&&te("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-no-animations",n._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",n.appearance=="fill")("mat-form-field-appearance-outline",n.appearance=="outline")("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-focused",n._control.focused)("mat-primary",n.color!=="accent"&&n.color!=="warn")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ve([{provide:dr,useExisting:o},{provide:Ku,useExisting:o}])],ngContentSelectors:Sy,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,n){if(t&1){let r=F();Te(Ey),Y(0,Ry,1,1,"ng-template",null,0,Ea),l(2,"div",6,1),g("click",function(a){return b(r),v(n._control.onContainerClick(a))}),Y(4,Ay,1,0,"div",7),l(5,"div",8),Y(6,Py,2,2,"div",9)(7,Ly,3,0,"div",10)(8,zy,3,0,"div",11),l(9,"div",12),Y(10,Vy,1,1,null,13),H(11),d(),Y(12,By,3,0,"div",14)(13,Wy,3,0,"div",15),d(),Y(14,jy,1,0,"div",16),d(),l(15,"div",17),Y(16,$y,2,1,"div",18)(17,Hy,5,2,"div",19),d()}if(t&2){let r;h(2),te("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),h(2),L(!n._hasOutline()&&!n._control.disabled?4:-1),h(2),L(n._hasOutline()?6:-1),h(),L(n._hasIconPrefix?7:-1),h(),L(n._hasTextPrefix?8:-1),h(2),L(!n._hasOutline()||n._forceDisplayInfixLabel()?10:-1),h(2),L(n._hasTextSuffix?12:-1),h(),L(n._hasIconSuffix?13:-1),h(),L(n._hasOutline()?-1:14),h(),te("mat-mdc-form-field-subscript-dynamic-size",n.subscriptSizing==="dynamic"),h(),L((r=n._getDisplayedMessages())==="error"?16:r==="hint"?17:-1)}},dependencies:[Hu,qu,Rd,Yu,Uu],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Zy.transitionMessages]},changeDetection:0})}return o})(),mr=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,Vr,ke]})}return o})();var e0=["trigger"],t0=["panel"],i0=[[["mat-select-trigger"]],"*"],n0=["mat-select-trigger","*"];function o0(o,i){if(o&1&&(l(0,"span",4),m(1),d()),o&2){let e=f();h(),Ze(e.placeholder)}}function r0(o,i){o&1&&H(0)}function s0(o,i){if(o&1&&(l(0,"span",11),m(1),d()),o&2){let e=f(2);h(),Ze(e.triggerValue)}}function a0(o,i){if(o&1&&(l(0,"span",5),Y(1,r0,1,0)(2,s0,2,1,"span",11),d()),o&2){let e=f();h(),L(e.customTrigger?1:2)}}function l0(o,i){if(o&1){let e=F();l(0,"div",12,1),g("@transformPanel.done",function(n){b(e);let r=f();return v(r._panelDoneAnimatingStream.next(n.toState))})("keydown",function(n){b(e);let r=f();return v(r._handleKeydown(n))}),H(2,1),d()}if(o&2){let e=f();xd("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),M("ngClass",e.panelClass)("@transformPanel","showing"),fe("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var c0={transformPanelWrap:Si("transformPanelWrap",[ei("* => void",Pd("@transformPanel",[Fd()],{optional:!0}))]),transformPanel:Si("transformPanel",[Zi("void",Mt({opacity:0,transform:"scale(1, 0.8)"})),ei("void => showing",mi("120ms cubic-bezier(0, 0, 0.2, 1)",Mt({opacity:1,transform:"scale(1, 1)"}))),ei("* => void",mi("100ms linear",Mt({opacity:0})))])};var Qu=new R("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let o=u(Xt);return()=>o.scrollStrategies.reposition()}});function d0(o){return()=>o.scrollStrategies.reposition()}var m0=new R("MAT_SELECT_CONFIG"),h0={provide:Qu,deps:[Xt],useFactory:d0},u0=new R("MatSelectTrigger"),Gc=class{source;value;constructor(i,e){this.source=i,this.value=e}},gt=(()=>{class o{_viewportRuler=u(rr);_changeDetectorRef=u(He);_elementRef=u(W);_dir=u(ii,{optional:!0});_idGenerator=u(yt);_parentFormField=u(dr,{optional:!0});ngControl=u(pi,{self:!0,optional:!0});_liveAnnouncer=u(bm);_defaultOptions=u(m0,{optional:!0});options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let n=this.panel.nativeElement,r=Em(e,this.options,this.optionGroups),s=t._getHostElement();e===0&&r===1?n.scrollTop=0:n.scrollTop=Sm(s.offsetTop,s.offsetHeight,n.scrollTop,n.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Gc(this,e)}_scrollStrategyFactory=u(Qu);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new N;_errorStateTracker;stateChanges=new N;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new N;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Ln.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";_initialized=new N;optionSelectionChanges=eo(()=>{let e=this.options;return e?e.changes.pipe(ut(e),$e(()=>mt(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelectionChanges))});openedChange=new U;_openedStream=this.openedChange.pipe(De(e=>e),B(()=>{}));_closedStream=this.openedChange.pipe(De(e=>!e),B(()=>{}));selectionChange=new U;valueChange=new U;constructor(){let e=u(Yr),t=u(Eo,{optional:!0}),n=u(So,{optional:!0}),r=u(new Hi("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Dn(e,this.ngControl,n,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Xr(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ji(),Ce(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Ce(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Ce(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ut(null),Ce(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?n.setAttribute("aria-labelledby",e):n.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&il(this._trackedModal,"aria-owns",t),fm(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;il(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,n=t===40||t===38||t===37||t===39,r=t===13||t===32,s=this._keyManager;if(!s.isTyping()&&r&&!Ht(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){let a=this.selected;s.onKeydown(e);let c=this.selected;c&&a!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,n=e.keyCode,r=n===40||n===38,s=t.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!s&&(n===13||n===32)&&t.activeItem&&!Ht(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!s&&this._multiple&&n===65&&e.ctrlKey){e.preventDefault();let a=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(a?c.select():c.deselect())})}else{let a=t.activeItemIndex;t.onKeydown(e),this._multiple&&r&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ht(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(n=>{if(this._selectionModel.isSelected(n))return!1;try{return n.value!=null&&this._compareWith(n.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof lr?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new $r(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=mt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ce(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),mt(...this.options.map(t=>t._stateChanges)).pipe(Ce(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let n=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(n=>n.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-select"]],contentQueries:function(t,n,r){if(t&1&&(qe(r,u0,5),qe(r,st,5),qe(r,dl,5)),t&2){let s;J(s=ee())&&(n.customTrigger=s.first),J(s=ee())&&(n.options=s),J(s=ee())&&(n.optionGroups=s)}},viewQuery:function(t,n){if(t&1&&(Pe(e0,5),Pe(t0,5),Pe(Uc,5)),t&2){let r;J(r=ee())&&(n.trigger=r.first),J(r=ee())&&(n.panel=r.first),J(r=ee())&&(n._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,n){t&1&&g("keydown",function(s){return n._handleKeydown(s)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),t&2&&(fe("id",n.id)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),te("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",q],disableRipple:[2,"disableRipple","disableRipple",q],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Xi(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",q],placeholder:"placeholder",required:[2,"required","required",q],multiple:[2,"multiple","multiple",q],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",q],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Xi],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ve([{provide:cr,useExisting:o},{provide:cl,useExisting:o}]),Fe,ze],ngContentSelectors:n0,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,n){if(t&1){let r=F();Te(i0),l(0,"div",2,0),g("click",function(){return b(r),v(n.open())}),l(3,"div",3),Y(4,o0,2,1,"span",4)(5,a0,3,1,"span",5),d(),l(6,"div",6)(7,"div",7),Ui(),l(8,"svg",8),D(9,"path",9),d()()()(),Y(10,l0,3,9,"ng-template",10),g("backdropClick",function(){return b(r),v(n.close())})("attach",function(){return b(r),v(n._onAttached())})("detach",function(){return b(r),v(n.close())})}if(t&2){let r=At(1);h(3),fe("id",n._valueId),h(),L(n.empty?4:5),h(6),M("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)}},dependencies:[lr,Uc,Td],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}'],encapsulation:2,data:{animation:[c0.transformPanel]},changeDetection:0})}return o})();var _t=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({providers:[h0],imports:[zs,ml,ke,Xn,mr,ml,ke]})}return o})();function p0(o,i){if(o&1){let e=F();l(0,"gridster-item",20)(1,"div",21)(2,"button",22),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Bs=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,compactType:ue.None,maxCols:10,maxRows:10,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-compact"]],decls:41,vars:3,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/compact","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["aria-label","Compact type","placeholder","Compact Type",3,"ngModelChange","ngModel"],["value","none"],["value","compactUp"],["value","compactLeft"],["value","compactLeft&Up"],["value","compactUp&Left"],["value","compactRight"],["value","compactUp&Right"],["value","compactRight&Up"],["value","compactDown"],["value","compactDown&Left"],["value","compactLeft&Down"],["value","compactDown&Right"],["value","compactRight&Down"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"mat-select",4),C("ngModelChange",function(r){return w(t.options.compactType,r)||(t.options.compactType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(9,"mat-option",5),m(10,"None"),d(),l(11,"mat-option",6),m(12,"Compact Up"),d(),l(13,"mat-option",7),m(14,"Compact Left"),d(),l(15,"mat-option",8),m(16,"Compact Left & Up"),d(),l(17,"mat-option",9),m(18,"Compact Up & Left"),d(),l(19,"mat-option",10),m(20,"Compact Right"),d(),l(21,"mat-option",11),m(22,"Compact Up & Right"),d(),l(23,"mat-option",12),m(24,"Compact Right & Up"),d(),l(25,"mat-option",13),m(26,"Compact Down"),d(),l(27,"mat-option",14),m(28,"Compact Down & Left"),d(),l(29,"mat-option",15),m(30,"Compact Left & Down"),d(),l(31,"mat-option",16),m(32,"Compact Down & Right"),d(),l(33,"mat-option",17),m(34,"Compact Right & Down"),d()()(),l(35,"button",18),g("click",function(){return t.addItem()}),l(36,"mat-icon"),m(37,"add"),d()()(),l(38,"gridster",19),ie(39,p0,5,1,"gridster-item",20,ge),d()),e&2&&(h(5),M("src","assets/compact.md"),h(3),x("ngModel",t.options.compactType),h(30),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Me,xe,de,ce,be,he,me,_t,We,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};function f0(o,i){if(o&1){let e=F();l(0,"gridster-item",10)(1,"div",11)(2,"button",12),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Ws=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-display-grid"]],decls:21,vars:3,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/displayGrid","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["aria-label","Display grid lines","placeholder","Display grid lines",3,"ngModelChange","ngModel"],["value","always"],["value","onDrag&Resize"],["value","none"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"mat-select",4),C("ngModelChange",function(r){return w(t.options.displayGrid,r)||(t.options.displayGrid=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(9,"mat-option",5),m(10,"Always"),d(),l(11,"mat-option",6),m(12,"On Drag & Resize"),d(),l(13,"mat-option",7),m(14,"None"),d()()(),l(15,"button",8),g("click",function(){return t.addItem()}),l(16,"mat-icon"),m(17,"add"),d()()(),l(18,"gridster",9),ie(19,f0,5,1,"gridster-item",10,ge),d()),e&2&&(h(5),M("src","assets/displayGrid.md"),h(3),x("ngModel",t.options.displayGrid),h(10),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Me,xe,de,ce,be,he,me,_t,We,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};var g0=["input"],_0=["label"],b0=["*"],v0=new R("mat-checkbox-default-options",{providedIn:"root",factory:ep});function ep(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var bt=function(o){return o[o.Init=0]="Init",o[o.Checked=1]="Checked",o[o.Unchecked=2]="Unchecked",o[o.Indeterminate=3]="Indeterminate",o}(bt||{}),y0={provide:Io,useExisting:Rt(()=>Oe),multi:!0},Yc=class{source;checked},Ju=ep(),Oe=(()=>{class o{_elementRef=u(W);_changeDetectorRef=u(He);_ngZone=u(G);_animationMode=u(pt,{optional:!0});_options=u(v0,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new Yc;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new U;indeterminateChange=new U;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=bt.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){u(lt).load(ui);let e=u(new Hi("tabindex"),{optional:!0});this._options=this._options||Ju,this.color=this._options.color||Ju.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=u(yt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate}set indeterminate(e){let t=e!=this._indeterminate;this._indeterminate=e,t&&(this._indeterminate?this._transitionCheckState(bt.Indeterminate):this._transitionCheckState(this.checked?bt.Checked:bt.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_indeterminate=!1;_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,n=this._getAnimationTargetElement();if(!(t===e||!n)&&(this._currentAnimationClass&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(r)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?bt.Checked:bt.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if(this._animationMode==="NoopAnimations")return"";switch(e){case bt.Init:if(t===bt.Checked)return this._animationClasses.uncheckedToChecked;if(t==bt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case bt.Unchecked:return t===bt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case bt.Checked:return t===bt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case bt.Indeterminate:return t===bt.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-checkbox"]],viewQuery:function(t,n){if(t&1&&(Pe(g0,5),Pe(_0,5)),t&2){let r;J(r=ee())&&(n._inputElement=r.first),J(r=ee())&&(n._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(t,n){t&2&&(Ei("id",n.id),fe("tabindex",null)("aria-label",null)("aria-labelledby",null),$t(n.color?"mat-"+n.color:"mat-accent"),te("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mdc-checkbox--disabled",n.disabled)("mat-mdc-checkbox-disabled",n.disabled)("mat-mdc-checkbox-checked",n.checked)("mat-mdc-checkbox-disabled-interactive",n.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",q],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",q],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",q],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Xi(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",q],checked:[2,"checked","checked",q],disabled:[2,"disabled","disabled",q],indeterminate:[2,"indeterminate","indeterminate",q]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ve([y0,{provide:on,useExisting:o,multi:!0}]),Fe,ze],ngContentSelectors:b0,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(t,n){if(t&1){let r=F();Te(),l(0,"div",3),g("click",function(a){return b(r),v(n._preventBubblingFromLabel(a))}),l(1,"div",4,0)(3,"div",5),g("click",function(){return b(r),v(n._onTouchTargetClick())}),d(),l(4,"input",6,1),g("blur",function(){return b(r),v(n._onBlur())})("click",function(){return b(r),v(n._onInputClick())})("change",function(a){return b(r),v(n._onInteractionEvent(a))}),d(),D(6,"div",7),l(7,"div",8),Ui(),l(8,"svg",9),D(9,"path",10),d(),va(),D(10,"div",11),d(),D(11,"div",12),d(),l(12,"label",13,2),H(14),d()()}if(t&2){let r=At(2);M("labelPosition",n.labelPosition),h(4),te("mdc-checkbox--selected",n.checked),M("checked",n.checked)("indeterminate",n.indeterminate)("disabled",n.disabled&&!n.disabledInteractive)("id",n.inputId)("required",n.required)("tabIndex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex),fe("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("aria-checked",n.indeterminate?"mixed":null)("aria-controls",n.ariaControls)("aria-disabled",n.disabled&&n.disabledInteractive?!0:null)("aria-expanded",n.ariaExpanded)("aria-owns",n.ariaOwns)("name",n.name)("value",n.value),h(7),M("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),h(),M("for",n.inputId)}},dependencies:[yo,Dm],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover .mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return o})();var je=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[Oe,ke,ke]})}return o})();var x0=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0})}return o})(),tp=ti({passive:!0}),ip=(()=>{class o{_platform=u(Ae);_ngZone=u(G);_styleLoader=u(lt);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Kt;this._styleLoader.load(x0);let t=kt(e),n=this._monitoredElements.get(t);if(n)return n.subject;let r=new N,s="cdk-text-field-autofilled",a=c=>{c.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(s)?(t.classList.add(s),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(s)&&(t.classList.remove(s),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",a,tp),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:r,unlisten:()=>{t.removeEventListener("animationstart",a,tp)}}),r}stopMonitoring(e){let t=kt(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var np=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({})}return o})();var w0=new R("MAT_INPUT_VALUE_ACCESSOR"),C0=["button","checkbox","file","hidden","image","radio","range","reset","submit"],k0=new R("MAT_INPUT_CONFIG"),et=(()=>{class o{_elementRef=u(W);_platform=u(Ae);ngControl=u(pi,{optional:!0,self:!0});_autofillMonitor=u(ip);_ngZone=u(G);_formField=u(dr,{optional:!0});_uid=u(yt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_webkitBlinkWheelListenerAttached=!1;_config=u(k0,{optional:!0});_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new N;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ot(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(Ln.required)??!1}set required(e){this._required=Ot(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Xa().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ot(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>Xa().has(e));constructor(){let e=u(Eo,{optional:!0}),t=u(So,{optional:!0}),n=u(Yr),r=u(w0,{optional:!0,self:!0}),s=this._elementRef.nativeElement,a=s.nodeName.toLowerCase();r?qi(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=s,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{s.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Dn(n,this.ngControl,t,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=a==="select",this._isTextarea=a==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=s.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Ir(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let t=this._elementRef.nativeElement;t.type==="number"?(t.type="text",t.setSelectionRange(0,0),t.type="number"):t.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){C0.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused&&!this.disabled||!this.empty}setDescribedByIds(e){let t=this._elementRef.nativeElement,n=t.getAttribute("aria-describedby"),r;if(n){let s=this._formFieldDescribedBy||e;r=e.concat(n.split(" ").filter(a=>a&&!s.includes(a)))}else r=e;this._formFieldDescribedBy=e,r.length?t.setAttribute("aria-describedby",r.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let t=e.target;!t.value&&t.selectionStart===0&&t.selectionEnd===0&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(t,n){t&1&&g("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),t&2&&(Ei("id",n.id)("disabled",n.disabled&&!n.disabledInteractive)("required",n.required),fe("name",n.name||null)("readonly",n._getReadonlyAttribute())("aria-disabled",n.disabled&&n.disabledInteractive?"true":null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required)("id",n.id),te("mat-input-server",n._isServer)("mat-mdc-form-field-textarea-control",n._isInFormField&&n._isTextarea)("mat-mdc-form-field-input-control",n._isInFormField)("mat-mdc-input-disabled-interactive",n.disabledInteractive)("mdc-text-field__input",n._isInFormField)("mat-mdc-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",q]},exportAs:["matInput"],features:[Ve([{provide:cr,useExisting:o}]),Fe,ze]})}return o})(),tt=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,mr,mr,np,ke]})}return o})();function M0(o,i){if(o&1){let e=F();l(0,"div",3)(1,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.enabled,n)||(r.options.draggable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(2," Drag Items "),d(),l(3,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.pushItems,n)||(r.options.pushItems=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(4," Push Items "),d(),l(5,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.dropOverItems,n)||(r.options.draggable.dropOverItems=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(6," Allow Drop Over Items "),d(),l(7,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.ignoreContent,n)||(r.options.draggable.ignoreContent=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(8," Ignore Content "),d(),l(9,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.disableScrollVertical,n)||(r.options.disableScrollVertical=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(10," Disable Vertical Scroll "),d(),l(11,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.disableScrollHorizontal,n)||(r.options.disableScrollHorizontal=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(12," Disable Horizontal Scroll "),d(),l(13,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.enableBoundaryControl,n)||(r.options.enableBoundaryControl=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(14," Enable Boundary Control "),d(),l(15,"mat-form-field")(16,"input",7),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.delayStart,n)||(r.options.draggable.delayStart=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(17,"mat-form-field")(18,"input",8),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.dragHandleClass,n)||(r.options.draggable.dragHandleClass=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(19,"mat-form-field")(20,"input",9),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.ignoreContentClass,n)||(r.options.draggable.ignoreContentClass=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(21,"button",10),g("click",function(){b(e);let n=f();return v(n.addItem())}),l(22,"mat-icon"),m(23,"add"),d()()()}if(o&2){let e=f();h(),x("ngModel",e.options.draggable.enabled),h(2),x("ngModel",e.options.pushItems),h(2),x("ngModel",e.options.draggable.dropOverItems),h(2),x("ngModel",e.options.draggable.ignoreContent),h(2),x("ngModel",e.options.disableScrollVertical),h(2),x("ngModel",e.options.disableScrollHorizontal),h(2),x("ngModel",e.options.enableBoundaryControl),h(3),x("ngModel",e.options.draggable.delayStart),h(2),x("ngModel",e.options.draggable.dragHandleClass),h(2),x("ngModel",e.options.draggable.ignoreContentClass)}}function I0(o,i){o&1&&(l(0,"div",12)(1,"div",15)(2,"span"),m(3,"Some content to select and click without dragging the widget"),d(),l(4,"a",16),m(5,"Link to Google"),d()()())}function E0(o,i){if(o&1){let e=F();l(0,"div",13)(1,"button",17)(2,"mat-icon"),m(3,"open_with"),d()(),l(4,"button",18),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(5,"mat-icon"),m(6,"delete"),d()()()}}function S0(o,i){if(o&1&&(l(0,"label"),m(1),d()),o&2){let e=f().$implicit;h(),Ze(e.label)}}function T0(o,i){if(o&1){let e=F();l(0,"button",19),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(1,"mat-icon"),m(2,"delete"),d()()}}function D0(o,i){if(o&1&&(l(0,"gridster-item",5)(1,"div",11),Y(2,I0,6,0,"div",12)(3,E0,7,0,"div",13)(4,S0,2,1,"label")(5,T0,3,0,"button",14),d()()),o&2){let e=i.$implicit;M("item",e),h(2),L(e.hasContent?2:-1),h(),L(e.hasContent?3:-1),h(),L(e.hasContent?-1:4),h(),L(e.hasContent?-1:5)}}var js=class o{options;dashboard;static eventStart(i,e,t){console.info("eventStart",i,e,t)}static eventStop(i,e,t){console.info("eventStop",i,e,t)}static overlapEvent(i,e,t){console.log("overlap",i,e,t)}ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!0,swap:!1,draggable:{delayStart:0,enabled:!0,ignoreContentClass:"gridster-item-content",ignoreContent:!1,dragHandleClass:"drag-handler",stop:o.eventStop,start:o.eventStart,dropOverItems:!1,dropOverItemsCallback:o.overlapEvent},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2,hasContent:!0},{cols:1,rows:1,y:0,x:4},{cols:1,rows:1,y:2,x:5},{cols:1,rows:1,y:1,x:0},{cols:1,rows:1,y:1,x:0},{cols:2,rows:2,y:3,x:5,minItemRows:2,minItemCols:2,label:"Min rows & cols = 2"},{cols:2,rows:2,y:2,x:0,maxItemRows:2,maxItemCols:2,label:"Max rows & cols = 2"},{cols:2,rows:1,y:2,x:2,dragEnabled:!0,resizeEnabled:!0,label:"Drag&Resize Enabled"},{cols:1,rows:1,y:2,x:4,dragEnabled:!1,resizeEnabled:!1,label:"Drag&Resize Disabled"},{cols:1,rows:1,y:2,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-drag"]],decls:10,vars:3,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/drag","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"options"],[3,"item"],[3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Delay Start ms",3,"ngModelChange","ngModel"],["matInput","","type","text","placeholder","Drag Handle Class",3,"ngModelChange","ngModel"],["matInput","","type","text","placeholder","Ignore Content Class",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[1,"button-holder"],[1,"gridster-item-content"],[1,"item-buttons"],["mat-mini-fab",""],[1,"stuff"],["href","https://www.google.com","target","_blank"],["mat-icon-button","",1,"drag-handler"],["mat-icon-button","",1,"remove-button",3,"mousedown","touchstart"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),Y(6,M0,24,10,"div",3),l(7,"gridster",4),ie(8,D0,6,5,"gridster-item",5,ge),d()),e&2&&(h(5),M("src","assets/drag.md"),h(),L(t.options.draggable?6:-1),h(),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,zi,be,je,Oe,he,me,tt,et,We,le,_e,se,pe],encapsulation:2,changeDetection:0})};var $s=class o{widget;resizeEvent;resizeSub;ngOnInit(){this.resizeSub=this.resizeEvent.subscribe(i=>{i===this.widget&&console.log(i)})}ngOnDestroy(){this.resizeSub.unsubscribe()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-widget-a"]],inputs:{widget:"widget",resizeEvent:"resizeEvent"},decls:1,vars:1,template:function(e,t){e&1&&m(0),e&2&&Ze(t.widget.type)},encapsulation:2,changeDetection:0})};var Us=class o{widget;resizeEvent;resizeSub;ngOnInit(){this.resizeSub=this.resizeEvent.subscribe(i=>{i===this.widget&&console.log(i)})}ngOnDestroy(){this.resizeSub.unsubscribe()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-widget-b"]],inputs:{widget:"widget",resizeEvent:"resizeEvent"},decls:1,vars:1,template:function(e,t){e&1&&m(0),e&2&&Ze(t.widget.type)},encapsulation:2,changeDetection:0})};var Hs=class o{widget;resizeEvent;resizeSub;ngOnInit(){this.resizeSub=this.resizeEvent.subscribe(i=>{i===this.widget&&console.log(i)})}ngOnDestroy(){this.resizeSub.unsubscribe()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-widget-c"]],inputs:{widget:"widget",resizeEvent:"resizeEvent"},decls:1,vars:1,template:function(e,t){e&1&&m(0),e&2&&Ze(t.widget.type)},encapsulation:2,changeDetection:0})};function R0(o,i){if(o&1&&D(0,"app-widget-a",0),o&2){let e=f();M("resizeEvent",e.resizeEvent)("widget",e.widget)}}function A0(o,i){if(o&1&&D(0,"app-widget-b",1),o&2){let e=f();M("widget",e.widget)("resizeEvent",e.resizeEvent)}}function O0(o,i){if(o&1&&D(0,"app-widget-c",1),o&2){let e=f();M("widget",e.widget)("resizeEvent",e.resizeEvent)}}var Gs=class o{widget;resizeEvent;static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-parent-dynamic"]],inputs:{widget:"widget",resizeEvent:"resizeEvent"},decls:3,vars:3,consts:[[3,"resizeEvent","widget"],[3,"widget","resizeEvent"]],template:function(e,t){e&1&&Y(0,R0,1,2,"app-widget-a",0)(1,A0,1,2,"app-widget-b",1)(2,O0,1,2,"app-widget-c",1),e&2&&(L(t.widget.type==="widgetA"?0:-1),h(),L(t.widget.type==="widgetB"?1:-1),h(),L(t.widget.type==="widgetC"?2:-1))},dependencies:[$s,Us,Hs],encapsulation:2,changeDetection:0})};function F0(o,i){if(o&1&&(l(0,"gridster-item",4),D(1,"app-parent-dynamic",5),d()),o&2){let e=i.$implicit,t=f();M("item",e),h(),M("widget",e)("resizeEvent",t.resizeEvent)}}var Ys=class o{options;dashboard;resizeEvent=new U;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,disableWindowResize:!1,scrollToNewItems:!1,disableWarnings:!1,ignoreMarginInRow:!1,itemResizeCallback:i=>{this.resizeEvent.emit(i)}},this.dashboard=[{cols:2,rows:1,y:0,x:0,type:"widgetA"},{cols:2,rows:2,y:0,x:2,type:"widgetB"},{cols:2,rows:1,y:1,x:0,type:"widgetC"}]}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-dynamic-widgets"]],decls:9,vars:2,consts:[[1,"options"],["href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/dynamicWidgets","mat-raised-button","","target","_blank",1,"source-code-button"],[3,"src"],[3,"options"],[3,"item"],[3,"widget","resizeEvent"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"gridster",3),ie(7,F0,2,3,"gridster-item",4,ge),d()),e&2&&(h(5),M("src","assets/dynamicWidgets.md"),h(),M("options",t.options),h(),ne(t.dashboard))},dependencies:[de,ce,he,me,le,_e,se,pe,Gs],encapsulation:2,changeDetection:0})};function P0(o,i){if(o&1){let e=F();l(0,"div",12),g("dragstart",function(n){b(e);let r=f();return v(r.dragStartHandler(n))}),m(1,"Drag me!"),d()}}function L0(o,i){if(o&1){let e=F();l(0,"gridster-item",11)(1,"div",13)(2,"button",14),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var qs=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellClickCallback:this.emptyCellClick.bind(this),emptyCellContextMenuCallback:this.emptyCellClick.bind(this),emptyCellDropCallback:this.emptyCellClick.bind(this),emptyCellDragCallback:this.emptyCellClick.bind(this),emptyCellDragMaxCols:50,emptyCellDragMaxRows:50},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}emptyCellClick(i,e){console.info("empty cell click",i,e),this.dashboard.push(e)}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}dragStartHandler(i){i.dataTransfer&&(i.dataTransfer.setData("text/plain","Drag Me Button"),i.dataTransfer.dropEffect="copy")}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-empty-cell"]],decls:28,vars:11,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/emptyCell","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"ngModelChange","ngModel"],["draggable","true"],[3,"ngModelChange","ngModel","disabled"],["matInput","","type","number","placeholder","Drag Max Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Drag Max Rows",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],["draggable","true",3,"dragstart"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.enableEmptyCellClick,r)||(t.options.enableEmptyCellClick=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(8," Enable click to add "),d(),l(9,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.enableEmptyCellContextMenu,r)||(t.options.enableEmptyCellContextMenu=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(10," Enable right click to add "),d(),l(11,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.enableEmptyCellDrop,r)||(t.options.enableEmptyCellDrop=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(12," Enable drop to add "),d(),Y(13,P0,2,0,"div",5),l(14,"mat-checkbox",6),g("ngModelChange",function(){return t.changedOptions()}),C("ngModelChange",function(r){return w(t.options.enableOccupiedCellDrop,r)||(t.options.enableOccupiedCellDrop=r),r}),m(15," Enable drop on occupied cell "),d(),l(16,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.enableEmptyCellDrag,r)||(t.options.enableEmptyCellDrag=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(17," Enable drag to add "),d(),l(18,"mat-form-field")(19,"input",7),C("ngModelChange",function(r){return w(t.options.emptyCellDragMaxCols,r)||(t.options.emptyCellDragMaxCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(20,"mat-form-field")(21,"input",8),C("ngModelChange",function(r){return w(t.options.emptyCellDragMaxRows,r)||(t.options.emptyCellDragMaxRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(22,"button",9),g("click",function(){return t.addItem()}),l(23,"mat-icon"),m(24,"add"),d()()(),l(25,"gridster",10),ie(26,L0,5,1,"gridster-item",11,ge),d()),e&2&&(h(5),M("src","assets/emptyCell.md"),h(2),x("ngModel",t.options.enableEmptyCellClick),h(2),x("ngModel",t.options.enableEmptyCellContextMenu),h(2),x("ngModel",t.options.enableEmptyCellDrop),h(2),L(t.options.enableEmptyCellDrop?13:-1),h(),x("ngModel",t.options.enableOccupiedCellDrop),M("disabled",!t.options.enableEmptyCellDrop),h(2),x("ngModel",t.options.enableEmptyCellDrag),h(3),x("ngModel",t.options.emptyCellDragMaxCols),h(2),x("ngModel",t.options.emptyCellDragMaxRows),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,be,je,Oe,he,me,tt,et,We,le,_e,se,pe],encapsulation:2,changeDetection:0})};function z0(o,i){if(o&1){let e=F();l(0,"gridster-item",7)(1,"div",8)(2,"button",9),g("mousedown",function(n){let r=b(e).$implicit,s=f(2);return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f(2);return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}function N0(o,i){if(o&1&&(l(0,"gridster",6),ie(1,z0,5,1,"gridster-item",7,ge),d()),o&2){let e=f();M("options",e.options),h(),ne(e.dashboard)}}var Xs=class o{options;dashboard;remove;static itemChange(i,e){console.info("itemChanged",i,e)}static itemResize(i,e){console.info("itemResized",i,e)}static itemInit(i,e){console.info("itemInitialized",i,e)}static itemRemoved(i,e){console.info("itemRemoved",i,e)}static itemValidate(i){return i.cols>0&&i.rows>0}static gridInit(i){console.info("gridInit",i)}static gridDestroy(i){console.info("gridDestroy",i)}static gridSizeChanged(i){console.info("gridSizeChanged",i)}ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,initCallback:o.gridInit,destroyCallback:o.gridDestroy,gridSizeChangedCallback:o.gridSizeChanged,itemChangeCallback:o.itemChange,itemResizeCallback:o.itemResize,itemInitCallback:o.itemInit,itemRemovedCallback:o.itemRemoved,itemValidateCallback:o.itemValidate,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}destroy(){this.remove=!this.remove}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-grid-events"]],decls:14,vars:2,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/gridEvents","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],["mat-mini-fab","",1,"destroy-button",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"button",4),g("click",function(){return t.addItem()}),l(8,"mat-icon"),m(9,"add"),d()(),l(10,"button",5),g("click",function(){return t.destroy()}),l(11,"mat-icon"),m(12,"delete"),d()()(),Y(13,N0,3,1,"gridster",6)),e&2&&(h(5),M("src","assets/gridEvents.md"),h(8),L(t.remove?-1:13))},dependencies:[de,ce,be,he,me,le,_e,se,pe],encapsulation:2,changeDetection:0})};function V0(o,i){if(o&1){let e=F();l(0,"gridster-item",19)(1,"div",20)(2,"button",21),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Zs=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-grid-margins"]],decls:39,vars:9,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/gridMargins","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["aria-label","Grid type","placeholder","Grid Type",3,"ngModelChange","ngModel"],["value","fit"],["value","scrollVertical"],["value","scrollHorizontal"],["value","fixed"],["value","verticalFixed"],["value","horizontalFixed"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Margin",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Grid Margin Top",3,"ngModelChange","ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Grid Margin Right",3,"ngModelChange","ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Grid Margin Bottom",3,"ngModelChange","ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Grid Margin Left",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"mat-select",4),C("ngModelChange",function(r){return w(t.options.gridType,r)||(t.options.gridType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(9,"mat-option",5),m(10,"Fit to screen"),d(),l(11,"mat-option",6),m(12,"Scroll Vertical"),d(),l(13,"mat-option",7),m(14,"Scroll Horizontal"),d(),l(15,"mat-option",8),m(16,"Fixed"),d(),l(17,"mat-option",9),m(18,"Vertical Fixed"),d(),l(19,"mat-option",10),m(20,"Horizontal Fixed"),d()()(),l(21,"mat-form-field")(22,"input",11),C("ngModelChange",function(r){return w(t.options.margin,r)||(t.options.margin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(23,"mat-checkbox",12),C("ngModelChange",function(r){return w(t.options.outerMargin,r)||(t.options.outerMargin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(24,"Outer Margin "),d(),l(25,"mat-form-field")(26,"input",13),C("ngModelChange",function(r){return w(t.options.outerMarginTop,r)||(t.options.outerMarginTop=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(27,"mat-form-field")(28,"input",14),C("ngModelChange",function(r){return w(t.options.outerMarginRight,r)||(t.options.outerMarginRight=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(29,"mat-form-field")(30,"input",15),C("ngModelChange",function(r){return w(t.options.outerMarginBottom,r)||(t.options.outerMarginBottom=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(31,"mat-form-field")(32,"input",16),C("ngModelChange",function(r){return w(t.options.outerMarginLeft,r)||(t.options.outerMarginLeft=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(33,"button",17),g("click",function(){return t.addItem()}),l(34,"mat-icon"),m(35,"add"),d()()(),l(36,"gridster",18),ie(37,V0,5,1,"gridster-item",19,ge),d()),e&2&&(h(5),M("src","assets/gridMargins.md"),h(3),x("ngModel",t.options.gridType),h(14),x("ngModel",t.options.margin),h(),x("ngModel",t.options.outerMargin),h(3),x("ngModel",t.options.outerMarginTop),h(2),x("ngModel",t.options.outerMarginRight),h(2),x("ngModel",t.options.outerMarginBottom),h(2),x("ngModel",t.options.outerMarginLeft),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,gi,fi,xe,de,ce,be,je,Oe,he,me,tt,et,We,_t,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};function B0(o,i){if(o&1){let e=F();l(0,"gridster-item",19)(1,"div",20)(2,"button",21),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Ks=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0},minCols:1,maxCols:100,minRows:1,maxRows:100,maxItemCols:100,minItemCols:1,maxItemRows:100,minItemRows:1,maxItemArea:2500,minItemArea:1,defaultItemCols:1,defaultItemRows:1,addEmptyRowsCount:2},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-grid-sizes"]],decls:39,vars:15,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/gridSizes","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["matInput","","type","number","placeholder","Min Grid Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Grid Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Grid Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Grid Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Area",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Area",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Default Item Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Default Item Cols",3,"ngModelChange","ngModel"],["matInput","","max","30","min","0","placeholder","Add Empty Rows Count","step","1","type","number",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"input",4),C("ngModelChange",function(r){return w(t.options.minCols,r)||(t.options.minCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(9,"mat-form-field")(10,"input",5),C("ngModelChange",function(r){return w(t.options.maxCols,r)||(t.options.maxCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(11,"mat-form-field")(12,"input",6),C("ngModelChange",function(r){return w(t.options.minRows,r)||(t.options.minRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(13,"mat-form-field")(14,"input",7),C("ngModelChange",function(r){return w(t.options.maxRows,r)||(t.options.maxRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(15,"mat-form-field")(16,"input",8),C("ngModelChange",function(r){return w(t.options.maxItemCols,r)||(t.options.maxItemCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(17,"mat-form-field")(18,"input",9),C("ngModelChange",function(r){return w(t.options.minItemCols,r)||(t.options.minItemCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(19,"mat-form-field")(20,"input",10),C("ngModelChange",function(r){return w(t.options.maxItemRows,r)||(t.options.maxItemRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(21,"mat-form-field")(22,"input",11),C("ngModelChange",function(r){return w(t.options.minItemRows,r)||(t.options.minItemRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(23,"mat-form-field")(24,"input",12),C("ngModelChange",function(r){return w(t.options.maxItemArea,r)||(t.options.maxItemArea=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(25,"mat-form-field")(26,"input",13),C("ngModelChange",function(r){return w(t.options.minItemArea,r)||(t.options.minItemArea=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(27,"mat-form-field")(28,"input",14),C("ngModelChange",function(r){return w(t.options.defaultItemRows,r)||(t.options.defaultItemRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(29,"mat-form-field")(30,"input",15),C("ngModelChange",function(r){return w(t.options.defaultItemCols,r)||(t.options.defaultItemCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(31,"mat-form-field")(32,"input",16),g("ngModelChange",function(){return t.changedOptions()}),C("ngModelChange",function(r){return w(t.options.addEmptyRowsCount,r)||(t.options.addEmptyRowsCount=r),r}),d()(),l(33,"button",17),g("click",function(){return t.addItem()}),l(34,"mat-icon"),m(35,"add"),d()()(),l(36,"gridster",18),ie(37,B0,5,1,"gridster-item",19,ge),d()),e&2&&(h(5),M("src","assets/gridSizes.md"),h(3),x("ngModel",t.options.minCols),h(2),x("ngModel",t.options.maxCols),h(2),x("ngModel",t.options.minRows),h(2),x("ngModel",t.options.maxRows),h(2),x("ngModel",t.options.maxItemCols),h(2),x("ngModel",t.options.minItemCols),h(2),x("ngModel",t.options.maxItemRows),h(2),x("ngModel",t.options.minItemRows),h(2),x("ngModel",t.options.maxItemArea),h(2),x("ngModel",t.options.minItemArea),h(2),x("ngModel",t.options.defaultItemRows),h(2),x("ngModel",t.options.defaultItemCols),h(2),x("ngModel",t.options.addEmptyRowsCount),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,gi,fi,xe,de,ce,be,he,me,tt,et,We,le,_e,se,pe],encapsulation:2,changeDetection:0})};function W0(o,i){if(o&1){let e=F();l(0,"gridster-item",18)(1,"div",19)(2,"button",20),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Qs=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,fixedColWidth:105,fixedRowHeight:105,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,mobileBreakpoint:640,useBodyForBreakpoint:!1,pushItems:!0,rowHeightRatio:1,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-grid-types"]],decls:43,vars:11,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/gridTypes","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["aria-label","Grid type","placeholder","Grid Type",3,"ngModelChange","ngModel"],["value","fit"],["value","scrollVertical"],["value","scrollHorizontal"],["value","fixed"],["value","verticalFixed"],["value","horizontalFixed"],["matInput","","type","number","placeholder","Fixed Col Width",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Fixed Row Height",3,"ngModelChange","ngModel"],["matInput","","placeholder","Row Height Ratio","step","0.1","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Mobile Breakpoint",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"mat-select",4),C("ngModelChange",function(r){return w(t.options.gridType,r)||(t.options.gridType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(9,"mat-option",5),m(10,"Fit to screen"),d(),l(11,"mat-option",6),m(12,"Scroll Vertical"),d(),l(13,"mat-option",7),m(14,"Scroll Horizontal"),d(),l(15,"mat-option",8),m(16,"Fixed"),d(),l(17,"mat-option",9),m(18,"Vertical Fixed"),d(),l(19,"mat-option",10),m(20,"Horizontal Fixed"),d()()(),l(21,"mat-form-field")(22,"input",11),C("ngModelChange",function(r){return w(t.options.fixedColWidth,r)||(t.options.fixedColWidth=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(23,"mat-form-field")(24,"input",12),C("ngModelChange",function(r){return w(t.options.fixedRowHeight,r)||(t.options.fixedRowHeight=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(25,"mat-form-field")(26,"input",13),g("ngModelChange",function(){return t.changedOptions()}),C("ngModelChange",function(r){return w(t.options.rowHeightRatio,r)||(t.options.rowHeightRatio=r),r}),d()(),l(27,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.setGridSize,r)||(t.options.setGridSize=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(28," Set Grid Size "),d(),l(29,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.keepFixedHeightInMobile,r)||(t.options.keepFixedHeightInMobile=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(30," Keep Fixed Height In Mobile "),d(),l(31,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.keepFixedWidthInMobile,r)||(t.options.keepFixedWidthInMobile=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(32," Keep Fixed Width In Mobile "),d(),l(33,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.useBodyForBreakpoint,r)||(t.options.useBodyForBreakpoint=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(34," Use Body Width as Breakpoint "),d(),l(35,"mat-form-field")(36,"input",15),C("ngModelChange",function(r){return w(t.options.mobileBreakpoint,r)||(t.options.mobileBreakpoint=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(37,"button",16),g("click",function(){return t.addItem()}),l(38,"mat-icon"),m(39,"add"),d()()(),l(40,"gridster",17),ie(41,W0,5,1,"gridster-item",18,ge),d()),e&2&&(h(5),M("src","assets/gridTypes.md"),h(3),x("ngModel",t.options.gridType),h(14),x("ngModel",t.options.fixedColWidth),h(2),x("ngModel",t.options.fixedRowHeight),h(2),x("ngModel",t.options.rowHeightRatio),h(),x("ngModel",t.options.setGridSize),h(2),x("ngModel",t.options.keepFixedHeightInMobile),h(2),x("ngModel",t.options.keepFixedWidthInMobile),h(2),x("ngModel",t.options.useBodyForBreakpoint),h(3),x("ngModel",t.options.mobileBreakpoint),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,be,je,Oe,he,me,tt,et,We,_t,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};function j0(o,i){if(o&1){let e=F();l(0,"mat-checkbox",14),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.enabled,n)||(r.options.draggable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Drag Items "),d()}if(o&2){let e=f();x("ngModel",e.options.draggable.enabled)}}function $0(o,i){if(o&1){let e=F();l(0,"mat-checkbox",14),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.enabled,n)||(r.options.resizable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Resize Items "),d()}if(o&2){let e=f();x("ngModel",e.options.resizable.enabled)}}function U0(o,i){o&1&&(l(0,"div",24)(1,"div",27)(2,"span"),m(3,"Some content to select and click without dragging the widget"),d(),l(4,"a",28),m(5,"Link to Google"),d()()())}function H0(o,i){if(o&1){let e=F();l(0,"div",25)(1,"button",29)(2,"mat-icon"),m(3,"open_with"),d()(),l(4,"button",30),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(5,"mat-icon"),m(6,"delete"),d()()()}}function G0(o,i){if(o&1&&(l(0,"label"),m(1),d()),o&2){let e=f().$implicit;h(),Ze(e.label)}}function Y0(o,i){if(o&1){let e=F();l(0,"button",31),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(1,"mat-icon"),m(2,"delete"),d()()}}function q0(o,i){if(o&1&&(l(0,"gridster-item",22)(1,"div",23),Y(2,U0,6,0,"div",24)(3,H0,7,0,"div",25)(4,G0,2,1,"label")(5,Y0,3,0,"button",26),d()()),o&2){let e=i.$implicit;M("item",e),h(2),L(e.hasContent?2:-1),h(),L(e.hasContent?3:-1),h(),L(e.hasContent?-1:4),h(),L(e.hasContent?-1:5)}}var Js=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,compactType:ue.None,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,mobileBreakpoint:640,useBodyForBreakpoint:!1,minCols:1,maxCols:100,minRows:1,maxRows:100,maxItemCols:100,minItemCols:1,maxItemRows:100,minItemRows:1,maxItemArea:2500,minItemArea:1,defaultItemCols:1,defaultItemRows:1,fixedColWidth:105,fixedRowHeight:105,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,scrollSensitivity:10,scrollSpeed:20,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{enabled:!0},resizable:{enabled:!0},swap:!1,pushItems:!0,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:ve.Always,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2,hasContent:!0},{cols:1,rows:1,y:0,x:4},{cols:1,rows:1,y:2,x:5},{cols:1,rows:1,y:1,x:0},{cols:1,rows:1,y:1,x:0},{cols:2,rows:2,y:3,x:5,minItemRows:2,minItemCols:2,label:"Min rows & cols = 2"},{cols:2,rows:2,y:2,x:0,maxItemRows:2,maxItemCols:2,label:"Max rows & cols = 2"},{cols:2,rows:1,y:2,x:2,dragEnabled:!0,resizeEnabled:!0,label:"Drag&Resize Enabled"},{cols:1,rows:1,y:2,x:4,dragEnabled:!1,resizeEnabled:!1,label:"Drag&Resize Disabled"},{cols:1,rows:1,y:2,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-general"]],decls:54,vars:14,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/home","target","_blank",1,"source-code-button"],[1,"options-header"],["aria-label","Grid type","placeholder","Grid Type",3,"ngModelChange","ngModel"],["value","fit"],["value","scrollVertical"],["value","scrollHorizontal"],["value","fixed"],["value","verticalFixed"],["value","horizontalFixed"],["aria-label","Display grid lines","placeholder","Display grid lines",3,"ngModelChange","ngModel"],["value","always"],["value","onDrag&Resize"],["value","none"],[3,"ngModelChange","ngModel"],[3,"ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Margin",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Mobile Breakpoint",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Fixed Col Width",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Fixed Row Height",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],[1,"gridster-item-content"],[1,"item-buttons"],["mat-mini-fab",""],[1,"stuff"],["href","https://www.google.com","target","_blank"],["mat-icon-button","",1,"drag-handler"],["mat-icon-button","",1,"remove-button",3,"mousedown","touchstart"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d()(),l(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),C("ngModelChange",function(r){return w(t.options.gridType,r)||(t.options.gridType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(8,"mat-option",4),m(9,"Fit to screen"),d(),l(10,"mat-option",5),m(11,"Scroll Vertical"),d(),l(12,"mat-option",6),m(13,"Scroll Horizontal"),d(),l(14,"mat-option",7),m(15,"Fixed"),d(),l(16,"mat-option",8),m(17,"Vertical Fixed"),d(),l(18,"mat-option",9),m(19,"Horizontal Fixed"),d()()(),l(20,"mat-form-field")(21,"mat-select",10),C("ngModelChange",function(r){return w(t.options.displayGrid,r)||(t.options.displayGrid=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(22,"mat-option",11),m(23,"Always"),d(),l(24,"mat-option",12),m(25,"On Drag & Resize"),d(),l(26,"mat-option",13),m(27,"None"),d()()(),l(28,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.swap,r)||(t.options.swap=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(29," Swap Items "),d(),l(30,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.pushItems,r)||(t.options.pushItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(31," Push Items "),d(),Y(32,j0,2,1,"mat-checkbox",15)(33,$0,2,1,"mat-checkbox",15),l(34,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.pushResizeItems,r)||(t.options.pushResizeItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(35," Push Resize Items "),d(),l(36,"mat-form-field")(37,"input",16),C("ngModelChange",function(r){return w(t.options.margin,r)||(t.options.margin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(38,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.outerMargin,r)||(t.options.outerMargin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(39,"Outer Margin "),d(),l(40,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.useBodyForBreakpoint,r)||(t.options.useBodyForBreakpoint=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(41,"Use Body Width as Breakpoint "),d(),l(42,"mat-form-field")(43,"input",17),C("ngModelChange",function(r){return w(t.options.mobileBreakpoint,r)||(t.options.mobileBreakpoint=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(44,"mat-form-field")(45,"input",18),C("ngModelChange",function(r){return w(t.options.fixedColWidth,r)||(t.options.fixedColWidth=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(46,"mat-form-field")(47,"input",19),C("ngModelChange",function(r){return w(t.options.fixedRowHeight,r)||(t.options.fixedRowHeight=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(48,"button",20),g("click",function(){return t.addItem()}),l(49,"mat-icon"),m(50,"add"),d()()(),l(51,"gridster",21),ie(52,q0,6,5,"gridster-item",22,ge),d()),e&2&&(h(7),x("ngModel",t.options.gridType),h(14),x("ngModel",t.options.displayGrid),h(7),x("ngModel",t.options.swap),h(2),x("ngModel",t.options.pushItems),h(2),L(t.options.draggable?32:-1),h(),L(t.options.resizable?33:-1),h(),x("ngModel",t.options.pushResizeItems),h(3),x("ngModel",t.options.margin),h(),x("ngModel",t.options.outerMargin),h(2),x("ngModel",t.options.useBodyForBreakpoint),h(3),x("ngModel",t.options.mobileBreakpoint),h(2),x("ngModel",t.options.fixedColWidth),h(2),x("ngModel",t.options.fixedRowHeight),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,gi,fi,xe,de,ce,zi,be,je,Oe,he,me,tt,et,We,_t,gt,st,se,pe],encapsulation:2,changeDetection:0})};function X0(o,i){if(o&1){let e=F();l(0,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.s,n)||(r.dashboard[0].resizableHandles.s=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(1," Resize South "),d(),l(2,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.e,n)||(r.dashboard[0].resizableHandles.e=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(3," Resize East "),d(),l(4,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.n,n)||(r.dashboard[0].resizableHandles.n=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(5," Resize North "),d(),l(6,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.w,n)||(r.dashboard[0].resizableHandles.w=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(7," Resize West "),d(),l(8,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.se,n)||(r.dashboard[0].resizableHandles.se=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(9," Resize South-East "),d(),l(10,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.ne,n)||(r.dashboard[0].resizableHandles.ne=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(11," Resize North-East "),d(),l(12,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.sw,n)||(r.dashboard[0].resizableHandles.sw=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(13," Resize South-West "),d(),l(14,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.nw,n)||(r.dashboard[0].resizableHandles.nw=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(15," Resize North-West "),d()}if(o&2){let e=f(2);x("ngModel",e.dashboard[0].resizableHandles.s),h(2),x("ngModel",e.dashboard[0].resizableHandles.e),h(2),x("ngModel",e.dashboard[0].resizableHandles.n),h(2),x("ngModel",e.dashboard[0].resizableHandles.w),h(2),x("ngModel",e.dashboard[0].resizableHandles.se),h(2),x("ngModel",e.dashboard[0].resizableHandles.ne),h(2),x("ngModel",e.dashboard[0].resizableHandles.sw),h(2),x("ngModel",e.dashboard[0].resizableHandles.nw)}}function Z0(o,i){if(o&1){let e=F();l(0,"div",3)(1,"mat-form-field")(2,"input",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].x,n)||(r.dashboard[0].x=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(3,"mat-form-field")(4,"input",7),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].y,n)||(r.dashboard[0].y=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(5,"mat-form-field")(6,"input",8),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].rows,n)||(r.dashboard[0].rows=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(7,"mat-form-field")(8,"input",9),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].cols,n)||(r.dashboard[0].cols=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(9,"mat-form-field")(10,"input",10),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].maxItemCols,n)||(r.dashboard[0].maxItemCols=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(11,"mat-form-field")(12,"input",11),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].minItemCols,n)||(r.dashboard[0].minItemCols=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(13,"mat-form-field")(14,"input",12),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].maxItemRows,n)||(r.dashboard[0].maxItemRows=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(15,"mat-form-field")(16,"input",13),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].minItemRows,n)||(r.dashboard[0].minItemRows=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(17,"mat-form-field")(18,"input",14),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].maxItemArea,n)||(r.dashboard[0].maxItemArea=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(19,"mat-form-field")(20,"input",15),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].minItemArea,n)||(r.dashboard[0].minItemArea=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(21,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].dragEnabled,n)||(r.dashboard[0].dragEnabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(22," Drag "),d(),l(23,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].resizeEnabled,n)||(r.dashboard[0].resizeEnabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(24," Resize "),d(),l(25,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].compactEnabled,n)||(r.dashboard[0].compactEnabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(26," Compact "),d(),Y(27,X0,16,8),l(28,"mat-form-field")(29,"mat-select",17),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.compactType,n)||(r.options.compactType=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),l(30,"mat-option",18),m(31,"None"),d(),l(32,"mat-option",19),m(33,"Compact Up"),d(),l(34,"mat-option",20),m(35,"Compact Left"),d(),l(36,"mat-option",21),m(37,"Compact Left & Up"),d(),l(38,"mat-option",22),m(39,"Compact Up & Left"),d()()(),l(40,"button",23),g("click",function(){b(e);let n=f();return v(n.addItem())}),l(41,"mat-icon"),m(42,"add"),d()()()}if(o&2){let e=f();h(2),x("ngModel",e.dashboard[0].x),h(2),x("ngModel",e.dashboard[0].y),h(2),x("ngModel",e.dashboard[0].rows),h(2),x("ngModel",e.dashboard[0].cols),h(2),x("ngModel",e.dashboard[0].maxItemCols),h(2),x("ngModel",e.dashboard[0].minItemCols),h(2),x("ngModel",e.dashboard[0].maxItemRows),h(2),x("ngModel",e.dashboard[0].minItemRows),h(2),x("ngModel",e.dashboard[0].maxItemArea),h(2),x("ngModel",e.dashboard[0].minItemArea),h(),x("ngModel",e.dashboard[0].dragEnabled),h(2),x("ngModel",e.dashboard[0].resizeEnabled),h(2),x("ngModel",e.dashboard[0].compactEnabled),h(2),L(e.dashboard[0].resizableHandles?27:-1),h(2),x("ngModel",e.options.compactType)}}function K0(o,i){if(o&1){let e=F();l(0,"gridster-item",5)(1,"div",24)(2,"button",25),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var ea=class o{options;dashboard;static itemInit(i,e){console.info("itemInitialized",i,e)}ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,compactType:ue.None,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0},minCols:1,maxCols:100,minRows:1,maxRows:100,maxItemCols:100,minItemCols:1,maxItemRows:100,minItemRows:1,maxItemArea:2500,minItemArea:1,defaultItemCols:1,defaultItemRows:1},this.dashboard=[{cols:2,rows:1,y:0,x:0,initCallback:o.itemInit,minItemCols:1,maxItemCols:100,maxItemRows:100,minItemRows:1,minItemArea:1,maxItemArea:2500,dragEnabled:!0,resizeEnabled:!0,compactEnabled:!0,resizableHandles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0}},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:2,x:1}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-items"]],decls:10,vars:3,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/items","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"options"],[3,"item"],["matInput","","type","number","placeholder","X",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Y",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Area",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Area",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["aria-label","Compact type","placeholder","Compact Type",3,"ngModelChange","ngModel"],["value","none"],["value","compactUp"],["value","compactLeft"],["value","compactLeft&Up"],["value","compactUp&Left"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),Y(6,Z0,43,15,"div",3),l(7,"gridster",4),ie(8,K0,5,1,"gridster-item",5,ge),d()),e&2&&(h(5),M("src","assets/items.md"),h(),L(t.dashboard[0]?6:-1),h(),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,be,je,Oe,he,me,tt,et,We,_t,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};function Q0(o,i){if(o&1){let e=F();l(0,"gridster-item",15)(1,"div",16)(2,"button",17),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var ta=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,draggable:{enabled:!0},resizable:{enabled:!0},disableWindowResize:!0,scrollToNewItems:!1,disableWarnings:!1,ignoreMarginInRow:!1,setGridSize:!1,scale:1},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-misc"]],decls:43,vars:10,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/misc","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"ngModelChange","ngModel"],["matInput","","type","number",3,"ngModelChange","ngModel"],["aria-label","Grid type","placeholder","Grid Type",3,"ngModelChange","ngModel"],["value","fit"],["value","scrollVertical"],["value","scrollHorizontal"],["value","fixed"],["value","verticalFixed"],["value","horizontalFixed"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.disableWindowResize,r)||(t.options.disableWindowResize=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(8," Disable window resize "),d(),l(9,"mat-checkbox",4),g("ngModelChange",function(){return t.changedOptions()}),C("ngModelChange",function(r){return w(t.options.setGridSize,r)||(t.options.setGridSize=r),r}),m(10," Set grid size "),d(),l(11,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.scrollToNewItems,r)||(t.options.scrollToNewItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(12," Scroll to new items "),d(),l(13,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.disableWarnings,r)||(t.options.disableWarnings=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(14," Disable console warnings "),d(),l(15,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.ignoreMarginInRow,r)||(t.options.ignoreMarginInRow=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(16," Ignore margin in row "),d(),l(17,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.disableAutoPositionOnConflict,r)||(t.options.disableAutoPositionOnConflict=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(18," Disable auto position on conflict "),d(),l(19,"mat-form-field")(20,"mat-label"),m(21,"Scale"),d(),l(22,"input",5),g("ngModelChange",function(){return t.changedOptions()}),C("ngModelChange",function(r){return w(t.options.scale,r)||(t.options.scale=r),r}),d()(),l(23,"mat-form-field")(24,"mat-select",6),C("ngModelChange",function(r){return w(t.options.gridType,r)||(t.options.gridType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(25,"mat-option",7),m(26,"Fit to screen"),d(),l(27,"mat-option",8),m(28,"Scroll Vertical"),d(),l(29,"mat-option",9),m(30,"Scroll Horizontal"),d(),l(31,"mat-option",10),m(32,"Fixed"),d(),l(33,"mat-option",11),m(34,"Vertical Fixed"),d(),l(35,"mat-option",12),m(36,"Horizontal Fixed"),d()()(),l(37,"button",13),g("click",function(){return t.addItem()}),l(38,"mat-icon"),m(39,"add"),d()()(),l(40,"gridster",14),ie(41,Q0,5,1,"gridster-item",15,ge),d()),e&2&&(h(5),M("src","assets/misc.md"),h(2),x("ngModel",t.options.disableWindowResize),h(2),x("ngModel",t.options.setGridSize),h(2),x("ngModel",t.options.scrollToNewItems),h(2),x("ngModel",t.options.disableWarnings),h(2),x("ngModel",t.options.ignoreMarginInRow),h(2),x("ngModel",t.options.disableAutoPositionOnConflict),h(5),x("ngModel",t.options.scale),h(2),x("ngModel",t.options.gridType),h(16),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,be,je,Oe,he,me,tt,et,We,Vs,_t,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};var J0=["mat-menu-item",""],ex=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],tx=["mat-icon, [matMenuItemIcon]","*"];function ix(o,i){o&1&&(Ui(),l(0,"svg",2),D(1,"polygon",3),d())}var nx=["*"];function ox(o,i){if(o&1){let e=F();l(0,"div",0),g("click",function(){b(e);let n=f();return v(n.closed.emit("click"))})("@transformMenu.start",function(n){b(e);let r=f();return v(r._onAnimationStart(n))})("@transformMenu.done",function(n){b(e);let r=f();return v(r._onAnimationDone(n))}),l(1,"div",1),H(2),d()()}if(o&2){let e=f();$t(e._classList),M("id",e.panelId)("@transformMenu",e._panelAnimationState),fe("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var qc=new R("MAT_MENU_PANEL"),hr=(()=>{class o{_elementRef=u(W);_document=u(ae);_focusMonitor=u(vo);_parentMenu=u(qc,{optional:!0});_changeDetectorRef=u(He);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new N;_focused=new N;_highlighted=!1;_triggersSubmenu=!1;constructor(){u(lt).load(ui),this._parentMenu?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let n=0;n enter",mi("120ms cubic-bezier(0, 0, 0.2, 1)",Mt({opacity:1,transform:"scale(1)"}))),ei("* => void",mi("100ms 25ms linear",Mt({opacity:0})))]),fadeInItems:Si("fadeInItems",[Zi("showing",Mt({opacity:1})),ei("void => *",[Mt({opacity:0}),mi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},BD=ia.fadeInItems,WD=ia.transformMenu,sx=new R("mat-menu-default-options",{providedIn:"root",factory:ax});function ax(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var fn=(()=>{class o{_elementRef=u(W);_changeDetectorRef=u(He);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_allItems;_directDescendantItems=new io;_classList={};_panelAnimationState="void";_animationDone=new N;_isAnimating;parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(e){let t=this._previousPanelClass,n=k({},this._classList);t&&t.length&&t.split(" ").forEach(r=>{n[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{n[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=n}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new U;close=this.closed;panelId=u(yt).getId("mat-menu-panel-");_injector=u(Je);constructor(){let e=u(sx);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ur(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ut(this._directDescendantItems),$e(e=>mt(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let n=e.toArray(),r=Math.max(0,Math.min(n.length-1,t.activeItemIndex||0));n[r]&&!n[r].disabled?t.setActiveItem(r):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(ut(this._directDescendantItems),$e(t=>mt(...t.map(n=>n._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,n=this._keyManager;switch(t){case 27:Ht(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&n.setFocusOrigin("keyboard"),n.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Yi(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){let n=this._keyManager;n.setFocusOrigin(e).setFirstItemActive(),!n.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=re(k({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ut(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-menu"]],contentQueries:function(t,n,r){if(t&1&&(qe(r,rx,5),qe(r,hr,5),qe(r,hr,4)),t&2){let s;J(s=ee())&&(n.lazyContent=s.first),J(s=ee())&&(n._allItems=s),J(s=ee())&&(n.items=s)}},viewQuery:function(t,n){if(t&1&&Pe(vn,5),t&2){let r;J(r=ee())&&(n.templateRef=r.first)}},hostVars:3,hostBindings:function(t,n){t&2&&fe("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",q],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:q(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ve([{provide:qc,useExisting:o}]),Fe],ngContentSelectors:nx,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","id"],[1,"mat-mdc-menu-content"]],template:function(t,n){t&1&&(Te(),Y(0,ox,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[ia.transformMenu,ia.fadeInItems]},changeDetection:0})}return o})(),rp=new R("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let o=u(Xt);return()=>o.scrollStrategies.reposition()}});function lx(o){return()=>o.scrollStrategies.reposition()}var cx={provide:rp,deps:[Xt],useFactory:lx},op=ti({passive:!0});var sp=(()=>{class o{_overlay=u(Xt);_element=u(W);_viewContainerRef=u(Jt);_menuItemInstance=u(hr,{optional:!0,self:!0});_dir=u(ii,{optional:!0});_focusMonitor=u(vo);_ngZone=u(G);_scrollStrategy=u(rp);_changeDetectorRef=u(He);_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Ge.EMPTY;_hoverSubscription=Ge.EMPTY;_menuCloseSubscription=Ge.EMPTY;_parentMaterialMenu;_parentInnerPadding;_handleTouchStart=e=>{bo(e)||(this._openedBy="touch")};_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}_menu;menuData;restoreFocus=!0;menuOpened=new U;onMenuOpen=this.menuOpened;menuClosed=new U;onMenuClose=this.menuClosed;constructor(){let e=u(qc,{optional:!0});this._parentMaterialMenu=e instanceof fn?e:void 0,this._element.nativeElement.addEventListener("touchstart",this._handleTouchStart,op)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,op),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;let t=this._createOverlay(e),n=t.getConfig(),r=n.positionStrategy;this._setPosition(e,r),n.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof fn&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ce(e.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof fn?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(De(n=>n.toState==="void"),ht(1),Ce(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe(n=>{this.menu instanceof fn&&this.menu._handleKeydown(n)})}return this._overlayRef}_getOverlayConfig(e){return new Zn({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(n=>{this._ngZone.run(()=>{let r=n.connectionPair.overlayX==="start"?"after":"before",s=n.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,s)})})}_setPosition(e,t){let[n,r]=e.xPosition==="before"?["end","start"]:["start","end"],[s,a]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[c,p]=[s,a],[_,y]=[n,r],I=0;if(this.triggersSubmenu()){if(y=n=e.xPosition==="before"?"start":"end",r=_=n==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let S=this._parentMaterialMenu.items.first;this._parentInnerPadding=S?S._getHostElement().offsetTop:0}I=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c=s==="top"?"bottom":"top",p=a==="top"?"bottom":"top");t.withPositions([{originX:n,originY:c,overlayX:_,overlayY:s,offsetY:I},{originX:r,originY:c,overlayX:y,overlayY:s,offsetY:I},{originX:n,originY:p,overlayX:_,overlayY:a,offsetY:-I},{originX:r,originY:p,overlayX:y,overlayY:a,offsetY:-I}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:V(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(De(s=>s!==this._menuItemInstance),De(()=>this._menuOpen)):V();return mt(e,n,r,t)}_handleMousedown(e){_o(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(De(e=>e===this._menuItemInstance&&!e.disabled),fa(0,pr)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof fn&&this.menu._isAnimating?this.menu._animationDone.pipe(ht(1),fa(0,pr),Ce(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new un(e.templateRef,this._viewContainerRef)),this._portal}static \u0275fac=function(t){return new(t||o)};static \u0275dir=j({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,n){t&1&&g("click",function(s){return n._handleClick(s)})("mousedown",function(s){return n._handleMousedown(s)})("keydown",function(s){return n._handleKeydown(s)}),t&2&&fe("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return o})(),ap=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({providers:[cx],imports:[tn,ke,zs,Xn,ke]})}return o})();function mx(o,i){if(o&1){let e=F();l(0,"gridster-item",9,0)(2,"div")(3,"button",10)(4,"mat-icon"),m(5,"more_vert"),d()(),l(6,"mat-menu",null,1)(8,"button",11),g("click",function(){b(e);let n=At(1);return v(n.bringToFront(1))}),l(9,"mat-icon"),m(10,"arrow_upward"),d(),l(11,"span"),m(12,"Bring To Front"),d()(),l(13,"button",11),g("click",function(){b(e);let n=At(1);return v(n.sendToBack(1))}),l(14,"mat-icon"),m(15,"arrow_downward"),d(),l(16,"span"),m(17,"Send To Back"),d()()(),l(18,"span"),m(19,"LayerIndex: "),l(20,"span",12),m(21),d()(),l(22,"div",13)(23,"button",14),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(24,"mat-icon"),m(25,"delete"),d()()()()()}if(o&2){let e=i.$implicit,t=At(7);M("item",e),h(3),M("matMenuTriggerFor",t),h(18),Ze(e.layerIndex===void 0?1:e.layerIndex)}}var na=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!1,swap:!0,allowMultiLayer:!0,defaultLayerIndex:1,baseLayerIndex:2,maxLayerIndex:2,swapWhileDragging:!1,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0,layerIndex:2},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:2,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-swap"]],decls:19,vars:5,consts:[["gridsterItem",""],["menu","matMenu"],[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/multiLayer","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],["mat-icon-button","","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],[2,"margin-left","10px","color","blueviolet"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",2)(1,"a",3)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",4),d(),l(6,"div",5)(7,"mat-checkbox",6),C("ngModelChange",function(r){return w(t.options.allowMultiLayer,r)||(t.options.allowMultiLayer=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(8," Allow Multi Layer "),d(),l(9,"mat-checkbox",6),C("ngModelChange",function(r){return w(t.options.swap,r)||(t.options.swap=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(10," Swap Items "),d(),l(11,"mat-checkbox",6),C("ngModelChange",function(r){return w(t.options.swapWhileDragging,r)||(t.options.swapWhileDragging=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(12," Swap Items While Dragging "),d(),l(13,"button",7),g("click",function(){return t.addItem()}),l(14,"mat-icon"),m(15,"add"),d()()(),l(16,"gridster",8),ie(17,mx,26,3,"gridster-item",9,ge),d()),e&2&&(h(5),M("src","assets/multiLayer.md"),h(2),x("ngModel",t.options.allowMultiLayer),h(2),x("ngModel",t.options.swap),h(2),x("ngModel",t.options.swapWhileDragging),h(5),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Me,xe,de,ce,zi,be,je,Oe,he,me,ap,fn,hr,sp,le,_e,se,pe],encapsulation:2,changeDetection:0})};function hx(o,i){if(o&1){let e=F();l(0,"mat-checkbox",4),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.pushDirections.north,n)||(r.options.pushDirections.north=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Push North "),d()}if(o&2){let e=f();x("ngModel",e.options.pushDirections.north)}}function ux(o,i){if(o&1){let e=F();l(0,"mat-checkbox",4),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.pushDirections.east,n)||(r.options.pushDirections.east=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Push East "),d()}if(o&2){let e=f();x("ngModel",e.options.pushDirections.east)}}function px(o,i){if(o&1){let e=F();l(0,"mat-checkbox",4),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.pushDirections.south,n)||(r.options.pushDirections.south=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Push South "),d()}if(o&2){let e=f();x("ngModel",e.options.pushDirections.south)}}function fx(o,i){if(o&1){let e=F();l(0,"mat-checkbox",4),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.pushDirections.west,n)||(r.options.pushDirections.west=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Push West "),d()}if(o&2){let e=f();x("ngModel",e.options.pushDirections.west)}}function gx(o,i){if(o&1){let e=F();l(0,"gridster-item",8)(1,"div",9)(2,"button",10),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var oa=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!0,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,swap:!1,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-push"]],decls:25,vars:10,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/push","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"ngModelChange","ngModel"],[3,"ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.pushItems,r)||(t.options.pushItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(8," Push Items "),d(),l(9,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.disablePushOnDrag,r)||(t.options.disablePushOnDrag=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(10," Disable Push On Drag "),d(),l(11,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.disablePushOnResize,r)||(t.options.disablePushOnResize=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(12," Disable Push On Resize "),d(),Y(13,hx,2,1,"mat-checkbox",5)(14,ux,2,1,"mat-checkbox",5)(15,px,2,1,"mat-checkbox",5)(16,fx,2,1,"mat-checkbox",5),l(17,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.pushResizeItems,r)||(t.options.pushResizeItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(18," Push Resize Items "),d(),l(19,"button",6),g("click",function(){return t.addItem()}),l(20,"mat-icon"),m(21,"add"),d()()(),l(22,"gridster",7),ie(23,gx,5,1,"gridster-item",8,ge),d()),e&2&&(h(5),M("src","assets/push.md"),h(2),x("ngModel",t.options.pushItems),h(2),x("ngModel",t.options.disablePushOnDrag),h(2),x("ngModel",t.options.disablePushOnResize),h(2),L(t.options.pushDirections?13:-1),h(),L(t.options.pushDirections?14:-1),h(),L(t.options.pushDirections?15:-1),h(),L(t.options.pushDirections?16:-1),h(),x("ngModel",t.options.pushResizeItems),h(5),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Me,xe,de,ce,be,je,Oe,he,me,le,_e,se,pe],encapsulation:2,changeDetection:0})};function _x(o,i){if(o&1){let e=F();l(0,"div",3)(1,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.enabled,n)||(r.options.resizable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(2," Resize Items "),d(),l(3,"mat-form-field")(4,"input",7),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.delayStart,n)||(r.options.resizable.delayStart=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(5,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.s,n)||(r.options.resizable.handles.s=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(6," Resize South "),d(),l(7,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.e,n)||(r.options.resizable.handles.e=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(8," Resize East "),d(),l(9,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.n,n)||(r.options.resizable.handles.n=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(10," Resize North "),d(),l(11,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.w,n)||(r.options.resizable.handles.w=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(12," Resize West "),d(),l(13,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.se,n)||(r.options.resizable.handles.se=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(14," Resize South-East "),d(),l(15,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.ne,n)||(r.options.resizable.handles.ne=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(16," Resize North-East "),d(),l(17,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.sw,n)||(r.options.resizable.handles.sw=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(18," Resize South-West "),d(),l(19,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.nw,n)||(r.options.resizable.handles.nw=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(20," Resize North-West "),d(),l(21,"button",8),g("click",function(){b(e);let n=f();return v(n.addItem())}),l(22,"mat-icon"),m(23,"add"),d()()()}if(o&2){let e=f();h(),x("ngModel",e.options.resizable.enabled),h(3),x("ngModel",e.options.resizable.delayStart),h(),x("ngModel",e.options.resizable.handles.s),h(2),x("ngModel",e.options.resizable.handles.e),h(2),x("ngModel",e.options.resizable.handles.n),h(2),x("ngModel",e.options.resizable.handles.w),h(2),x("ngModel",e.options.resizable.handles.se),h(2),x("ngModel",e.options.resizable.handles.ne),h(2),x("ngModel",e.options.resizable.handles.sw),h(2),x("ngModel",e.options.resizable.handles.nw)}}function bx(o,i){if(o&1){let e=F();l(0,"gridster-item",5)(1,"div",9)(2,"button",10),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var ra=class o{options;dashboard;static eventStop(i,e,t){console.info("eventStop",i,e,t)}static eventStart(i,e,t){console.info("eventStart",i,e,t)}ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,resizable:{delayStart:0,enabled:!0,start:o.eventStart,stop:o.eventStop,handles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0}}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-resize"]],decls:10,vars:3,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/resize","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"options"],[3,"item"],[3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Delay Start ms",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),Y(6,_x,24,10,"div",3),l(7,"gridster",4),ie(8,bx,5,1,"gridster-item",5,ge),d()),e&2&&(h(5),M("src","assets/resize.md"),h(),L(t.options.resizable&&t.options.resizable.handles?6:-1),h(),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,be,je,Oe,he,me,tt,et,We,le,_e,se,pe],encapsulation:2,changeDetection:0})};function vx(o,i){if(o&1){let e=F();l(0,"mat-checkbox",15),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.enabled,n)||(r.options.draggable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Drag Items "),d()}if(o&2){let e=f();x("ngModel",e.options.draggable.enabled)}}function yx(o,i){if(o&1){let e=F();l(0,"mat-checkbox",15),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.enabled,n)||(r.options.resizable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Resize Items "),d()}if(o&2){let e=f();x("ngModel",e.options.resizable.enabled)}}function xx(o,i){o&1&&(l(0,"div",25)(1,"div",28)(2,"span"),m(3,"Some content to select and click without dragging the widget"),d(),l(4,"a",29),m(5,"Link to Google"),d()()())}function wx(o,i){if(o&1){let e=F();l(0,"div",26)(1,"button",30)(2,"mat-icon"),m(3,"open_with"),d()(),l(4,"button",31),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(5,"mat-icon"),m(6,"delete"),d()()()}}function Cx(o,i){if(o&1&&(l(0,"label"),m(1),d()),o&2){let e=f().$implicit;h(),Ze(e.label)}}function kx(o,i){if(o&1){let e=F();l(0,"button",32),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(1,"mat-icon"),m(2,"delete"),d()()}}function Mx(o,i){if(o&1&&(l(0,"gridster-item",23)(1,"div",24),Y(2,xx,6,0,"div",25)(3,wx,7,0,"div",26)(4,Cx,2,1,"label")(5,kx,3,0,"button",27),d()()),o&2){let e=i.$implicit;M("item",e),h(2),L(e.hasContent?2:-1),h(),L(e.hasContent?3:-1),h(),L(e.hasContent?-1:4),h(),L(e.hasContent?-1:5)}}var sa=class o{options;dashboard;ngOnInit(){document.body.setAttribute("dir","rtl"),this.options={gridType:P.Fit,compactType:ue.None,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,mobileBreakpoint:640,minCols:1,maxCols:100,minRows:1,maxRows:100,maxItemCols:100,minItemCols:1,maxItemRows:100,minItemRows:1,maxItemArea:2500,minItemArea:1,defaultItemCols:1,defaultItemRows:1,fixedColWidth:105,fixedRowHeight:105,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,scrollSensitivity:10,scrollSpeed:20,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{enabled:!0},resizable:{enabled:!0},swap:!1,pushItems:!0,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:ve.Always,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1,dirType:ot.RTL},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2,hasContent:!0},{cols:1,rows:1,y:0,x:4},{cols:1,rows:1,y:2,x:5},{cols:1,rows:1,y:1,x:0},{cols:1,rows:1,y:1,x:0},{cols:2,rows:2,y:3,x:5,minItemRows:2,minItemCols:2,label:"Min rows & cols = 2"},{cols:2,rows:2,y:2,x:0,maxItemRows:2,maxItemCols:2,label:"Max rows & cols = 2"},{cols:2,rows:1,y:2,x:2,dragEnabled:!0,resizeEnabled:!0,label:"Drag&Resize Enabled"},{cols:1,rows:1,y:2,x:4,dragEnabled:!1,resizeEnabled:!1,label:"Drag&Resize Disabled"},{cols:1,rows:1,y:2,x:6}],this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2,hasContent:!0},{cols:1,rows:1,y:0,x:4},{cols:1,rows:1,y:2,x:5},{cols:1,rows:1,y:1,x:0},{cols:1,rows:1,y:1,x:0},{cols:2,rows:2,y:3,x:5,minItemRows:2,minItemCols:2,label:"Min rows & cols = 2"},{cols:2,rows:2,y:2,x:0,maxItemRows:2,maxItemCols:2,label:"Max rows & cols = 2"},{cols:2,rows:1,y:2,x:2,dragEnabled:!0,resizeEnabled:!0,label:"Drag&Resize Enabled"},{cols:1,rows:1,y:2,x:4,dragEnabled:!1,resizeEnabled:!1,label:"Drag&Resize Disabled"},{cols:1,rows:1,y:2,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}ngOnDestroy(){document.body.removeAttribute("dir")}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-rtl"]],decls:53,vars:14,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/rtl","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["aria-label","Grid type","placeholder","Grid Type",3,"ngModelChange","ngModel"],["value","fit"],["value","scrollVertical"],["value","scrollHorizontal"],["value","fixed"],["value","verticalFixed"],["value","horizontalFixed"],["aria-label","Display grid lines","placeholder","Display grid lines",3,"ngModelChange","ngModel"],["value","always"],["value","onDrag&Resize"],["value","none"],[3,"ngModelChange","ngModel"],[3,"ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Margin",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Mobile Breakpoint",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Fixed Col Width",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Fixed Row Height",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],[1,"gridster-item-content"],[1,"item-buttons"],["mat-mini-fab",""],[1,"stuff"],["href","https://www.google.com","target","_blank"],["mat-icon-button","",1,"drag-handler"],["mat-icon-button","",1,"remove-button",3,"mousedown","touchstart"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"mat-select",4),C("ngModelChange",function(r){return w(t.options.gridType,r)||(t.options.gridType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(9,"mat-option",5),m(10,"Fit to screen"),d(),l(11,"mat-option",6),m(12,"Scroll Vertical"),d(),l(13,"mat-option",7),m(14,"Scroll Horizontal"),d(),l(15,"mat-option",8),m(16,"Fixed"),d(),l(17,"mat-option",9),m(18,"Vertical Fixed"),d(),l(19,"mat-option",10),m(20,"Horizontal Fixed"),d()()(),l(21,"mat-form-field")(22,"mat-select",11),C("ngModelChange",function(r){return w(t.options.displayGrid,r)||(t.options.displayGrid=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(23,"mat-option",12),m(24,"Always"),d(),l(25,"mat-option",13),m(26,"On Drag & Resize"),d(),l(27,"mat-option",14),m(28,"None"),d()()(),l(29,"mat-checkbox",15),C("ngModelChange",function(r){return w(t.options.swap,r)||(t.options.swap=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(30," Swap Items "),d(),l(31,"mat-checkbox",15),C("ngModelChange",function(r){return w(t.options.pushItems,r)||(t.options.pushItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(32," Push Items "),d(),Y(33,vx,2,1,"mat-checkbox",16)(34,yx,2,1,"mat-checkbox",16),l(35,"mat-checkbox",15),C("ngModelChange",function(r){return w(t.options.pushResizeItems,r)||(t.options.pushResizeItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(36," Push Resize Items "),d(),l(37,"mat-form-field")(38,"input",17),C("ngModelChange",function(r){return w(t.options.margin,r)||(t.options.margin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(39,"mat-checkbox",15),C("ngModelChange",function(r){return w(t.options.outerMargin,r)||(t.options.outerMargin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(40,"Outer Margin "),d(),l(41,"mat-form-field")(42,"input",18),C("ngModelChange",function(r){return w(t.options.mobileBreakpoint,r)||(t.options.mobileBreakpoint=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(43,"mat-form-field")(44,"input",19),C("ngModelChange",function(r){return w(t.options.fixedColWidth,r)||(t.options.fixedColWidth=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(45,"mat-form-field")(46,"input",20),C("ngModelChange",function(r){return w(t.options.fixedRowHeight,r)||(t.options.fixedRowHeight=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(47,"button",21),g("click",function(){return t.addItem()}),l(48,"mat-icon"),m(49,"add"),d()()(),l(50,"gridster",22),ie(51,Mx,6,5,"gridster-item",23,ge),d()),e&2&&(h(5),M("src","assets/rtl.md"),h(3),x("ngModel",t.options.gridType),h(14),x("ngModel",t.options.displayGrid),h(7),x("ngModel",t.options.swap),h(2),x("ngModel",t.options.pushItems),h(2),L(t.options.draggable?33:-1),h(),L(t.options.resizable?34:-1),h(),x("ngModel",t.options.pushResizeItems),h(3),x("ngModel",t.options.margin),h(),x("ngModel",t.options.outerMargin),h(3),x("ngModel",t.options.mobileBreakpoint),h(2),x("ngModel",t.options.fixedColWidth),h(2),x("ngModel",t.options.fixedRowHeight),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,gi,fi,xe,de,ce,zi,be,je,Oe,he,me,tt,et,We,_t,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};function Ix(o,i){if(o&1){let e=F();l(0,"gridster-item",7)(1,"div",8)(2,"button",9),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var aa=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!1,swap:!0,swapWhileDragging:!1,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-swap"]],decls:17,vars:4,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/swap","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.swap,r)||(t.options.swap=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(8," Swap Items "),d(),l(9,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.swapWhileDragging,r)||(t.options.swapWhileDragging=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(10," Swap Items While Dragging "),d(),l(11,"button",5),g("click",function(){return t.addItem()}),l(12,"mat-icon"),m(13,"add"),d()()(),l(14,"gridster",6),ie(15,Ix,5,1,"gridster-item",7,ge),d()),e&2&&(h(5),M("src","assets/swap.md"),h(2),x("ngModel",t.options.swap),h(2),x("ngModel",t.options.swapWhileDragging),h(5),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Me,xe,de,ce,be,je,Oe,he,me,le,_e,se,pe],encapsulation:2,changeDetection:0})};var la=class o{id;ngOnInit(){console.info(`Init ${this.id}`)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-trackby-item"]],inputs:{id:"id"},decls:3,vars:1,consts:[[1,"button-holder"],[2,"font-size","30px"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1),m(2),d()()),e&2&&(h(2),Mr("ID: ",t.id,""))},encapsulation:2,changeDetection:0})};var Ex=(o,i)=>i.id;function Sx(o,i){if(o&1){let e=F();l(0,"gridster-item",7)(1,"button",8),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(2,"mat-icon"),m(3,"delete"),d()(),D(4,"app-trackby-item",9),d()}if(o&2){let e=i.$implicit;M("item",e),h(4),M("id",e.id)}}var ca=class o{options;dashboard;dashboardOriginal;static itemInit(i,e){console.info("itemInitialized",i,e)}ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,compactType:ue.None,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0},minCols:1,maxCols:100,minRows:1,maxRows:100,maxItemCols:100,minItemCols:1,maxItemRows:100,minItemRows:1,maxItemArea:2500,minItemArea:1,defaultItemCols:1,defaultItemRows:1},this.dashboard=[{cols:2,rows:1,y:0,x:0,initCallback:o.itemInit,minItemCols:1,maxItemCols:100,maxItemRows:100,minItemRows:1,minItemArea:1,maxItemArea:2500,dragEnabled:!0,resizeEnabled:!0,compactEnabled:!0,id:0},{cols:2,rows:2,y:0,x:2,id:1},{cols:1,rows:1,y:0,x:4,id:2},{cols:3,rows:2,y:1,x:4,id:3},{cols:1,rows:1,y:2,x:1,id:4}],this.dashboardOriginal=this.dashboard.map(i=>k({},i))}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}reset(){this.dashboard=this.dashboardOriginal.map(i=>k({},i))}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1,id:this.dashboard.length})}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-trackby"]],decls:15,vars:2,consts:[[1,"options"],["href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/trackBy","mat-raised-button","","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["color","accent","mat-raised-button","",1,"cols-2",3,"click"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],["mat-mini-fab","",2,"position","absolute","right","10px","top","10px",3,"mousedown","touchstart"],[3,"id"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"button",4),g("click",function(){return t.reset()}),m(8," Reset "),d(),l(9,"button",5),g("click",function(){return t.addItem()}),l(10,"mat-icon"),m(11,"add"),d()()(),l(12,"gridster",6),ie(13,Sx,5,2,"gridster-item",7,Ex),d()),e&2&&(h(5),M("src","assets/trackBy.md"),h(7),M("options",t.options),h(),ne(t.dashboard))},dependencies:[de,ce,As,be,he,me,le,_e,se,pe,la],encapsulation:2,changeDetection:0})};var lp=[{path:"",component:Js},{path:"api",component:Ps},{path:"compact",component:Bs},{path:"displayGrid",component:Ws},{path:"drag",component:js},{path:"dynamicWidgets",component:Ys},{path:"emptyCell",component:qs},{path:"gridEvents",component:Xs},{path:"gridMargins",component:Zs},{path:"gridSizes",component:Ks},{path:"gridTypes",component:Qs},{path:"items",component:ea},{path:"trackBy",component:ca},{path:"push",component:oa},{path:"resize",component:ra},{path:"swap",component:aa},{path:"multiLayer",component:na},{path:"misc",component:ta},{path:"rtl",component:sa},{path:"**",redirectTo:""}];var cp={providers:[Md(),Yh(lp),Gd(),lc(),id(le.forRoot({loader:Ki,markedOptions:{provide:vc,useValue:{breaks:!0}}})),lc()]};im(Is,cp).catch(o=>console.log(o)); diff --git a/main-XJA5KT2S.js b/main-XJA5KT2S.js deleted file mode 100644 index e9c0a8e..0000000 --- a/main-XJA5KT2S.js +++ /dev/null @@ -1,67 +0,0 @@ -import{$ as Rt,$a as wa,$b as Ve,A as br,Aa as ad,Ab as L,Ac as Fd,B as mt,Ba as j,Bb as Ma,Bc as di,C as De,Ca as no,Cb as ge,Cc as Dr,D as pa,Da as ld,Db as ie,Dc as Rr,E as Ci,Ea as oo,Eb as ne,F as Wi,Fa as cd,Fb as l,G as ki,Ga as Wt,Gb as d,Gc as Si,H as fa,Ha as pt,Hb as D,Hc as mi,I as ht,Ia as ro,Ib as F,J as vr,Ja as xa,Jb as Ei,Jc as Mt,K as ga,Ka as wr,Kb as g,Kc as Zi,L as ji,La as Yi,Lb as f,Lc as ei,M as Mi,Ma as so,Mb as Te,Mc as Pd,N as ai,Na as _n,Nb as G,Nc as Ld,O as _a,Oa as bn,Ob as Ye,P as Qc,Pa as dd,Pb as Pe,Q as ba,Qa as md,Qb as J,R as Jc,Ra as hd,Rb as ee,S as ed,Sa as ud,Sb as Cd,T as io,Ta as pd,Tb as kd,U as yr,Ua as fd,Ub as At,V as ut,Va as gd,Vb as m,W as $e,Wa as vt,Wb as Ze,X as Ce,Xa as _d,Xb as Ir,Y as td,Ya as ao,Yb as x,Z as Ue,Za as h,Zb as w,_ as Se,_a as Q,_b as C,a as k,aa as O,ab as vn,ac as Md,b as re,ba as X,bb as Cr,bc as Ia,ca as id,cb as jt,cc as Ea,d as Qn,da as R,db as Jt,dc as Sa,e as He,ea as va,eb as qi,ec as Ta,f as Zc,fa as K,fb as Ii,fc as Id,g as Vt,ga as u,gb as bd,gc as qe,h as ma,ha as $i,hb as vd,hc as Ed,i as pr,ia as nd,ib as yd,ic as q,j as N,ja as od,jb as xd,jc as Xi,k as Ct,ka as Qt,kb as E,kc as ci,l as fr,la as Bt,lb as Z,lc as Ut,m as Kt,ma as ze,mb as $,mc as Er,n as dt,na as b,nb as Ne,nc as Sr,o as V,oa as v,ob as Fe,oc as yn,p as Bi,pa as Ui,pb as Y,pc as Sd,q as Jn,qa as ya,qb as kr,qc as Td,r as Kc,ra as Ge,rb as Mr,rc as ae,s as B,sa as rd,sb as Ca,sc as Da,t as eo,ta as Je,tb as li,tc as xn,u as Dt,ua as Hi,ub as fe,uc as Tr,v as ha,va as sd,vb as M,vc as Dd,w as gr,wa as xr,wb as ka,wc as Rd,x as to,xa as H,xb as te,xc as Ad,y as _r,ya as W,yb as $t,yc as Od,z as ua,za as Gi,zb as wd,zc as Ra}from"./chunk-HPGNNBGR.js";var co=class{},Or=class{},hi=class o{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` -`).forEach(e=>{let t=e.indexOf(":");if(t>0){let n=e.slice(0,t),r=e.slice(t+1).trim();this.addHeaderEntry(n,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,t)=>{this.addHeaderEntry(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof o?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new o;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof o?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let t=i.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(i.name,e);let n=(i.op==="a"?this.headers.get(e):void 0)||[];n.push(...t),this.headers.set(e,n);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>r.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(i,e){let t=i.toLowerCase();this.maybeSetNormalizedName(i,t),this.headers.has(t)?this.headers.get(t).push(e):this.headers.set(t,[e])}setHeaderEntries(i,e){let t=(Array.isArray(e)?e:[e]).map(r=>r.toString()),n=i.toLowerCase();this.headers.set(n,t),this.maybeSetNormalizedName(i,n)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Oa=class{encodeKey(i){return zd(i)}encodeValue(i){return zd(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function up(o,i){let e=new Map;return o.length>0&&o.replace(/^\?/,"").split("&").forEach(n=>{let r=n.indexOf("="),[s,a]=r==-1?[i.decodeKey(n),""]:[i.decodeKey(n.slice(0,r)),i.decodeValue(n.slice(r+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var pp=/%(\d[a-f0-9])/gi,fp={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function zd(o){return encodeURIComponent(o).replace(pp,(i,e)=>fp[e]??i)}function Ar(o){return`${o}`}var Di=class o{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Oa,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=up(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let t=i.fromObject[e],n=Array.isArray(t)?t.map(Ar):[Ar(t)];this.map.set(e,n)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(t=>{let n=i[t];Array.isArray(n)?n.forEach(r=>{e.push({param:t,value:r,op:"a"})}):e.push({param:t,value:n,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new o({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(Ar(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let t=this.map.get(i.param)||[],n=t.indexOf(Ar(i.value));n!==-1&&t.splice(n,1),t.length>0?this.map.set(i.param,t):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};var Fa=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function gp(o){switch(o){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Nd(o){return typeof ArrayBuffer<"u"&&o instanceof ArrayBuffer}function Vd(o){return typeof Blob<"u"&&o instanceof Blob}function Bd(o){return typeof FormData<"u"&&o instanceof FormData}function _p(o){return typeof URLSearchParams<"u"&&o instanceof URLSearchParams}var lo=class o{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(i,e,t,n){this.url=e,this.method=i.toUpperCase();let r;if(gp(this.method)||n?(this.body=t!==void 0?t:null,r=n):r=t,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new hi,this.context??=new Fa,!this.params)this.params=new Di,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":aI.set(S,i.setHeaders[S]),p)),i.setParams&&(_=Object.keys(i.setParams).reduce((I,S)=>I.set(S,i.setParams[S]),_)),new o(e,t,s,{params:_,headers:p,context:y,reportProgress:c,responseType:n,withCredentials:a,transferCache:r})}},Ri=function(o){return o[o.Sent=0]="Sent",o[o.UploadProgress=1]="UploadProgress",o[o.ResponseHeader=2]="ResponseHeader",o[o.DownloadProgress=3]="DownloadProgress",o[o.Response=4]="Response",o[o.User=5]="User",o}(Ri||{}),mo=class{headers;status;statusText;url;ok;type;constructor(i,e=200,t="OK"){this.headers=i.headers||new hi,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||t,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Fr=class o extends mo{constructor(i={}){super(i)}type=Ri.ResponseHeader;clone(i={}){return new o({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},ho=class o extends mo{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Ri.Response;clone(i={}){return new o({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},Ti=class extends mo{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},Ud=200,bp=204;function Aa(o,i){return{body:i,headers:o.headers,context:o.context,observe:o.observe,params:o.params,reportProgress:o.reportProgress,responseType:o.responseType,withCredentials:o.withCredentials,transferCache:o.transferCache}}var Ki=(()=>{class o{handler;constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof lo)r=e;else{let c;n.headers instanceof hi?c=n.headers:c=new hi(n.headers);let p;n.params&&(n.params instanceof Di?p=n.params:p=new Di({fromObject:n.params})),r=new lo(e,t,n.body!==void 0?n.body:null,{headers:c,context:n.context,params:p,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials,transferCache:n.transferCache})}let s=V(r).pipe(Wi(c=>this.handler.handle(c)));if(e instanceof lo||n.observe==="events")return s;let a=s.pipe(De(c=>c instanceof ho));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(B(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(B(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(B(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(B(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:new Di().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,Aa(n,t))}post(e,t,n={}){return this.request("POST",e,Aa(n,t))}put(e,t,n={}){return this.request("PUT",e,Aa(n,t))}static \u0275fac=function(t){return new(t||o)(K(co))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),vp=/^\)\]\}',?\n/,yp="X-Request-URL";function Wd(o){if(o.url)return o.url;let i=yp.toLocaleLowerCase();return o.headers.get(i)}var xp=(()=>{class o{fetchImpl=u(Pa,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=u(W);handle(e){return new Vt(t=>{let n=new AbortController;return this.doRequest(e,n.signal,t).then(La,r=>t.error(new Ti({error:r}))),()=>n.abort()})}doRequest(e,t,n){return Qn(this,null,function*(){let r=this.createRequestInit(e),s;try{let S=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,k({signal:t},r)));wp(S),n.next({type:Ri.Sent}),s=yield S}catch(S){n.error(new Ti({error:S,status:S.status??0,statusText:S.statusText,url:e.urlWithParams,headers:S.headers}));return}let a=new hi(s.headers),c=s.statusText,p=Wd(s)??e.urlWithParams,_=s.status,y=null;if(e.reportProgress&&n.next(new Fr({headers:a,status:_,statusText:c,url:p})),s.body){let S=s.headers.get("content-length"),A=[],T=s.body.getReader(),z=0,Le,rt,we=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Qn(this,null,function*(){for(;;){let{done:Zt,value:Vi}=yield T.read();if(Zt)break;if(A.push(Vi),z+=Vi.length,e.reportProgress){rt=e.responseType==="text"?(rt??"")+(Le??=new TextDecoder).decode(Vi,{stream:!0}):void 0;let gn=()=>n.next({type:Ri.DownloadProgress,total:S?+S:void 0,loaded:z,partialText:rt});we?we.run(gn):gn()}}}));let wi=this.concatChunks(A,z);try{let Zt=s.headers.get("Content-Type")??"";y=this.parseBody(e,wi,Zt)}catch(Zt){n.error(new Ti({error:Zt,headers:new hi(s.headers),status:s.status,statusText:s.statusText,url:Wd(s)??e.urlWithParams}));return}}_===0&&(_=y?Ud:0),_>=200&&_<300?(n.next(new ho({body:y,headers:a,status:_,statusText:c,url:p})),n.complete()):n.error(new Ti({error:y,headers:a,status:_,statusText:c,url:p}))})}parseBody(e,t,n){switch(e.responseType){case"json":let r=new TextDecoder().decode(t).replace(vp,"");return r===""?null:JSON.parse(r);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:n});case"arraybuffer":return t.buffer}}createRequestInit(e){let t={},n=e.withCredentials?"include":void 0;if(e.headers.forEach((r,s)=>t[r]=s.join(",")),e.headers.has("Accept")||(t.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let r=e.detectContentTypeHeader();r!==null&&(t["Content-Type"]=r)}return{body:e.serializeBody(),method:e.method,headers:t,credentials:n}}concatChunks(e,t){let n=new Uint8Array(t),r=0;for(let s of e)n.set(s,r),r+=s.length;return n}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),Pa=class{};function La(){}function wp(o){o.then(La,La)}function Cp(o,i){return i(o)}function kp(o,i,e){return(t,n)=>Bt(e,()=>i(t,r=>o(r,n)))}var Hd=new R(""),Mp=new R(""),Ip=new R("",{providedIn:"root",factory:()=>!0});var jd=(()=>{class o extends co{backend;injector;chain=null;pendingTasks=u(xr);contributeToStability=u(Ip);constructor(e,t){super(),this.backend=e,this.injector=t}handle(e){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(Hd),...this.injector.get(Mp,[])]));this.chain=t.reduceRight((n,r)=>kp(n,r,this.injector),Cp)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(e,n=>this.backend.handle(n)).pipe(Mi(()=>this.pendingTasks.remove(t)))}else return this.chain(e,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||o)(K(Or),K(Qt))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})();var Ep=/^\)\]\}',?\n/;function Sp(o){return"responseURL"in o&&o.responseURL?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):null}var $d=(()=>{class o{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Se(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?dt(t.\u0275loadImpl()):V(null)).pipe($e(()=>new Vt(r=>{let s=t.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((T,z)=>s.setRequestHeader(T,z.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let T=e.detectContentTypeHeader();T!==null&&s.setRequestHeader("Content-Type",T)}if(e.responseType){let T=e.responseType.toLowerCase();s.responseType=T!=="json"?T:"text"}let a=e.serializeBody(),c=null,p=()=>{if(c!==null)return c;let T=s.statusText||"OK",z=new hi(s.getAllResponseHeaders()),Le=Sp(s)||e.url;return c=new Fr({headers:z,status:s.status,statusText:T,url:Le}),c},_=()=>{let{headers:T,status:z,statusText:Le,url:rt}=p(),we=null;z!==bp&&(we=typeof s.response>"u"?s.responseText:s.response),z===0&&(z=we?Ud:0);let wi=z>=200&&z<300;if(e.responseType==="json"&&typeof we=="string"){let Zt=we;we=we.replace(Ep,"");try{we=we!==""?JSON.parse(we):null}catch(Vi){we=Zt,wi&&(wi=!1,we={error:Vi,text:we})}}wi?(r.next(new ho({body:we,headers:T,status:z,statusText:Le,url:rt||void 0})),r.complete()):r.error(new Ti({error:we,headers:T,status:z,statusText:Le,url:rt||void 0}))},y=T=>{let{url:z}=p(),Le=new Ti({error:T,status:s.status||0,statusText:s.statusText||"Unknown Error",url:z||void 0});r.error(Le)},I=!1,S=T=>{I||(r.next(p()),I=!0);let z={type:Ri.DownloadProgress,loaded:T.loaded};T.lengthComputable&&(z.total=T.total),e.responseType==="text"&&s.responseText&&(z.partialText=s.responseText),r.next(z)},A=T=>{let z={type:Ri.UploadProgress,loaded:T.loaded};T.lengthComputable&&(z.total=T.total),r.next(z)};return s.addEventListener("load",_),s.addEventListener("error",y),s.addEventListener("timeout",y),s.addEventListener("abort",y),e.reportProgress&&(s.addEventListener("progress",S),a!==null&&s.upload&&s.upload.addEventListener("progress",A)),s.send(a),r.next({type:Ri.Sent}),()=>{s.removeEventListener("error",y),s.removeEventListener("abort",y),s.removeEventListener("load",_),s.removeEventListener("timeout",y),e.reportProgress&&(s.removeEventListener("progress",S),a!==null&&s.upload&&s.upload.removeEventListener("progress",A)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(t){return new(t||o)(K(Rr))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),Gd=new R(""),Tp="XSRF-TOKEN",Dp=new R("",{providedIn:"root",factory:()=>Tp}),Rp="X-XSRF-TOKEN",Ap=new R("",{providedIn:"root",factory:()=>Rp}),Pr=class{},Op=(()=>{class o{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Tr(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(t){return new(t||o)(K(ae),K(Wt),K(Dp))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})();function Fp(o,i){let e=o.url.toLowerCase();if(!u(Gd)||o.method==="GET"||o.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(o);let t=u(Pr).getToken(),n=u(Ap);return t!=null&&!o.headers.has(n)&&(o=o.clone({headers:o.headers.set(n,t)})),i(o)}function Yd(...o){let i=[Ki,$d,jd,{provide:co,useExisting:jd},{provide:Or,useFactory:()=>u(xp,{optional:!0})??u($d)},{provide:Hd,useValue:Fp,multi:!0},{provide:Gd,useValue:!0},{provide:Pr,useClass:Op}];for(let e of o)i.push(...e.\u0275providers);return $i(i)}var Na=class extends Td{supportsDOMEvents=!0},Va=class o extends Na{static makeCurrent(){Sd(new o)}onAndCancel(i,e,t){return i.addEventListener(e,t),()=>{i.removeEventListener(e,t)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=Lp();return e==null?null:zp(e)}resetBaseElement(){uo=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return Tr(document.cookie,i)}},uo=null;function Lp(){return uo=uo||document.querySelector("base"),uo?uo.getAttribute("href"):null}function zp(o){return new URL(o,document.baseURI).pathname}var Np=(()=>{class o{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),Ba=new R(""),Jd=(()=>{class o{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(n=>{n.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(r=>r.supports(e)),!t)throw new Se(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||o)(K(Ba),K(W))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),Lr=class{_doc;constructor(i){this._doc=i}manager},Wa="ng-app-id";function Xd(o){for(let i of o)i.remove()}function Zd(o,i){let e=i.createElement("style");return e.textContent=o,e}function Vp(o,i,e){let t=o.head?.querySelectorAll(`style[${Wa}="${i}"]`);if(t)for(let n of t)n.textContent&&(n.removeAttribute(Wa),e.set(n.textContent,{usage:0,elements:[n]}))}function ja(o,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",o),e}var em=(()=>{class o{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,n,r={}){this.doc=e,this.appId=t,this.nonce=n,this.isServer=Dr(r),Vp(e,t,this.inline),this.hosts.add(e.head)}addStyles(e,t){for(let n of e)this.addUsage(n,this.inline,Zd);t?.forEach(n=>this.addUsage(n,this.external,ja))}removeStyles(e,t){for(let n of e)this.removeUsage(n,this.inline);t?.forEach(n=>this.removeUsage(n,this.external))}addUsage(e,t,n){let r=t.get(e);r?r.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,n(e,this.doc)))})}removeUsage(e,t){let n=t.get(e);n&&(n.usage--,n.usage<=0&&(Xd(n.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Xd(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:n}]of this.inline)n.push(this.addElement(e,Zd(t,this.doc)));for(let[t,{elements:n}]of this.external)n.push(this.addElement(e,ja(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(Wa,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||o)(K(ae),K(oo),K(ro,8),K(Wt))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),za={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ga=/%COMP%/g,tm="%COMP%",Bp=`_nghost-${tm}`,Wp=`_ngcontent-${tm}`,jp=!0,$p=new R("",{providedIn:"root",factory:()=>jp});function Up(o){return Wp.replace(Ga,o)}function Hp(o){return Bp.replace(Ga,o)}function im(o,i){return i.map(e=>e.replace(Ga,o))}var zr=(()=>{class o{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,n,r,s,a,c,p=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=r,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=p,this.platformIsServer=Dr(a),this.defaultRenderer=new po(e,s,c,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===so.ShadowDom&&(t=re(k({},t),{encapsulation:so.Emulated}));let n=this.getOrCreateRenderer(e,t);return n instanceof Nr?n.applyToHost(e):n instanceof fo&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,r=n.get(t.id);if(!r){let s=this.doc,a=this.ngZone,c=this.eventManager,p=this.sharedStylesHost,_=this.removeStylesOnCompDestroy,y=this.platformIsServer;switch(t.encapsulation){case so.Emulated:r=new Nr(c,p,t,this.appId,_,s,a,y);break;case so.ShadowDom:return new $a(c,p,e,t,s,a,this.nonce,y);default:r=new fo(c,p,t,_,s,a,y);break}n.set(t.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(t){return new(t||o)(K(Jd),K(em),K(oo),K($p),K(ae),K(Wt),K(W),K(ro))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),po=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,t,n){this.eventManager=i,this.doc=e,this.ngZone=t,this.platformIsServer=n}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(za[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(Kd(i)?i.content:i).appendChild(e)}insertBefore(i,e,t){i&&(Kd(i)?i.content:i).insertBefore(e,t)}removeChild(i,e){e.remove()}selectRootElement(i,e){let t=typeof i=="string"?this.doc.querySelector(i):i;if(!t)throw new Se(-5104,!1);return e||(t.textContent=""),t}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,t,n){if(n){e=n+":"+e;let r=za[n];r?i.setAttributeNS(r,e,t):i.setAttribute(e,t)}else i.setAttribute(e,t)}removeAttribute(i,e,t){if(t){let n=za[t];n?i.removeAttributeNS(n,e):i.removeAttribute(`${t}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,t,n){n&(ao.DashCase|ao.Important)?i.style.setProperty(e,t,n&ao.Important?"important":""):i.style[e]=t}removeStyle(i,e,t){t&ao.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,t){i!=null&&(i[e]=t)}setValue(i,e){i.nodeValue=e}listen(i,e,t){if(typeof i=="string"&&(i=yn().getGlobalEventTarget(this.doc,i),!i))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(t))}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))===!1&&e.preventDefault()}}};function Kd(o){return o.tagName==="TEMPLATE"&&o.content!==void 0}var $a=class extends po{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,t,n,r,s,a,c){super(i,r,s,c),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let p=im(n.id,n.styles);for(let y of p){let I=document.createElement("style");a&&I.setAttribute("nonce",a),I.textContent=y,this.shadowRoot.appendChild(I)}let _=n.getExternalStyles?.();if(_)for(let y of _){let I=ja(y,r);a&&I.setAttribute("nonce",a),this.shadowRoot.appendChild(I)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,t){return super.insertBefore(this.nodeOrShadowRoot(i),e,t)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},fo=class extends po{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,t,n,r,s,a,c){super(i,r,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=n,this.styles=c?im(c,t.styles):t.styles,this.styleUrls=t.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Nr=class extends fo{contentAttr;hostAttr;constructor(i,e,t,n,r,s,a,c){let p=n+"-"+t.id;super(i,e,t,r,s,a,c,p),this.contentAttr=Up(p),this.hostAttr=Hp(p)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let t=super.createElement(i,e);return super.setAttribute(t,this.contentAttr,""),t}},Gp=(()=>{class o extends Lr{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}static \u0275fac=function(t){return new(t||o)(K(ae))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),Qd=["alt","control","meta","shift"],Yp={"\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"},qp={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey},Xp=(()=>{class o extends Lr{constructor(e){super(e)}supports(e){return o.parseEventName(e)!=null}addEventListener(e,t,n){let r=o.parseEventName(t),s=o.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>yn().onAndCancel(e,r.domEventName,s))}static parseEventName(e){let t=e.toLowerCase().split("."),n=t.shift();if(t.length===0||!(n==="keydown"||n==="keyup"))return null;let r=o._normalizeKey(t.pop()),s="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),s="code."),Qd.forEach(p=>{let _=t.indexOf(p);_>-1&&(t.splice(_,1),s+=p+".")}),s+=r,t.length!=0||r.length===0)return null;let c={};return c.domEventName=n,c.fullKey=s,c}static matchEventFullKeyCode(e,t){let n=Yp[e.key]||e.key,r="";return t.indexOf("code.")>-1&&(n=e.code,r="code."),n==null||!n?!1:(n=n.toLowerCase(),n===" "?n="space":n==="."&&(n="dot"),Qd.forEach(s=>{if(s!==n){let a=qp[s];a(e)&&(r+=s+".")}}),r+=n,r===t)}static eventCallback(e,t,n){return r=>{o.matchEventFullKeyCode(r,e)&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||o)(K(ae))};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})();function nm(o,i){return Ed(k({rootComponent:o},Zp(i)))}function Zp(o){return{appProviders:[...tf,...o?.providers??[]],platformProviders:ef}}function Kp(){Va.makeCurrent()}function Qp(){return new Gi}function Jp(){return ld(document),document}var ef=[{provide:Wt,useValue:Fd},{provide:cd,useValue:Kp,multi:!0},{provide:ae,useFactory:Jp,deps:[]}];var tf=[{provide:od,useValue:"root"},{provide:Gi,useFactory:Qp,deps:[]},{provide:Ba,useClass:Gp,multi:!0,deps:[ae,W,Wt]},{provide:Ba,useClass:Xp,multi:!0,deps:[ae]},zr,em,Jd,{provide:Cr,useExisting:zr},{provide:Rr,useClass:Np,deps:[]},[]];var om=(()=>{class o{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||o)(K(ae))};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var go=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:function(t){let n=null;return t?n=new(t||o):n=K(nf),n},providedIn:"root"})}return o})(),nf=(()=>{class o extends go{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case vt.NONE:return t;case vt.HTML:return bn(t,"HTML")?_n(t):gd(this._doc,String(t)).toString();case vt.STYLE:return bn(t,"Style")?_n(t):t;case vt.SCRIPT:if(bn(t,"Script"))return _n(t);throw new Se(5200,!1);case vt.URL:return bn(t,"URL")?_n(t):fd(String(t));case vt.RESOURCE_URL:if(bn(t,"ResourceURL"))return _n(t);throw new Se(5201,!1);default:throw new Se(5202,!1)}}bypassSecurityTrustHtml(e){return dd(e)}bypassSecurityTrustStyle(e){return md(e)}bypassSecurityTrustScript(e){return hd(e)}bypassSecurityTrustUrl(e){return ud(e)}bypassSecurityTrustResourceUrl(e){return pd(e)}static \u0275fac=function(t){return new(t||o)(K(ae))};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function Ot(o){return o!=null&&`${o}`!="false"}function wn(o,i=0){return of(o)?Number(o):arguments.length===2?i:0}function of(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function Cn(o){return Array.isArray(o)?o:[o]}function Ke(o){return o==null?"":typeof o=="string"?o:`${o}px`}function kt(o){return o instanceof j?o.nativeElement:o}var Xa;try{Xa=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Xa=!1}var Ae=(()=>{class o{_platformId=u(Wt);isBrowser=this._platformId?di(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Xa)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var kn,rm=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Za(){if(kn)return kn;if(typeof document!="object"||!document)return kn=new Set(rm),kn;let o=document.createElement("input");return kn=new Set(rm.filter(i=>(o.setAttribute("type",i),o.type===i))),kn}var _o;function rf(){if(_o==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>_o=!0}))}finally{_o=_o||!1}return _o}function ti(o){return rf()?o:!!o.capture}var Qi;function Ka(){if(Qi==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Qi=!1,Qi;if("scrollBehavior"in document.documentElement.style)Qi=!0;else{let o=Element.prototype.scrollTo;o?Qi=!/\{\s*\[native code\]\s*\}/.test(o.toString()):Qi=!1}}return Qi}var qa;function sf(){if(qa==null){let o=typeof document<"u"?document.head:null;qa=!!(o&&(o.createShadowRoot||o.attachShadow))}return qa}function sm(o){if(sf()){let i=o.getRootNode?o.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function It(o){return o.composedPath?o.composedPath()[0]:o.target}function Qa(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Vr=new WeakMap,lt=(()=>{class o{_appRef;_injector=u(Je);_environmentInjector=u(Qt);load(e){let t=this._appRef=this._appRef||this._injector.get(li),n=Vr.get(t);n||(n={loaders:new Set,refs:[]},Vr.set(t,n),t.onDestroy(()=>{Vr.get(t)?.refs.forEach(r=>r.destroy()),Vr.delete(t)})),n.loaders.has(e)||(n.loaders.add(e),n.refs.push(Sr(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),am=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(t,n){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return o})();function Ht(o,...i){return i.length?i.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}function af(o){if(o.type==="characterData"&&o.target instanceof Comment)return!0;if(o.type==="childList"){for(let i=0;i{class o{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),lf=(()=>{class o{_mutationObserverFactory=u(lm);_observedElements=new Map;_ngZone=u(W);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){let t=kt(e);return new Vt(n=>{let s=this._observeElement(t).pipe(B(a=>a.filter(c=>!af(c))),De(a=>!!a.length)).subscribe(a=>{this._ngZone.run(()=>{n.next(a)})});return()=>{s.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let t=new N,n=this._mutationObserverFactory.create(r=>t.next(r));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),cm=(()=>{class o{_contentObserver=u(lf);_elementRef=u(j);event=new H;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=wn(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(ki(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",q],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[Fe]})}return o})(),Br=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({providers:[lm]})}return o})();var dm=new Set,Ji,cf=(()=>{class o{_platform=u(Ae);_nonce=u(ro,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):mf}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&df(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function df(o,i){if(!dm.has(o))try{Ji||(Ji=document.createElement("style"),i&&Ji.setAttribute("nonce",i),Ji.setAttribute("type","text/css"),document.head.appendChild(Ji)),Ji.sheet&&(Ji.sheet.insertRule(`@media ${o} {body{ }}`,0),dm.add(o))}catch(e){console.error(e)}}function mf(o){return{matches:o==="all"||o==="",media:o,addListener:()=>{},removeListener:()=>{}}}var hm=(()=>{class o{_mediaMatcher=u(cf);_zone=u(W);_queries=new Map;_destroySubject=new N;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return mm(Cn(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=mm(Cn(e)).map(s=>this._registerQuery(s).observable),r=eo(n);return r=gr(r.pipe(ht(1)),r.pipe(yr(1),ki(0))),r.pipe(B(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:p})=>{a.matches=a.matches||c,a.breakpoints[p]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let t=this._mediaMatcher.matchMedia(e),r={observable:new Vt(s=>{let a=c=>this._zone.run(()=>s.next(c));return t.addListener(a),()=>{t.removeListener(a)}}).pipe(ut(t),B(({matches:s})=>({query:e,matches:s})),Ce(this._destroySubject)),mql:t};return this._queries.set(e,r),r}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function mm(o){return o.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}var fm=" ";function gm(o,i,e){let t=_m(o,i);e=e.trim(),!t.some(n=>n.trim()===e)&&(t.push(e),o.setAttribute(i,t.join(fm)))}function nl(o,i,e){let t=_m(o,i);e=e.trim();let n=t.filter(r=>r!==e);n.length?o.setAttribute(i,n.join(fm)):o.removeAttribute(i)}function _m(o,i){return o.getAttribute(i)?.match(/\S+/g)??[]}var If=200,tl=class{_letterKeyStream=new N;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new N;selectedItem=this._selectedItem;constructor(i,e){let t=typeof e?.debounceInterval=="number"?e.debounceInterval:If;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Ue(e=>this._pressedLetters.push(e)),ki(i),De(()=>this._pressedLetters.length>0),B(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let t=1;ti.disabled;constructor(i,e){this._items=i,i instanceof no?this._itemChangesSubscription=i.changes.subscribe(t=>this._itemsChanged(t.toArray())):qi(i)&&(this._effectRef=Er(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new N;change=new N;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new tl(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){let e=i.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let r=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t,this._typeahead?.setCurrentSelectedItemIndex(t))}}},Ur=class extends $r{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}},Hr=class extends $r{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};function bo(o){return o.buttons===0||o.detail===0}function vo(o){let i=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var Ef=new R("cdk-input-modality-detector-options"),Sf={ignoreKeys:[18,17,224,91,16]},bm=650,Mn=ti({passive:!0,capture:!0}),Tf=(()=>{class o{_platform=u(Ae);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Ct(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(t=>t===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=It(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(vo(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=It(e)};constructor(){let e=u(W),t=u(ae),n=u(Ef,{optional:!0});this._options=k(k({},Sf),n),this.modalityDetected=this._modality.pipe(yr(1)),this.modalityChanged=this.modalityDetected.pipe(ji()),this._platform.isBrowser&&e.runOutsideAngular(()=>{t.addEventListener("keydown",this._onKeydown,Mn),t.addEventListener("mousedown",this._onMousedown,Mn),t.addEventListener("touchstart",this._onTouchstart,Mn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Mn),document.removeEventListener("mousedown",this._onMousedown,Mn),document.removeEventListener("touchstart",this._onTouchstart,Mn))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Df=new R("liveAnnouncerElement",{providedIn:"root",factory:Rf});function Rf(){return null}var Af=new R("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Of=0,vm=(()=>{class o{_ngZone=u(W);_defaultOptions=u(Af,{optional:!0});_liveElement;_document=u(ae);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=u(Df,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...t){let n=this._defaultOptions,r,s;return t.length===1&&typeof t[0]=="number"?s=t[0]:[r,s]=t,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),s==null&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let n=0;n{class o{_ngZone=u(W);_platform=u(Ae);_inputModalityDetector=u(Tf);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=u(ae,{optional:!0});_stopInputModalityDetector=new N;constructor(){let e=u(Ff,{optional:!0});this._detectionMode=e?.detectionMode||jr.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let t=It(e);for(let n=t;n;n=n.parentElement)e.type==="focus"?this._onFocus(e,n):this._onBlur(e,n)};monitor(e,t=!1){let n=kt(e);if(!this._platform.isBrowser||n.nodeType!==1)return V();let r=sm(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return t&&(s.checkChildren=!0),s.subject;let a={checkChildren:t,subject:new N,rootNode:r};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let t=kt(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){let r=kt(e),s=this._getDocument().activeElement;r===s?this._getClosestElementsInfo(r).forEach(([a,c])=>this._originChanged(a,t,c)):(this._setOrigin(t),typeof r.focus=="function"&&r.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===jr.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused",t==="touch"),e.classList.toggle("cdk-keyboard-focused",t==="keyboard"),e.classList.toggle("cdk-mouse-focused",t==="mouse"),e.classList.toggle("cdk-program-focused",t==="program")}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&t,this._detectionMode===jr.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?bm:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(e,t){let n=this._elementInfo.get(t),r=It(e);!n||!n.checkChildren&&t!==r||this._originChanged(t,this._getFocusOrigin(r),n)}_onBlur(e,t){let n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Wr),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Wr)}),this._rootNodeFocusListenerCount.set(t,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ce(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){let n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Wr),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Wr),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){let t=[];return this._elementInfo.forEach((n,r)=>{(r===e||n.checkChildren&&r.contains(e))&&t.push([r,n])}),t}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:t,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!t||t===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let s=0;s{class o{_platform=u(Ae);_hasCheckedHighContrastMode;_document=u(ae);_breakpointSubscription;constructor(){this._breakpointSubscription=u(hm).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return en.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return en.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return en.BLACK_ON_WHITE}return en.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Ja,um,pm),this._hasCheckedHighContrastMode=!0;let t=this.getHighContrastMode();t===en.BLACK_ON_WHITE?e.add(Ja,um):t===en.WHITE_ON_BLACK&&e.add(Ja,pm)}}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var el={},yt=(()=>{class o{_appId=u(oo);getId(e){return this._appId!=="ng"&&(e+=this._appId),el.hasOwnProperty(e)||(el[e]=0),`${e}${el[e]++}`}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Pf=new R("cdk-dir-doc",{providedIn:"root",factory:Lf});function Lf(){return u(ae)}var zf=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Nf(o){let i=o?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?zf.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var ii=(()=>{class o{value="ltr";change=new H;constructor(){let e=u(Pf,{optional:!0});if(e){let t=e.body?e.body.dir:null,n=e.documentElement?e.documentElement.dir:null;this.value=Nf(t||n||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Ai=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({})}return o})();var Vf=["text"],Bf=[[["mat-icon"]],"*"],Wf=["mat-icon","*"];function jf(o,i){if(o&1&&D(0,"mat-pseudo-checkbox",1),o&2){let e=f();M("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function $f(o,i){if(o&1&&D(0,"mat-pseudo-checkbox",3),o&2){let e=f();M("disabled",e.disabled)}}function Uf(o,i){if(o&1&&(l(0,"span",4),m(1),d()),o&2){let e=f();h(),Ir("(",e.group.label,")")}}var Hf=["mat-internal-form-field",""],Gf=["*"];var ke=(()=>{class o{constructor(){u(ym)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[Ai,Ai]})}return o})(),Dn=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,t,n,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,r=t?.isErrorState(n,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var qr=(()=>{class o{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),ui=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["structural-styles"]],decls:0,vars:0,template:function(t,n){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return o})();var Ft=function(o){return o[o.FADING_IN=0]="FADING_IN",o[o.VISIBLE=1]="VISIBLE",o[o.FADING_OUT=2]="FADING_OUT",o[o.HIDDEN=3]="HIDDEN",o}(Ft||{}),sl=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Ft.HIDDEN;constructor(i,e,t,n=!1){this._renderer=i,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=n}fadeOut(){this._renderer.fadeOutRipple(this)}},xm=ti({passive:!0,capture:!0}),al=class{_events=new Map;addHandler(i,e,t,n){let r=this._events.get(e);if(r){let s=r.get(t);s?s.add(n):r.set(t,new Set([n]))}else this._events.set(e,new Map([[t,new Set([n])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,xm)})}removeHandler(i,e,t){let n=this._events.get(i);if(!n)return;let r=n.get(e);r&&(r.delete(t),r.size===0&&n.delete(e),n.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,xm)))}_delegateEventHandler=i=>{let e=It(i);e&&this._events.get(i.type)?.forEach((t,n)=>{(n===e||n.contains(e))&&t.forEach(r=>r.handleEvent(i))})}},Yr={enterDuration:225,exitDuration:150},Yf=800,wm=ti({passive:!0,capture:!0}),Cm=["mousedown","touchstart"],km=["mouseup","mouseleave","touchend","touchcancel"],qf=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return o})(),Rn=class o{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new al;constructor(i,e,t,n,r){this._target=i,this._ngZone=e,this._platform=n,n.isBrowser&&(this._containerElement=kt(t)),r&&r.get(lt).load(qf)}fadeInRipple(i,e,t={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=k(k({},Yr),t.animation);t.centered&&(i=n.left+n.width/2,e=n.top+n.height/2);let s=t.radius||Xf(i,e,n),a=i-n.left,c=e-n.top,p=r.enterDuration,_=document.createElement("div");_.classList.add("mat-ripple-element"),_.style.left=`${a-s}px`,_.style.top=`${c-s}px`,_.style.height=`${s*2}px`,_.style.width=`${s*2}px`,t.color!=null&&(_.style.backgroundColor=t.color),_.style.transitionDuration=`${p}ms`,this._containerElement.appendChild(_);let y=window.getComputedStyle(_),I=y.transitionProperty,S=y.transitionDuration,A=I==="none"||S==="0s"||S==="0s, 0s"||n.width===0&&n.height===0,T=new sl(this,_,t,A);_.style.transform="scale3d(1, 1, 1)",T.state=Ft.FADING_IN,t.persistent||(this._mostRecentTransientRipple=T);let z=null;return!A&&(p||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Le=()=>{z&&(z.fallbackTimer=null),clearTimeout(we),this._finishRippleTransition(T)},rt=()=>this._destroyRipple(T),we=setTimeout(rt,p+100);_.addEventListener("transitionend",Le),_.addEventListener("transitioncancel",rt),z={onTransitionEnd:Le,onTransitionCancel:rt,fallbackTimer:we}}),this._activeRipples.set(T,z),(A||!p)&&this._finishRippleTransition(T),T}fadeOutRipple(i){if(i.state===Ft.FADING_OUT||i.state===Ft.HIDDEN)return;let e=i.element,t=k(k({},Yr),i.config.animation);e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",i.state=Ft.FADING_OUT,(i._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=kt(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Cm.forEach(t=>{o._eventManager.addHandler(this._ngZone,t,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{km.forEach(e=>{this._triggerElement.addEventListener(e,this,wm)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===Ft.FADING_IN?this._startFadeOutTransition(i):i.state===Ft.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:t}=i.config;i.state=Ft.VISIBLE,!t&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=Ft.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=bo(i),t=this._lastTouchStartEvent&&Date.now(){let e=i.state===Ft.VISIBLE||i.config.terminateOnPointerUp&&i.state===Ft.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(Cm.forEach(e=>o._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(km.forEach(e=>i.removeEventListener(e,this,wm)),this._pointerUpEventsRegistered=!1))}};function Xf(o,i,e){let t=Math.max(Math.abs(o-e.left),Math.abs(o-e.right)),n=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(t*t+n*n)}var Xr=new R("mat-ripple-global-options"),xo=(()=>{class o{_elementRef=u(j);_animationMode=u(pt,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=u(W),t=u(Ae),n=u(Xr,{optional:!0}),r=u(Je);this._globalOptions=n||{},this._rippleRenderer=new Rn(this,e,this._elementRef,t,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:k(k(k({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,n){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,t,k(k({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,k(k({},this.rippleConfig),e))}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){t&2&&te("mat-ripple-unbounded",n.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return o})(),tn=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,ke]})}return o})(),Zf=(()=>{class o{_animationMode=u(pt,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,n){t&2&&te("mat-pseudo-checkbox-indeterminate",n.state==="indeterminate")("mat-pseudo-checkbox-checked",n.state==="checked")("mat-pseudo-checkbox-disabled",n.disabled)("mat-pseudo-checkbox-minimal",n.appearance==="minimal")("mat-pseudo-checkbox-full",n.appearance==="full")("_mat-animation-noopable",n._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,n){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return o})(),cl=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke]})}return o})(),dl=new R("MAT_OPTION_PARENT_COMPONENT"),ml=new R("MatOptgroup");var ll=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},st=(()=>{class o{_element=u(j);_changeDetectorRef=u(qe);_parent=u(dl,{optional:!0});group=u(ml,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=u(yt).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new H;_text;_stateChanges=new N;constructor(){u(lt).load(ui),u(lt).load(am),this._signalDisableRipple=!!this._parent&&qi(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let n=this._getHostElement();typeof n.focus=="function"&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!Ht(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new ll(this,e))}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-option"]],viewQuery:function(t,n){if(t&1&&Pe(Vf,7),t&2){let r;J(r=ee())&&(n._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,n){t&1&&g("click",function(){return n._selectViaInteraction()})("keydown",function(s){return n._handleKeydown(s)}),t&2&&(Ei("id",n.id),fe("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),te("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",q]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[Fe],ngContentSelectors:Wf,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){t&1&&(Te(Bf),Y(0,jf,1,2,"mat-pseudo-checkbox",1),G(1),l(2,"span",2,0),G(4,1),d(),Y(5,$f,1,1,"mat-pseudo-checkbox",3)(6,Uf,2,1,"span",4),D(7,"div",5)),t&2&&(L(n.multiple?0:-1),h(5),L(!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator?5:-1),h(),L(n.group&&n.group._inert?6:-1),h(),M("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[Zf,xo],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return o})();function Sm(o,i,e){if(e.length){let t=i.toArray(),n=e.toArray(),r=0;for(let s=0;se+t?Math.max(0,o-t+i):e}var hl=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[tn,ke,cl]})}return o})(),Mm={capture:!0},Im=["focus","mousedown","mouseenter","touchstart"],ol="mat-ripple-loader-uninitialized",rl="mat-ripple-loader-class-name",Em="mat-ripple-loader-centered",Gr="mat-ripple-loader-disabled",Dm=(()=>{class o{_document=u(ae,{optional:!0});_animationMode=u(pt,{optional:!0});_globalRippleOptions=u(Xr,{optional:!0});_platform=u(Ae);_ngZone=u(W);_injector=u(Je);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(let e of Im)this._document?.addEventListener(e,this._onInteraction,Mm)})}ngOnDestroy(){let e=this._hosts.keys();for(let t of e)this.destroyRipple(t);for(let t of Im)this._document?.removeEventListener(t,this._onInteraction,Mm)}configureRipple(e,t){e.setAttribute(ol,this._globalRippleOptions?.namespace??""),(t.className||!e.hasAttribute(rl))&&e.setAttribute(rl,t.className||""),t.centered&&e.setAttribute(Em,""),t.disabled&&e.setAttribute(Gr,"")}setDisabled(e,t){let n=this._hosts.get(e);n?(n.target.rippleDisabled=t,!t&&!n.hasSetUpEvents&&(n.hasSetUpEvents=!0,n.renderer.setupTriggerEvents(e))):t?e.setAttribute(Gr,""):e.removeAttribute(Gr)}_onInteraction=e=>{let t=It(e);if(t instanceof HTMLElement){let n=t.closest(`[${ol}="${this._globalRippleOptions?.namespace??""}"]`);n&&this._createRipple(n)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let t=this._document.createElement("span");t.classList.add("mat-ripple",e.getAttribute(rl)),e.append(t);let n=this._animationMode==="NoopAnimations",r=this._globalRippleOptions,s=n?0:r?.animation?.enterDuration??Yr.enterDuration,a=n?0:r?.animation?.exitDuration??Yr.exitDuration,c={rippleDisabled:n||r?.disabled||e.hasAttribute(Gr),rippleConfig:{centered:e.hasAttribute(Em),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:s,exitDuration:a}}},p=new Rn(c,this._ngZone,t,this._platform,this._injector),_=!c.rippleDisabled;_&&p.setupTriggerEvents(e),this._hosts.set(e,{target:c,renderer:p,hasSetUpEvents:_}),e.removeAttribute(ol)}destroyRipple(e){let t=this._hosts.get(e);t&&(t.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Rm=(()=>{class o{labelPosition;static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,n){t&2&&te("mdc-form-field--align-end",n.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:Hf,ngContentSelectors:Gf,decls:1,vars:0,template:function(t,n){t&1&&(Te(),G(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}return o})();var Am=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,ke]})}return o})();var Zr=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new N;constructor(i=!1,e,t=!0,n){this._multiple=i,this._emitChanges=t,this.compareWith=n,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,t=new Set(i);i.forEach(r=>this._markSelected(r)),e.filter(r=>!t.has(this._getConcreteValue(r,t))).forEach(r=>this._unmarkSelected(r));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(i,t))return t;return i}else return i}};var Bm=(()=>{class o{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,t){this._renderer=e,this._elementRef=t}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(t){return new(t||o)(Q(jt),Q(j))};static \u0275dir=$({type:o})}return o})(),Wm=(()=>{class o extends Bm{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275dir=$({type:o,features:[Ne]})}return o})(),Eo=new R("");var Kf={provide:Eo,useExisting:Rt(()=>Xe),multi:!0};function Qf(){let o=yn()?yn().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}var Jf=new R(""),Xe=(()=>{class o extends Bm{_compositionMode;_composing=!1;constructor(e,t,n){super(e,t),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!Qf())}writeValue(e){let t=e??"";this.setProperty("value",t)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(t){return new(t||o)(Q(jt),Q(j),Q(Jf,8))};static \u0275dir=$({type:o,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(t,n){t&1&&g("input",function(s){return n._handleInput(s.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(s){return n._compositionEnd(s.target.value)})},standalone:!1,features:[Ve([Kf]),Ne]})}return o})();function Fi(o){return o==null||(typeof o=="string"||Array.isArray(o))&&o.length===0}function jm(o){return o!=null&&typeof o.length=="number"}var on=new R(""),_l=new R(""),eg=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ln=class{static min(i){return $m(i)}static max(i){return Um(i)}static required(i){return tg(i)}static requiredTrue(i){return ig(i)}static email(i){return ng(i)}static minLength(i){return og(i)}static maxLength(i){return rg(i)}static pattern(i){return sg(i)}static nullValidator(i){return Qr(i)}static compose(i){return Zm(i)}static composeAsync(i){return Km(i)}};function $m(o){return i=>{if(Fi(i.value)||Fi(o))return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(Fi(i.value)||Fi(o))return null;let e=parseFloat(i.value);return!isNaN(e)&&e>o?{max:{max:o,actual:i.value}}:null}}function tg(o){return Fi(o.value)?{required:!0}:null}function ig(o){return o.value===!0?null:{required:!0}}function ng(o){return Fi(o.value)||eg.test(o.value)?null:{email:!0}}function og(o){return i=>Fi(i.value)||!jm(i.value)?null:i.value.lengthjm(i.value)&&i.value.length>o?{maxlength:{requiredLength:o,actualLength:i.value.length}}:null}function sg(o){if(!o)return Qr;let i,e;return typeof o=="string"?(e="",o.charAt(0)!=="^"&&(e+="^"),e+=o,o.charAt(o.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=o.toString(),i=o),t=>{if(Fi(t.value))return null;let n=t.value;return i.test(n)?null:{pattern:{requiredPattern:e,actualValue:n}}}}function Qr(o){return null}function Hm(o){return o!=null}function Gm(o){return Mr(o)?dt(o):o}function Ym(o){let i={};return o.forEach(e=>{i=e!=null?k(k({},i),e):i}),Object.keys(i).length===0?null:i}function qm(o,i){return i.map(e=>e(o))}function ag(o){return!o.validate}function Xm(o){return o.map(i=>ag(i)?i:e=>i.validate(e))}function Zm(o){if(!o)return null;let i=o.filter(Hm);return i.length==0?null:function(e){return Ym(qm(e,i))}}function bl(o){return o!=null?Zm(Xm(o)):null}function Km(o){if(!o)return null;let i=o.filter(Hm);return i.length==0?null:function(e){let t=qm(e,i).map(Gm);return _r(t).pipe(B(Ym))}}function vl(o){return o!=null?Km(Xm(o)):null}function Om(o,i){return o===null?[i]:Array.isArray(o)?[...o,i]:[o,i]}function Qm(o){return o._rawValidators}function Jm(o){return o._rawAsyncValidators}function ul(o){return o?Array.isArray(o)?o:[o]:[]}function Jr(o,i){return Array.isArray(o)?o.includes(i):o===i}function Fm(o,i){let e=ul(i);return ul(o).forEach(n=>{Jr(e,n)||e.push(n)}),e}function Pm(o,i){return ul(i).filter(e=>!Jr(o,e))}var es=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=bl(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=vl(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},nn=class extends es{name;get formDirective(){return null}get path(){return null}},pi=class extends es{_parent=null;name=null;valueAccessor=null},pl=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},lg={"[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"},KC=re(k({},lg),{"[class.ng-submitted]":"isSubmitted"}),Me=(()=>{class o extends pl{constructor(e){super(e)}static \u0275fac=function(t){return new(t||o)(Q(pi,2))};static \u0275dir=$({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){t&2&&te("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[Ne]})}return o})();var wo="VALID",Kr="INVALID",Fn="PENDING",Co="DISABLED",Pi=class{},ts=class extends Pi{value;source;constructor(i,e){super(),this.value=i,this.source=e}},Mo=class extends Pi{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},Io=class extends Pi{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},Pn=class extends Pi{status;source;constructor(i,e){super(),this.status=i,this.source=e}},fl=class extends Pi{source;constructor(i){super(),this.source=i}},gl=class extends Pi{source;constructor(i){super(),this.source=i}};function eh(o){return(as(o)?o.validators:o)||null}function cg(o){return Array.isArray(o)?bl(o):o||null}function th(o,i){return(as(i)?i.asyncValidators:o)||null}function dg(o){return Array.isArray(o)?vl(o):o||null}function as(o){return o!=null&&!Array.isArray(o)&&typeof o=="object"}function mg(o,i,e){let t=o.controls;if(!(i?Object.keys(t):t).length)throw new Se(1e3,"");if(!t[e])throw new Se(1001,"")}function hg(o,i,e){o._forEachChild((t,n)=>{if(e[n]===void 0)throw new Se(1002,"")})}var is=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return Ut(this.statusReactive)}set status(i){Ut(()=>this.statusReactive.set(i))}_status=ci(()=>this.statusReactive());statusReactive=Ii(void 0);get valid(){return this.status===wo}get invalid(){return this.status===Kr}get pending(){return this.status==Fn}get disabled(){return this.status===Co}get enabled(){return this.status!==Co}errors;get pristine(){return Ut(this.pristineReactive)}set pristine(i){Ut(()=>this.pristineReactive.set(i))}_pristine=ci(()=>this.pristineReactive());pristineReactive=Ii(!0);get dirty(){return!this.pristine}get touched(){return Ut(this.touchedReactive)}set touched(i){Ut(()=>this.touchedReactive.set(i))}_touched=ci(()=>this.touchedReactive());touchedReactive=Ii(!1);get untouched(){return!this.touched}_events=new N;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(Fm(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(Fm(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(Pm(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(Pm(i,this._rawAsyncValidators))}hasValidator(i){return Jr(this._rawValidators,i)}hasAsyncValidator(i){return Jr(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let t=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(re(k({},i),{sourceControl:t})),e&&i.emitEvent!==!1&&this._events.next(new Io(!0,t))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=i.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:t})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,t),e&&i.emitEvent!==!1&&this._events.next(new Io(!1,t))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let t=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(re(k({},i),{sourceControl:t})),e&&i.emitEvent!==!1&&this._events.next(new Mo(!1,t))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=i.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,t),e&&i.emitEvent!==!1&&this._events.next(new Mo(!0,t))}markAsPending(i={}){this.status=Fn;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new Pn(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(re(k({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Co,this.errors=null,this._forEachChild(n=>{n.disable(re(k({},i),{onlySelf:!0}))}),this._updateValue();let t=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new ts(this.value,t)),this._events.next(new Pn(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(re(k({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=wo,this._forEachChild(t=>{t.enable(re(k({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(re(k({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wo||this.status===Fn)&&this._runAsyncValidator(t,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new ts(this.value,e)),this._events.next(new Pn(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(re(k({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Co:wo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=Fn,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let t=Gm(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,n)=>t&&t._find(n),this)}getError(i,e){let t=e?this.get(e):this;return t&&t.errors?t.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,t){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||t)&&this._events.next(new Pn(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,t)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?Co:this.errors?Kr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fn)?Fn:this._anyControlsHaveStatus(Kr)?Kr:wo}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),n&&this._events.next(new Mo(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new Io(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){as(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=cg(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=dg(this._rawAsyncValidators)}},ns=class extends is{constructor(i,e,t){super(eh(e),th(t,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,t={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,t={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){hg(this,!0,i),Object.keys(i).forEach(t=>{mg(this,!0,t),this.controls[t].setValue(i[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(t=>{let n=this.controls[t];n&&n.patchValue(i[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((t,n)=>{t.reset(i?i[n]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,t)=>(i[t]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&i(t,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&i(t))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(i,e){let t=i;return this._forEachChild((n,r)=>{t=e(t,n,r)}),t}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var ls=new R("CallSetDisabledState",{providedIn:"root",factory:()=>yl}),yl="always";function ug(o,i){return[...i.path,o]}function os(o,i,e=yl){xl(o,i),i.valueAccessor.writeValue(o.value),(o.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(o.disabled),fg(o,i),_g(o,i),gg(o,i),pg(o,i)}function Lm(o,i,e=!0){let t=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(t),i.valueAccessor.registerOnTouched(t)),ss(o,i),o&&(i._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function rs(o,i){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function pg(o,i){if(i.valueAccessor.setDisabledState){let e=t=>{i.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),i._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}function xl(o,i){let e=Qm(o);i.validator!==null?o.setValidators(Om(e,i.validator)):typeof e=="function"&&o.setValidators([e]);let t=Jm(o);i.asyncValidator!==null?o.setAsyncValidators(Om(t,i.asyncValidator)):typeof t=="function"&&o.setAsyncValidators([t]);let n=()=>o.updateValueAndValidity();rs(i._rawValidators,n),rs(i._rawAsyncValidators,n)}function ss(o,i){let e=!1;if(o!==null){if(i.validator!==null){let n=Qm(o);if(Array.isArray(n)&&n.length>0){let r=n.filter(s=>s!==i.validator);r.length!==n.length&&(e=!0,o.setValidators(r))}}if(i.asyncValidator!==null){let n=Jm(o);if(Array.isArray(n)&&n.length>0){let r=n.filter(s=>s!==i.asyncValidator);r.length!==n.length&&(e=!0,o.setAsyncValidators(r))}}}let t=()=>{};return rs(i._rawValidators,t),rs(i._rawAsyncValidators,t),e}function fg(o,i){i.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,o.updateOn==="change"&&ih(o,i)})}function gg(o,i){i.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,o.updateOn==="blur"&&o._pendingChange&&ih(o,i),o.updateOn!=="submit"&&o.markAsTouched()})}function ih(o,i){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function _g(o,i){let e=(t,n)=>{i.valueAccessor.writeValue(t),n&&i.viewToModelUpdate(t)};o.registerOnChange(e),i._registerOnDestroy(()=>{o._unregisterOnChange(e)})}function nh(o,i){o==null,xl(o,i)}function bg(o,i){return ss(o,i)}function vg(o,i){if(!o.hasOwnProperty("model"))return!1;let e=o.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function yg(o){return Object.getPrototypeOf(o.constructor)===Wm}function oh(o,i){o._syncPendingControls(),i.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function xg(o,i){if(!i)return null;Array.isArray(i);let e,t,n;return i.forEach(r=>{r.constructor===Xe?e=r:yg(r)?t=r:n=r}),n||t||e||null}function wg(o,i){let e=o.indexOf(i);e>-1&&o.splice(e,1)}var Cg={provide:nn,useExisting:Rt(()=>So)},ko=Promise.resolve(),So=(()=>{class o extends nn{callSetDisabledState;get submitted(){return Ut(this.submittedReactive)}_submitted=ci(()=>this.submittedReactive());submittedReactive=Ii(!1);_directives=new Set;form;ngSubmit=new H;options;constructor(e,t,n){super(),this.callSetDisabledState=n,this.form=new ns({},bl(e),vl(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ko.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),os(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ko.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){ko.then(()=>{let t=this._findContainer(e.path),n=new ns({});nh(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ko.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){ko.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),oh(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(t){return new(t||o)(Q(on,10),Q(_l,10),Q(ls,8))};static \u0275dir=$({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){t&1&&g("submit",function(s){return n.onSubmit(s)})("reset",function(){return n.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ve([Cg]),Ne]})}return o})();function zm(o,i){let e=o.indexOf(i);e>-1&&o.splice(e,1)}function Nm(o){return typeof o=="object"&&o!==null&&Object.keys(o).length===2&&"value"in o&&"disabled"in o}var rh=class extends is{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,t){super(eh(e),th(t,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),as(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Nm(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){zm(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){zm(this._onDisabledChange,i)}_forEachChild(i){}_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(i){Nm(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var kg=o=>o instanceof rh;var Mg={provide:pi,useExisting:Rt(()=>xe)},Vm=Promise.resolve(),xe=(()=>{class o extends pi{_changeDetectorRef;callSetDisabledState;control=new rh;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new H;constructor(e,t,n,r,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=xg(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),vg(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){os(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(e){Vm.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,n=t!==0&&q(t);Vm.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ug(e,this._parent):[e]}static \u0275fac=function(t){return new(t||o)(Q(nn,9),Q(on,10),Q(_l,10),Q(Eo,10),Q(qe,8),Q(ls,8))};static \u0275dir=$({type:o,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Ve([Mg]),Ne,ze]})}return o})();var Ig={provide:Eo,useExisting:Rt(()=>Qe),multi:!0},Qe=(()=>{class o extends Wm{writeValue(e){let t=e??"";this.setProperty("value",t)}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275dir=$({type:o,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){t&1&&g("input",function(s){return n.onChange(s.target.value)})("blur",function(){return n.onTouched()})},standalone:!1,features:[Ve([Ig]),Ne]})}return o})();var Eg={provide:nn,useExisting:Rt(()=>To)},To=(()=>{class o extends nn{callSetDisabledState;get submitted(){return Ut(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=ci(()=>this._submittedReactive());_submittedReactive=Ii(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new H;constructor(e,t,n){super(),this.callSetDisabledState=n,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ss(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let t=this.form.get(e.path);return os(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Lm(e.control||null,e,!1),wg(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this._submittedReactive.set(!0),oh(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new fl(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new gl(this.form))}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,n=this.form.get(e.path);t!==n&&(Lm(t||null,e),kg(n)&&(os(n,e,this.callSetDisabledState),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let t=this.form.get(e.path);nh(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let t=this.form.get(e.path);t&&bg(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){xl(this.form,this),this._oldForm&&ss(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(t){return new(t||o)(Q(on,10),Q(_l,10),Q(ls,8))};static \u0275dir=$({type:o,selectors:[["","formGroup",""]],hostBindings:function(t,n){t&1&&g("submit",function(s){return n.onSubmit(s)})("reset",function(){return n.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ve([Eg]),Ne,ze]})}return o})();function sh(o){return typeof o=="number"?o:parseFloat(o)}var ah=(()=>{class o{_validator=Qr;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Qr,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,features:[ze]})}return o})(),Sg={provide:on,useExisting:Rt(()=>fi),multi:!0},fi=(()=>{class o extends ah{max;inputName="max";normalizeInput=e=>sh(e);createValidator=e=>Um(e);static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275dir=$({type:o,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(t,n){t&2&&fe("max",n._enabled?n.max:null)},inputs:{max:"max"},standalone:!1,features:[Ve([Sg]),Ne]})}return o})(),Tg={provide:on,useExisting:Rt(()=>gi),multi:!0},gi=(()=>{class o extends ah{min;inputName="min";normalizeInput=e=>sh(e);createValidator=e=>$m(e);static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275dir=$({type:o,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,n){t&2&&fe("min",n._enabled?n.min:null)},inputs:{min:"min"},standalone:!1,features:[Ve([Tg]),Ne]})}return o})();var Dg=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({})}return o})();var Ie=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:ls,useValue:e.callSetDisabledState??yl}]}}static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[Dg]})}return o})();var Rg=["*"],Ag='.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mdc-list-list-item-container-color, transparent);border-radius:var(--mdc-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-leading-icon-size, 24px);height:var(--mdc-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size, 40px);height:var(--mdc-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mdc-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-trailing-icon-size, 24px);height:var(--mdc-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mdc-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mdc-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mdc-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mdc-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mdc-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mdc-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mdc-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mdc-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mdc-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mdc-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}',Og=["unscopedContent"],Fg=["text"],Pg=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],Lg=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var zg=new R("ListOption"),Ng=(()=>{class o{_elementRef=u(j);constructor(){}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return o})(),Vg=(()=>{class o{_elementRef=u(j);constructor(){}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return o})(),Bg=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return o})(),lh=(()=>{class o{_listOption=u(zg,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,hostVars:4,hostBindings:function(t,n){t&2&&te("mdc-list-item__start",n._isAlignedAtStart())("mdc-list-item__end",!n._isAlignedAtStart())}})}return o})(),Wg=(()=>{class o extends lh{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275dir=$({type:o,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Ne]})}return o})(),jg=(()=>{class o extends lh{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275dir=$({type:o,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Ne]})}return o})(),$g=new R("MAT_LIST_CONFIG"),wl=(()=>{class o{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ot(e)}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ot(e)}_disabled=!1;_defaultOptions=u($g,{optional:!0});static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,hostVars:1,hostBindings:function(t,n){t&2&&fe("aria-disabled",n.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return o})(),Ug=(()=>{class o{_elementRef=u(j);_ngZone=u(W);_listBase=u(wl,{optional:!0});_platform=u(Ae);_hostElement;_isButtonElement;_noopAnimations;_avatars;_icons;set lines(e){this._explicitLines=wn(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Ot(e)}_disableRipple=!1;get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(e){this._disabled=Ot(e)}_disabled=!1;_subscriptions=new He;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){u(lt).load(ui);let e=u(Xr,{optional:!0}),t=u(pt,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=t==="NoopAnimations",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Rn(this,this._ngZone,this._hostElement,this._platform,u(Je)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(mt(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let t=this._explicitLines??this._inferLinesFromContent(),n=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",t===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",t===3),this._hasUnscopedTextContent){let r=this._titles.length===0&&t===1;n.classList.toggle("mdc-list-item__primary-text",r),n.classList.toggle("mdc-list-item__secondary-text",!r)}else n.classList.remove("mdc-list-item__primary-text"),n.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,contentQueries:function(t,n,r){if(t&1&&(Ye(r,Wg,4),Ye(r,jg,4)),t&2){let s;J(s=ee())&&(n._avatars=s),J(s=ee())&&(n._icons=s)}},hostVars:4,hostBindings:function(t,n){t&2&&(fe("aria-disabled",n.disabled)("disabled",n._isButtonElement&&n.disabled||null),te("mdc-list-item--disabled",n.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return o})();var ch=(()=>{class o extends Ug{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=Ot(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275cmp=E({type:o,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,n,r){if(t&1&&(Ye(r,Vg,5),Ye(r,Ng,5),Ye(r,Bg,5)),t&2){let s;J(s=ee())&&(n._lines=s),J(s=ee())&&(n._titles=s),J(s=ee())&&(n._meta=s)}},viewQuery:function(t,n){if(t&1&&(Pe(Og,5),Pe(Fg,5)),t&2){let r;J(r=ee())&&(n._unscopedContent=r.first),J(r=ee())&&(n._itemText=r.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(t,n){t&2&&(fe("aria-current",n._getAriaCurrent()),te("mdc-list-item--activated",n.activated)("mdc-list-item--with-leading-avatar",n._avatars.length!==0)("mdc-list-item--with-leading-icon",n._icons.length!==0)("mdc-list-item--with-trailing-meta",n._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",n._hasBothLeadingAndTrailing())("_mat-animation-noopable",n._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[Ne],ngContentSelectors:Lg,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(t,n){if(t&1){let r=F();Te(Pg),G(0),l(1,"span",1),G(2,1),G(3,2),l(4,"span",2,0),g("cdkObserveContent",function(){return b(r),v(n._updateItemLines(!0))}),G(6,3),d()(),G(7,4),G(8,5),D(9,"div",3)}},dependencies:[cm],encapsulation:2,changeDetection:0})}return o})();var dh=(()=>{class o extends wl{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275cmp=E({type:o,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[Ve([{provide:wl,useExisting:o}]),Ne],ngContentSelectors:Rg,decls:1,vars:0,template:function(t,n){t&1&&(Te(),G(0))},styles:[Ag],encapsulation:2,changeDetection:0})}return o})();var mh=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[Br,ke,tn,cl,Am]})}return o})();var oe="primary",Ho=Symbol("RouteTitle"),El=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function jn(o){return new El(o)}function Yg(o,i,e){let t=e.path.split("/");if(t.length>o.length||e.pathMatch==="full"&&(i.hasChildren()||t.lengtht[r]===n)}else return o===i}function yh(o){return o.length>0?o[o.length-1]:null}function Li(o){return Jn(o)?o:Mr(o)?dt(Promise.resolve(o)):V(o)}var Xg={exact:wh,subset:Ch},xh={exact:Zg,subset:Kg,ignored:()=>!0};function hh(o,i,e){return Xg[e.paths](o.root,i.root,e.matrixParams)&&xh[e.queryParams](o.queryParams,i.queryParams)&&!(e.fragment==="exact"&&o.fragment!==i.fragment)}function Zg(o,i){return ni(o,i)}function wh(o,i,e){if(!sn(o.segments,i.segments)||!ms(o.segments,i.segments,e)||o.numberOfChildren!==i.numberOfChildren)return!1;for(let t in i.children)if(!o.children[t]||!wh(o.children[t],i.children[t],e))return!1;return!0}function Kg(o,i){return Object.keys(i).length<=Object.keys(o).length&&Object.keys(i).every(e=>vh(o[e],i[e]))}function Ch(o,i,e){return kh(o,i,i.segments,e)}function kh(o,i,e,t){if(o.segments.length>e.length){let n=o.segments.slice(0,e.length);return!(!sn(n,e)||i.hasChildren()||!ms(n,e,t))}else if(o.segments.length===e.length){if(!sn(o.segments,e)||!ms(o.segments,e,t))return!1;for(let n in i.children)if(!o.children[n]||!Ch(o.children[n],i.children[n],t))return!1;return!0}else{let n=e.slice(0,o.segments.length),r=e.slice(o.segments.length);return!sn(o.segments,n)||!ms(o.segments,n,t)||!o.children[oe]?!1:kh(o.children[oe],i,r,t)}}function ms(o,i,e){return i.every((t,n)=>xh[e](o[n].parameters,t.parameters))}var bi=class{root;queryParams;fragment;_queryParamMap;constructor(i=new Ee([],{}),e={},t=null){this.root=i,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=jn(this.queryParams),this._queryParamMap}toString(){return e_.serialize(this)}},Ee=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return hs(this)}},rn=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=jn(this.parameters),this._parameterMap}toString(){return Ih(this)}};function Qg(o,i){return sn(o,i)&&o.every((e,t)=>ni(e.parameters,i[t].parameters))}function sn(o,i){return o.length!==i.length?!1:o.every((e,t)=>e.path===i[t].path)}function Jg(o,i){let e=[];return Object.entries(o.children).forEach(([t,n])=>{t===oe&&(e=e.concat(i(n,t)))}),Object.entries(o.children).forEach(([t,n])=>{t!==oe&&(e=e.concat(i(n,t)))}),e}var ec=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:()=>new Lo,providedIn:"root"})}return o})(),Lo=class{parse(i){let e=new Dl(i);return new bi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${Do(i.root,!0)}`,t=n_(i.queryParams),n=typeof i.fragment=="string"?`#${t_(i.fragment)}`:"";return`${e}${t}${n}`}},e_=new Lo;function hs(o){return o.segments.map(i=>Ih(i)).join("/")}function Do(o,i){if(!o.hasChildren())return hs(o);if(i){let e=o.children[oe]?Do(o.children[oe],!1):"",t=[];return Object.entries(o.children).forEach(([n,r])=>{n!==oe&&t.push(`${n}:${Do(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=Jg(o,(t,n)=>n===oe?[Do(o.children[oe],!1)]:[`${n}:${Do(t,!1)}`]);return Object.keys(o.children).length===1&&o.children[oe]!=null?`${hs(o)}/${e[0]}`:`${hs(o)}/(${e.join("//")})`}}function Mh(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function cs(o){return Mh(o).replace(/%3B/gi,";")}function t_(o){return encodeURI(o)}function Tl(o){return Mh(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function us(o){return decodeURIComponent(o)}function uh(o){return us(o.replace(/\+/g,"%20"))}function Ih(o){return`${Tl(o.path)}${i_(o.parameters)}`}function i_(o){return Object.entries(o).map(([i,e])=>`;${Tl(i)}=${Tl(e)}`).join("")}function n_(o){let i=Object.entries(o).map(([e,t])=>Array.isArray(t)?t.map(n=>`${cs(e)}=${cs(n)}`).join("&"):`${cs(e)}=${cs(t)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var o_=/^[^\/()?;#]+/;function Cl(o){let i=o.match(o_);return i?i[0]:""}var r_=/^[^\/()?;=#]+/;function s_(o){let i=o.match(r_);return i?i[0]:""}var a_=/^[^=?&#]+/;function l_(o){let i=o.match(a_);return i?i[0]:""}var c_=/^[^&#]+/;function d_(o){let i=o.match(c_);return i?i[0]:""}var Dl=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ee([],{}):new Ee([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(t[oe]=new Ee(i,e)),t}parseSegment(){let i=Cl(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new Se(4009,!1);return this.capture(i),new rn(us(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=s_(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let n=Cl(this.remaining);n&&(t=n,this.capture(t))}i[us(e)]=us(t)}parseQueryParam(i){let e=l_(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let s=d_(this.remaining);s&&(t=s,this.capture(t))}let n=uh(e),r=uh(t);if(i.hasOwnProperty(n)){let s=i[n];Array.isArray(s)||(s=[s],i[n]=s),s.push(r)}else i[n]=r}parseParens(i){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Cl(this.remaining),n=this.remaining[t.length];if(n!=="/"&&n!==")"&&n!==";")throw new Se(4010,!1);let r;t.indexOf(":")>-1?(r=t.slice(0,t.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=oe);let s=this.parseChildren();e[r]=Object.keys(s).length===1?s[oe]:new Ee([],s),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new Se(4011,!1)}};function Eh(o){return o.segments.length>0?new Ee([],{[oe]:o}):o}function Sh(o){let i={};for(let[t,n]of Object.entries(o.children)){let r=Sh(n);if(t===oe&&r.segments.length===0&&r.hasChildren())for(let[s,a]of Object.entries(r.children))i[s]=a;else(r.segments.length>0||r.hasChildren())&&(i[t]=r)}let e=new Ee(o.segments,i);return m_(e)}function m_(o){if(o.numberOfChildren===1&&o.children[oe]){let i=o.children[oe];return new Ee(o.segments.concat(i.segments),i.children)}return o}function an(o){return o instanceof bi}function h_(o,i,e=null,t=null){let n=Th(o);return Dh(n,i,e,t)}function Th(o){let i;function e(r){let s={};for(let c of r.children){let p=e(c);s[c.outlet]=p}let a=new Ee(r.url,s);return r===o&&(i=a),a}let t=e(o.root),n=Eh(t);return i??n}function Dh(o,i,e,t){let n=o;for(;n.parent;)n=n.parent;if(i.length===0)return kl(n,n,n,e,t);let r=u_(i);if(r.toRoot())return kl(n,n,new Ee([],{}),e,t);let s=p_(r,n,o),a=s.processChildren?Oo(s.segmentGroup,s.index,r.commands):Ah(s.segmentGroup,s.index,r.commands);return kl(n,s.segmentGroup,a,e,t)}function ps(o){return typeof o=="object"&&o!=null&&!o.outlets&&!o.segmentPath}function zo(o){return typeof o=="object"&&o!=null&&o.outlets}function kl(o,i,e,t,n){let r={};t&&Object.entries(t).forEach(([c,p])=>{r[c]=Array.isArray(p)?p.map(_=>`${_}`):`${p}`});let s;o===i?s=e:s=Rh(o,i,e);let a=Eh(Sh(s));return new bi(a,r,n)}function Rh(o,i,e){let t={};return Object.entries(o.children).forEach(([n,r])=>{r===i?t[n]=e:t[n]=Rh(r,i,e)}),new Ee(o.segments,t)}var fs=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,t){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=t,i&&t.length>0&&ps(t[0]))throw new Se(4003,!1);let n=t.find(zo);if(n&&n!==yh(t))throw new Se(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function u_(o){if(typeof o[0]=="string"&&o.length===1&&o[0]==="/")return new fs(!0,0,o);let i=0,e=!1,t=o.reduce((n,r,s)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let a={};return Object.entries(r.outlets).forEach(([c,p])=>{a[c]=typeof p=="string"?p.split("/"):p}),[...n,{outlets:a}]}if(r.segmentPath)return[...n,r.segmentPath]}return typeof r!="string"?[...n,r]:s===0?(r.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?i++:a!=""&&n.push(a))}),n):[...n,r]},[]);return new fs(e,i,t)}var Vn=class{segmentGroup;processChildren;index;constructor(i,e,t){this.segmentGroup=i,this.processChildren=e,this.index=t}};function p_(o,i,e){if(o.isAbsolute)return new Vn(i,!0,0);if(!e)return new Vn(i,!1,NaN);if(e.parent===null)return new Vn(e,!0,0);let t=ps(o.commands[0])?0:1,n=e.segments.length-1+t;return f_(e,n,o.numberOfDoubleDots)}function f_(o,i,e){let t=o,n=i,r=e;for(;r>n;){if(r-=n,t=t.parent,!t)throw new Se(4005,!1);n=t.segments.length}return new Vn(t,!1,n-r)}function g_(o){return zo(o[0])?o[0].outlets:{[oe]:o}}function Ah(o,i,e){if(o??=new Ee([],{}),o.segments.length===0&&o.hasChildren())return Oo(o,i,e);let t=__(o,i,e),n=e.slice(t.commandIndex);if(t.match&&t.pathIndexr!==oe)&&o.children[oe]&&o.numberOfChildren===1&&o.children[oe].segments.length===0){let r=Oo(o.children[oe],i,e);return new Ee(o.segments,r.children)}return Object.entries(t).forEach(([r,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(n[r]=Ah(o.children[r],i,s))}),Object.entries(o.children).forEach(([r,s])=>{t[r]===void 0&&(n[r]=s)}),new Ee(o.segments,n)}}function __(o,i,e){let t=0,n=i,r={match:!1,pathIndex:0,commandIndex:0};for(;n=e.length)return r;let s=o.segments[n],a=e[t];if(zo(a))break;let c=`${a}`,p=t0&&c===void 0)break;if(c&&p&&typeof p=="object"&&p.outlets===void 0){if(!fh(c,p,s))return r;t+=2}else{if(!fh(c,{},s))return r;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function Rl(o,i,e){let t=o.segments.slice(0,i),n=0;for(;n{typeof t=="string"&&(t=[t]),t!==null&&(i[e]=Rl(new Ee([],{}),0,t))}),i}function ph(o){let i={};return Object.entries(o).forEach(([e,t])=>i[e]=`${t}`),i}function fh(o,i,e){return o==e.path&&ni(i,e.parameters)}var Fo="imperative",ct=function(o){return o[o.NavigationStart=0]="NavigationStart",o[o.NavigationEnd=1]="NavigationEnd",o[o.NavigationCancel=2]="NavigationCancel",o[o.NavigationError=3]="NavigationError",o[o.RoutesRecognized=4]="RoutesRecognized",o[o.ResolveStart=5]="ResolveStart",o[o.ResolveEnd=6]="ResolveEnd",o[o.GuardsCheckStart=7]="GuardsCheckStart",o[o.GuardsCheckEnd=8]="GuardsCheckEnd",o[o.RouteConfigLoadStart=9]="RouteConfigLoadStart",o[o.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",o[o.ChildActivationStart=11]="ChildActivationStart",o[o.ChildActivationEnd=12]="ChildActivationEnd",o[o.ActivationStart=13]="ActivationStart",o[o.ActivationEnd=14]="ActivationEnd",o[o.Scroll=15]="Scroll",o[o.NavigationSkipped=16]="NavigationSkipped",o}(ct||{}),Pt=class{id;url;constructor(i,e){this.id=i,this.url=e}},No=class extends Pt{type=ct.NavigationStart;navigationTrigger;restoredState;constructor(i,e,t="imperative",n=null){super(i,e),this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},vi=class extends Pt{urlAfterRedirects;type=ct.NavigationEnd;constructor(i,e,t){super(i,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},St=function(o){return o[o.Redirect=0]="Redirect",o[o.SupersededByNewNavigation=1]="SupersededByNewNavigation",o[o.NoDataFromResolver=2]="NoDataFromResolver",o[o.GuardRejected=3]="GuardRejected",o}(St||{}),Al=function(o){return o[o.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",o[o.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",o}(Al||{}),_i=class extends Pt{reason;code;type=ct.NavigationCancel;constructor(i,e,t,n){super(i,e),this.reason=t,this.code=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ln=class extends Pt{reason;code;type=ct.NavigationSkipped;constructor(i,e,t,n){super(i,e),this.reason=t,this.code=n}},Vo=class extends Pt{error;target;type=ct.NavigationError;constructor(i,e,t,n){super(i,e),this.error=t,this.target=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},gs=class extends Pt{urlAfterRedirects;state;type=ct.RoutesRecognized;constructor(i,e,t,n){super(i,e),this.urlAfterRedirects=t,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ol=class extends Pt{urlAfterRedirects;state;type=ct.GuardsCheckStart;constructor(i,e,t,n){super(i,e),this.urlAfterRedirects=t,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fl=class extends Pt{urlAfterRedirects;state;shouldActivate;type=ct.GuardsCheckEnd;constructor(i,e,t,n,r){super(i,e),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Pl=class extends Pt{urlAfterRedirects;state;type=ct.ResolveStart;constructor(i,e,t,n){super(i,e),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ll=class extends Pt{urlAfterRedirects;state;type=ct.ResolveEnd;constructor(i,e,t,n){super(i,e),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},zl=class{route;type=ct.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Nl=class{route;type=ct.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Vl=class{snapshot;type=ct.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bl=class{snapshot;type=ct.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wl=class{snapshot;type=ct.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jl=class{snapshot;type=ct.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Bo=class{},$n=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function v_(o,i){return o.providers&&!o._injector&&(o._injector=xd(o.providers,i,`Route: ${o.path}`)),o._injector??i}function Gt(o){return o.outlet||oe}function y_(o,i){let e=o.filter(t=>Gt(t)===i);return e.push(...o.filter(t=>Gt(t)!==i)),e}function Go(o){if(!o)return null;if(o.routeConfig?._injector)return o.routeConfig._injector;for(let i=o.parent;i;i=i.parent){let e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var $l=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Go(this.route?.snapshot)??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new ks(this.rootInjector)}},ks=(()=>{class o{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new $l(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||o)(K(Qt))};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),_s=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=Ul(i,this._root);return e?e.children.map(t=>t.value):[]}firstChild(i){let e=Ul(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=Hl(i,this._root);return e.length<2?[]:e[e.length-2].children.map(n=>n.value).filter(n=>n!==i)}pathFromRoot(i){return Hl(i,this._root).map(e=>e.value)}};function Ul(o,i){if(o===i.value)return i;for(let e of i.children){let t=Ul(o,e);if(t)return t}return null}function Hl(o,i){if(o===i.value)return[i];for(let e of i.children){let t=Hl(o,e);if(t.length)return t.unshift(i),t}return[]}var Et=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Nn(o){let i={};return o&&o.children.forEach(e=>i[e.value.outlet]=e),i}var bs=class extends _s{snapshot;constructor(i,e){super(i),this.snapshot=e,tc(this,i)}toString(){return this.snapshot.toString()}};function Oh(o){let i=x_(o),e=new Ct([new rn("",{})]),t=new Ct({}),n=new Ct({}),r=new Ct({}),s=new Ct(""),a=new cn(e,t,r,s,n,oe,o,i.root);return a.snapshot=i.root,new bs(new Et(a,[]),i)}function x_(o){let i={},e={},t={},n="",r=new Bn([],i,t,n,e,oe,o,null,{});return new ys("",new Et(r,[]))}var cn=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,t,n,r,s,a,c){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=r,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(B(p=>p[Ho]))??V(void 0),this.url=i,this.params=e,this.queryParams=t,this.fragment=n,this.data=r}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(B(i=>jn(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(B(i=>jn(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function vs(o,i,e="emptyOnly"){let t,{routeConfig:n}=o;return i!==null&&(e==="always"||n?.path===""||!i.component&&!i.routeConfig?.loadComponent)?t={params:k(k({},i.params),o.params),data:k(k({},i.data),o.data),resolve:k(k(k(k({},o.data),i.data),n?.data),o._resolvedData)}:t={params:k({},o.params),data:k({},o.data),resolve:k(k({},o.data),o._resolvedData??{})},n&&Ph(n)&&(t.resolve[Ho]=n.title),t}var Bn=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ho]}constructor(i,e,t,n,r,s,a,c,p){this.url=i,this.params=e,this.queryParams=t,this.fragment=n,this.data=r,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=p}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??=jn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=jn(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},ys=class extends _s{url;constructor(i,e){super(e),this.url=i,tc(this,e)}toString(){return Fh(this._root)}};function tc(o,i){i.value._routerState=o,i.children.forEach(e=>tc(o,e))}function Fh(o){let i=o.children.length>0?` { ${o.children.map(Fh).join(", ")} } `:"";return`${o.value}${i}`}function Ml(o){if(o.snapshot){let i=o.snapshot,e=o._futureSnapshot;o.snapshot=e,ni(i.queryParams,e.queryParams)||o.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&o.fragmentSubject.next(e.fragment),ni(i.params,e.params)||o.paramsSubject.next(e.params),qg(i.url,e.url)||o.urlSubject.next(e.url),ni(i.data,e.data)||o.dataSubject.next(e.data)}else o.snapshot=o._futureSnapshot,o.dataSubject.next(o._futureSnapshot.data)}function Gl(o,i){let e=ni(o.params,i.params)&&Qg(o.url,i.url),t=!o.parent!=!i.parent;return e&&!t&&(!o.parent||Gl(o.parent,i.parent))}function Ph(o){return typeof o.title=="string"||o.title===null}var w_=new R(""),ic=(()=>{class o{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=oe;activateEvents=new H;deactivateEvents=new H;attachEvents=new H;detachEvents=new H;routerOutletData=ad(void 0);parentContexts=u(ks);location=u(Jt);changeDetector=u(qe);inputBinder=u(nc,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:n}=e.name;if(t)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Se(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Se(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Se(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Se(4013,!1);this._activatedRoute=e;let n=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Yl(e,a,n.injector,this.routerOutletData);this.activated=n.createComponent(s,{index:n.length,injector:c,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ze]})}return o})(),Yl=class o{route;childContexts;parent;outletData;__ngOutletInjector(i){return new o(this.route,this.childContexts,i,this.outletData)}constructor(i,e,t,n){this.route=i,this.childContexts=e,this.parent=t,this.outletData=n}get(i,e){return i===cn?this.route:i===ks?this.childContexts:i===w_?this.outletData:this.parent.get(i,e)}},nc=new R("");function C_(o,i,e){let t=Wo(o,i._root,e?e._root:void 0);return new bs(t,i)}function Wo(o,i,e){if(e&&o.shouldReuseRoute(i.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=i.value;let n=k_(o,i,e);return new Et(t,n)}else{if(o.shouldAttach(i.value)){let r=o.retrieve(i.value);if(r!==null){let s=r.route;return s.value._futureSnapshot=i.value,s.children=i.children.map(a=>Wo(o,a)),s}}let t=M_(i.value),n=i.children.map(r=>Wo(o,r));return new Et(t,n)}}function k_(o,i,e){return i.children.map(t=>{for(let n of e.children)if(o.shouldReuseRoute(t.value,n.value.snapshot))return Wo(o,t,n);return Wo(o,t)})}function M_(o){return new cn(new Ct(o.url),new Ct(o.params),new Ct(o.queryParams),new Ct(o.fragment),new Ct(o.data),o.outlet,o.component,o)}var jo=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},Lh="ngNavigationCancelingError";function xs(o,i){let{redirectTo:e,navigationBehaviorOptions:t}=an(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,n=zh(!1,St.Redirect);return n.url=e,n.navigationBehaviorOptions=t,n}function zh(o,i){let e=new Error(`NavigationCancelingError: ${o||""}`);return e[Lh]=!0,e.cancellationCode=i,e}function I_(o){return Nh(o)&&an(o.url)}function Nh(o){return!!o&&o[Lh]}var E_=(o,i,e,t)=>B(n=>(new ql(i,n.targetRouterState,n.currentRouterState,e,t).activate(o),n)),ql=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,t,n,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,i),Ml(this.futureState.root),this.activateChildRoutes(e,t,i)}deactivateChildRoutes(i,e,t){let n=Nn(e);i.children.forEach(r=>{let s=r.value.outlet;this.deactivateRoutes(r,n[s],t),delete n[s]}),Object.values(n).forEach(r=>{this.deactivateRouteAndItsChildren(r,t)})}deactivateRoutes(i,e,t){let n=i.value,r=e?e.value:null;if(n===r)if(n.component){let s=t.getContext(n.outlet);s&&this.deactivateChildRoutes(i,e,s.children)}else this.deactivateChildRoutes(i,e,t);else r&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let t=e.getContext(i.value.outlet),n=t&&i.value.component?t.children:e,r=Nn(i);for(let s of Object.values(r))this.deactivateRouteAndItsChildren(s,n);if(t&&t.outlet){let s=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:s,route:i,contexts:a})}}deactivateRouteAndOutlet(i,e){let t=e.getContext(i.value.outlet),n=t&&i.value.component?t.children:e,r=Nn(i);for(let s of Object.values(r))this.deactivateRouteAndItsChildren(s,n);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(i,e,t){let n=Nn(e);i.children.forEach(r=>{this.activateRoutes(r,n[r.value.outlet],t),this.forwardEvent(new jl(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Bl(i.value.snapshot))}activateRoutes(i,e,t){let n=i.value,r=e?e.value:null;if(Ml(n),n===r)if(n.component){let s=t.getOrCreateContext(n.outlet);this.activateChildRoutes(i,e,s.children)}else this.activateChildRoutes(i,e,t);else if(n.component){let s=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.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),Ml(a.route.value),this.activateChildRoutes(i,null,s.children)}else s.attachRef=null,s.route=n,s.outlet&&s.outlet.activateWith(n,s.injector),this.activateChildRoutes(i,null,s.children)}else this.activateChildRoutes(i,null,t)}},ws=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},Wn=class{component;route;constructor(i,e){this.component=i,this.route=e}};function S_(o,i,e){let t=o._root,n=i?i._root:null;return Ro(t,n,e,[t.value])}function T_(o){let i=o.routeConfig?o.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:o,guards:i}}function Hn(o,i){let e=Symbol(),t=i.get(o,e);return t===e?typeof o=="function"&&!id(o)?o:i.get(o):t}function Ro(o,i,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let r=Nn(i);return o.children.forEach(s=>{D_(s,r[s.value.outlet],e,t.concat([s.value]),n),delete r[s.value.outlet]}),Object.entries(r).forEach(([s,a])=>Po(a,e.getContext(s),n)),n}function D_(o,i,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let r=o.value,s=i?i.value:null,a=e?e.getContext(o.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){let c=R_(s,r,r.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new ws(t)):(r.data=s.data,r._resolvedData=s._resolvedData),r.component?Ro(o,i,a?a.children:null,t,n):Ro(o,i,e,t,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new Wn(a.outlet.component,s))}else s&&Po(i,a,n),n.canActivateChecks.push(new ws(t)),r.component?Ro(o,null,a?a.children:null,t,n):Ro(o,null,e,t,n);return n}function R_(o,i,e){if(typeof e=="function")return e(o,i);switch(e){case"pathParamsChange":return!sn(o.url,i.url);case"pathParamsOrQueryParamsChange":return!sn(o.url,i.url)||!ni(o.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gl(o,i)||!ni(o.queryParams,i.queryParams);case"paramsChange":default:return!Gl(o,i)}}function Po(o,i,e){let t=Nn(o),n=o.value;Object.entries(t).forEach(([r,s])=>{n.component?i?Po(s,i.children.getContext(r),e):Po(s,null,e):Po(s,i,e)}),n.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new Wn(i.outlet.component,n)):e.canDeactivateChecks.push(new Wn(null,n)):e.canDeactivateChecks.push(new Wn(null,n))}function Yo(o){return typeof o=="function"}function A_(o){return typeof o=="boolean"}function O_(o){return o&&Yo(o.canLoad)}function F_(o){return o&&Yo(o.canActivate)}function P_(o){return o&&Yo(o.canActivateChild)}function L_(o){return o&&Yo(o.canDeactivate)}function z_(o){return o&&Yo(o.canMatch)}function Vh(o){return o instanceof Kc||o?.name==="EmptyError"}var ds=Symbol("INITIAL_VALUE");function Un(){return $e(o=>eo(o.map(i=>i.pipe(ht(1),ut(ds)))).pipe(B(i=>{for(let e of i)if(e!==!0){if(e===ds)return ds;if(e===!1||N_(e))return e}return!0}),De(i=>i!==ds),ht(1)))}function N_(o){return an(o)||o instanceof jo}function V_(o,i){return Dt(e=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:r,canDeactivateChecks:s}}=e;return s.length===0&&r.length===0?V(re(k({},e),{guardsResult:!0})):B_(s,t,n,o).pipe(Dt(a=>a&&A_(a)?W_(t,r,o,i):V(a)),B(a=>re(k({},e),{guardsResult:a})))})}function B_(o,i,e,t){return dt(o).pipe(Dt(n=>G_(n.component,n.route,e,i,t)),ai(n=>n!==!0,!0))}function W_(o,i,e,t){return dt(i).pipe(Wi(n=>gr($_(n.route.parent,t),j_(n.route,t),H_(o,n.path,e),U_(o,n.route,e))),ai(n=>n!==!0,!0))}function j_(o,i){return o!==null&&i&&i(new Wl(o)),V(!0)}function $_(o,i){return o!==null&&i&&i(new Vl(o)),V(!0)}function U_(o,i,e){let t=i.routeConfig?i.routeConfig.canActivate:null;if(!t||t.length===0)return V(!0);let n=t.map(r=>to(()=>{let s=Go(i)??e,a=Hn(r,s),c=F_(a)?a.canActivate(i,o):Bt(s,()=>a(i,o));return Li(c).pipe(ai())}));return V(n).pipe(Un())}function H_(o,i,e){let t=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(s=>T_(s)).filter(s=>s!==null).map(s=>to(()=>{let a=s.guards.map(c=>{let p=Go(s.node)??e,_=Hn(c,p),y=P_(_)?_.canActivateChild(t,o):Bt(p,()=>_(t,o));return Li(y).pipe(ai())});return V(a).pipe(Un())}));return V(r).pipe(Un())}function G_(o,i,e,t,n){let r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!r||r.length===0)return V(!0);let s=r.map(a=>{let c=Go(i)??n,p=Hn(a,c),_=L_(p)?p.canDeactivate(o,i,e,t):Bt(c,()=>p(o,i,e,t));return Li(_).pipe(ai())});return V(s).pipe(Un())}function Y_(o,i,e,t){let n=i.canLoad;if(n===void 0||n.length===0)return V(!0);let r=n.map(s=>{let a=Hn(s,o),c=O_(a)?a.canLoad(i,e):Bt(o,()=>a(i,e));return Li(c)});return V(r).pipe(Un(),Bh(t))}function Bh(o){return Zc(Ue(i=>{if(typeof i!="boolean")throw xs(o,i)}),B(i=>i===!0))}function q_(o,i,e,t){let n=i.canMatch;if(!n||n.length===0)return V(!0);let r=n.map(s=>{let a=Hn(s,o),c=z_(a)?a.canMatch(i,e):Bt(o,()=>a(i,e));return Li(c)});return V(r).pipe(Un(),Bh(t))}var $o=class{segmentGroup;constructor(i){this.segmentGroup=i||null}},Uo=class extends Error{urlTree;constructor(i){super(),this.urlTree=i}};function zn(o){return Bi(new $o(o))}function X_(o){return Bi(new Se(4e3,!1))}function Z_(o){return Bi(zh(!1,St.GuardRejected))}var Xl=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){let t=[],n=e.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return V(t);if(n.numberOfChildren>1||!n.children[oe])return X_(`${i.redirectTo}`);n=n.children[oe]}}applyRedirectCommands(i,e,t,n,r){if(typeof e!="string"){let a=e,{queryParams:c,fragment:p,routeConfig:_,url:y,outlet:I,params:S,data:A,title:T}=n,z=Bt(r,()=>a({params:S,data:A,queryParams:c,fragment:p,routeConfig:_,url:y,outlet:I,title:T}));if(z instanceof bi)throw new Uo(z);e=z}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,t);if(e[0]==="/")throw new Uo(s);return s}applyRedirectCreateUrlTree(i,e,t,n){let r=this.createSegmentGroup(i,e.root,t,n);return new bi(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let t={};return Object.entries(i).forEach(([n,r])=>{if(typeof r=="string"&&r[0]===":"){let a=r.substring(1);t[n]=e[a]}else t[n]=r}),t}createSegmentGroup(i,e,t,n){let r=this.createSegments(i,e.segments,t,n),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(i,c,t,n)}),new Ee(r,s)}createSegments(i,e,t,n){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,n):this.findOrReturn(r,t))}findPosParam(i,e,t){let n=t[e.path.substring(1)];if(!n)throw new Se(4001,!1);return n}findOrReturn(i,e){let t=0;for(let n of e){if(n.path===i.path)return e.splice(t),n;t++}return i}},Zl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function K_(o,i,e,t,n){let r=Wh(o,i,e);return r.matched?(t=v_(i,t),q_(t,i,e,n).pipe(B(s=>s===!0?r:k({},Zl)))):V(r)}function Wh(o,i,e){if(i.path==="**")return Q_(e);if(i.path==="")return i.pathMatch==="full"&&(o.hasChildren()||e.length>0)?k({},Zl):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let n=(i.matcher||Yg)(e,o,i);if(!n)return k({},Zl);let r={};Object.entries(n.posParams??{}).forEach(([a,c])=>{r[a]=c.path});let s=n.consumed.length>0?k(k({},r),n.consumed[n.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:n.consumed,remainingSegments:e.slice(n.consumed.length),parameters:s,positionalParamSegments:n.posParams??{}}}function Q_(o){return{matched:!0,parameters:o.length>0?yh(o).parameters:{},consumedSegments:o,remainingSegments:[],positionalParamSegments:{}}}function gh(o,i,e,t){return e.length>0&&tb(o,e,t)?{segmentGroup:new Ee(i,eb(t,new Ee(e,o.children))),slicedSegments:[]}:e.length===0&&ib(o,e,t)?{segmentGroup:new Ee(o.segments,J_(o,e,t,o.children)),slicedSegments:e}:{segmentGroup:new Ee(o.segments,o.children),slicedSegments:e}}function J_(o,i,e,t){let n={};for(let r of e)if(Ms(o,i,r)&&!t[Gt(r)]){let s=new Ee([],{});n[Gt(r)]=s}return k(k({},t),n)}function eb(o,i){let e={};e[oe]=i;for(let t of o)if(t.path===""&&Gt(t)!==oe){let n=new Ee([],{});e[Gt(t)]=n}return e}function tb(o,i,e){return e.some(t=>Ms(o,i,t)&&Gt(t)!==oe)}function ib(o,i,e){return e.some(t=>Ms(o,i,t))}function Ms(o,i,e){return(o.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function nb(o,i,e){return i.length===0&&!o.children[e]}var Kl=class{};function ob(o,i,e,t,n,r,s="emptyOnly"){return new Ql(o,i,e,t,n,s,r).recognize()}var rb=31,Ql=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,t,n,r,s,a){this.injector=i,this.configLoader=e,this.rootComponentType=t,this.config=n,this.urlTree=r,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Xl(this.urlSerializer,this.urlTree)}noMatchError(i){return new Se(4002,`'${i.segmentGroup}'`)}recognize(){let i=gh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(B(({children:e,rootSnapshot:t})=>{let n=new Et(t,e),r=new ys("",n),s=h_(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(s),{state:r,tree:s}}))}match(i){let e=new Bn([],Object.freeze({}),Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),oe,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,i,oe,e).pipe(B(t=>({children:t,rootSnapshot:e})),Ci(t=>{if(t instanceof Uo)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof $o?this.noMatchError(t):t}))}processSegmentGroup(i,e,t,n,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(i,e,t,r):this.processSegment(i,e,t,t.segments,n,!0,r).pipe(B(s=>s instanceof Et?[s]:[]))}processChildren(i,e,t,n){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return dt(r).pipe(Wi(s=>{let a=t.children[s],c=y_(e,s);return this.processSegmentGroup(i,c,a,s,n)}),Jc((s,a)=>(s.push(...a),s)),fa(null),Qc(),Dt(s=>{if(s===null)return zn(t);let a=jh(s);return sb(a),V(a)}))}processSegment(i,e,t,n,r,s,a){return dt(e).pipe(Wi(c=>this.processSegmentAgainstRoute(c._injector??i,e,c,t,n,r,s,a).pipe(Ci(p=>{if(p instanceof $o)return V(null);throw p}))),ai(c=>!!c),Ci(c=>{if(Vh(c))return nb(t,n,r)?V(new Kl):zn(t);throw c}))}processSegmentAgainstRoute(i,e,t,n,r,s,a,c){return Gt(t)!==s&&(s===oe||!Ms(n,r,t))?zn(n):t.redirectTo===void 0?this.matchSegmentAgainstRoute(i,n,t,r,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(i,n,e,t,r,s,c):zn(n)}expandSegmentAgainstRouteUsingRedirect(i,e,t,n,r,s,a){let{matched:c,parameters:p,consumedSegments:_,positionalParamSegments:y,remainingSegments:I}=Wh(e,n,r);if(!c)return zn(e);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>rb&&(this.allowRedirects=!1));let S=new Bn(r,p,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,_h(n),Gt(n),n.component??n._loadedComponent??null,n,bh(n)),A=vs(S,a,this.paramsInheritanceStrategy);S.params=Object.freeze(A.params),S.data=Object.freeze(A.data);let T=this.applyRedirects.applyRedirectCommands(_,n.redirectTo,y,S,i);return this.applyRedirects.lineralizeSegments(n,T).pipe(Dt(z=>this.processSegment(i,t,e,z.concat(I),s,!1,a)))}matchSegmentAgainstRoute(i,e,t,n,r,s){let a=K_(e,t,n,i,this.urlSerializer);return t.path==="**"&&(e.children={}),a.pipe($e(c=>c.matched?(i=t._injector??i,this.getChildConfig(i,t,n).pipe($e(({routes:p})=>{let _=t._loadedInjector??i,{parameters:y,consumedSegments:I,remainingSegments:S}=c,A=new Bn(I,y,Object.freeze(k({},this.urlTree.queryParams)),this.urlTree.fragment,_h(t),Gt(t),t.component??t._loadedComponent??null,t,bh(t)),T=vs(A,s,this.paramsInheritanceStrategy);A.params=Object.freeze(T.params),A.data=Object.freeze(T.data);let{segmentGroup:z,slicedSegments:Le}=gh(e,I,S,p);if(Le.length===0&&z.hasChildren())return this.processChildren(_,p,z,A).pipe(B(we=>new Et(A,we)));if(p.length===0&&Le.length===0)return V(new Et(A,[]));let rt=Gt(t)===r;return this.processSegment(_,p,z,Le,rt?oe:r,!0,A).pipe(B(we=>new Et(A,we instanceof Et?[we]:[])))}))):zn(e)))}getChildConfig(i,e,t){return e.children?V({routes:e.children,injector:i}):e.loadChildren?e._loadedRoutes!==void 0?V({routes:e._loadedRoutes,injector:e._loadedInjector}):Y_(i,e,t,this.urlSerializer).pipe(Dt(n=>n?this.configLoader.loadChildren(i,e).pipe(Ue(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):Z_(e))):V({routes:[],injector:i})}};function sb(o){o.sort((i,e)=>i.value.outlet===oe?-1:e.value.outlet===oe?1:i.value.outlet.localeCompare(e.value.outlet))}function ab(o){let i=o.value.routeConfig;return i&&i.path===""}function jh(o){let i=[],e=new Set;for(let t of o){if(!ab(t)){i.push(t);continue}let n=i.find(r=>t.value.routeConfig===r.value.routeConfig);n!==void 0?(n.children.push(...t.children),e.add(n)):i.push(t)}for(let t of e){let n=jh(t.children);i.push(new Et(t.value,n))}return i.filter(t=>!e.has(t))}function _h(o){return o.data||{}}function bh(o){return o.resolve||{}}function lb(o,i,e,t,n,r){return Dt(s=>ob(o,i,e,t,s.extractedUrl,n,r).pipe(B(({state:a,tree:c})=>re(k({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function cb(o,i){return Dt(e=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return V(e);let r=new Set(n.map(c=>c.route)),s=new Set;for(let c of r)if(!s.has(c))for(let p of $h(c))s.add(p);let a=0;return dt(s).pipe(Wi(c=>r.has(c)?db(c,t,o,i):(c.data=vs(c,c.parent,o).resolve,V(void 0))),Ue(()=>a++),_a(1),Dt(c=>a===s.size?V(e):Kt))})}function $h(o){let i=o.children.map(e=>$h(e)).flat();return[o,...i]}function db(o,i,e,t){let n=o.routeConfig,r=o._resolve;return n?.title!==void 0&&!Ph(n)&&(r[Ho]=n.title),mb(r,o,i,t).pipe(B(s=>(o._resolvedData=s,o.data=vs(o,o.parent,e).resolve,null)))}function mb(o,i,e,t){let n=Sl(o);if(n.length===0)return V({});let r={};return dt(n).pipe(Dt(s=>hb(o[s],i,e,t).pipe(ai(),Ue(a=>{if(a instanceof jo)throw xs(new Lo,a);r[s]=a}))),_a(1),vr(r),Ci(s=>Vh(s)?Kt:Bi(s)))}function hb(o,i,e,t){let n=Go(i)??t,r=Hn(o,n),s=r.resolve?r.resolve(i,e):Bt(n,()=>r(i,e));return Li(s)}function Il(o){return $e(i=>{let e=o(i);return e?dt(e).pipe(B(()=>i)):V(i)})}var Uh=(()=>{class o{buildTitle(e){let t,n=e.root;for(;n!==void 0;)t=this.getResolvedTitleForRoute(n)??t,n=n.children.find(r=>r.outlet===oe);return t}getResolvedTitleForRoute(e){return e.data[Ho]}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:()=>u(ub),providedIn:"root"})}return o})(),ub=(()=>{class o extends Uh{title;constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||o)(K(om))};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),oc=new R("",{providedIn:"root",factory:()=>({})}),pb=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,n){t&1&&D(0,"router-outlet")},dependencies:[ic],encapsulation:2})}return o})();function rc(o){let i=o.children&&o.children.map(rc),e=i?re(k({},o),{children:i}):k({},o);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==oe&&(e.component=pb),e}var sc=new R(""),fb=(()=>{class o{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(Ta);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return V(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let t=Li(e.loadComponent()).pipe(B(Hh),Ue(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Mi(()=>{this.componentLoaders.delete(e)})),n=new pr(t,()=>new N).pipe(ma());return this.componentLoaders.set(e,n),n}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return V({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let r=gb(t,this.compiler,e,this.onLoadEndListener).pipe(Mi(()=>{this.childrenLoaders.delete(t)})),s=new pr(r,()=>new N).pipe(ma());return this.childrenLoaders.set(t,s),s}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function gb(o,i,e,t){return Li(o.loadChildren()).pipe(B(Hh),Dt(n=>n instanceof yd||Array.isArray(n)?V(n):dt(i.compileModuleAsync(n))),B(n=>{t&&t(o);let r,s,a=!1;return Array.isArray(n)?(s=n,a=!0):(r=n.create(e).injector,s=r.get(sc,[],{optional:!0,self:!0}).flat()),{routes:s.map(rc),injector:r}}))}function _b(o){return o&&typeof o=="object"&&"default"in o}function Hh(o){return _b(o)?o.default:o}var ac=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:()=>u(bb),providedIn:"root"})}return o})(),bb=(()=>{class o{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),vb=new R("");var yb=new R(""),xb=(()=>{class o{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new N;transitionAbortSubject=new N;configLoader=u(fb);environmentInjector=u(Qt);urlSerializer=u(ec);rootContexts=u(ks);location=u(xn);inputBindingEnabled=u(nc,{optional:!0})!==null;titleStrategy=u(Uh);options=u(oc,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(ac);createViewTransition=u(vb,{optional:!0});navigationErrorHandler=u(yb,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>V(void 0);rootComponentType=null;constructor(){let e=n=>this.events.next(new zl(n)),t=n=>this.events.next(new Nl(n));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(re(k(k({},this.transitions.value),e),{id:t}))}setupNavigations(e,t,n){return this.transitions=new Ct({id:0,currentUrlTree:t,currentRawUrl:t,extractedUrl:this.urlHandlingStrategy.extract(t),urlAfterRedirects:this.urlHandlingStrategy.extract(t),rawUrl:t,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Fo,restoredState:null,currentSnapshot:n.snapshot,targetSnapshot:null,currentRouterState:n,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(De(r=>r.id!==0),B(r=>re(k({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),$e(r=>{let s=!1,a=!1;return V(r).pipe($e(c=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",St.SupersededByNewNavigation),Kt;this.currentTransition=r,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?re(k({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let p=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),_=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!p&&_!=="reload"){let y="";return this.events.next(new ln(c.id,this.urlSerializer.serialize(c.rawUrl),y,Al.IgnoredSameUrlNavigation)),c.resolve(!1),Kt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return V(c).pipe($e(y=>{let I=this.transitions?.getValue();return this.events.next(new No(y.id,this.urlSerializer.serialize(y.extractedUrl),y.source,y.restoredState)),I!==this.transitions?.getValue()?Kt:Promise.resolve(y)}),lb(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Ue(y=>{r.targetSnapshot=y.targetSnapshot,r.urlAfterRedirects=y.urlAfterRedirects,this.currentNavigation=re(k({},this.currentNavigation),{finalUrl:y.urlAfterRedirects});let I=new gs(y.id,this.urlSerializer.serialize(y.extractedUrl),this.urlSerializer.serialize(y.urlAfterRedirects),y.targetSnapshot);this.events.next(I)}));if(p&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:y,extractedUrl:I,source:S,restoredState:A,extras:T}=c,z=new No(y,this.urlSerializer.serialize(I),S,A);this.events.next(z);let Le=Oh(this.rootComponentType).snapshot;return this.currentTransition=r=re(k({},c),{targetSnapshot:Le,urlAfterRedirects:I,extras:re(k({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=I,V(r)}else{let y="";return this.events.next(new ln(c.id,this.urlSerializer.serialize(c.extractedUrl),y,Al.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Kt}}),Ue(c=>{let p=new Ol(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(p)}),B(c=>(this.currentTransition=r=re(k({},c),{guards:S_(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),r)),V_(this.environmentInjector,c=>this.events.next(c)),Ue(c=>{if(r.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw xs(this.urlSerializer,c.guardsResult);let p=new Fl(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(p)}),De(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",St.GuardRejected),!1)),Il(c=>{if(c.guards.canActivateChecks.length)return V(c).pipe(Ue(p=>{let _=new Pl(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(_)}),$e(p=>{let _=!1;return V(p).pipe(cb(this.paramsInheritanceStrategy,this.environmentInjector),Ue({next:()=>_=!0,complete:()=>{_||this.cancelNavigationTransition(p,"",St.NoDataFromResolver)}}))}),Ue(p=>{let _=new Ll(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(_)}))}),Il(c=>{let p=_=>{let y=[];_.routeConfig?.loadComponent&&!_.routeConfig._loadedComponent&&y.push(this.configLoader.loadComponent(_.routeConfig).pipe(Ue(I=>{_.component=I}),B(()=>{})));for(let I of _.children)y.push(...p(I));return y};return eo(p(c.targetSnapshot.root)).pipe(fa(null),ht(1))}),Il(()=>this.afterPreactivation()),$e(()=>{let{currentSnapshot:c,targetSnapshot:p}=r,_=this.createViewTransition?.(this.environmentInjector,c.root,p.root);return _?dt(_).pipe(B(()=>r)):V(r)}),B(c=>{let p=C_(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r=re(k({},c),{targetRouterState:p}),this.currentNavigation.targetRouterState=p,r}),Ue(()=>{this.events.next(new Bo)}),E_(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),ht(1),Ue({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new vi(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Ce(this.transitionAbortSubject.pipe(Ue(c=>{throw c}))),Mi(()=>{!s&&!a&&this.cancelNavigationTransition(r,"",St.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ci(c=>{if(a=!0,Nh(c))this.events.next(new _i(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),I_(c)?this.events.next(new $n(c.url,c.navigationBehaviorOptions)):r.resolve(!1);else{let p=new Vo(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0);try{let _=Bt(this.environmentInjector,()=>this.navigationErrorHandler?.(p));if(_ instanceof jo){let{message:y,cancellationCode:I}=xs(this.urlSerializer,_);this.events.next(new _i(r.id,this.urlSerializer.serialize(r.extractedUrl),y,I)),this.events.next(new $n(_.redirectTo,_.navigationBehaviorOptions))}else throw this.events.next(p),c}catch(_){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(_)}}return Kt}))}))}cancelNavigationTransition(e,t,n){let r=new _i(e.id,this.urlSerializer.serialize(e.extractedUrl),t,n);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function wb(o){return o!==Fo}var Cb=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:()=>u(kb),providedIn:"root"})}return o})(),Jl=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}},kb=(()=>{class o extends Jl{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Gh=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:()=>u(Mb),providedIn:"root"})}return o})(),Mb=(()=>{class o extends Gh{location=u(xn);urlSerializer=u(ec);options=u(oc,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=u(ac);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new bi;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Oh(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&e(t.url,t.state)})}handleRouterEvent(e,t){if(e instanceof No)this.stateMemento=this.createStateMemento();else if(e instanceof ln)this.rawUrlTree=t.initialUrl;else if(e instanceof gs){if(this.urlUpdateStrategy==="eager"&&!t.extras.skipLocationChange){let n=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl);this.setBrowserUrl(t.targetBrowserUrl??n,t)}}else e instanceof Bo?(this.currentUrlTree=t.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl),this.routerState=t.targetRouterState,this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(t.targetBrowserUrl??this.rawUrlTree,t)):e instanceof _i&&(e.code===St.GuardRejected||e.code===St.NoDataFromResolver)?this.restoreHistory(t):e instanceof Vo?this.restoreHistory(t,!0):e instanceof vi&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,t){let n=e instanceof bi?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl){let r=this.browserPageId,s=k(k({},t.extras.state),this.generateNgRouterState(t.id,r));this.location.replaceState(n,"",s)}else{let r=k(k({},t.extras.state),this.generateNgRouterState(t.id,this.browserPageId+1));this.location.go(n,"",r)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let n=this.browserPageId,r=this.currentPageId-n;r!==0?this.location.historyGo(r):this.currentUrlTree===e.finalUrl&&r===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Ao=function(o){return o[o.COMPLETE=0]="COMPLETE",o[o.FAILED=1]="FAILED",o[o.REDIRECTING=2]="REDIRECTING",o}(Ao||{});function Ib(o,i){o.events.pipe(De(e=>e instanceof vi||e instanceof _i||e instanceof Vo||e instanceof ln),B(e=>e instanceof vi||e instanceof ln?Ao.COMPLETE:(e instanceof _i?e.code===St.Redirect||e.code===St.SupersededByNewNavigation:!1)?Ao.REDIRECTING:Ao.FAILED),De(e=>e!==Ao.REDIRECTING),ht(1)).subscribe(()=>{i()})}var Eb={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Is=(()=>{class o{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(kr);stateManager=u(Gh);options=u(oc,{optional:!0})||{};pendingTasks=u(xr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(xb);urlSerializer=u(ec);location=u(xn);urlHandlingStrategy=u(ac);_events=new N;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(Cb);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(sc,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(nc,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new He;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let n=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(n!==null&&r!==null){if(this.stateManager.handleRouterEvent(t,r),t instanceof _i&&t.code!==St.Redirect&&t.code!==St.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof vi)this.navigated=!0;else if(t instanceof $n){let s=t.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(t.url,n.currentRawUrl),c=k({browserUrl:n.extras.browserUrl,info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||this.urlUpdateStrategy==="eager"||wb(n.source)},s);this.scheduleNavigation(a,Fo,null,c,{resolve:n.resolve,reject:n.reject,promise:n.promise})}}Db(t)&&this._events.next(t)}catch(n){this.navigationTransitions.transitionAbortSubject.next(n)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Fo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",t)},0)})}navigateToSyncWithBrowser(e,t,n){let r={replaceUrl:!0},s=n?.navigationId?n:null;if(n){let c=k({},n);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(r.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,t,s,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(rc),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(e,t={}){let{relativeTo:n,queryParams:r,fragment:s,queryParamsHandling:a,preserveFragment:c}=t,p=c?this.currentUrlTree.fragment:s,_=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":_=k(k({},this.currentUrlTree.queryParams),r);break;case"preserve":_=this.currentUrlTree.queryParams;break;default:_=r||null}_!==null&&(_=this.removeEmptyProps(_));let y;try{let I=n?n.snapshot:this.routerState.snapshot.root;y=Th(I)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),y=this.currentUrlTree.root}return Dh(y,e,_,p??null)}navigateByUrl(e,t={skipLocationChange:!1}){let n=an(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,Fo,null,t)}navigate(e,t={skipLocationChange:!1}){return Tb(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let n;if(t===!0?n=k({},Eb):t===!1?n=k({},Sb):n=t,an(e))return hh(this.currentUrlTree,e,n);let r=this.parseUrl(e);return hh(this.currentUrlTree,r,n)}removeEmptyProps(e){return Object.entries(e).reduce((t,[n,r])=>(r!=null&&(t[n]=r),t),{})}scheduleNavigation(e,t,n,r,s){if(this.disposed)return Promise.resolve(!1);let a,c,p;s?(a=s.resolve,c=s.reject,p=s.promise):p=new Promise((y,I)=>{a=y,c=I});let _=this.pendingTasks.add();return Ib(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(_))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:a,reject:c,promise:p,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),p.catch(y=>Promise.reject(y))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function Tb(o){for(let i=0;i{class o{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new N;constructor(e,t,n,r,s,a){this.router=e,this.route=t,this.tabIndexAttribute=n,this.renderer=r,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(p=>{p instanceof vi&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(an(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,n,r,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||t||n||r||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let t=this.href===null?null:_d(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(e,t){let n=this.renderer,r=this.el.nativeElement;t!==null?n.setAttribute(r,e,t):n.removeAttribute(r,e)}get urlTree(){return this.routerLinkInput===null?null:an(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(t){return new(t||o)(Q(Is),Q(cn),rd("tabindex"),Q(jt),Q(j),Q(Da))};static \u0275dir=$({type:o,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(t,n){t&1&&g("click",function(s){return n.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),t&2&&fe("target",n.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",q],skipLocationChange:[2,"skipLocationChange","skipLocationChange",q],replaceUrl:[2,"replaceUrl","replaceUrl",q],routerLink:"routerLink"},features:[Fe,ze]})}return o})(),Yh=(()=>{class o{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new H;constructor(e,t,n,r,s){this.router=e,this.element=t,this.renderer=n,this.cdr=r,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof vi&&this.update()})}ngAfterContentInit(){V(this.links.changes,V(null)).pipe(ha()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=dt(e).pipe(ha()).subscribe(t=>{this._isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(e){let t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(n=>!!n)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let t=Rb(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>{let r=n.urlTree;return r?e.isActive(r,t):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(t){return new(t||o)(Q(Is),Q(j),Q(jt),Q(qe),Q(Cs,8))};static \u0275dir=$({type:o,selectors:[["","routerLinkActive",""]],contentQueries:function(t,n,r){if(t&1&&Ye(r,Cs,5),t&2){let s;J(s=ee())&&(n.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ze]})}return o})();function Rb(o){return!!o.paths}var Ab=new R("");function qh(o,...i){return $i([{provide:sc,multi:!0,useValue:o},[],{provide:cn,useFactory:Ob,deps:[Is]},{provide:Ca,multi:!0,useFactory:Fb},i.map(e=>e.\u0275providers)])}function Ob(o){return o.routerState.root}function Fb(){let o=u(Je);return i=>{let e=o.get(li);if(i!==e.components[0])return;let t=o.get(Is),n=o.get(Pb);o.get(Lb)===1&&t.initialNavigation(),o.get(zb,null,va.Optional)?.setUpPreloading(),o.get(Ab,null,va.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var Pb=new R("",{factory:()=>new N}),Lb=new R("",{providedIn:"root",factory:()=>1});var zb=new R("");var Nb=()=>({exact:!0}),Es=class o{static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-root"]],decls:40,vars:2,consts:[["routerLink","","routerLinkActive","active","mat-list-item","",3,"routerLinkActiveOptions"],["routerLink","/api","routerLinkActive","active","mat-list-item",""],["routerLink","/compact","routerLinkActive","active","mat-list-item",""],["routerLink","/displayGrid","routerLinkActive","active","mat-list-item",""],["routerLink","/drag","routerLinkActive","active","mat-list-item",""],["mat-list-item","","routerLink","/dynamicWidgets","routerLinkActive","active"],["routerLink","/emptyCell","routerLinkActive","active","mat-list-item",""],["routerLink","/gridEvents","routerLinkActive","active","mat-list-item",""],["routerLink","/gridMargins","routerLinkActive","active","mat-list-item",""],["routerLink","/gridSizes","routerLinkActive","active","mat-list-item",""],["routerLink","/gridTypes","routerLinkActive","active","mat-list-item",""],["routerLink","/items","routerLinkActive","active","mat-list-item",""],["routerLink","/trackBy","routerLinkActive","active","mat-list-item",""],["routerLink","/push","routerLinkActive","active","mat-list-item",""],["routerLink","/resize","routerLinkActive","active","mat-list-item",""],["routerLink","/swap","routerLinkActive","active","mat-list-item",""],["routerLink","/multiLayer","routerLinkActive","active","mat-list-item",""],["routerLink","/misc","routerLinkActive","active","mat-list-item",""],["routerLink","/rtl","routerLinkActive","active","mat-list-item",""]],template:function(e,t){e&1&&(l(0,"mat-nav-list")(1,"a",0),m(2," Home"),d(),l(3,"a",1),m(4," API"),d(),l(5,"a",2),m(6," Compact"),d(),l(7,"a",3),m(8," Display Grid"),d(),l(9,"a",4),m(10," Drag"),d(),l(11,"a",5),m(12," Dynamic Widgets"),d(),l(13,"a",6),m(14," Empty Cell"),d(),l(15,"a",7),m(16," Grid Events"),d(),l(17,"a",8),m(18," Grid Margins"),d(),l(19,"a",9),m(20," Grid Sizes"),d(),l(21,"a",10),m(22," Grid Types"),d(),l(23,"a",11),m(24," Items"),d(),l(25,"a",12),m(26," Track By"),d(),l(27,"a",13),m(28," Push"),d(),l(29,"a",14),m(30," Resize"),d(),l(31,"a",15),m(32," Swap"),d(),l(33,"a",16),m(34," Multi Layer"),d(),l(35,"a",17),m(36," Misc"),d(),l(37,"a",18),m(38," RTL"),d()(),D(39,"router-outlet")),e&2&&(h(),M("routerLinkActiveOptions",Md(1,Nb)))},dependencies:[Cs,Yh,ic,mh,dh,ch],styles:[`app-root{width:100%;height:100%;display:flex;flex-direction:row;overflow-x:hidden}mat-nav-list{min-width:200px;width:20%;border-right:1px solid grey;overflow:auto}mat-nav-list .active{background:#afddff}router-outlet+*{width:100%;overflow:auto}gridster-item div.button-holder{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.options{padding:10px;display:grid}.options-header{padding:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}.source-code-button{justify-self:end}[draggable]{-webkit-user-select:none;user-select:none;cursor:pointer}app-parent-dynamic,app-widget-a,app-widget-b,app-widget-c{display:flex;height:100%;width:100%;color:#fff;font-weight:700;font-size:24px;align-items:center;justify-content:center}code{background:#d3d3d3}app-widget-a{background:red}app-widget-b{background:#00f}app-widget-c{background:#7cfc00} -`],encapsulation:2,changeDetection:0})};var Vb="@",Bb=(()=>{class o{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=u(sd,{optional:!0});loadingSchedulerFn=u(Wb,{optional:!0});_engine;constructor(e,t,n,r,s){this.doc=e,this.delegate=t,this.zone=n,this.animationType=r,this.moduleImpl=s}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-PQGE3PBD.js").then(n=>n),t;return this.loadingSchedulerFn?t=this.loadingSchedulerFn(e):t=e(),t.catch(n=>{throw new Se(5300,!1)}).then(({\u0275createEngine:n,\u0275AnimationRendererFactory:r})=>{this._engine=n(this.animationType,this.doc);let s=new r(this.delegate,this._engine,this.zone);return this.delegate=s,s})}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(n.\u0275type===0)return n;typeof n.throwOnSyntheticProps=="boolean"&&(n.throwOnSyntheticProps=!1);let r=new lc(n);return t?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let a=s.createRenderer(e,t);r.use(a),this.scheduler?.notify(11)}).catch(s=>{r.use(n)}),r}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static \u0275fac=function(t){wa()};static \u0275prov=O({token:o,factory:o.\u0275fac})}return o})(),lc=class{delegate;replay=[];\u0275type=1;constructor(i){this.delegate=i}use(i){if(this.delegate=i,this.replay!==null){for(let e of this.replay)e(i);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}get destroyNode(){return this.delegate.destroyNode}appendChild(i,e){this.delegate.appendChild(i,e)}insertBefore(i,e,t,n){this.delegate.insertBefore(i,e,t,n)}removeChild(i,e,t){this.delegate.removeChild(i,e,t)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,t,n){this.delegate.setAttribute(i,e,t,n)}removeAttribute(i,e,t){this.delegate.removeAttribute(i,e,t)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,t,n){this.delegate.setStyle(i,e,t,n)}removeStyle(i,e,t){this.delegate.removeStyle(i,e,t)}setProperty(i,e,t){this.shouldReplay(e)&&this.replay.push(n=>n.setProperty(i,e,t)),this.delegate.setProperty(i,e,t)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,t){return this.shouldReplay(e)&&this.replay.push(n=>n.listen(i,e,t)),this.delegate.listen(i,e,t)}shouldReplay(i){return this.replay!==null&&i.startsWith(Vb)}},Wb=new R("");function cc(o="animations"){return xa("NgAsyncAnimations"),$i([{provide:Cr,useFactory:(i,e,t)=>new Bb(i,e,t,o),deps:[ae,zr,W]},{provide:pt,useValue:o==="noop"?"NoopAnimations":"BrowserAnimations"}])}function hc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var mn=hc();function eu(o){mn=o}var Zo={exec:()=>null};function Re(o,i=""){let e=typeof o=="string"?o:o.source,t={replace:(n,r)=>{let s=typeof r=="string"?r:r.source;return s=s.replace(wt.caret,"$1"),e=e.replace(n,s),t},getRegex:()=>new RegExp(e,i)};return t}var wt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:o=>new RegExp(`^( {0,3}${o})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}#`),htmlBeginRegex:o=>new RegExp(`^ {0,${Math.min(3,o-1)}}<(?:[a-z].*>|!--)`,"i")},jb=/^(?:[ \t]*(?:\n|$))+/,$b=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ub=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Qo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Hb=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,tu=/(?:[*+-]|\d{1,9}[.)])/,iu=Re(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,tu).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),uc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Gb=/^[^\n]+/,pc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Yb=Re(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",pc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),qb=Re(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,tu).getRegex(),Ds="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",fc=/|$))/,Xb=Re("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",fc).replace("tag",Ds).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),nu=Re(uc).replace("hr",Qo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ds).getRegex(),Zb=Re(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",nu).getRegex(),gc={blockquote:Zb,code:$b,def:Yb,fences:Ub,heading:Hb,hr:Qo,html:Xb,lheading:iu,list:qb,newline:jb,paragraph:nu,table:Zo,text:Gb},Xh=Re("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Qo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ds).getRegex(),Kb=re(k({},gc),{table:Xh,paragraph:Re(uc).replace("hr",Qo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Xh).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ds).getRegex()}),Qb=re(k({},gc),{html:Re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",fc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Zo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Re(uc).replace("hr",Qo).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",iu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),ou=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Jb=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ru=/^( {2,}|\\)\n(?!\s*$)/,ev=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,nv=Re(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,Rs).getRegex(),ov=Re("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,su).replace(/punctSpace/g,_c).replace(/punct/g,Rs).getRegex(),rv=Re("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,su).replace(/punctSpace/g,_c).replace(/punct/g,Rs).getRegex(),sv=Re(/\\(punct)/,"gu").replace(/punct/g,Rs).getRegex(),av=Re(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),lv=Re(fc).replace("(?:-->|$)","-->").getRegex(),cv=Re("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",lv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ts=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,dv=Re(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Ts).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),au=Re(/^!?\[(label)\]\[(ref)\]/).replace("label",Ts).replace("ref",pc).getRegex(),lu=Re(/^!?\[(ref)\](?:\[\])?/).replace("ref",pc).getRegex(),mv=Re("reflink|nolink(?!\\()","g").replace("reflink",au).replace("nolink",lu).getRegex(),bc={_backpedal:Zo,anyPunctuation:sv,autolink:av,blockSkip:iv,br:ru,code:Jb,del:Zo,emStrongLDelim:nv,emStrongRDelimAst:ov,emStrongRDelimUnd:rv,escape:ou,link:dv,nolink:lu,punctuation:tv,reflink:au,reflinkSearch:mv,tag:cv,text:ev,url:Zo},hv=re(k({},bc),{link:Re(/^!?\[(label)\]\((.*?)\)/).replace("label",Ts).getRegex(),reflink:Re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ts).getRegex()}),dc=re(k({},bc),{escape:Re(ou).replace("])","~|])").getRegex(),url:Re(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},Zh=o=>pv[o];function oi(o,i){if(i){if(wt.escapeTest.test(o))return o.replace(wt.escapeReplace,Zh)}else if(wt.escapeTestNoEncode.test(o))return o.replace(wt.escapeReplaceNoEncode,Zh);return o}function Kh(o){try{o=encodeURI(o).replace(wt.percentDecode,"%")}catch{return null}return o}function Qh(o,i){let e=o.replace(wt.findPipe,(r,s,a)=>{let c=!1,p=s;for(;--p>=0&&a[p]==="\\";)c=!c;return c?"|":" |"}),t=e.split(wt.splitPipe),n=0;if(t[0].trim()||t.shift(),t.length>0&&!t.at(-1)?.trim()&&t.pop(),i)if(t.length>i)t.splice(i);else for(;t.length{let s=r.match(e.other.beginningSpace);if(s===null)return r;let[a]=s;return a.length>=n.length?r.slice(n.length):r}).join(` -`)}var Yn=class{options;rules;lexer;constructor(i){this.options=i||mn}space(i){let e=this.rules.block.newline.exec(i);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(i){let e=this.rules.block.code.exec(i);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:Xo(t,` -`)}}}fences(i){let e=this.rules.block.fences.exec(i);if(e){let t=e[0],n=gv(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(i){let e=this.rules.block.heading.exec(i);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let n=Xo(t,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(t=n.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(i){let e=this.rules.block.hr.exec(i);if(e)return{type:"hr",raw:Xo(e[0],` -`)}}blockquote(i){let e=this.rules.block.blockquote.exec(i);if(e){let t=Xo(e[0],` -`).split(` -`),n="",r="",s=[];for(;t.length>0;){let a=!1,c=[],p;for(p=0;p1,r={type:"list",raw:"",ordered:n,start:n?+t.slice(0,-1):"",loose:!1,items:[]};t=n?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=n?t:"[*+-]");let s=this.rules.other.listItemRegex(t),a=!1;for(;i;){let p=!1,_="",y="";if(!(e=s.exec(i))||this.rules.block.hr.test(i))break;_=e[0],i=i.substring(_.length);let I=e[2].split(` -`,1)[0].replace(this.rules.other.listReplaceTabs,rt=>" ".repeat(3*rt.length)),S=i.split(` -`,1)[0],A=!I.trim(),T=0;if(this.options.pedantic?(T=2,y=I.trimStart()):A?T=e[1].length+1:(T=e[2].search(this.rules.other.nonSpaceChar),T=T>4?1:T,y=I.slice(T),T+=e[1].length),A&&this.rules.other.blankLine.test(S)&&(_+=S+` -`,i=i.substring(S.length+1),p=!0),!p){let rt=this.rules.other.nextBulletRegex(T),we=this.rules.other.hrRegex(T),wi=this.rules.other.fencesBeginRegex(T),Zt=this.rules.other.headingBeginRegex(T),Vi=this.rules.other.htmlBeginRegex(T);for(;i;){let gn=i.split(` -`,1)[0],Kn;if(S=gn,this.options.pedantic?(S=S.replace(this.rules.other.listReplaceNesting," "),Kn=S):Kn=S.replace(this.rules.other.tabCharGlobal," "),wi.test(S)||Zt.test(S)||Vi.test(S)||rt.test(S)||we.test(S))break;if(Kn.search(this.rules.other.nonSpaceChar)>=T||!S.trim())y+=` -`+Kn.slice(T);else{if(A||I.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||wi.test(I)||Zt.test(I)||we.test(I))break;y+=` -`+S}!A&&!S.trim()&&(A=!0),_+=gn+` -`,i=i.substring(gn.length+1),I=Kn.slice(T)}}r.loose||(a?r.loose=!0:this.rules.other.doubleBlankLine.test(_)&&(a=!0));let z=null,Le;this.options.gfm&&(z=this.rules.other.listIsTask.exec(y),z&&(Le=z[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),r.items.push({type:"list_item",raw:_,task:!!z,checked:Le,loose:!1,text:y,tokens:[]}),r.raw+=_}let c=r.items.at(-1);c&&(c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd()),r.raw=r.raw.trimEnd();for(let p=0;pI.type==="space"),y=_.length>0&&_.some(I=>this.rules.other.anyLine.test(I.raw));r.loose=y}if(r.loose)for(let p=0;p({text:c,tokens:this.lexer.inline(c),header:!1,align:s.align[p]})));return s}}lheading(i){let e=this.rules.block.lheading.exec(i);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(i){let e=this.rules.block.paragraph.exec(i);if(e){let t=e[1].charAt(e[1].length-1)===` -`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(i){let e=this.rules.block.text.exec(i);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(i){let e=this.rules.inline.escape.exec(i);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(i){let e=this.rules.inline.tag.exec(i);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(i){let e=this.rules.inline.link.exec(i);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let s=Xo(t.slice(0,-1),"\\");if((t.length-s.length)%2===0)return}else{let s=fv(e[2],"()");if(s>-1){let c=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,c).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],r=s[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n=n.slice(1):n=n.slice(1,-1)),Jh(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(i,e){let t;if((t=this.rules.inline.reflink.exec(i))||(t=this.rules.inline.nolink.exec(i))){let n=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=e[n.toLowerCase()];if(!r){let s=t[0].charAt(0);return{type:"text",raw:s,text:s}}return Jh(t,r,t[0],this.lexer,this.rules)}}emStrong(i,e,t=""){let n=this.rules.inline.emStrongLDelim.exec(i);if(!n||n[3]&&t.match(this.rules.other.unicodeAlphaNumeric))return;if(!(n[1]||n[2]||"")||!t||this.rules.inline.punctuation.exec(t)){let s=[...n[0]].length-1,a,c,p=s,_=0,y=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,e=e.slice(-1*i.length+s);(n=y.exec(e))!=null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(c=[...a].length,n[3]||n[4]){p+=c;continue}else if((n[5]||n[6])&&s%3&&!((s+c)%3)){_+=c;continue}if(p-=c,p>0)continue;c=Math.min(c,c+p+_);let I=[...n[0]][0].length,S=i.slice(0,s+n.index+I+c);if(Math.min(s,c)%2){let T=S.slice(1,-1);return{type:"em",raw:S,text:T,tokens:this.lexer.inlineTokens(T)}}let A=S.slice(2,-2);return{type:"strong",raw:S,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan(i){let e=this.rules.inline.code.exec(i);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(i){let e=this.rules.inline.br.exec(i);if(e)return{type:"br",raw:e[0]}}del(i){let e=this.rules.inline.del.exec(i);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(i){let e=this.rules.inline.autolink.exec(i);if(e){let t,n;return e[2]==="@"?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(i){let e;if(e=this.rules.inline.url.exec(i)){let t,n;if(e[2]==="@")t=e[0],n="mailto:"+t;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);t=e[0],e[1]==="www."?n="http://"+e[0]:n=e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(i){let e=this.rules.inline.text.exec(i);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},Yt=class o{tokens;options;state;tokenizer;inlineQueue;constructor(i){this.tokens=[],this.tokens.links=Object.create(null),this.options=i||mn,this.options.tokenizer=this.options.tokenizer||new Yn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:wt,block:Ss.normal,inline:qo.normal};this.options.pedantic?(e.block=Ss.pedantic,e.inline=qo.pedantic):this.options.gfm&&(e.block=Ss.gfm,this.options.breaks?e.inline=qo.breaks:e.inline=qo.gfm),this.tokenizer.rules=e}static get rules(){return{block:Ss,inline:qo}}static lex(i,e){return new o(e).lex(i)}static lexInline(i,e){return new o(e).inlineTokens(i)}lex(i){i=i.replace(wt.carriageReturn,` -`),this.blockTokens(i,this.tokens);for(let e=0;e(n=s.call({lexer:this},i,e))?(i=i.substring(n.raw.length),e.push(n),!0):!1))continue;if(n=this.tokenizer.space(i)){i=i.substring(n.raw.length);let s=e.at(-1);n.raw.length===1&&s!==void 0?s.raw+=` -`:e.push(n);continue}if(n=this.tokenizer.code(i)){i=i.substring(n.raw.length);let s=e.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=` -`+n.raw,s.text+=` -`+n.text,this.inlineQueue.at(-1).src=s.text):e.push(n);continue}if(n=this.tokenizer.fences(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.heading(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.hr(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.blockquote(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.list(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.html(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(i)){i=i.substring(n.raw.length);let s=e.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=` -`+n.raw,s.text+=` -`+n.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(i)){i=i.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.lheading(i)){i=i.substring(n.raw.length),e.push(n);continue}let r=i;if(this.options.extensions?.startBlock){let s=1/0,a=i.slice(1),c;this.options.extensions.startBlock.forEach(p=>{c=p.call({lexer:this},a),typeof c=="number"&&c>=0&&(s=Math.min(s,c))}),s<1/0&&s>=0&&(r=i.substring(0,s+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r))){let s=e.at(-1);t&&s?.type==="paragraph"?(s.raw+=` -`+n.raw,s.text+=` -`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):e.push(n),t=r.length!==i.length,i=i.substring(n.raw.length);continue}if(n=this.tokenizer.text(i)){i=i.substring(n.raw.length);let s=e.at(-1);s?.type==="text"?(s.raw+=` -`+n.raw,s.text+=` -`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):e.push(n);continue}if(i){let s="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,e}inline(i,e=[]){return this.inlineQueue.push({src:i,tokens:e}),e}inlineTokens(i,e=[]){let t=i,n=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(t))!=null;)a.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(t=t.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+t.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.blockSkip.exec(t))!=null;)t=t.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+t.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(t))!=null;)t=t.slice(0,n.index)+"++"+t.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r=!1,s="";for(;i;){r||(s=""),r=!1;let a;if(this.options.extensions?.inline?.some(p=>(a=p.call({lexer:this},i,e))?(i=i.substring(a.raw.length),e.push(a),!0):!1))continue;if(a=this.tokenizer.escape(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.tag(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.link(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(a.raw.length);let p=e.at(-1);a.type==="text"&&p?.type==="text"?(p.raw+=a.raw,p.text+=a.text):e.push(a);continue}if(a=this.tokenizer.emStrong(i,t,s)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.codespan(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.br(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.del(i)){i=i.substring(a.raw.length),e.push(a);continue}if(a=this.tokenizer.autolink(i)){i=i.substring(a.raw.length),e.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(i))){i=i.substring(a.raw.length),e.push(a);continue}let c=i;if(this.options.extensions?.startInline){let p=1/0,_=i.slice(1),y;this.options.extensions.startInline.forEach(I=>{y=I.call({lexer:this},_),typeof y=="number"&&y>=0&&(p=Math.min(p,y))}),p<1/0&&p>=0&&(c=i.substring(0,p+1))}if(a=this.tokenizer.inlineText(c)){i=i.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(s=a.raw.slice(-1)),r=!0;let p=e.at(-1);p?.type==="text"?(p.raw+=a.raw,p.text+=a.text):e.push(a);continue}if(i){let p="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return e}},ri=class{options;parser;constructor(i){this.options=i||mn}space(i){return""}code({text:i,lang:e,escaped:t}){let n=(e||"").match(wt.notSpaceStart)?.[0],r=i.replace(wt.endingNewline,"")+` -`;return n?'
    '+(t?r:oi(r,!0))+`
    -`:"
    "+(t?r:oi(r,!0))+`
    -`}blockquote({tokens:i}){return`
    -${this.parser.parse(i)}
    -`}html({text:i}){return i}heading({tokens:i,depth:e}){return`${this.parser.parseInline(i)} -`}hr(i){return`
    -`}list(i){let e=i.ordered,t=i.start,n="";for(let a=0;a -`+n+" -`}listitem(i){let e="";if(i.task){let t=this.checkbox({checked:!!i.checked});i.loose?i.tokens[0]?.type==="paragraph"?(i.tokens[0].text=t+" "+i.tokens[0].text,i.tokens[0].tokens&&i.tokens[0].tokens.length>0&&i.tokens[0].tokens[0].type==="text"&&(i.tokens[0].tokens[0].text=t+" "+oi(i.tokens[0].tokens[0].text),i.tokens[0].tokens[0].escaped=!0)):i.tokens.unshift({type:"text",raw:t+" ",text:t+" ",escaped:!0}):e+=t+" "}return e+=this.parser.parse(i.tokens,!!i.loose),`
  • ${e}
  • -`}checkbox({checked:i}){return"'}paragraph({tokens:i}){return`

    ${this.parser.parseInline(i)}

    -`}table(i){let e="",t="";for(let r=0;r${n}`),` - -`+e+` -`+n+`
    -`}tablerow({text:i}){return` -${i} -`}tablecell(i){let e=this.parser.parseInline(i.tokens),t=i.header?"th":"td";return(i.align?`<${t} align="${i.align}">`:`<${t}>`)+e+` -`}strong({tokens:i}){return`${this.parser.parseInline(i)}`}em({tokens:i}){return`${this.parser.parseInline(i)}`}codespan({text:i}){return`${oi(i,!0)}`}br(i){return"
    "}del({tokens:i}){return`${this.parser.parseInline(i)}`}link({href:i,title:e,tokens:t}){let n=this.parser.parseInline(t),r=Kh(i);if(r===null)return n;i=r;let s='
    ",s}image({href:i,title:e,text:t}){let n=Kh(i);if(n===null)return oi(t);i=n;let r=`${t}{let a=r[s].flat(1/0);t=t.concat(this.walkTokens(a,e))}):r.tokens&&(t=t.concat(this.walkTokens(r.tokens,e)))}}return t}use(...i){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return i.forEach(t=>{let n=k({},t);if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let s=e.renderers[r.name];s?e.renderers[r.name]=function(...a){let c=r.renderer.apply(this,a);return c===!1&&(c=s.apply(this,a)),c}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=e[r.level];s?s.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),n.extensions=e),t.renderer){let r=this.defaults.renderer||new ri(this.defaults);for(let s in t.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,c=t.renderer[a],p=r[a];r[a]=(..._)=>{let y=c.apply(r,_);return y===!1&&(y=p.apply(r,_)),y||""}}n.renderer=r}if(t.tokenizer){let r=this.defaults.tokenizer||new Yn(this.defaults);for(let s in t.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,c=t.tokenizer[a],p=r[a];r[a]=(..._)=>{let y=c.apply(r,_);return y===!1&&(y=p.apply(r,_)),y}}n.tokenizer=r}if(t.hooks){let r=this.defaults.hooks||new Gn;for(let s in t.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,c=t.hooks[a],p=r[a];Gn.passThroughHooks.has(s)?r[a]=_=>{if(this.defaults.async)return Promise.resolve(c.call(r,_)).then(I=>p.call(r,I));let y=c.call(r,_);return p.call(r,y)}:r[a]=(..._)=>{let y=c.apply(r,_);return y===!1&&(y=p.apply(r,_)),y}}n.hooks=r}if(t.walkTokens){let r=this.defaults.walkTokens,s=t.walkTokens;n.walkTokens=function(a){let c=[];return c.push(s.call(this,a)),r&&(c=c.concat(r.call(this,a))),c}}this.defaults=k(k({},this.defaults),n)}),this}setOptions(i){return this.defaults=k(k({},this.defaults),i),this}lexer(i,e){return Yt.lex(i,e??this.defaults)}parser(i,e){return qt.parse(i,e??this.defaults)}parseMarkdown(i){return(t,n)=>{let r=k({},n),s=k(k({},this.defaults),r),a=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=i);let c=s.hooks?s.hooks.provideLexer():i?Yt.lex:Yt.lexInline,p=s.hooks?s.hooks.provideParser():i?qt.parse:qt.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(t):t).then(_=>c(_,s)).then(_=>s.hooks?s.hooks.processAllTokens(_):_).then(_=>s.walkTokens?Promise.all(this.walkTokens(_,s.walkTokens)).then(()=>_):_).then(_=>p(_,s)).then(_=>s.hooks?s.hooks.postprocess(_):_).catch(a);try{s.hooks&&(t=s.hooks.preprocess(t));let _=c(t,s);s.hooks&&(_=s.hooks.processAllTokens(_)),s.walkTokens&&this.walkTokens(_,s.walkTokens);let y=p(_,s);return s.hooks&&(y=s.hooks.postprocess(y)),y}catch(_){return a(_)}}}onError(i,e){return t=>{if(t.message+=` -Please report this to https://github.com/markedjs/marked.`,i){let n="

    An error occurred:

    "+oi(t.message+"",!0)+"
    ";return e?Promise.resolve(n):n}if(e)return Promise.reject(t);throw t}}},dn=new mc;function ye(o,i){return dn.parse(o,i)}ye.options=ye.setOptions=function(o){return dn.setOptions(o),ye.defaults=dn.defaults,eu(ye.defaults),ye};ye.getDefaults=hc;ye.defaults=mn;ye.use=function(...o){return dn.use(...o),ye.defaults=dn.defaults,eu(ye.defaults),ye};ye.walkTokens=function(o,i){return dn.walkTokens(o,i)};ye.parseInline=dn.parseInline;ye.Parser=qt;ye.parser=qt.parse;ye.Renderer=ri;ye.TextRenderer=Ko;ye.Lexer=Yt;ye.lexer=Yt.lex;ye.Tokenizer=Yn;ye.Hooks=Gn;ye.parse=ye;var Kk=ye.options,Qk=ye.setOptions,Jk=ye.use,eM=ye.walkTokens,tM=ye.parseInline;var iM=qt.parse,nM=Yt.lex;var _v=["*"],bv="Copy",vv="Copied",yv=(()=>{class o{constructor(){this._buttonClick$=new N,this.copied$=this._buttonClick$.pipe($e(()=>mt(V(!0),br(3e3).pipe(vr(!1)))),ji(),io(1)),this.copiedText$=this.copied$.pipe(ut(!1),B(e=>e?vv:bv))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=E({type:o,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(t,n){t&1&&(l(0,"button",0),Ia(1,"async"),g("click",function(){return n.onCopyToClipboardClick()}),m(2),Ia(3,"async"),d()),t&2&&(te("copied",Ea(1,3,n.copied$)),h(2),Ze(Ea(3,5,n.copiedText$)))},dependencies:[Od],encapsulation:2,changeDetection:0})}}return o})(),xv=new R("CLIPBOARD_OPTIONS");var vc=function(o){return o.CommandLine="command-line",o.LineHighlight="line-highlight",o.LineNumbers="line-numbers",o}(vc||{}),cu=new R("MARKED_EXTENSIONS"),yc=new R("MARKED_OPTIONS"),wv=new R("MERMAID_OPTIONS"),Cv="[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information",kv="[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information",Mv="[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information",Iv="[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information",Ev="[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function",Sv="[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information",du=new R("SECURITY_CONTEXT");var mu=(()=>{class o{get options(){return this._options}set options(e){this._options=k(k({},this.DEFAULT_MARKED_OPTIONS),e)}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}constructor(e,t,n,r,s,a,c,p){this.clipboardOptions=e,this.extensions=t,this.mermaidOptions=r,this.platform=s,this.securityContext=a,this.http=c,this.sanitizer=p,this.DEFAULT_MARKED_OPTIONS={renderer:new ri},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new N,this.reload$=this._reload$.asObservable(),this.options=n}parse(e,t=this.DEFAULT_PARSE_OPTIONS){let{decodeHtml:n,inline:r,emoji:s,mermaid:a,disableSanitizer:c}=t,p=k(k({},this.options),t.markedOptions),_=p.renderer||this.renderer||new ri;this.extensions&&(this.renderer=this.extendsRendererForExtensions(_)),a&&(this.renderer=this.extendsRendererForMermaid(_));let y=this.trimIndentation(e),I=n?this.decodeHtml(y):y,S=s?this.parseEmoji(I):I,A=this.parseMarked(S,p,r);return(c?A:this.sanitizer.sanitize(this.securityContext,A))||""}render(e,t=this.DEFAULT_RENDER_OPTIONS,n){let{clipboard:r,clipboardOptions:s,katex:a,katexOptions:c,mermaid:p,mermaidOptions:_}=t;a&&this.renderKatex(e,k(k({},this.DEFAULT_KATEX_OPTIONS),c)),p&&this.renderMermaid(e,k(k(k({},this.DEFAULT_MERMAID_OPTIONS),this.mermaidOptions),_)),r&&this.renderClipboard(e,n,k(k(k({},this.DEFAULT_CLIPBOARD_OPTIONS),this.clipboardOptions),s)),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error(Sv);return this.http.get(e,{responseType:"text"}).pipe(B(t=>this.handleExtension(e,t)))}highlight(e){if(!di(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);let t=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,n=>n.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!di(this.platform))return e;let t=document.createElement("textarea");return t.innerHTML=e,t.value}extendsRendererForExtensions(e){let t=e;return t.\u0275NgxMarkdownRendererExtendedForExtensions===!0||(this.extensions?.length>0&&ye.use(...this.extensions),t.\u0275NgxMarkdownRendererExtendedForExtensions=!0),e}extendsRendererForMermaid(e){let t=e;if(t.\u0275NgxMarkdownRendererExtendedForMermaid===!0)return e;let n=e.code;return e.code=r=>r.lang==="mermaid"?`
    ${r.text}
    `:n(r),t.\u0275NgxMarkdownRendererExtendedForMermaid=!0,e}handleExtension(e,t){let n=e.lastIndexOf("://"),r=n>-1?e.substring(n+4):e,s=r.lastIndexOf("/"),a=s>-1?r.substring(s+1).split("?")[0]:"",c=a.lastIndexOf("."),p=c>-1?a.substring(c+1):"";return p&&p!=="md"?"```"+p+` -`+t+"\n```":t}parseMarked(e,t,n=!1){if(t.renderer){let r=k({},t.renderer);delete r.\u0275NgxMarkdownRendererExtendedForExtensions,delete r.\u0275NgxMarkdownRendererExtendedForMermaid,delete t.renderer,ye.use({renderer:r})}return n?ye.parseInline(e,t):ye.parse(e,t)}parseEmoji(e){if(!di(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error(Cv);return joypixels.shortnameToUnicode(e)}renderKatex(e,t){if(di(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error(kv);renderMathInElement(e,t)}}renderClipboard(e,t,n){if(!di(this.platform))return;if(typeof ClipboardJS>"u")throw new Error(Iv);if(!t)throw new Error(Ev);let{buttonComponent:r,buttonTemplate:s}=n,a=e.querySelectorAll("pre");for(let c=0;cy.classList.add("hover"),_.onmouseleave=()=>y.classList.remove("hover");let I;if(r){let A=t.createComponent(r);I=A.hostView,A.changeDetectorRef.markForCheck()}else if(s)I=t.createEmbeddedView(s);else{let A=t.createComponent(yv);I=A.hostView,A.changeDetectorRef.markForCheck()}let S;I.rootNodes.forEach(A=>{y.appendChild(A),S=new ClipboardJS(A,{text:()=>p.innerText})}),I.onDestroy(()=>S.destroy())}}renderMermaid(e,t=this.DEFAULT_MERMAID_OPTIONS){if(!di(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error(Mv);let n=e.querySelectorAll(".mermaid");n.length!==0&&(mermaid.initialize(t),mermaid.run({nodes:n}))}trimIndentation(e){if(!e)return"";let t;return e.split(` -`).map(n=>{let r=t;return n.length>0&&(r=isNaN(r)?n.search(/\S|$/):Math.min(n.search(/\S|$/),r)),isNaN(t)&&(t=r),r?n.substring(r):n}).join(` -`)}static{this.\u0275fac=function(t){return new(t||o)(K(xv,8),K(cu,8),K(yc,8),K(wv,8),K(Wt),K(du),K(Ki,8),K(go))}}static{this.\u0275prov=O({token:o,factory:o.\u0275fac})}}return o})(),_e=(()=>{class o{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(e){this._disableSanitizer=this.coerceBooleanProperty(e)}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}constructor(e,t,n){this.element=e,this.markdownService=t,this.viewContainerRef=n,this.error=new H,this.load=new H,this.ready=new H,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new N}ngOnChanges(){this.loadContent()}loadContent(){if(this.data!=null){this.handleData();return}if(this.src!=null){this.handleSrc();return}}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(Ce(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,t=!1){return Qn(this,null,function*(){let n={decodeHtml:t,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,disableSanitizer:this.disableSanitizer},r={clipboard:this.clipboard,clipboardOptions:this.getClipboardOptions(),katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},s=yield this.markdownService.parse(e,n);this.element.nativeElement.innerHTML=s,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,r,this.viewContainerRef),this.ready.emit()})}coerceBooleanProperty(e){return e!=null&&`${String(e)}`!="false"}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e).then(()=>{this.load.emit(e)})},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,vc.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,vc.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,t){let n=e.querySelectorAll("pre");for(let r=0;r{let a=t[s];if(a){let c=this.toLispCase(s);n.item(r).setAttribute(c,a.toString())}})}toLispCase(e){let t=e.match(/([A-Z])/g);if(!t)return e;let n=e.toString();for(let r=0,s=t.length;r{class o{static forRoot(e){return{ngModule:o,providers:[Tv(e)]}}static forChild(){return{ngModule:o}}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=Z({type:o})}static{this.\u0275inj=X({imports:[Ra]})}}return o})();var uu=["mat-button",""],xc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],wc=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Dv='.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',pu="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}";var Rv=["mat-mini-fab",""],Av='.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}',Ov=["mat-icon-button",""],Fv=["*"];var Pv=new R("MAT_BUTTON_CONFIG");var Lv=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],As=(()=>{class o{_elementRef=u(j);_platform=u(Ae);_ngZone=u(W);_animationMode=u(pt,{optional:!0});_focusMonitor=u(yo);_rippleLoader=u(Dm);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){u(lt).load(ui);let e=u(Pv,{optional:!0}),t=this._elementRef.nativeElement,n=t.classList;this.disabledInteractive=e?.disabledInteractive??!1,this.color=e?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"});for(let{attribute:r,mdcClasses:s}of Lv)t.hasAttribute(r)&&n.add(...s)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",t){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,t):this._elementRef.nativeElement.focus(t)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",q],disabled:[2,"disabled","disabled",q],ariaDisabled:[2,"aria-disabled","ariaDisabled",q],disabledInteractive:[2,"disabledInteractive","disabledInteractive",q]},features:[Fe]})}return o})();var zv=(()=>{class o extends As{tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_haltDisabledEvents=e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())};_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275dir=$({type:o,inputs:{tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Xi(e)]},features:[Fe,Ne]})}return o})(),Os=(()=>{class o extends As{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275cmp=E({type:o,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(t,n){t&2&&(fe("disabled",n._getDisabledAttribute())("aria-disabled",n._getAriaDisabled()),$t(n.color?"mat-"+n.color:""),te("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Ne],attrs:uu,ngContentSelectors:wc,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(Te(xc),D(0,"span",0),G(1),l(2,"span",1),G(3,1),d(),G(4,2),D(5,"span",2)(6,"span",3)),t&2&&te("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width, 1px);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return o})(),ce=(()=>{class o extends zv{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275cmp=E({type:o,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(t,n){t&2&&(fe("disabled",n._getDisabledAttribute())("tabindex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex)("aria-disabled",n._getAriaDisabled()),$t(n.color?"mat-"+n.color:""),te("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[Ne],attrs:uu,ngContentSelectors:wc,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(Te(xc),D(0,"span",0),G(1),l(2,"span",1),G(3,1),d(),G(4,2),D(5,"span",2)(6,"span",3)),t&2&&te("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab)},styles:[Dv,pu],encapsulation:2,changeDetection:0})}return o})(),Nv=new R("mat-mdc-fab-default-options",{providedIn:"root",factory:fu});function fu(){return{color:"accent"}}var hu=fu();var be=(()=>{class o extends As{_options=u(Nv,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||hu,this.color=this._options.color||hu.color}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(t,n){t&2&&(fe("disabled",n._getDisabledAttribute())("aria-disabled",n._getAriaDisabled()),$t(n.color?"mat-"+n.color:""),te("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Ne],attrs:Rv,ngContentSelectors:wc,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(Te(xc),D(0,"span",0),G(1),l(2,"span",1),G(3,1),d(),G(4,2),D(5,"span",2)(6,"span",3)),t&2&&te("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab)},styles:[Av],encapsulation:2,changeDetection:0})}return o})();var zi=(()=>{class o extends As{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(t,n){t&2&&(fe("disabled",n._getDisabledAttribute())("aria-disabled",n._getAriaDisabled()),$t(n.color?"mat-"+n.color:""),te("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mat-unthemed",!n.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[Ne],attrs:Ov,ngContentSelectors:Fv,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(Te(),D(0,"span",0),G(1),D(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',pu],encapsulation:2,changeDetection:0})}return o})();var de=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,tn,ke]})}return o})();var Vv=["*"],Fs;function Bv(){if(Fs===void 0&&(Fs=null,typeof window<"u")){let o=window;o.trustedTypes!==void 0&&(Fs=o.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Fs}function Jo(o){return Bv()?.createHTML(o)||o}function gu(o){return Error(`Unable to find icon with the name "${o}"`)}function Wv(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function _u(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function bu(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}var yi=class{url;svgText;options;svgElement;constructor(i,e,t){this.url=i,this.svgText=e,this.options=t}},jv=(()=>{class o{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,n,r){this._httpClient=e,this._sanitizer=t,this._errorHandler=r,this._document=n}addSvgIcon(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}addSvgIconLiteral(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}addSvgIconInNamespace(e,t,n,r){return this._addSvgIconConfig(e,t,new yi(n,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,n,r){let s=this._sanitizer.sanitize(vt.HTML,n);if(!s)throw bu(n);let a=Jo(s);return this._addSvgIconConfig(e,t,new yi("",a,r))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,n){return this._addSvgIconSetConfig(e,new yi(t,null,n))}addSvgIconSetLiteralInNamespace(e,t,n){let r=this._sanitizer.sanitize(vt.HTML,t);if(!r)throw bu(t);let s=Jo(r);return this._addSvgIconSetConfig(e,new yi("",s,n))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(vt.RESOURCE_URL,e);if(!t)throw _u(e);let n=this._cachedIconsByUrl.get(t);return n?V(Ps(n)):this._loadSvgIconFromConfig(new yi(e,null)).pipe(Ue(r=>this._cachedIconsByUrl.set(t,r)),B(r=>Ps(r)))}getNamedSvgIcon(e,t=""){let n=vu(t,e),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(t,e),r)return this._svgIconConfigs.set(n,r),this._getSvgFromConfig(r);let s=this._iconSetConfigs.get(t);return s?this._getSvgFromIconSetConfigs(e,s):Bi(gu(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?V(Ps(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(B(t=>Ps(t)))}_getSvgFromIconSetConfigs(e,t){let n=this._extractIconWithNameFromAnySet(e,t);if(n)return V(n);let r=t.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Ci(a=>{let p=`Loading icon set URL: ${this._sanitizer.sanitize(vt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(p)),V(null)})));return _r(r).pipe(B(()=>{let s=this._extractIconWithNameFromAnySet(e,t);if(!s)throw gu(e);return s}))}_extractIconWithNameFromAnySet(e,t){for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(r),a=this._extractSvgIconFromSet(s,e,r.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ue(t=>e.svgText=t),B(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?V(null):this._fetchIcon(e).pipe(Ue(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,n){let r=e.querySelector(`[id="${t}"]`);if(!r)return null;let s=r.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,n);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),n);let a=this._svgElementFromString(Jo(""));return a.appendChild(s),this._setSvgAttributes(a,n)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let n=t.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(e){let t=this._svgElementFromString(Jo("")),n=e.attributes;for(let r=0;rJo(p)),Mi(()=>this._inProgressUrlFetches.delete(s)),ed());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,t,n){return this._svgIconConfigs.set(vu(e,t),n),this}_addSvgIconSetConfig(e,t){let n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let n=0;ni?i.pathname+i.search:""}}var yu=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Yv=yu.map(o=>`[${o}]`).join(", "),qv=/^url\(['"]?#(.*?)['"]?\)$/,me=(()=>{class o{_elementRef=u(j);_iconRegistry=u(jv);_location=u(Hv);_errorHandler=u(Gi);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=He.EMPTY;constructor(){let e=u(new Hi("aria-hidden"),{optional:!0}),t=u(Uv,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let n=e.childNodes[t];(n.nodeType!==1||n.nodeName.toLowerCase()==="svg")&&n.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(n=>n.length>0);this._previousFontSetClass.forEach(n=>e.classList.remove(n)),t.forEach(n=>e.classList.add(n)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((n,r)=>{n.forEach(s=>{r.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(Yv),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let a=t[r],c=a.getAttribute(s),p=c?c.match(qv):null;if(p){let _=n.get(a);_||(_=[],n.set(a,_)),_.push({name:s,value:p[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,n]=this._splitIconName(e);t&&(this._svgNamespace=t),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,t).pipe(ht(1)).subscribe(r=>this._setSvgElement(r),r=>{let s=`Error retrieving icon ${t}:${n}! ${r.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,n){t&2&&(fe("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),$t(n.color?"mat-"+n.color:""),te("mat-icon-inline",n.inline)("mat-icon-no-color",n.color!=="primary"&&n.color!=="accent"&&n.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",q],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Fe],ngContentSelectors:Vv,decls:1,vars:0,template:function(t,n){t&1&&(Te(),G(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return o})(),he=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,ke]})}return o})();var Cu=["*"];function Xv(o,i){if(o&1&&D(0,"div",0),o&2){let e=i.$index,t=f();M("ngStyle",t.gridRenderer.getGridColumnStyle(e))}}function Zv(o,i){if(o&1&&D(0,"div",1),o&2){let e=i.$index,t=f();M("ngStyle",t.gridRenderer.getGridRowStyle(e))}}function Kv(o,i){if(o&1){let e=F();l(0,"div",8),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function Qv(o,i){if(o&1){let e=F();l(0,"div",9),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function Jv(o,i){if(o&1){let e=F();l(0,"div",10),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function ey(o,i){if(o&1){let e=F();l(0,"div",11),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function ty(o,i){if(o&1){let e=F();l(0,"div",12),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function iy(o,i){if(o&1){let e=F();l(0,"div",13),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function ny(o,i){if(o&1){let e=F();l(0,"div",14),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}function oy(o,i){if(o&1){let e=F();l(0,"div",15),g("mousedown",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))})("touchstart",function(n){b(e);let r=f();return v(r.resize.dragStartDelay(n))}),d()}}var P=function(o){return o.Fit="fit",o.ScrollVertical="scrollVertical",o.ScrollHorizontal="scrollHorizontal",o.Fixed="fixed",o.VerticalFixed="verticalFixed",o.HorizontalFixed="horizontalFixed",o}(P||{}),ve=function(o){return o.Always="always",o.OnDragAndResize="onDrag&Resize",o.None="none",o}(ve||{}),ue=function(o){return o.None="none",o.CompactUp="compactUp",o.CompactLeft="compactLeft",o.CompactUpAndLeft="compactUp&Left",o.CompactLeftAndUp="compactLeft&Up",o.CompactRight="compactRight",o.CompactUpAndRight="compactUp&Right",o.CompactRightAndUp="compactRight&Up",o.CompactDown="compactDown",o.CompactDownAndLeft="compactDown&Left",o.CompactLeftAndDown="compactLeft&Down",o.CompactDownAndRight="compactDown&Right",o.CompactRightAndDown="compactRight&Down",o}(ue||{}),ot=function(o){return o.LTR="ltr",o.RTL="rtl",o}(ot||{}),Cc=class{gridster;constructor(i){this.gridster=i}destroy(){this.gridster=null}checkCompact(){this.gridster.$options.compactType!==ue.None&&(this.gridster.$options.compactType===ue.CompactUp?this.checkCompactMovement("y",-1):this.gridster.$options.compactType===ue.CompactLeft?this.checkCompactMovement("x",-1):this.gridster.$options.compactType===ue.CompactUpAndLeft?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===ue.CompactLeftAndUp?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===ue.CompactRight?this.checkCompactMovement("x",1):this.gridster.$options.compactType===ue.CompactUpAndRight?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===ue.CompactRightAndUp?(this.checkCompactMovement("x",1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===ue.CompactDown?this.checkCompactMovement("y",1):this.gridster.$options.compactType===ue.CompactDownAndLeft?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===ue.CompactDownAndRight?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===ue.CompactLeftAndDown?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",1)):this.gridster.$options.compactType===ue.CompactRightAndDown&&(this.checkCompactMovement("x",1),this.checkCompactMovement("y",1)))}checkCompactItem(i){this.gridster.$options.compactType!==ue.None&&(this.gridster.$options.compactType===ue.CompactUp?this.moveTillCollision(i,"y",-1):this.gridster.$options.compactType===ue.CompactLeft?this.moveTillCollision(i,"x",-1):this.gridster.$options.compactType===ue.CompactUpAndLeft?(this.moveTillCollision(i,"y",-1),this.moveTillCollision(i,"x",-1)):this.gridster.$options.compactType===ue.CompactLeftAndUp?(this.moveTillCollision(i,"x",-1),this.moveTillCollision(i,"y",-1)):this.gridster.$options.compactType===ue.CompactUpAndRight?(this.moveTillCollision(i,"y",-1),this.moveTillCollision(i,"x",1)):this.gridster.$options.compactType===ue.CompactDown?this.moveTillCollision(i,"y",1):this.gridster.$options.compactType===ue.CompactDownAndLeft?(this.moveTillCollision(i,"y",1),this.moveTillCollision(i,"x",-1)):this.gridster.$options.compactType===ue.CompactLeftAndDown?(this.moveTillCollision(i,"x",-1),this.moveTillCollision(i,"y",1)):this.gridster.$options.compactType===ue.CompactDownAndRight?(this.moveTillCollision(i,"y",1),this.moveTillCollision(i,"x",1)):this.gridster.$options.compactType===ue.CompactRightAndDown&&(this.moveTillCollision(i,"x",1),this.moveTillCollision(i,"y",1)))}checkCompactMovement(i,e){let t=!1;this.gridster.grid.forEach(n=>{n.$item.compactEnabled!==!1&&this.moveTillCollision(n.$item,i,e)&&(t=!0,n.item[i]=n.$item[i],n.itemChanged())}),t&&this.checkCompact()}moveTillCollision(i,e,t){return i[e]+=t,this.gridster.checkCollision(i)?(i[e]-=t,!1):(this.moveTillCollision(i,e,t),!0)}},ry={gridType:P.Fit,scale:1,fixedColWidth:250,fixedRowHeight:250,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,setGridSize:!1,compactType:ue.None,mobileBreakpoint:640,useBodyForBreakpoint:!1,allowMultiLayer:!1,defaultLayerIndex:0,maxLayerIndex:2,baseLayerIndex:1,minCols:1,maxCols:100,minRows:1,maxRows:100,defaultItemCols:1,defaultItemRows:1,maxItemCols:50,maxItemRows:50,minItemCols:1,minItemRows:1,minItemArea:1,maxItemArea:2500,addEmptyRowsCount:0,rowHeightRatio:1,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,scrollSensitivity:10,scrollSpeed:20,initCallback:void 0,destroyCallback:void 0,gridSizeChangedCallback:void 0,itemChangeCallback:void 0,itemResizeCallback:void 0,itemInitCallback:void 0,itemRemovedCallback:void 0,itemValidateCallback:void 0,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellClickCallback:void 0,emptyCellContextMenuCallback:void 0,emptyCellDropCallback:void 0,emptyCellDragCallback:void 0,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{delayStart:0,enabled:!1,ignoreContentClass:"gridster-item-content",ignoreContent:!1,dragHandleClass:"drag-handler",stop:void 0,start:void 0,dropOverItems:!1,dropOverItemsCallback:void 0},resizable:{delayStart:0,enabled:!1,handles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0},stop:void 0,start:void 0},swap:!0,swapWhileDragging:!1,pushItems:!1,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:ve.OnDragAndResize,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1,disableScrollHorizontal:!1,disableScrollVertical:!1,enableBoundaryControl:!1,disableAutoPositionOnConflict:!1,dirType:ot.LTR},ft=class o{static merge(i,e,t){for(let n in e)e[n]!==void 0&&t.hasOwnProperty(n)&&(typeof e[n]=="object"?(n in i||(i[n]={}),i[n]=o.merge(i[n],e[n],t[n])):i[n]=e[n]);return i}static checkTouchEvent(i){i.clientX===void 0&&i.touches&&(i.touches&&i.touches.length?(i.clientX=i.touches[0].clientX,i.clientY=i.touches[0].clientY):i.changedTouches&&i.changedTouches.length&&(i.clientX=i.changedTouches[0].clientX,i.clientY=i.changedTouches[0].clientY))}static checkContentClassForEvent(i,e){if(i.$options.draggable.ignoreContent){if(!o.checkDragHandleClass(e.target,e.currentTarget,i.$options.draggable.dragHandleClass,i.$options.draggable.ignoreContentClass))return!0}else if(o.checkContentClass(e.target,e.currentTarget,i.$options.draggable.ignoreContentClass))return!0;return!1}static checkContentClassForEmptyCellClickEvent(i,e){return o.checkContentClass(e.target,e.currentTarget,i.$options.draggable.ignoreContentClass)||o.checkContentClass(e.target,e.currentTarget,i.$options.draggable.dragHandleClass)}static checkDragHandleClass(i,e,t,n){if(!i||i===e)return!1;if(i.hasAttribute("class")){let r=i.getAttribute("class").split(" ");if(r.indexOf(t)>-1)return!0;if(r.indexOf(n)>-1)return!1}return o.checkDragHandleClass(i.parentNode,e,t,n)}static checkContentClass(i,e,t){return!i||i===e?!1:i.hasAttribute("class")&&i.getAttribute("class").split(" ").indexOf(t)>-1?!0:o.checkContentClass(i.parentNode,e,t)}static compareItems(i,e){return i.y>e.y?-1:i.ye.x?-1:1}},kc=class{gridster;initialItem;removeEmptyCellClickListenerFn;removeEmptyCellTouchendListenerFn;removeEmptyCellContextMenuListenerFn;removeEmptyCellDropListenerFn;removeEmptyCellMousedownListenerFn;removeEmptyCellTouchstartListenerFn;removeWindowMousemoveListenerFn;removeWindowTouchmoveListenerFn;removeWindowMouseupListenerFn;removeWindowTouchendListenerFn;removeEmptyCellDragoverListenerFn;removeDocumentDragendListenerFn;constructor(i){this.gridster=i}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(),this.gridster.movingItem=null,this.initialItem=this.gridster=null,this.removeDocumentDragendListenerFn&&(this.removeDocumentDragendListenerFn(),this.removeDocumentDragendListenerFn=null)}updateOptions(){this.gridster.$options.enableEmptyCellClick&&!this.removeEmptyCellClickListenerFn&&this.gridster.options.emptyCellClickCallback?(this.removeEmptyCellClickListenerFn=this.gridster.renderer.listen(this.gridster.el,"click",this.emptyCellClickCb),this.removeEmptyCellTouchendListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchend",this.emptyCellClickCb)):!this.gridster.$options.enableEmptyCellClick&&this.removeEmptyCellClickListenerFn&&this.removeEmptyCellTouchendListenerFn&&(this.removeEmptyCellClickListenerFn(),this.removeEmptyCellTouchendListenerFn(),this.removeEmptyCellClickListenerFn=null,this.removeEmptyCellTouchendListenerFn=null),this.gridster.$options.enableEmptyCellContextMenu&&!this.removeEmptyCellContextMenuListenerFn&&this.gridster.options.emptyCellContextMenuCallback?this.removeEmptyCellContextMenuListenerFn=this.gridster.renderer.listen(this.gridster.el,"contextmenu",this.emptyCellContextMenuCb):!this.gridster.$options.enableEmptyCellContextMenu&&this.removeEmptyCellContextMenuListenerFn&&(this.removeEmptyCellContextMenuListenerFn(),this.removeEmptyCellContextMenuListenerFn=null),this.gridster.$options.enableEmptyCellDrop&&!this.removeEmptyCellDropListenerFn&&this.gridster.options.emptyCellDropCallback?(this.removeEmptyCellDropListenerFn=this.gridster.renderer.listen(this.gridster.el,"drop",this.emptyCellDragDrop),this.gridster.zone.runOutsideAngular(()=>{this.removeEmptyCellDragoverListenerFn=this.gridster.renderer.listen(this.gridster.el,"dragover",this.emptyCellDragOver)}),this.removeDocumentDragendListenerFn=this.gridster.renderer.listen("document","dragend",()=>{this.gridster.movingItem=null,this.gridster.previewStyle()})):!this.gridster.$options.enableEmptyCellDrop&&this.removeEmptyCellDropListenerFn&&this.removeEmptyCellDragoverListenerFn&&this.removeDocumentDragendListenerFn&&(this.removeEmptyCellDropListenerFn(),this.removeEmptyCellDragoverListenerFn(),this.removeDocumentDragendListenerFn(),this.removeEmptyCellDragoverListenerFn=null,this.removeEmptyCellDropListenerFn=null,this.removeDocumentDragendListenerFn=null),this.gridster.$options.enableEmptyCellDrag&&!this.removeEmptyCellMousedownListenerFn&&this.gridster.options.emptyCellDragCallback?(this.removeEmptyCellMousedownListenerFn=this.gridster.renderer.listen(this.gridster.el,"mousedown",this.emptyCellMouseDown),this.removeEmptyCellTouchstartListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchstart",this.emptyCellMouseDown)):!this.gridster.$options.enableEmptyCellDrag&&this.removeEmptyCellMousedownListenerFn&&this.removeEmptyCellTouchstartListenerFn&&(this.removeEmptyCellMousedownListenerFn(),this.removeEmptyCellTouchstartListenerFn(),this.removeEmptyCellMousedownListenerFn=null,this.removeEmptyCellTouchstartListenerFn=null)}emptyCellClickCb=i=>{if(!this.gridster||this.gridster.movingItem||ft.checkContentClassForEmptyCellClickEvent(this.gridster,i))return;let e=this.getValidItemFromEvent(i);e&&(this.gridster.options.emptyCellClickCallback&&this.gridster.options.emptyCellClickCallback(i,e),this.gridster.cdRef.markForCheck())};emptyCellContextMenuCb=i=>{if(this.gridster.movingItem||ft.checkContentClassForEmptyCellClickEvent(this.gridster,i))return;i.preventDefault(),i.stopPropagation();let e=this.getValidItemFromEvent(i);e&&(this.gridster.options.emptyCellContextMenuCallback&&this.gridster.options.emptyCellContextMenuCallback(i,e),this.gridster.cdRef.markForCheck())};emptyCellDragDrop=i=>{let e=this.getValidItemFromEvent(i);e&&(this.gridster.options.emptyCellDropCallback&&this.gridster.options.emptyCellDropCallback(i,e),this.gridster.cdRef.markForCheck())};emptyCellDragOver=i=>{i.preventDefault(),i.stopPropagation();let e=this.getValidItemFromEvent(i);e?(i.dataTransfer&&(i.dataTransfer.dropEffect="move"),this.gridster.movingItem=e):(i.dataTransfer&&(i.dataTransfer.dropEffect="none"),this.gridster.movingItem=null),this.gridster.previewStyle()};emptyCellMouseDown=i=>{if(ft.checkContentClassForEmptyCellClickEvent(this.gridster,i))return;i.preventDefault(),i.stopPropagation();let e=this.getValidItemFromEvent(i);!e||i.buttons!==1&&!(i instanceof TouchEvent)||(this.initialItem=e,this.gridster.movingItem=e,this.gridster.previewStyle(),this.gridster.zone.runOutsideAngular(()=>{this.removeWindowMousemoveListenerFn=this.gridster.renderer.listen("window","mousemove",this.emptyCellMouseMove),this.removeWindowTouchmoveListenerFn=this.gridster.renderer.listen("window","touchmove",this.emptyCellMouseMove)}),this.removeWindowMouseupListenerFn=this.gridster.renderer.listen("window","mouseup",this.emptyCellMouseUp),this.removeWindowTouchendListenerFn=this.gridster.renderer.listen("window","touchend",this.emptyCellMouseUp))};emptyCellMouseMove=i=>{i.preventDefault(),i.stopPropagation();let e=this.getValidItemFromEvent(i,this.initialItem);e&&(this.gridster.movingItem=e,this.gridster.previewStyle())};emptyCellMouseUp=i=>{this.removeWindowMousemoveListenerFn(),this.removeWindowTouchmoveListenerFn(),this.removeWindowMouseupListenerFn(),this.removeWindowTouchendListenerFn();let e=this.getValidItemFromEvent(i,this.initialItem);e&&(this.gridster.movingItem=e),this.gridster.options.emptyCellDragCallback&&this.gridster.movingItem&&this.gridster.options.emptyCellDragCallback(i,this.gridster.movingItem),setTimeout(()=>{this.initialItem=null,this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())}),this.gridster.cdRef.markForCheck()};getPixelsX(i,e){let t=this.gridster.options.scale;return t?(i.clientX-e.left)/t+this.gridster.el.scrollLeft-this.gridster.gridRenderer.getLeftMargin():i.clientX+this.gridster.el.scrollLeft-e.left-this.gridster.gridRenderer.getLeftMargin()}getPixelsY(i,e){let t=this.gridster.options.scale;return t?(i.clientY-e.top)/t+this.gridster.el.scrollTop-this.gridster.gridRenderer.getTopMargin():i.clientY+this.gridster.el.scrollTop-e.top-this.gridster.gridRenderer.getTopMargin()}getValidItemFromEvent(i,e){i.preventDefault(),i.stopPropagation(),ft.checkTouchEvent(i);let t=this.gridster.el.getBoundingClientRect(),n=this.getPixelsX(i,t),r=this.getPixelsY(i,t),s={x:this.gridster.pixelsToPositionX(n,Math.floor,!0),y:this.gridster.pixelsToPositionY(r,Math.floor,!0),cols:this.gridster.$options.defaultItemCols,rows:this.gridster.$options.defaultItemRows};if(e&&(s.cols=Math.min(Math.abs(e.x-s.x)+1,this.gridster.$options.emptyCellDragMaxCols),s.rows=Math.min(Math.abs(e.y-s.y)+1,this.gridster.$options.emptyCellDragMaxRows),e.xthis.gridster.$options.emptyCellDragMaxCols-1&&(s.x=this.gridster.movingItem?this.gridster.movingItem.x:0),e.ythis.gridster.$options.emptyCellDragMaxRows-1&&(s.y=this.gridster.movingItem?this.gridster.movingItem.y:0)),!(!this.gridster.$options.enableOccupiedCellDrop&&this.gridster.checkCollision(s)))return s}},Mc=class{gridster;lastGridColumnStyles={};lastGridRowStyles={};constructor(i){this.gridster=i}destroy(){this.gridster=null}updateItem(i,e,t){if(this.gridster.mobile)this.clearCellPosition(t,i),this.gridster.$options.keepFixedHeightInMobile?t.setStyle(i,"height",(e.rows-1)*this.gridster.$options.margin+e.rows*this.gridster.$options.fixedRowHeight+"px"):t.setStyle(i,"height",e.rows*this.gridster.curWidth/e.cols+"px"),this.gridster.$options.keepFixedWidthInMobile?t.setStyle(i,"width",this.gridster.$options.fixedColWidth+"px"):t.setStyle(i,"width",""),t.setStyle(i,"margin-bottom",this.gridster.$options.margin+"px"),t.setStyle(i,ot.LTR?"margin-right":"margin-left","");else{let n=Math.round(this.gridster.curColWidth*e.x),r=Math.round(this.gridster.curRowHeight*e.y),s=this.gridster.curColWidth*e.cols-this.gridster.$options.margin,a=this.gridster.curRowHeight*e.rows-this.gridster.$options.margin;this.setCellPosition(t,i,n,r),t.setStyle(i,"width",s+"px"),t.setStyle(i,"height",a+"px");let c=null,p=null;this.gridster.$options.outerMargin&&(this.gridster.rows===e.rows+e.y&&(this.gridster.$options.outerMarginBottom!==null?c=this.gridster.$options.outerMarginBottom+"px":c=this.gridster.$options.margin+"px"),this.gridster.columns===e.cols+e.x&&(this.gridster.$options.outerMarginBottom!==null?p=this.gridster.$options.outerMarginRight+"px":p=this.gridster.$options.margin+"px")),t.setStyle(i,"margin-bottom",c),t.setStyle(i,ot.LTR?"margin-right":"margin-left",p)}}updateGridster(){let i="",e="",t="",n="";if(this.gridster.$options.gridType===P.Fit)i=P.Fit,e=P.ScrollVertical,t=P.ScrollHorizontal,n=P.Fixed;else if(this.gridster.$options.gridType===P.ScrollVertical)this.gridster.curRowHeight=this.gridster.curColWidth*this.gridster.$options.rowHeightRatio,i=P.ScrollVertical,e=P.Fit,t=P.ScrollHorizontal,n=P.Fixed;else if(this.gridster.$options.gridType===P.ScrollHorizontal){let r=this.gridster.$options.rowHeightRatio,s=r>=1?r:r+1;this.gridster.curColWidth=this.gridster.curRowHeight*s,i=P.ScrollHorizontal,e=P.Fit,t=P.ScrollVertical,n=P.Fixed}else this.gridster.$options.gridType===P.Fixed?(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=P.Fixed,e=P.Fit,t=P.ScrollVertical,n=P.ScrollHorizontal):this.gridster.$options.gridType===P.VerticalFixed?(this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=P.ScrollVertical,e=P.Fit,t=P.ScrollHorizontal,n=P.Fixed):this.gridster.$options.gridType===P.HorizontalFixed&&(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=P.ScrollHorizontal,e=P.Fit,t=P.ScrollVertical,n=P.Fixed);this.gridster.mobile||this.gridster.$options.setGridSize&&this.gridster.$options.gridType!==P.Fit?this.gridster.renderer.removeClass(this.gridster.el,i):this.gridster.renderer.addClass(this.gridster.el,i),this.gridster.renderer.removeClass(this.gridster.el,e),this.gridster.renderer.removeClass(this.gridster.el,t),this.gridster.renderer.removeClass(this.gridster.el,n)}getGridColumnStyle(i){let e={left:this.gridster.curColWidth*i,width:this.gridster.curColWidth-this.gridster.$options.margin,height:this.gridster.gridRows.length*this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};e.style=re(k({},this.getLeftPosition(e.left)),{width:e.width+"px",height:e.height+"px"});let t=this.lastGridColumnStyles[i];return t&&t.left===e.left&&t.width===e.width&&t.height===e.height?t.style:(this.lastGridColumnStyles[i]=e,e.style)}getGridRowStyle(i){let e={top:this.gridster.curRowHeight*i,width:this.gridster.gridColumns.length*this.gridster.curColWidth+this.gridster.$options.margin,height:this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};e.style=re(k({},this.getTopPosition(e.top)),{width:e.width+"px",height:e.height+"px"});let t=this.lastGridRowStyles[i];return t&&t.top===e.top&&t.width===e.width&&t.height===e.height?t.style:(this.lastGridRowStyles[i]=e,e.style)}getLeftPosition(i){let e=this.gridster.$options.dirType===ot.RTL?-i:i;return this.gridster.$options.useTransformPositioning?{transform:"translateX("+e+"px)"}:{left:this.getLeftMargin()+e+"px"}}getTopPosition(i){return this.gridster.$options.useTransformPositioning?{transform:"translateY("+i+"px)"}:{top:this.getTopMargin()+i+"px"}}clearCellPosition(i,e){this.gridster.$options.useTransformPositioning?i.setStyle(e,"transform",""):(i.setStyle(e,"top",""),i.setStyle(e,"left",""))}setCellPosition(i,e,t,n){let r=this.gridster.$options.dirType===ot.RTL?-t:t;if(this.gridster.$options.useTransformPositioning){let s="translate3d("+r+"px, "+n+"px, 0)";i.setStyle(e,"transform",s)}else i.setStyle(e,"left",this.getLeftMargin()+r+"px"),i.setStyle(e,"top",this.getTopMargin()+n+"px")}getLeftMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginLeft!==null?this.gridster.$options.outerMarginLeft:this.gridster.$options.margin:0}getTopMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginTop!==null?this.gridster.$options.outerMarginTop:this.gridster.$options.margin:0}},sy=(()=>{class o{renderer;previewStyle$;gridRenderer;el;sub;constructor(e,t){this.renderer=t,this.el=e.nativeElement}ngOnInit(){this.sub=this.previewStyle$.subscribe(e=>this.previewStyle(e))}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}previewStyle(e){e?(this.renderer.setStyle(this.el,"display","block"),this.gridRenderer.updateItem(this.el,e,this.renderer)):this.renderer.setStyle(this.el,"display","")}static \u0275fac=function(t){return new(t||o)(Q(j),Q(jt))};static \u0275cmp=E({type:o,selectors:[["gridster-preview"]],inputs:{previewStyle$:"previewStyle$",gridRenderer:"gridRenderer"},decls:0,vars:0,template:function(t,n){},styles:[`gridster-preview{position:absolute;display:none;background:#00000026} -`],encapsulation:2})}return o})(),se=(()=>{class o{renderer;cdRef;zone;options;movingItem;el;$options;mobile;curWidth;curHeight;grid;columns=0;rows=0;curColWidth;curRowHeight;gridColumns=[];gridRows=[];windowResize;dragInProgress;emptyCell;compact;gridRenderer;previewStyle$=new H;calculateLayout$=new N;resize$=new N;destroy$=new N;constructor(e,t,n,r){this.renderer=t,this.cdRef=n,this.zone=r,this.el=e.nativeElement,this.$options=JSON.parse(JSON.stringify(ry)),this.mobile=!1,this.curWidth=0,this.curHeight=0,this.grid=[],this.curColWidth=0,this.curRowHeight=0,this.dragInProgress=!1,this.emptyCell=new kc(this),this.compact=new Cc(this),this.gridRenderer=new Mc(this)}static checkCollisionTwoItemsForSwaping(e,t){let n=e.cols===1?0:1,r=t.cols===1?0:1,s=e.rows===1?0:1,a=t.rows===1?0:1;return e.x+nt.x+r&&e.y+st.y+a}checkCollisionTwoItems(e,t){if(!(e.xt.x&&e.yt.y))return!1;if(!this.$options.allowMultiLayer)return!0;let r=this.$options.defaultLayerIndex,s=e.layerIndex===void 0?r:e.layerIndex,a=t.layerIndex===void 0?r:t.layerIndex;return s===a}ngOnInit(){this.options.initCallback&&this.options.initCallback(this),this.calculateLayout$.pipe(ki(0),Ce(this.destroy$)).subscribe(()=>this.calculateLayout()),this.resize$.pipe($e(()=>br(100)),Ce(this.destroy$)).subscribe(()=>this.resize())}ngOnChanges(e){e.options&&(this.setOptions(),this.options.api={optionsChanged:this.optionsChanged,resize:this.onResize,getNextPossiblePosition:this.getNextPossiblePosition,getFirstPossiblePosition:this.getFirstPossiblePosition,getLastPossiblePosition:this.getLastPossiblePosition,getItemComponent:t=>this.getItemComponent(t)},this.columns=this.$options.minCols,this.rows=this.$options.minRows+this.$options.addEmptyRowsCount,this.setGridSize(),this.calculateLayout())}resize(){let e,t;this.$options.gridType==="fit"&&!this.mobile?(t=this.el.offsetWidth,e=this.el.offsetHeight):(t=this.el.clientWidth,e=this.el.clientHeight),(t!==this.curWidth||e!==this.curHeight)&&this.checkIfToResize()&&this.onResize()}setOptions(){this.$options=ft.merge(this.$options,this.options,this.$options),!this.$options.disableWindowResize&&!this.windowResize?this.windowResize=this.renderer.listen("window","resize",this.onResize):this.$options.disableWindowResize&&this.windowResize&&(this.windowResize(),this.windowResize=null),this.emptyCell.updateOptions()}optionsChanged=()=>{this.setOptions();let e=this.grid.length-1,t;for(;e>=0;e--)t=this.grid[e],t.updateOptions();this.calculateLayout()};ngOnDestroy(){this.destroy$.next(),this.previewStyle$.complete(),this.windowResize&&this.windowResize(),this.options&&this.options.destroyCallback&&this.options.destroyCallback(this),this.options&&this.options.api&&(this.options.api.resize=void 0,this.options.api.optionsChanged=void 0,this.options.api.getNextPossiblePosition=void 0,this.options.api=void 0),this.emptyCell.destroy(),this.emptyCell=null,this.compact.destroy(),this.compact=null}onResize=()=>{this.el.clientWidth&&(this.options.setGridSize&&(this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.setGridSize(),this.calculateLayout())};checkIfToResize(){let e=this.el.clientWidth,t=this.el.offsetWidth,n=this.el.scrollWidth,r=this.el.clientHeight,s=this.el.offsetHeight,a=this.el.scrollHeight,c=es&&a-st&&n-tdocument.body.clientWidth:this.$options.mobileBreakpoint>this.curWidth}setGridSize(){let e=this.el,t,n;this.$options.setGridSize||this.$options.gridType===P.Fit&&!this.mobile?(t=e.offsetWidth,n=e.offsetHeight):(t=e.clientWidth,n=e.clientHeight),this.curWidth=t,this.curHeight=n}setGridDimensions(){this.setGridSize(),!this.mobile&&this.checkIfMobile()?(this.mobile=!this.mobile,this.renderer.addClass(this.el,"mobile")):this.mobile&&!this.checkIfMobile()&&(this.mobile=!this.mobile,this.renderer.removeClass(this.el,"mobile"));let e=this.$options.minRows,t=this.$options.minCols,n=this.grid.length-1,r;for(;n>=0;n--)r=this.grid[n],r.notPlaced||(e=Math.max(e,r.$item.y+r.$item.rows),t=Math.max(t,r.$item.x+r.$item.cols));e+=this.$options.addEmptyRowsCount,(this.columns!==t||this.rows!==e)&&(this.columns=t,this.rows=e,this.options.gridSizeChangedCallback&&this.options.gridSizeChangedCallback(this))}calculateLayout(){if(this.compact&&this.compact.checkCompact(),this.setGridDimensions(),this.$options.outerMargin){let n=-this.$options.margin;this.$options.outerMarginLeft!==null?(n+=this.$options.outerMarginLeft,this.renderer.setStyle(this.el,"padding-left",this.$options.outerMarginLeft+"px")):(n+=this.$options.margin,this.renderer.setStyle(this.el,"padding-left",this.$options.margin+"px")),this.$options.outerMarginRight!==null?(n+=this.$options.outerMarginRight,this.renderer.setStyle(this.el,"padding-right",this.$options.outerMarginRight+"px")):(n+=this.$options.margin,this.renderer.setStyle(this.el,"padding-right",this.$options.margin+"px")),this.curColWidth=(this.curWidth-n)/this.columns;let r=-this.$options.margin;this.$options.outerMarginTop!==null?(r+=this.$options.outerMarginTop,this.renderer.setStyle(this.el,"padding-top",this.$options.outerMarginTop+"px")):(r+=this.$options.margin,this.renderer.setStyle(this.el,"padding-top",this.$options.margin+"px")),this.$options.outerMarginBottom!==null?(r+=this.$options.outerMarginBottom,this.renderer.setStyle(this.el,"padding-bottom",this.$options.outerMarginBottom+"px")):(r+=this.$options.margin,this.renderer.setStyle(this.el,"padding-bottom",this.$options.margin+"px")),this.curRowHeight=(this.curHeight-r)/this.rows*this.$options.rowHeightRatio}else this.curColWidth=(this.curWidth+this.$options.margin)/this.columns,this.curRowHeight=(this.curHeight+this.$options.margin)/this.rows*this.$options.rowHeightRatio,this.renderer.setStyle(this.el,"padding-left","0px"),this.renderer.setStyle(this.el,"padding-right","0px"),this.renderer.setStyle(this.el,"padding-top","0px"),this.renderer.setStyle(this.el,"padding-bottom","0px");this.gridRenderer.updateGridster(),this.$options.setGridSize?(this.renderer.addClass(this.el,"gridSize"),this.mobile||(this.renderer.setStyle(this.el,"width",this.columns*this.curColWidth+this.$options.margin+"px"),this.renderer.setStyle(this.el,"height",this.rows*this.curRowHeight+this.$options.margin+"px"))):(this.renderer.removeClass(this.el,"gridSize"),this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.updateGrid();let e=this.grid.length-1,t;for(;e>=0;e--)t=this.grid[e],t.setSize(),t.drag.toggle(),t.resize.toggle();this.resize$.next()}updateGrid(){this.$options.displayGrid==="always"&&!this.mobile?this.renderer.addClass(this.el,"display-grid"):this.$options.displayGrid==="onDrag&Resize"&&this.dragInProgress?this.renderer.addClass(this.el,"display-grid"):(this.$options.displayGrid==="none"||!this.dragInProgress||this.mobile)&&this.renderer.removeClass(this.el,"display-grid"),this.setGridDimensions(),this.gridColumns.length=o.getNewArrayLength(this.columns,this.curWidth,this.curColWidth),this.gridRows.length=o.getNewArrayLength(this.rows,this.curHeight,this.curRowHeight),this.cdRef.markForCheck()}addItem(e){e.$item.cols===void 0&&(e.$item.cols=this.$options.defaultItemCols,e.item.cols=e.$item.cols,e.itemChanged()),e.$item.rows===void 0&&(e.$item.rows=this.$options.defaultItemRows,e.item.rows=e.$item.rows,e.itemChanged()),e.$item.x===-1||e.$item.y===-1?this.autoPositionItem(e):this.checkCollision(e.$item)&&(this.$options.disableWarnings||(e.notPlaced=!0,console.warn("Can't be placed in the bounds of the dashboard, trying to auto position!/n"+JSON.stringify(e.item,["cols","rows","x","y"]))),this.$options.disableAutoPositionOnConflict?e.notPlaced=!0:this.autoPositionItem(e)),this.grid.push(e),this.calculateLayout$.next()}removeItem(e){this.grid.splice(this.grid.indexOf(e),1),this.calculateLayout$.next(),this.options.itemRemovedCallback&&this.options.itemRemovedCallback(e.item,e)}checkCollision(e){let t=!1;if(this.options.itemValidateCallback&&(t=!this.options.itemValidateCallback(e)),!t&&this.checkGridCollision(e)&&(t=!0),!t){let n=this.findItemWithItem(e);n&&(t=n)}return t}checkGridCollision(e){let t=e.y>-1&&e.x>-1,n=e.cols+e.x<=this.$options.maxCols,r=e.rows+e.y<=this.$options.maxRows,s=e.maxItemCols===void 0?this.$options.maxItemCols:e.maxItemCols,a=e.minItemCols===void 0?this.$options.minItemCols:e.minItemCols,c=e.maxItemRows===void 0?this.$options.maxItemRows:e.maxItemRows,p=e.minItemRows===void 0?this.$options.minItemRows:e.minItemRows,_=e.cols<=s&&e.cols>=a,y=e.rows<=c&&e.rows>=p,I=e.minItemArea===void 0?this.$options.minItemArea:e.minItemArea,S=e.maxItemArea===void 0?this.$options.maxItemArea:e.maxItemArea,A=e.cols*e.rows,T=I<=A,z=S>=A;return!(t&&n&&r&&_&&y&&T&&z)}findItemWithItem(e){let t=0,n;for(;t{e.cols===-1&&(e.cols=this.$options.defaultItemCols),e.rows===-1&&(e.rows=this.$options.defaultItemRows),this.setGridDimensions();let n=t.y||0,r;for(;n=this.rows+e.rows,a=this.$options.maxCols>=this.columns+e.cols;return!(this.rows<=this.columns&&s)&&a?(e.x=this.columns,e.y=0,!0):s?(e.y=this.rows,e.x=0,!0):!1};getFirstPossiblePosition=e=>{let t=Object.assign({},e);return this.getNextPossiblePosition(t),t};getLastPossiblePosition=e=>{let t={y:0,x:0};t=this.grid.reduce((r,s)=>{let a={y:s.$item.y+s.$item.rows-1,x:s.$item.x+s.$item.cols-1};return ft.compareItems(r,a)===1?a:r},t);let n=Object.assign({},e);return this.getNextPossiblePosition(n,t),n};pixelsToPositionX(e,t,n){let r=t(e/this.curColWidth);return n?r:Math.max(r,0)}pixelsToPositionY(e,t,n){let r=t(e/this.curRowHeight);return n?r:Math.max(r,0)}positionXToPixels(e){return e*this.curColWidth}positionYToPixels(e){return e*this.curRowHeight}getItemComponent(e){return this.grid.find(t=>t.item===e)}checkCollisionForSwaping(e){let t=!1;if(this.options.itemValidateCallback&&(t=!this.options.itemValidateCallback(e)),!t&&this.checkGridCollision(e)&&(t=!0),!t){let n=this.findItemWithItemForSwapping(e);n&&(t=n)}return t}findItemWithItemForSwapping(e){let t=this.grid.length-1,n;for(;t>-1;t--)if(n=this.grid[t],n.$item!==e&&o.checkCollisionTwoItemsForSwaping(n.$item,e))return n;return!1}previewStyle(e=!1){this.movingItem?(this.compact&&e&&this.compact.checkCompactItem(this.movingItem),this.previewStyle$.next(this.movingItem)):this.previewStyle$.next(null)}static getNewArrayLength(e,t,n){let r=Math.max(e,Math.floor(t/n));return r<0?0:Number.isFinite(r)?Math.floor(r):0}static \u0275fac=function(t){return new(t||o)(Q(j),Q(jt),Q(qe),Q(W))};static \u0275cmp=E({type:o,selectors:[["gridster"]],inputs:{options:"options"},features:[ze],ngContentSelectors:Cu,decls:6,vars:2,consts:[[1,"gridster-column",3,"ngStyle"],[1,"gridster-row",3,"ngStyle"],[1,"gridster-preview",3,"gridRenderer","previewStyle$"]],template:function(t,n){t&1&&(Te(),ie(0,Xv,1,1,"div",0,Ma),ie(2,Zv,1,1,"div",1,Ma),G(4),D(5,"gridster-preview",2)),t&2&&(ne(n.gridColumns),h(2),ne(n.gridRows),h(3),M("gridRenderer",n.gridRenderer)("previewStyle$",n.previewStyle$))},dependencies:[Rd,sy],styles:[`gridster{position:relative;box-sizing:border-box;background:gray;width:100%;height:100%;-webkit-user-select:none;user-select:none;display:block}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto}gridster.mobile gridster-item{position:relative}gridster.gridSize{height:initial;width:initial}gridster.gridSize.fit{height:100%;width:100%}gridster .gridster-column,gridster .gridster-row{position:absolute;display:none;transition:.3s;box-sizing:border-box}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid white;border-right:1px solid white}gridster .gridster-row{border-top:1px solid white;border-bottom:1px solid white} -`],encapsulation:2})}return o})(),qn=class{fromSouth;fromNorth;fromEast;fromWest;pushedItems;pushedItemsTemp;pushedItemsTempPath;pushedItemsPath;gridsterItem;gridster;pushedItemsOrder;tryPattern;iteration=0;constructor(i){this.pushedItems=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],this.pushedItemsPath=[],this.gridsterItem=i,this.gridster=i.gridster,this.tryPattern={fromEast:[this.tryWest,this.trySouth,this.tryNorth,this.tryEast],fromWest:[this.tryEast,this.trySouth,this.tryNorth,this.tryWest],fromNorth:[this.trySouth,this.tryEast,this.tryWest,this.tryNorth],fromSouth:[this.tryNorth,this.tryEast,this.tryWest,this.trySouth]},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){this.gridster=this.gridsterItem=null}pushItems(i,e){if(this.gridster.$options.pushItems&&!e){this.pushedItemsOrder=[],this.iteration=0;let t=this.push(this.gridsterItem,i);return t||this.restoreTempItems(),this.pushedItemsOrder=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],t}else return!1}restoreTempItems(){let i=this.pushedItemsTemp.length-1;for(;i>-1;i--)this.removeFromTempPushed(this.pushedItemsTemp[i])}restoreItems(){let i=0,e=this.pushedItems.length,t;for(;i-1;i--)this.checkPushedItem(this.pushedItems[i],i)&&(e=!0);e&&this.checkPushBack()}push(i,e){if(this.iteration>100)return console.warn("max iteration reached"),!1;if(this.gridster.checkGridCollision(i.$item)||e==="")return!1;let t=this.gridster.findItemsWithItem(i.$item),n=e===this.fromNorth||e===this.fromWest;t.sort((p,_)=>n?_.$item.y-p.$item.y||_.$item.x-p.$item.x:p.$item.y-_.$item.y||p.$item.x-_.$item.x);let r=0,s,a=!0,c=[];for(;r-1&&this.pushedItemsTempPath[p].length>10){a=!1;break}if(this.tryPattern[e][0].call(this,s,i))this.pushedItemsOrder.push(s),c.push(s);else if(this.tryPattern[e][1].call(this,s,i))this.pushedItemsOrder.push(s),c.push(s);else if(this.tryPattern[e][2].call(this,s,i))this.pushedItemsOrder.push(s),c.push(s);else if(this.tryPattern[e][3].call(this,s,i))this.pushedItemsOrder.push(s),c.push(s);else{a=!1;break}}if(!a&&(r=this.pushedItemsOrder.lastIndexOf(c[0]),r>-1)){let p=this.pushedItemsOrder.length-1;for(;p>=r;p--)s=this.pushedItemsOrder[p],this.pushedItemsOrder.pop(),this.removeFromTempPushed(s),this.removeFromPushedItem(s)}return this.iteration++,a}trySouth(i,e){return this.gridster.$options.pushDirections.south?(this.addToTempPushed(i),i.$item.y=e.$item.y+e.$item.rows,this.push(i,this.fromNorth)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}tryNorth(i,e){return this.gridster.$options.pushDirections.north?(this.addToTempPushed(i),i.$item.y=e.$item.y-i.$item.rows,this.push(i,this.fromSouth)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}tryEast(i,e){return this.gridster.$options.pushDirections.east?(this.addToTempPushed(i),i.$item.x=e.$item.x+e.$item.cols,this.push(i,this.fromWest)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}tryWest(i,e){return this.gridster.$options.pushDirections.west?(this.addToTempPushed(i),i.$item.x=e.$item.x-i.$item.cols,this.push(i,this.fromEast)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}addToTempPushed(i){let e=this.pushedItemsTemp.indexOf(i);e===-1&&(e=this.pushedItemsTemp.push(i)-1,this.pushedItemsTempPath[e]=[]),this.pushedItemsTempPath[e].push({x:i.$item.x,y:i.$item.y})}removeFromTempPushed(i){let e=this.pushedItemsTemp.indexOf(i),t=this.pushedItemsTempPath[e].pop();t&&(i.$item.x=t.x,i.$item.y=t.y,i.setSize(),this.pushedItemsTempPath[e].length||(this.pushedItemsTemp.splice(e,1),this.pushedItemsTempPath.splice(e,1)))}addToPushed(i){if(this.pushedItems.indexOf(i)<0)this.pushedItems.push(i),this.pushedItemsPath.push([{x:i.item.x||0,y:i.item.y||0},{x:i.$item.x,y:i.$item.y}]);else{let e=this.pushedItems.indexOf(i);this.pushedItemsPath[e].push({x:i.$item.x,y:i.$item.y})}}removeFromPushed(i){i>-1&&(this.pushedItems.splice(i,1),this.pushedItemsPath.splice(i,1))}removeFromPushedItem(i){let e=this.pushedItems.indexOf(i);e>-1&&(this.pushedItemsPath[e].pop(),this.pushedItemsPath.length||(this.pushedItems.splice(e,1),this.pushedItemsPath.splice(e,1)))}checkPushedItem(i,e){let t=this.pushedItemsPath[e],n=t.length-2,r,s,a,c=!1;for(;n>-1;n--)r=t[n],s=i.$item.x,a=i.$item.y,i.$item.x=r.x,i.$item.y=r.y,this.gridster.findItemWithItem(i.$item)?(i.$item.x=s,i.$item.y=a):(i.setSize(),t.splice(n+1,t.length-n-1),c=!0);return t.length<2&&this.removeFromPushed(e),c}},er,hn,ku=50,Lt,tr,xi,ir,nr,or,rr;function Mu(o,i,e,t,n,r,s,a,c,p){er=o.$options.scrollSensitivity,hn=o.$options.scrollSpeed,Lt=o.el,tr=c,xi=p;let _=Lt.offsetWidth,y=Lt.offsetHeight,I=Lt.scrollLeft,S=Lt.scrollTop,A=e-S,T=y+S-e-n,{clientX:z,clientY:Le}=r;if(!o.$options.disableScrollVertical)if(s.clientYLe&&S>0&&Az&&I>0&&we{(!Lt||o===-1&&Lt.scrollTop-hn<0)&&Rc(),Lt.scrollTop+=o*hn,t+=o*hn,i({clientX:e.clientX,clientY:t})},ku)}function wu(o,i,e){let t=e.clientX;return window.setInterval(()=>{(!Lt||o===-1&&Lt.scrollLeft-hn<0)&&Dc(),Lt.scrollLeft+=o*hn,t+=o*hn,i({clientX:t,clientY:e.clientY})},ku)}function Iu(){Dc(),Rc(),Lt=null}function Dc(){Eu(),Su()}function Rc(){Du(),Tu()}function Eu(){ir&&(clearInterval(ir),ir=0)}function Su(){nr&&(clearInterval(nr),nr=0)}function Tu(){rr&&(clearInterval(rr),rr=0)}function Du(){or&&(clearInterval(or),or=0)}var Ic=class{swapedItem;gridsterItem;gridster;constructor(i){this.gridsterItem=i,this.gridster=i.gridster}destroy(){this.gridster=this.gridsterItem=this.swapedItem=null}swapItems(){this.gridster.$options.swap&&(this.checkSwapBack(),this.checkSwap(this.gridsterItem))}checkSwapBack(){if(this.swapedItem){let i=this.swapedItem.$item.x,e=this.swapedItem.$item.y;this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.gridster.checkCollision(this.swapedItem.$item)?(this.swapedItem.$item.x=i,this.swapedItem.$item.y=e):(this.swapedItem.setSize(),this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.swapedItem=void 0)}}restoreSwapItem(){this.swapedItem&&(this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.swapedItem.setSize(),this.swapedItem=void 0)}setSwapItem(){this.swapedItem&&(this.swapedItem.checkItemChanges(this.swapedItem.$item,this.swapedItem.item),this.swapedItem=void 0)}checkSwap(i){let e;if(this.gridster.$options.swapWhileDragging?e=this.gridster.checkCollisionForSwaping(i.$item):e=this.gridster.checkCollision(i.$item),e&&e!==!0&&e.canBeDragged()){let t=e,n=t.$item.x,r=t.$item.y,s=i.$item.x,a=i.$item.y,c=s-n,p=a-r;t.$item.x=i.item.x-c,t.$item.y=i.item.y-p,i.$item.x=t.item.x+c,i.$item.y=t.item.y+p,this.gridster.checkCollision(t.$item)||this.gridster.checkCollision(i.$item)?(i.$item.x=s,i.$item.y=a,t.$item.x=n,t.$item.y=r):(t.setSize(),this.swapedItem=t,this.gridster.$options.swapWhileDragging&&(this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.setSwapItem()))}}},ay="gridster-item-resizable-handler",Tt=function(o){return o.UP="UP",o.DOWN="DOWN",o.LEFT="LEFT",o.RIGHT="RIGHT",o}(Tt||{}),Ec=class{zone;gridsterItem;gridster;lastMouse;offsetLeft;offsetTop;margin;outerMarginTop;outerMarginRight;outerMarginBottom;outerMarginLeft;diffTop;diffLeft;originalClientX;originalClientY;top;left;height;width;positionX;positionY;positionXBackup;positionYBackup;enabled;mousemove;mouseup;mouseleave;cancelOnBlur;touchmove;touchend;touchcancel;mousedown;touchstart;push;swap;path;collision=!1;constructor(i,e,t){this.zone=t,this.gridsterItem=i,this.gridster=e,this.lastMouse={clientX:0,clientY:0},this.path=[]}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(!0),this.gridsterItem=this.gridster=this.collision=null,this.mousedown&&(this.mousedown(),this.touchstart())}dragStart(i){i.which&&i.which!==1||(this.gridster.options.draggable&&this.gridster.options.draggable.start&&this.gridster.options.draggable.start(this.gridsterItem.item,this.gridsterItem,i),i.stopPropagation(),i.preventDefault(),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragMove),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragMove)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStop),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStop),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStop),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStop),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStop),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-moving"),this.margin=this.gridster.$options.margin,this.outerMarginTop=this.gridster.$options.outerMarginTop,this.outerMarginRight=this.gridster.$options.outerMarginRight,this.outerMarginBottom=this.gridster.$options.outerMarginBottom,this.outerMarginLeft=this.gridster.$options.outerMarginLeft,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.left=this.gridsterItem.left-this.margin,this.top=this.gridsterItem.top-this.margin,this.originalClientX=i.clientX,this.originalClientY=i.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.gridster.$options.dirType===ot.RTL?this.diffLeft=i.clientX-this.gridster.el.scrollWidth+this.gridsterItem.left:this.diffLeft=i.clientX+this.offsetLeft-this.margin-this.left,this.diffTop=i.clientY+this.offsetTop-this.margin-this.top,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(!0),this.push=new qn(this.gridsterItem),this.swap=new Ic(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid(),this.path.push({x:this.gridsterItem.item.x||0,y:this.gridsterItem.item.y||0}))}dragMove=i=>{i.stopPropagation(),i.preventDefault(),ft.checkTouchEvent(i);let e=this.getDirections(i);this.gridster.options.enableBoundaryControl&&(e.includes(Tt.UP)&&this.gridsterItem.el.getBoundingClientRect().topt!=Tt.UP),i=new MouseEvent(i.type,{clientX:i.clientX,clientY:this.lastMouse.clientY})),e.includes(Tt.LEFT)&&this.gridsterItem.el.getBoundingClientRect().leftt!=Tt.LEFT),i=new MouseEvent(i.type,{clientX:this.lastMouse.clientX,clientY:i.clientY})),e.includes(Tt.RIGHT)&&this.gridsterItem.el.getBoundingClientRect().right>this.gridster.el.getBoundingClientRect().right-(this.outerMarginRight??this.margin)&&(e=e.filter(t=>t!=Tt.RIGHT),i=new MouseEvent(i.type,{clientX:this.lastMouse.clientX,clientY:i.clientY})),e.includes(Tt.DOWN)&&this.gridsterItem.el.getBoundingClientRect().bottom>this.gridster.el.getBoundingClientRect().bottom-(this.outerMarginBottom??this.margin)&&(e=e.filter(t=>t!=Tt.DOWN),i=new MouseEvent(i.type,{clientX:i.clientX,clientY:this.lastMouse.clientY}))),e.length&&(this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,Mu(this.gridster,this.left,this.top,this.width,this.height,i,this.lastMouse,this.calculateItemPositionFromMousePosition),this.calculateItemPositionFromMousePosition(i))};calculateItemPositionFromMousePosition=i=>{this.gridster.options.scale?this.calculateItemPositionWithScale(i,this.gridster.options.scale):this.calculateItemPositionWithoutScale(i),this.calculateItemPosition(),this.lastMouse.clientX=i.clientX,this.lastMouse.clientY=i.clientY,this.zone.run(()=>{this.gridster.updateGrid()})};calculateItemPositionWithScale(i,e){this.gridster.$options.dirType===ot.RTL?this.left=this.gridster.el.scrollWidth-this.originalClientX+(i.clientX-this.originalClientX)/e+this.diffLeft:this.left=this.originalClientX+(i.clientX-this.originalClientX)/e+this.offsetLeft-this.diffLeft,this.top=this.originalClientY+(i.clientY-this.originalClientY)/e+this.offsetTop-this.diffTop}calculateItemPositionWithoutScale(i){this.gridster.$options.dirType===ot.RTL?this.left=this.gridster.el.scrollWidth-i.clientX+this.diffLeft:this.left=i.clientX+this.offsetLeft-this.diffLeft,this.top=i.clientY+this.offsetTop-this.diffTop}dragStop=i=>{i.stopPropagation(),i.preventDefault(),Iu(),this.cancelOnBlur(),this.mousemove(),this.mouseup(),this.mouseleave(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-moving"),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.path=[],this.gridster.options.draggable&&this.gridster.options.draggable.stop?Promise.resolve(this.gridster.options.draggable.stop(this.gridsterItem.item,this.gridsterItem,i)).then(this.makeDrag,this.cancelDrag):this.makeDrag(),setTimeout(()=>{this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle(!0))})};cancelDrag=()=>{this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push&&this.push.restoreItems(),this.swap&&this.swap.restoreSwapItem(),this.push&&(this.push.destroy(),this.push=null),this.swap&&(this.swap.destroy(),this.swap=null)};makeDrag=()=>{this.gridster.$options.draggable.dropOverItems&&this.gridster.options.draggable&&this.gridster.options.draggable.dropOverItemsCallback&&this.collision&&this.collision!==!0&&this.collision.$item&&this.gridster.options.draggable.dropOverItemsCallback(this.gridsterItem.item,this.collision.item,this.gridster),this.collision=!1,this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push&&this.push.setPushedItems(),this.swap&&this.swap.setSwapItem(),this.push&&(this.push.destroy(),this.push=null),this.swap&&(this.swap.destroy(),this.swap=null)};calculateItemPosition(){if(this.gridster.movingItem=this.gridsterItem.$item,this.positionX=this.gridster.pixelsToPositionX(this.left,Math.round),this.positionY=this.gridster.pixelsToPositionY(this.top,Math.round),this.positionXBackup=this.gridsterItem.$item.x,this.positionYBackup=this.gridsterItem.$item.y,this.gridsterItem.$item.x=this.positionX,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.x=this.positionXBackup),this.gridsterItem.$item.y=this.positionY,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.y=this.positionYBackup),this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,this.top),this.positionXBackup!==this.gridsterItem.$item.x||this.positionYBackup!==this.gridsterItem.$item.y){let i=this.path[this.path.length-1],e="";i.xthis.gridsterItem.$item.x?e=this.push.fromEast:i.ythis.gridsterItem.$item.y&&(e=this.push.fromSouth),this.push.pushItems(e,this.gridster.$options.disablePushOnDrag),this.swap.swapItems(),this.collision=this.gridster.checkCollision(this.gridsterItem.$item),this.collision?(this.gridsterItem.$item.x=this.positionXBackup,this.gridsterItem.$item.y=this.positionYBackup,this.gridster.$options.draggable.dropOverItems&&this.collision!==!0&&this.collision.$item&&(this.gridster.movingItem=null)):this.path.push({x:this.gridsterItem.$item.x,y:this.gridsterItem.$item.y}),this.push.checkPushBack()}else this.collision=!1;this.gridster.previewStyle(!0)}toggle(){let i=this.gridsterItem.canBeDragged();!this.enabled&&i?(this.enabled=!this.enabled,this.mousedown=this.gridsterItem.renderer.listen(this.gridsterItem.el,"mousedown",this.dragStartDelay),this.touchstart=this.gridsterItem.renderer.listen(this.gridsterItem.el,"touchstart",this.dragStartDelay)):this.enabled&&!i&&(this.enabled=!this.enabled,this.mousedown(),this.touchstart())}dragStartDelay=i=>{if(i.target.classList.contains(ay)||ft.checkContentClassForEvent(this.gridster,i))return;if(ft.checkTouchEvent(i),!this.gridster.$options.draggable.delayStart){this.dragStart(i);return}let t=setTimeout(()=>{this.dragStart(i),y()},this.gridster.$options.draggable.delayStart),n=this.gridsterItem.renderer.listen("document","mouseup",y),r=this.gridsterItem.renderer.listen("document","mouseleave",y),s=this.gridsterItem.renderer.listen("window","blur",y),a=this.gridsterItem.renderer.listen("document","touchmove",_),c=this.gridsterItem.renderer.listen("document","touchend",y),p=this.gridsterItem.renderer.listen("document","touchcancel",y);function _(I){ft.checkTouchEvent(I),(Math.abs(I.clientX-i.clientX)>9||Math.abs(I.clientY-i.clientY)>9)&&y()}function y(){clearTimeout(t),s(),n(),r(),a(),c(),p()}};getDirections(i){let e=[];return this.lastMouse.clientX===0&&this.lastMouse.clientY===0&&(this.lastMouse.clientY=i.clientY,this.lastMouse.clientX=i.clientX),this.lastMouse.clientY>i.clientY&&e.push(Tt.UP),this.lastMouse.clientYi.clientX&&e.push(Tt.LEFT),e}},Sc=class{fromSouth;fromNorth;fromEast;fromWest;pushedItems;pushedItemsPath;gridsterItem;gridster;tryPattern;constructor(i){this.pushedItems=[],this.pushedItemsPath=[],this.gridsterItem=i,this.gridster=i.gridster,this.tryPattern={fromEast:this.tryWest,fromWest:this.tryEast,fromNorth:this.trySouth,fromSouth:this.tryNorth},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){this.gridster=this.gridsterItem=null}pushItems(i){return this.gridster.$options.pushResizeItems?this.push(this.gridsterItem,i):!1}restoreItems(){let i=0,e=this.pushedItems.length,t;for(;i-1;i--)this.checkPushedItem(this.pushedItems[i],i)&&(e=!0);e&&this.checkPushBack()}push(i,e){let t=this.gridster.checkCollision(i.$item);if(t&&t!==!0&&t!==this.gridsterItem&&t.canBeResized()){if(this.tryPattern[e].call(this,t,i,e))return!0}else if(t===!1)return!0;return!1}trySouth(i,e,t){let n=i.$item.y,r=i.$item.rows;return i.$item.y=e.$item.y+e.$item.rows,i.$item.rows=r+n-i.$item.y,!this.gridster.checkCollisionTwoItems(i.$item,e.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(e,t),!0):(i.$item.y=n,i.$item.rows=r,!1)}tryNorth(i,e,t){let n=i.$item.rows;return i.$item.rows=e.$item.y-i.$item.y,!this.gridster.checkCollisionTwoItems(i.$item,e.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(e,t),!0):(i.$item.rows=n,!1)}tryEast(i,e,t){let n=i.$item.x,r=i.$item.cols;return i.$item.x=e.$item.x+e.$item.cols,i.$item.cols=r+n-i.$item.x,!this.gridster.checkCollisionTwoItems(i.$item,e.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(e,t),!0):(i.$item.x=n,i.$item.cols=r,!1)}tryWest(i,e,t){let n=i.$item.cols;return i.$item.cols=e.$item.x-i.$item.x,!this.gridster.checkCollisionTwoItems(i.$item,e.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(e,t),!0):(i.$item.cols=n,!1)}addToPushed(i){if(this.pushedItems.indexOf(i)<0)this.pushedItems.push(i),this.pushedItemsPath.push([{x:i.item.x||0,y:i.item.y||0,cols:i.item.cols||0,rows:i.item.rows||0},{x:i.$item.x,y:i.$item.y,cols:i.$item.cols,rows:i.$item.rows}]);else{let e=this.pushedItems.indexOf(i);this.pushedItemsPath[e].push({x:i.$item.x,y:i.$item.y,cols:i.$item.cols,rows:i.$item.rows})}}removeFromPushed(i){i>-1&&(this.pushedItems.splice(i,1),this.pushedItemsPath.splice(i,1))}checkPushedItem(i,e){let t=this.pushedItemsPath[e],n=t.length-2,r,s,a,c,p;for(;n>-1;n--)r=t[n],s=i.$item.x,a=i.$item.y,c=i.$item.cols,p=i.$item.rows,i.$item.x=r.x,i.$item.y=r.y,i.$item.cols=r.cols,i.$item.rows=r.rows,this.gridster.findItemWithItem(i.$item)?(i.$item.x=s,i.$item.y=a,i.$item.cols=c,i.$item.rows=p):(i.setSize(),t.splice(n+1,t.length-1-n));return t.length<2?(this.removeFromPushed(e),!0):!1}},Tc=class{zone;gridsterItem;gridster;lastMouse;itemBackup;resizeEventScrollType;directionFunction=null;resizeEnabled;resizableHandles;mousemove;mouseup;mouseleave;cancelOnBlur;touchmove;touchend;touchcancel;push;pushResize;minHeight;minWidth;offsetTop;offsetLeft;diffTop;diffLeft;diffRight;diffBottom;margin;outerMarginTop;outerMarginRight;outerMarginBottom;outerMarginLeft;originalClientX;originalClientY;top;left;bottom;right;width;height;newPosition;constructor(i,e,t){this.zone=t,this.gridsterItem=i,this.gridster=e,this.lastMouse={clientX:0,clientY:0},this.itemBackup=[0,0,0,0],this.resizeEventScrollType={west:!1,east:!1,north:!1,south:!1}}destroy(){this.gridster?.previewStyle(),this.gridster=this.gridsterItem=null}dragStart(i){if(i.which&&i.which!==1)return;this.gridster.options.resizable&&this.gridster.options.resizable.start&&this.gridster.options.resizable.start(this.gridsterItem.item,this.gridsterItem,i),i.stopPropagation(),i.preventDefault(),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragMove),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragMove)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStop),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStop),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStop),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStop),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStop),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-resizing"),this.lastMouse.clientX=i.clientX,this.lastMouse.clientY=i.clientY,this.left=this.gridsterItem.left,this.top=this.gridsterItem.top,this.originalClientX=i.clientX,this.originalClientY=i.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.bottom=this.gridsterItem.top+this.gridsterItem.height,this.right=this.gridsterItem.left+this.gridsterItem.width,this.margin=this.gridster.$options.margin,this.outerMarginTop=this.gridster.$options.outerMarginTop,this.outerMarginRight=this.gridster.$options.outerMarginRight,this.outerMarginBottom=this.gridster.$options.outerMarginBottom,this.outerMarginLeft=this.gridster.$options.outerMarginLeft,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.diffLeft=i.clientX+this.offsetLeft-this.left,this.diffRight=i.clientX+this.offsetLeft-this.right,this.diffTop=i.clientY+this.offsetTop-this.top,this.diffBottom=i.clientY+this.offsetTop-this.bottom,this.minHeight=this.gridster.positionYToPixels(this.gridsterItem.$item.minItemRows||this.gridster.$options.minItemRows)-this.margin,this.minWidth=this.gridster.positionXToPixels(this.gridsterItem.$item.minItemCols||this.gridster.$options.minItemCols)-this.margin,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(),this.push=new qn(this.gridsterItem),this.pushResize=new Sc(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid();let{classList:e}=i.target;e.contains("handle-n")?(this.resizeEventScrollType.north=!0,this.directionFunction=this.handleNorth):e.contains("handle-w")?this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):e.contains("handle-s")?(this.resizeEventScrollType.south=!0,this.directionFunction=this.handleSouth):e.contains("handle-e")?this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):e.contains("handle-nw")?this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleNorthEast):(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleNorthWest):e.contains("handle-ne")?this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleNorthWest):(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleNorthEast):e.contains("handle-sw")?this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleSouthEast):(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleSouthWest):e.contains("handle-se")&&(this.gridster.$options.dirType===ot.RTL?(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleSouthWest):(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleSouthEast))}dragMove=i=>{if(this.directionFunction===null)throw new Error("The `directionFunction` has not been set before calling `dragMove`.");i.stopPropagation(),i.preventDefault(),ft.checkTouchEvent(i),this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,Mu(this.gridster,this.left,this.top,this.width,this.height,i,this.lastMouse,this.directionFunction,!0,this.resizeEventScrollType);let e=this.gridster.options.scale||1;this.directionFunction({clientX:this.originalClientX+(i.clientX-this.originalClientX)/e,clientY:this.originalClientY+(i.clientY-this.originalClientY)/e}),this.lastMouse.clientX=i.clientX,this.lastMouse.clientY=i.clientY,this.zone.run(()=>{this.gridster.updateGrid()})};dragStop=i=>{i.stopPropagation(),i.preventDefault(),Iu(),this.mousemove(),this.mouseup(),this.mouseleave(),this.cancelOnBlur(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.gridster.options.resizable&&this.gridster.options.resizable.stop?Promise.resolve(this.gridster.options.resizable.stop(this.gridsterItem.item,this.gridsterItem,i)).then(this.makeResize,this.cancelResize):this.makeResize(),setTimeout(()=>{this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-resizing"),this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())})};cancelResize=()=>{this.gridsterItem.$item.cols=this.gridsterItem.item.cols||1,this.gridsterItem.$item.rows=this.gridsterItem.item.rows||1,this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push.restoreItems(),this.pushResize.restoreItems(),this.push.destroy(),this.push=null,this.pushResize.destroy(),this.pushResize=null};makeResize=()=>{this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push.setPushedItems(),this.pushResize.setPushedItems(),this.push.destroy(),this.push=null,this.pushResize.destroy(),this.pushResize=null};handleNorth=i=>{this.top=i.clientY+this.offsetTop-this.diffTop,this.height=this.bottom-this.top,this.minHeight>this.height?(this.height=this.minHeight,this.top=this.bottom-this.minHeight):this.gridster.options.enableBoundaryControl&&(this.top=Math.max(0,this.top),this.height=this.bottom-this.top);let e=this.gridster.options.pushItems?this.margin:0;if(this.newPosition=this.gridster.pixelsToPositionY(this.top+e,Math.floor),this.gridsterItem.$item.y!==this.newPosition){if(this.itemBackup[1]=this.gridsterItem.$item.y,this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows+=this.gridsterItem.$item.y-this.newPosition,this.gridsterItem.$item.y=this.newPosition,this.pushResize.pushItems(this.pushResize.fromSouth),this.push.pushItems(this.push.fromSouth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.y=this.itemBackup[1],this.gridsterItem.$item.rows=this.itemBackup[3],this.top=this.gridster.positionYToPixels(this.gridsterItem.$item.y),this.setItemTop(this.gridster.positionYToPixels(this.gridsterItem.$item.y)),this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemTop(this.top),this.setItemHeight(this.height)};handleWest=i=>{let e=this.gridster.$options.dirType===ot.RTL?this.originalClientX+(this.originalClientX-i.clientX):i.clientX;this.left=e+this.offsetLeft-this.diffLeft,this.width=this.right-this.left,this.minWidth>this.width?(this.width=this.minWidth,this.left=this.right-this.minWidth):this.gridster.options.enableBoundaryControl&&(this.left=Math.max(0,this.left),this.width=this.right-this.left);let t=this.gridster.options.pushItems?this.margin:0;if(this.newPosition=this.gridster.pixelsToPositionX(this.left+t,Math.floor),this.gridsterItem.$item.x!==this.newPosition){if(this.itemBackup[0]=this.gridsterItem.$item.x,this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols+=this.gridsterItem.$item.x-this.newPosition,this.gridsterItem.$item.x=this.newPosition,this.pushResize.pushItems(this.pushResize.fromEast),this.push.pushItems(this.push.fromEast,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.x=this.itemBackup[0],this.gridsterItem.$item.cols=this.itemBackup[2],this.left=this.gridster.positionXToPixels(this.gridsterItem.$item.x),this.setItemLeft(this.gridster.positionXToPixels(this.gridsterItem.$item.x)),this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemLeft(this.left),this.setItemWidth(this.width)};handleSouth=i=>{if(this.height=i.clientY+this.offsetTop-this.diffBottom-this.top,this.minHeight>this.height&&(this.height=this.minHeight),this.bottom=this.top+this.height,this.gridster.options.enableBoundaryControl){let t=this.outerMarginBottom??this.margin,n=this.gridster.el.getBoundingClientRect();this.bottom=Math.min(this.bottom,n.bottom-n.top-2*t),this.height=this.bottom-this.top}let e=this.gridster.options.pushItems?0:this.margin;if(this.newPosition=this.gridster.pixelsToPositionY(this.bottom+e,Math.ceil),this.gridsterItem.$item.y+this.gridsterItem.$item.rows!==this.newPosition){if(this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows=this.newPosition-this.gridsterItem.$item.y,this.pushResize.pushItems(this.pushResize.fromNorth),this.push.pushItems(this.push.fromNorth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.rows=this.itemBackup[3],this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemHeight(this.height)};handleEast=i=>{let e=this.gridster.$options.dirType===ot.RTL?this.originalClientX+(this.originalClientX-i.clientX):i.clientX;if(this.width=e+this.offsetLeft-this.diffRight-this.left,this.minWidth>this.width&&(this.width=this.minWidth),this.right=this.left+this.width,this.gridster.options.enableBoundaryControl){let n=this.outerMarginRight??this.margin,r=this.gridster.el.getBoundingClientRect();this.right=Math.min(this.right,r.right-r.left-2*n),this.width=this.right-this.left}let t=this.gridster.options.pushItems?0:this.margin;if(this.newPosition=this.gridster.pixelsToPositionX(this.right+t,Math.ceil),this.gridsterItem.$item.x+this.gridsterItem.$item.cols!==this.newPosition){if(this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols=this.newPosition-this.gridsterItem.$item.x,this.pushResize.pushItems(this.pushResize.fromWest),this.push.pushItems(this.push.fromWest,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.cols=this.itemBackup[2],this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemWidth(this.width)};handleNorthWest=i=>{this.handleNorth(i),this.handleWest(i)};handleNorthEast=i=>{this.handleNorth(i),this.handleEast(i)};handleSouthWest=i=>{this.handleSouth(i),this.handleWest(i)};handleSouthEast=i=>{this.handleSouth(i),this.handleEast(i)};toggle(){this.resizeEnabled=this.gridsterItem.canBeResized(),this.resizableHandles=this.gridsterItem.getResizableHandles()}dragStartDelay(i){if(ft.checkTouchEvent(i),!this.gridster.$options.resizable.delayStart){this.dragStart(i);return}let e=setTimeout(()=>{this.dragStart(i),_()},this.gridster.$options.resizable.delayStart),{cancelMouse:t,cancelMouseLeave:n,cancelOnBlur:r,cancelTouchMove:s,cancelTouchEnd:a,cancelTouchCancel:c}=this.zone.runOutsideAngular(()=>{let y=this.gridsterItem.renderer.listen("document","mouseup",_),I=this.gridsterItem.renderer.listen("document","mouseleave",_),S=this.gridsterItem.renderer.listen("window","blur",_),A=this.gridsterItem.renderer.listen("document","touchmove",p),T=this.gridsterItem.renderer.listen("document","touchend",_),z=this.gridsterItem.renderer.listen("document","touchcancel",_);return{cancelMouse:y,cancelMouseLeave:I,cancelOnBlur:S,cancelTouchMove:A,cancelTouchEnd:T,cancelTouchCancel:z}});function p(y){ft.checkTouchEvent(y),(Math.abs(y.clientX-i.clientX)>9||Math.abs(y.clientY-i.clientY)>9)&&_()}function _(){clearTimeout(e),r(),t(),n(),s(),a(),c()}}setItemTop(i){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,i)}setItemLeft(i){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,i,this.top)}setItemHeight(i){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"height",i+"px")}setItemWidth(i){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"width",i+"px")}},pe=(()=>{class o{renderer;zone;item;itemInit=new H;itemChange=new H;itemResize=new H;$item;el;gridster;top;left;width;height;drag;resize;notPlaced;init;get zIndex(){return this.getLayerIndex()+this.gridster.$options.baseLayerIndex}constructor(e,t,n,r){this.renderer=n,this.zone=r,this.el=e.nativeElement,this.$item={cols:-1,rows:-1,x:-1,y:-1},this.gridster=t,this.drag=new Ec(this,t,this.zone),this.resize=new Tc(this,t,this.zone)}ngOnInit(){this.gridster.addItem(this)}ngOnChanges(e){e.item&&(this.updateOptions(),this.init||this.gridster.calculateLayout$.next()),e.item&&e.item.previousValue&&this.setSize()}updateOptions(){this.$item=ft.merge(this.$item,this.item,{cols:void 0,rows:void 0,x:void 0,y:void 0,layerIndex:void 0,dragEnabled:void 0,resizeEnabled:void 0,compactEnabled:void 0,maxItemRows:void 0,minItemRows:void 0,maxItemCols:void 0,minItemCols:void 0,maxItemArea:void 0,minItemArea:void 0,resizableHandles:{s:void 0,e:void 0,n:void 0,w:void 0,se:void 0,ne:void 0,sw:void 0,nw:void 0}})}ngOnDestroy(){this.gridster.removeItem(this),this.drag.destroy(),this.resize.destroy(),this.gridster=this.drag=this.resize=null}setSize(){this.renderer.setStyle(this.el,"display",this.notPlaced?"":"block"),this.gridster.gridRenderer.updateItem(this.el,this.$item,this.renderer),this.updateItemSize()}updateItemSize(){let e=this.$item.y*this.gridster.curRowHeight,t=this.$item.x*this.gridster.curColWidth,n=this.$item.cols*this.gridster.curColWidth-this.gridster.$options.margin,r=this.$item.rows*this.gridster.curRowHeight-this.gridster.$options.margin;this.top=e,this.left=t,!this.init&&n>0&&r>0&&(this.init=!0,this.item.initCallback&&this.item.initCallback(this.item,this),this.gridster.options.itemInitCallback&&this.gridster.options.itemInitCallback(this.item,this),this.itemInit.next({item:this.item,itemComponent:this}),this.gridster.$options.scrollToNewItems&&this.el.scrollIntoView(!1)),(n!==this.width||r!==this.height)&&(this.width=n,this.height=r,this.gridster.options.itemResizeCallback&&this.gridster.options.itemResizeCallback(this.item,this),this.itemResize.next({item:this.item,itemComponent:this}))}itemChanged(){this.gridster.options.itemChangeCallback&&this.gridster.options.itemChangeCallback(this.item,this),this.itemChange.next({item:this.item,itemComponent:this})}checkItemChanges(e,t){e.rows===t.rows&&e.cols===t.cols&&e.x===t.x&&e.y===t.y||(this.gridster.checkCollision(this.$item)?(this.$item.x=t.x||0,this.$item.y=t.y||0,this.$item.cols=t.cols||1,this.$item.rows=t.rows||1,this.setSize()):(this.item.cols=this.$item.cols,this.item.rows=this.$item.rows,this.item.x=this.$item.x,this.item.y=this.$item.y,this.gridster.calculateLayout$.next(),this.itemChanged()))}canBeDragged(){let e=this.gridster.$options.draggable.enabled,t=this.$item.dragEnabled===void 0?e:this.$item.dragEnabled;return!this.gridster.mobile&&e&&t}canBeResized(){let e=this.gridster.$options.resizable.enabled,t=this.$item.resizeEnabled===void 0?e:this.$item.resizeEnabled;return!this.gridster.mobile&&e&&t}getResizableHandles(){let e=this.gridster.$options.resizable.handles,t=this.$item.resizableHandles;return t===void 0?e:k(k({},e),t)}bringToFront(e){if(e&&e<=0)return;let t=this.getLayerIndex(),n=this.gridster.$options.maxLayerIndex;if(tn?n:r}}sendToBack(e){if(e&&e<=0)return;let t=this.getLayerIndex();if(t>0){let n=e?t-e:0;this.item.layerIndex=this.$item.layerIndex=n<0?0:n}}getLayerIndex(){return this.item.layerIndex!==void 0?this.item.layerIndex:this.gridster.$options.defaultLayerIndex!==void 0?this.gridster.$options.defaultLayerIndex:0}static \u0275fac=function(t){return new(t||o)(Q(j),Q(se),Q(jt),Q(W))};static \u0275cmp=E({type:o,selectors:[["gridster-item"]],hostVars:2,hostBindings:function(t,n){t&2&&ka("z-index",n.zIndex)},inputs:{item:"item"},outputs:{itemInit:"itemInit",itemChange:"itemChange",itemResize:"itemResize"},features:[ze],ngContentSelectors:Cu,decls:9,vars:8,consts:[[1,"gridster-item-resizable-handler","handle-s"],[1,"gridster-item-resizable-handler","handle-e"],[1,"gridster-item-resizable-handler","handle-n"],[1,"gridster-item-resizable-handler","handle-w"],[1,"gridster-item-resizable-handler","handle-se"],[1,"gridster-item-resizable-handler","handle-ne"],[1,"gridster-item-resizable-handler","handle-sw"],[1,"gridster-item-resizable-handler","handle-nw"],[1,"gridster-item-resizable-handler","handle-s",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-e",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-n",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-w",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-se",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-ne",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-sw",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-nw",3,"mousedown","touchstart"]],template:function(t,n){t&1&&(Te(),G(0),Y(1,Kv,1,0,"div",0)(2,Qv,1,0,"div",1)(3,Jv,1,0,"div",2)(4,ey,1,0,"div",3)(5,ty,1,0,"div",4)(6,iy,1,0,"div",5)(7,ny,1,0,"div",6)(8,oy,1,0,"div",7)),t&2&&(h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.s&&n.resize.resizeEnabled?1:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.e&&n.resize.resizeEnabled?2:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.n&&n.resize.resizeEnabled?3:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.w&&n.resize.resizeEnabled?4:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.se&&n.resize.resizeEnabled?5:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.ne&&n.resize.resizeEnabled?6:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.sw&&n.resize.resizeEnabled?7:-1),h(),L(n.resize.resizableHandles!=null&&n.resize.resizableHandles.nw&&n.resize.resizeEnabled?8:-1))},styles:[`gridster-item{box-sizing:border-box;z-index:1;position:absolute;overflow:hidden;transition:.3s;display:none;background:#fff;-webkit-user-select:text;user-select:text}gridster-item.gridster-item-moving{cursor:move}gridster-item.gridster-item-resizing,gridster-item.gridster-item-moving{transition:0s;z-index:2;box-shadow:0 0 5px 5px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.gridster-item-resizable-handler{position:absolute;z-index:2}.gridster-item-resizable-handler.handle-n{cursor:ns-resize;height:10px;right:0;top:0;left:0}.gridster-item-resizable-handler.handle-e{cursor:ew-resize;width:10px;bottom:0;right:0;top:0}.gridster-item-resizable-handler.handle-s{cursor:ns-resize;height:10px;right:0;bottom:0;left:0}.gridster-item-resizable-handler.handle-w{cursor:ew-resize;width:10px;left:0;top:0;bottom:0}.gridster-item-resizable-handler.handle-ne{cursor:ne-resize;width:10px;height:10px;right:0;top:0}.gridster-item-resizable-handler.handle-nw{cursor:nw-resize;width:10px;height:10px;left:0;top:0}.gridster-item-resizable-handler.handle-se{cursor:se-resize;width:0;height:0;right:0;bottom:0;border-style:solid;border-width:0 0 10px 10px;border-color:transparent}.gridster-item-resizable-handler.handle-sw{cursor:sw-resize;width:10px;height:10px;left:0;bottom:0}gridster-item:hover .gridster-item-resizable-handler.handle-se{border-color:transparent transparent #ccc} -`],encapsulation:2})}return o})();function ly(o,i){if(o&1){let e=F();l(0,"gridster-item",8)(1,"div",9)(2,"button",10),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Ls=class o{options;dashboard;itemToPush;ngOnInit(){this.options={gridType:P.Fit,compactType:ue.None,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0,initCallback:this.initItem.bind(this)},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}initItem(i,e){this.itemToPush=e}pushItem(){let i=new qn(this.itemToPush);this.itemToPush.$item.rows+=4,i.pushItems(i.fromNorth)?(i.checkPushBack(),i.setPushedItems(),this.itemToPush.setSize(),this.itemToPush.checkItemChanges(this.itemToPush.$item,this.itemToPush.item)):(this.itemToPush.$item.rows-=4,i.restoreItems()),i.destroy()}getItemComponent(){this.options.api&&this.options.api.getItemComponent&&console.log(this.options.api.getItemComponent(this.dashboard[0]))}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-api"]],decls:17,vars:2,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/api","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["mat-raised-button","","color","accent",1,"add-button","cols-2",3,"click"],["color","accent","mat-raised-button","",1,"add-button","cols-2",3,"click"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"button",4),g("click",function(){return t.pushItem()}),m(8," Resize first item and push others "),d(),l(9,"button",5),g("click",function(){return t.getItemComponent()}),m(10," Get item component in console "),d(),l(11,"button",6),g("click",function(){return t.addItem()}),l(12,"mat-icon"),m(13,"add"),d()()(),l(14,"gridster",7),ie(15,ly,5,1,"gridster-item",8,ge),d()),e&2&&(h(5),M("src","assets/api.md"),h(9),M("options",t.options),h(),ne(t.dashboard))},dependencies:[de,ce,Os,be,he,me,le,_e,se,pe],encapsulation:2,changeDetection:0})};var cy=20,Ru=(()=>{class o{_ngZone=u(W);_platform=u(Ae);_document=u(ae,{optional:!0});constructor(){}_scrolled=new N;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=cy){return this._platform.isBrowser?new Vt(t=>{this._globalSubscription||this._addGlobalListener();let n=e>0?this._scrolled.pipe(pa(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):V()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(De(r=>!r||n.indexOf(r)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((n,r)=>{this._scrollableContainsElement(r,e)&&t.push(r)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let n=kt(t),r=e.getElementRef().nativeElement;do if(n==r)return!0;while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return ua(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var dy=20,sr=(()=>{class o{_platform=u(Ae);_viewportSize;_change=new N;_changeListener=e=>{this._change.next(e)};_document=u(ae,{optional:!0});constructor(){u(W).runOutsideAngular(()=>{if(this._platform.isBrowser){let t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),n=e.documentElement,r=n.getBoundingClientRect(),s=-r.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,a=-r.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0;return{top:s,left:a}}change(e=dy){return e>0?this._change.pipe(pa(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var Xn=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({})}return o})(),Ac=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[Ai,Xn,Ai,Xn]})}return o})();var ar=class{_attachedHost;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},Oc=class extends ar{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(i,e,t,n,r){super(),this.component=i,this.viewContainerRef=e,this.injector=t,this.projectableNodes=r}},un=class extends ar{templateRef;viewContainerRef;context;injector;constructor(i,e,t,n){super(),this.templateRef=i,this.viewContainerRef=e,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},Fc=class extends ar{element;constructor(i){super(),this.element=i instanceof j?i.nativeElement:i}},Pc=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof Oc)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof un)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof Fc)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var lr=class extends Pc{outletElement;_appRef;_defaultInjector;_document;constructor(i,e,t,n,r){super(),this.outletElement=i,this._appRef=t,this._defaultInjector=n,this._document=r}attachComponentPortal(i){let e;if(i.viewContainerRef){let t=i.injector||i.viewContainerRef.injector,n=t.get(vd,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:t,ngModuleRef:n,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else e=Sr(i.component,{elementInjector:i.injector||this._defaultInjector||Je.NULL,environmentInjector:this._appRef.injector,projectableNodes:i.projectableNodes||void 0}),this._appRef.attachView(e.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(e.hostView),e.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,t=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=e.indexOf(t);n!==-1&&e.remove(n)}),this._attachedPortal=i,t}attachDomPortal=i=>{let e=i.element;e.parentNode;let t=this._document.createComment("dom-portal");e.parentNode.insertBefore(t,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{t.parentNode&&t.parentNode.replaceChild(e,t)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var Au=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({})}return o})();var Ou=Ka(),Lc=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Ke(-this._previousScrollPosition.left),i.style.top=Ke(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,t=i.style,n=e.style,r=t.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),Ou&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ou&&(t.scrollBehavior=r,n.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}};var zc=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,t,n){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=t,this._config=n}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(De(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},zs=class{enable(){}disable(){}attach(){}};function Nc(o,i){return i.some(e=>{let t=o.bottome.bottom,r=o.righte.right;return t||n||r||s})}function Fu(o,i){return i.some(e=>{let t=o.tope.bottom,r=o.lefte.right;return t||n||r||s})}var Vc=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,t,n){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=t,this._config=n}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();Nc(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},my=(()=>{class o{_scrollDispatcher=u(Ru);_viewportRuler=u(sr);_ngZone=u(W);_document=u(ae);constructor(){}noop=()=>new zs;close=e=>new zc(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new Lc(this._viewportRuler,this._document);reposition=e=>new Vc(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Zn=class{positionStrategy;scrollStrategy=new zs;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let e=Object.keys(i);for(let t of e)i[t]!==void 0&&(this[t]=i[t])}}};var Bc=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var Bu=(()=>{class o{_attachedOverlays=[];_document=u(ae);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),hy=(()=>{class o extends Bu{_ngZone=u(W,{optional:!0});add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}_keydownListener=e=>{let t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){let r=t[n]._keydownEvents;this._ngZone?this._ngZone.run(()=>r.next(e)):r.next(e);break}};static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),uy=(()=>{class o extends Bu{_platform=u(Ae);_ngZone=u(W,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(e){if(super.add(e),!this._isAttached){let t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=e=>{this._pointerDownEventTarget=It(e)};_clickListener=e=>{let t=It(e),n=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:t;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let s=r.length-1;s>-1;s--){let a=r[s];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(Pu(a.overlayElement,t)||Pu(a.overlayElement,n))break;let c=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}};static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ge(o)))(n||o)}})();static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function Pu(o,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,t=i;for(;t;){if(t===o)return!0;t=e&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var Wu=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return o})(),ju=(()=>{class o{_platform=u(Ae);_containerElement;_document=u(ae);_styleLoader=u(lt);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Qa()){let n=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;rthis._backdropClick.next(i);_backdropTransitionendHandler=i=>{this._disposeBackdrop(i.target)};_previousHostParent;_keydownEvents=new N;_outsidePointerEvents=new N;_renders=new N;_afterRenderRef;_afterNextRenderRef;constructor(i,e,t,n,r,s,a,c,p,_=!1,y){this._portalOutlet=i,this._host=e,this._pane=t,this._config=n,this._ngZone=r,this._keyboardDispatcher=s,this._document=a,this._location=c,this._outsideClickDispatcher=p,this._animationsDisabled=_,this._injector=y,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy,this._afterRenderRef=Ut(()=>wr(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Yi(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,i&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=k(k({},this._config),i),this._updateElementSize()}setDirection(i){this._config=re(k({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=Ke(this._config.width),i.height=Ke(this._config.height),i.minWidth=Ke(this._config.minWidth),i.minHeight=Ke(this._config.minHeight),i.maxWidth=Ke(this._config.maxWidth),i.maxHeight=Ke(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let i=this._backdropElement;if(i){if(this._animationsDisabled){this._disposeBackdrop(i);return}i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,e,t){let n=Cn(e||[]).filter(r=>!!r);n.length&&(t?i.classList.add(...n):i.classList.remove(...n))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let i=this._renders.pipe(Ce(mt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){let i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Lu="cdk-overlay-connected-position-bounding-box",py=/([A-Za-z%]+)$/,jc=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new N;_resizeSubscription=He.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,t,n,r){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(Lu),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._originRect,e=this._overlayRect,t=this._viewportRect,n=this._containerRect,r=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(i,n,a),p=this._getOverlayPoint(c,e,a),_=this._getOverlayFit(p,e,t,a);if(_.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(_,p,t)){r.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleArea<_.visibleArea)&&(s={overlayFit:_,overlayPoint:p,originPoint:c,position:a,overlayRect:e})}if(r.length){let a=null,c=-1;for(let p of r){let _=p.boundingBoxRect.width*p.boundingBoxRect.height*(p.position.weight||1);_>c&&(c=_,a=p)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&pn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Lu),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,t){let n;if(t.originX=="center")n=i.left+i.width/2;else{let s=this._isRtl()?i.right:i.left,a=this._isRtl()?i.left:i.right;n=t.originX=="start"?s:a}e.left<0&&(n-=e.left);let r;return t.originY=="center"?r=i.top+i.height/2:r=t.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:n,y:r}}_getOverlayPoint(i,e,t){let n;t.overlayX=="center"?n=-e.width/2:t.overlayX==="start"?n=this._isRtl()?-e.width:0:n=this._isRtl()?0:-e.width;let r;return t.overlayY=="center"?r=-e.height/2:r=t.overlayY=="top"?0:-e.height,{x:i.x+n,y:i.y+r}}_getOverlayFit(i,e,t,n){let r=Nu(e),{x:s,y:a}=i,c=this._getOffset(n,"x"),p=this._getOffset(n,"y");c&&(s+=c),p&&(a+=p);let _=0-s,y=s+r.width-t.width,I=0-a,S=a+r.height-t.height,A=this._subtractOverflows(r.width,_,y),T=this._subtractOverflows(r.height,I,S),z=A*T;return{visibleArea:z,isCompletelyWithinViewport:r.width*r.height===z,fitsInViewportVertically:T===r.height,fitsInViewportHorizontally:A==r.width}}_canFitWithFlexibleDimensions(i,e,t){if(this._hasFlexibleDimensions){let n=t.bottom-e.y,r=t.right-e.x,s=zu(this._overlayRef.getConfig().minHeight),a=zu(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||s!=null&&s<=n,p=i.fitsInViewportHorizontally||a!=null&&a<=r;return c&&p}return!1}_pushOverlayOnScreen(i,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let n=Nu(e),r=this._viewportRect,s=Math.max(i.x+n.width-r.width,0),a=Math.max(i.y+n.height-r.height,0),c=Math.max(r.top-t.top-i.y,0),p=Math.max(r.left-t.left-i.x,0),_=0,y=0;return n.width<=r.width?_=p||-s:_=i.xA&&!this._isInitialRender&&!this._growAfterOpen&&(s=i.y-A/2)}let c=e.overlayX==="start"&&!n||e.overlayX==="end"&&n,p=e.overlayX==="end"&&!n||e.overlayX==="start"&&n,_,y,I;if(p)I=t.width-i.x+this._viewportMargin*2,_=i.x-this._viewportMargin;else if(c)y=i.x,_=t.right-i.x;else{let S=Math.min(t.right-i.x+t.left,i.x),A=this._lastBoundingBoxSize.width;_=S*2,y=i.x-S,_>A&&!this._isInitialRender&&!this._growAfterOpen&&(y=i.x-A/2)}return{top:s,left:y,bottom:a,right:I,width:_,height:r}}_setBoundingBoxStyles(i,e){let t=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=Ke(t.height),n.top=Ke(t.top),n.bottom=Ke(t.bottom),n.width=Ke(t.width),n.left=Ke(t.left),n.right=Ke(t.right),e.overlayX==="center"?n.alignItems="center":n.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?n.justifyContent="center":n.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(n.maxHeight=Ke(r)),s&&(n.maxWidth=Ke(s))}this._lastBoundingBoxSize=t,pn(this._boundingBox.style,n)}_resetBoundingBoxStyles(){pn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){pn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let t={},n=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(n){let _=this._viewportRuler.getViewportScrollPosition();pn(t,this._getExactOverlayY(e,i,_)),pn(t,this._getExactOverlayX(e,i,_))}else t.position="static";let a="",c=this._getOffset(e,"x"),p=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),p&&(a+=`translateY(${p}px)`),t.transform=a.trim(),s.maxHeight&&(n?t.maxHeight=Ke(s.maxHeight):r&&(t.maxHeight="")),s.maxWidth&&(n?t.maxWidth=Ke(s.maxWidth):r&&(t.maxWidth="")),pn(this._pane.style,t)}_getExactOverlayY(i,e,t){let n={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,t)),i.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;n.bottom=`${s-(r.y+this._overlayRect.height)}px`}else n.top=Ke(r.y);return n}_getExactOverlayX(i,e,t){let n={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,t));let s;if(this._isRtl()?s=i.overlayX==="end"?"left":"right":s=i.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;n.right=`${a-(r.x+this._overlayRect.width)}px`}else n.left=Ke(r.x);return n}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Fu(i,t),isOriginOutsideView:Nc(i,t),isOverlayClipped:Fu(e,t),isOverlayOutsideView:Nc(e,t)}}_subtractOverflows(i,...e){return e.reduce((t,n)=>t-Math.max(n,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+i-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Cn(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){let i=this._origin;if(i instanceof j)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,t=i.height||0;return{top:i.y,bottom:i.y+t,left:i.x,right:i.x+e,height:t,width:e}}};function pn(o,i){for(let e in i)i.hasOwnProperty(e)&&(o[e]=i[e]);return o}function zu(o){if(typeof o!="number"&&o!=null){let[i,e]=o.split(py);return!e||e==="px"?parseFloat(i):null}return o||null}function Nu(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function fy(o,i){return o===i?!0:o.isOriginClipped===i.isOriginClipped&&o.isOriginOutsideView===i.isOriginOutsideView&&o.isOverlayClipped===i.isOverlayClipped&&o.isOverlayOutsideView===i.isOverlayOutsideView}var Vu="cdk-global-overlay-wrapper",$c=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(Vu),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:n,height:r,maxWidth:s,maxHeight:a}=t,c=(n==="100%"||n==="100vw")&&(!s||s==="100%"||s==="100vw"),p=(r==="100%"||r==="100vh")&&(!a||a==="100%"||a==="100vh"),_=this._xPosition,y=this._xOffset,I=this._overlayRef.getConfig().direction==="rtl",S="",A="",T="";c?T="flex-start":_==="center"?(T="center",I?A=y:S=y):I?_==="left"||_==="end"?(T="flex-end",S=y):(_==="right"||_==="start")&&(T="flex-start",A=y):_==="left"||_==="start"?(T="flex-start",S=y):(_==="right"||_==="end")&&(T="flex-end",A=y),i.position=this._cssPosition,i.marginLeft=c?"0":S,i.marginTop=p?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":A,e.justifyContent=T,e.alignItems=p?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Vu),t.justifyContent=t.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},gy=(()=>{class o{_viewportRuler=u(sr);_document=u(ae);_platform=u(Ae);_overlayContainer=u(ju);constructor(){}global(){return new $c}flexibleConnectedTo(e){return new jc(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Xt=(()=>{class o{scrollStrategies=u(my);_overlayContainer=u(ju);_positionBuilder=u(gy);_keyboardDispatcher=u(hy);_injector=u(Je);_ngZone=u(W);_document=u(ae);_directionality=u(ii);_location=u(xn);_outsideClickDispatcher=u(uy);_animationsModuleType=u(pt,{optional:!0});_idGenerator=u(yt);_appRef;_styleLoader=u(lt);constructor(){}create(e){this._styleLoader.load(Wu);let t=this._createHostElement(),n=this._createPaneElement(t),r=this._createPortalOutlet(n),s=new Zn(e);return s.direction=s.direction||this._directionality.value,new Wc(r,t,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Qt))}position(){return this._positionBuilder}_createPaneElement(e){let t=this._document.createElement("div");return t.id=this._idGenerator.getId("cdk-overlay-"),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(li)),new lr(e,null,this._appRef,this._injector,this._document)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),_y=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],$u=new R("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=u(Xt);return()=>o.scrollStrategies.reposition()}}),cr=(()=>{class o{elementRef=u(j);constructor(){}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return o})(),Hc=(()=>{class o{_overlay=u(Xt);_dir=u(ii,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=He.EMPTY;_attachSubscription=He.EMPTY;_detachSubscription=He.EMPTY;_positionSubscription=He.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=u($u);_disposeOnNavigation=!1;_ngZone=u(W);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new H;positionChange=new H;attach=new H;detach=new H;overlayKeydown=new H;overlayOutsideClick=new H;constructor(){let e=u(vn),t=u(Jt);this._templatePortal=new un(e,t),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_y);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode===27&&!this.disableClose&&!Ht(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{let n=this._getOriginElement(),r=It(t);(!n||n!==r&&!n.contains(r))&&this.overlayOutsideClick.next(t)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Zn({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(t.width=this.width),(this.height||this.height===0)&&(t.height=this.height),(this.minWidth||this.minWidth===0)&&(t.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){let t=this.positions.map(n=>({originX:n.originX,originY:n.originY,overlayX:n.overlayX,overlayY:n.overlayY,offsetX:n.offsetX||this.offsetX,offsetY:n.offsetY||this.offsetY,panelClass:n.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof cr?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof cr?this.origin.elementRef.nativeElement:this.origin instanceof j?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(td(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",q],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",q],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",q],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",q],push:[2,"cdkConnectedOverlayPush","push",q],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",q]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Fe,ze]})}return o})();function by(o){return()=>o.scrollStrategies.reposition()}var vy={provide:$u,deps:[Xt],useFactory:by},Ns=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({providers:[Xt,vy],imports:[Ai,Au,Ac,Ac]})}return o})();var Gc=class{_box;_destroyed=new N;_resizeSubject=new N;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new Vt(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),t.unsubscribe(),this._elementObservables.delete(i)}}).pipe(De(e=>e.some(t=>t.target===i)),io({bufferSize:1,refCount:!0}),Ce(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Uu=(()=>{class o{_observers=new Map;_ngZone=u(W);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,t){let n=t?.box||"content-box";return this._observers.has(n)||this._observers.set(n,new Gc(n)),this._observers.get(n).observe(e)}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var yy=["notch"],xy=["matFormFieldNotchedOutline",""],wy=["*"],Cy=["textField"],ky=["iconPrefixContainer"],My=["textPrefixContainer"],Iy=["iconSuffixContainer"],Ey=["textSuffixContainer"],Sy=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ty=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Dy(o,i){o&1&&D(0,"span",21)}function Ry(o,i){if(o&1&&(l(0,"label",20),G(1,1),Y(2,Dy,1,0,"span",21),d()),o&2){let e=f(2);M("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),fe("for",e._control.disableAutomaticLabeling?null:e._control.id),h(2),L(!e.hideRequiredMarker&&e._control.required?2:-1)}}function Ay(o,i){if(o&1&&Y(0,Ry,3,5,"label",20),o&2){let e=f();L(e._hasFloatingLabel()?0:-1)}}function Oy(o,i){o&1&&D(0,"div",7)}function Fy(o,i){}function Py(o,i){if(o&1&&Y(0,Fy,0,0,"ng-template",13),o&2){f(2);let e=At(1);M("ngTemplateOutlet",e)}}function Ly(o,i){if(o&1&&(l(0,"div",9),Y(1,Py,1,1,null,13),d()),o&2){let e=f();M("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),h(),L(e._forceDisplayInfixLabel()?-1:1)}}function zy(o,i){o&1&&(l(0,"div",10,2),G(2,2),d())}function Ny(o,i){o&1&&(l(0,"div",11,3),G(2,3),d())}function Vy(o,i){}function By(o,i){if(o&1&&Y(0,Vy,0,0,"ng-template",13),o&2){f();let e=At(1);M("ngTemplateOutlet",e)}}function Wy(o,i){o&1&&(l(0,"div",14,4),G(2,4),d())}function jy(o,i){o&1&&(l(0,"div",15,5),G(2,5),d())}function $y(o,i){o&1&&D(0,"div",16)}function Uy(o,i){if(o&1&&(l(0,"div",18),G(1,6),d()),o&2){let e=f();M("@transitionMessages",e._subscriptAnimationState)}}function Hy(o,i){if(o&1&&(l(0,"mat-hint",22),m(1),d()),o&2){let e=f(2);M("id",e._hintLabelId),h(),Ze(e.hintLabel)}}function Gy(o,i){if(o&1&&(l(0,"div",19),Y(1,Hy,2,2,"mat-hint",22),G(2,7),D(3,"div",23),G(4,8),d()),o&2){let e=f();M("@transitionMessages",e._subscriptAnimationState),h(),L(e.hintLabel?1:-1)}}var Bs=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["mat-label"]]})}return o})(),Yy=new R("MatError");var Hu=(()=>{class o{align="start";id=u(yt).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,n){t&2&&(Ei("id",n.id),fe("align",null),te("mat-mdc-form-field-hint-end",n.align==="end"))},inputs:{align:"align",id:"id"}})}return o})(),qy=new R("MatPrefix");var Xy=new R("MatSuffix");var Qu=new R("FloatingLabelParent"),Gu=(()=>{class o{_elementRef=u(j);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=u(Uu);_ngZone=u(W);_parent=u(Qu);_resizeSubscription=new He;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return Zy(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,n){t&2&&te("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return o})();function Zy(o){let i=o;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var Yu="mdc-line-ripple--active",Vs="mdc-line-ripple--deactivating",qu=(()=>{class o{_elementRef=u(j);constructor(){u(W).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Vs),e.add(Yu)}deactivate(){this._elementRef.nativeElement.classList.add(Vs)}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,n=t.contains(Vs);e.propertyName==="opacity"&&n&&t.remove(Yu,Vs)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return o})(),Xu=(()=>{class o{_elementRef=u(j);_ngZone=u(W);open=!1;_notch;constructor(){}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,n){if(t&1&&Pe(yy,5),t&2){let r;J(r=ee())&&(n._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,n){t&2&&te("mdc-notched-outline--notched",n.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:xy,ngContentSelectors:wy,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,n){t&1&&(Te(),D(0,"div",1),l(1,"div",2,0),G(3),d(),D(4,"div",3))},encapsulation:2,changeDetection:0})}return o})(),Ky={transitionMessages:Si("transitionMessages",[Zi("enter",Mt({opacity:1,transform:"translateY(0%)"})),ei("void => enter",[Mt({opacity:0,transform:"translateY(-5px)"}),mi("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},dr=(()=>{class o{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o})}return o})();var mr=new R("MatFormField"),Qy=new R("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Zu="fill",Jy="auto",Ku="fixed",e0="translateY(-50%)",We=(()=>{class o{_elementRef=u(j);_changeDetectorRef=u(qe);_dir=u(ii);_platform=u(Ae);_idGenerator=u(yt);_defaults=u(Qy,{optional:!0});_animationMode=u(pt,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=bd(Bs);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ot(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Jy}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(e){let t=this._appearance,n=e||this._defaults?.appearance||Zu;this._appearance=n,this._appearance==="outline"&&this._appearance!==t&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=Zu;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Ku}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Ku}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new N;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=u(Je);constructor(){let e=this._defaults;e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=ci(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let t=this._control,n="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(n+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(n+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(ut([void 0,void 0]),B(()=>[t.errorState,t.userAriaDescribedBy]),ba(),De(([[r,s],[a,c]])=>r!==a||s!==c)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(Ce(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),mt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),wr(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(Ce(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=ci(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let t=this._hintChildren?this._hintChildren.find(r=>r.align==="start"):null,n=this._hintChildren?this._hintChildren.find(r=>r.align==="end"):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let t=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,s=this._textSuffixContainer?.nativeElement,a=t?.getBoundingClientRect().width??0,c=n?.getBoundingClientRect().width??0,p=r?.getBoundingClientRect().width??0,_=s?.getBoundingClientRect().width??0,y=this._dir.value==="rtl"?"-1":"1",I=`${a+c}px`,A=`calc(${y} * (${I} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( - --mat-mdc-form-field-label-transform, - ${e0} translateX(${A}) - )`;let T=a+c+p+_;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${T}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-form-field"]],contentQueries:function(t,n,r){if(t&1&&(Cd(r,n._labelChild,Bs,5),Ye(r,dr,5),Ye(r,qy,5),Ye(r,Xy,5),Ye(r,Yy,5),Ye(r,Hu,5)),t&2){kd();let s;J(s=ee())&&(n._formFieldControl=s.first),J(s=ee())&&(n._prefixChildren=s),J(s=ee())&&(n._suffixChildren=s),J(s=ee())&&(n._errorChildren=s),J(s=ee())&&(n._hintChildren=s)}},viewQuery:function(t,n){if(t&1&&(Pe(Cy,5),Pe(ky,5),Pe(My,5),Pe(Iy,5),Pe(Ey,5),Pe(Gu,5),Pe(Xu,5),Pe(qu,5)),t&2){let r;J(r=ee())&&(n._textField=r.first),J(r=ee())&&(n._iconPrefixContainer=r.first),J(r=ee())&&(n._textPrefixContainer=r.first),J(r=ee())&&(n._iconSuffixContainer=r.first),J(r=ee())&&(n._textSuffixContainer=r.first),J(r=ee())&&(n._floatingLabel=r.first),J(r=ee())&&(n._notchedOutline=r.first),J(r=ee())&&(n._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(t,n){t&2&&te("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-no-animations",n._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",n.appearance=="fill")("mat-form-field-appearance-outline",n.appearance=="outline")("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-focused",n._control.focused)("mat-primary",n.color!=="accent"&&n.color!=="warn")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ve([{provide:mr,useExisting:o},{provide:Qu,useExisting:o}])],ngContentSelectors:Ty,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,n){if(t&1){let r=F();Te(Sy),Y(0,Ay,1,1,"ng-template",null,0,Sa),l(2,"div",6,1),g("click",function(a){return b(r),v(n._control.onContainerClick(a))}),Y(4,Oy,1,0,"div",7),l(5,"div",8),Y(6,Ly,2,2,"div",9)(7,zy,3,0,"div",10)(8,Ny,3,0,"div",11),l(9,"div",12),Y(10,By,1,1,null,13),G(11),d(),Y(12,Wy,3,0,"div",14)(13,jy,3,0,"div",15),d(),Y(14,$y,1,0,"div",16),d(),l(15,"div",17),Y(16,Uy,2,1,"div",18)(17,Gy,5,2,"div",19),d()}if(t&2){let r;h(2),te("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),h(2),L(!n._hasOutline()&&!n._control.disabled?4:-1),h(2),L(n._hasOutline()?6:-1),h(),L(n._hasIconPrefix?7:-1),h(),L(n._hasTextPrefix?8:-1),h(2),L(!n._hasOutline()||n._forceDisplayInfixLabel()?10:-1),h(2),L(n._hasTextSuffix?12:-1),h(),L(n._hasIconSuffix?13:-1),h(),L(n._hasOutline()?-1:14),h(),te("mat-mdc-form-field-subscript-dynamic-size",n.subscriptSizing==="dynamic"),h(),L((r=n._getDisplayedMessages())==="error"?16:r==="hint"?17:-1)}},dependencies:[Gu,Xu,Ad,qu,Hu],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Ky.transitionMessages]},changeDetection:0})}return o})(),hr=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,Br,ke]})}return o})();var t0=["trigger"],i0=["panel"],n0=[[["mat-select-trigger"]],"*"],o0=["mat-select-trigger","*"];function r0(o,i){if(o&1&&(l(0,"span",4),m(1),d()),o&2){let e=f();h(),Ze(e.placeholder)}}function s0(o,i){o&1&&G(0)}function a0(o,i){if(o&1&&(l(0,"span",11),m(1),d()),o&2){let e=f(2);h(),Ze(e.triggerValue)}}function l0(o,i){if(o&1&&(l(0,"span",5),Y(1,s0,1,0)(2,a0,2,1,"span",11),d()),o&2){let e=f();h(),L(e.customTrigger?1:2)}}function c0(o,i){if(o&1){let e=F();l(0,"div",12,1),g("@transformPanel.done",function(n){b(e);let r=f();return v(r._panelDoneAnimatingStream.next(n.toState))})("keydown",function(n){b(e);let r=f();return v(r._handleKeydown(n))}),G(2,1),d()}if(o&2){let e=f();wd("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),M("ngClass",e.panelClass)("@transformPanel","showing"),fe("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var d0={transformPanelWrap:Si("transformPanelWrap",[ei("* => void",Ld("@transformPanel",[Pd()],{optional:!0}))]),transformPanel:Si("transformPanel",[Zi("void",Mt({opacity:0,transform:"scale(1, 0.8)"})),ei("void => showing",mi("120ms cubic-bezier(0, 0, 0.2, 1)",Mt({opacity:1,transform:"scale(1, 1)"}))),ei("* => void",mi("100ms linear",Mt({opacity:0})))])};var Ju=new R("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let o=u(Xt);return()=>o.scrollStrategies.reposition()}});function m0(o){return()=>o.scrollStrategies.reposition()}var h0=new R("MAT_SELECT_CONFIG"),u0={provide:Ju,deps:[Xt],useFactory:m0},p0=new R("MatSelectTrigger"),Yc=class{source;value;constructor(i,e){this.source=i,this.value=e}},gt=(()=>{class o{_viewportRuler=u(sr);_changeDetectorRef=u(qe);_elementRef=u(j);_dir=u(ii,{optional:!0});_idGenerator=u(yt);_parentFormField=u(mr,{optional:!0});ngControl=u(pi,{self:!0,optional:!0});_liveAnnouncer=u(vm);_defaultOptions=u(h0,{optional:!0});options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let n=this.panel.nativeElement,r=Sm(e,this.options,this.optionGroups),s=t._getHostElement();e===0&&r===1?n.scrollTop=0:n.scrollTop=Tm(s.offsetTop,s.offsetHeight,n.scrollTop,n.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Yc(this,e)}_scrollStrategyFactory=u(Ju);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new N;_errorStateTracker;stateChanges=new N;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new N;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Ln.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";_initialized=new N;optionSelectionChanges=to(()=>{let e=this.options;return e?e.changes.pipe(ut(e),$e(()=>mt(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe($e(()=>this.optionSelectionChanges))});openedChange=new H;_openedStream=this.openedChange.pipe(De(e=>e),B(()=>{}));_closedStream=this.openedChange.pipe(De(e=>!e),B(()=>{}));selectionChange=new H;valueChange=new H;constructor(){let e=u(qr),t=u(So,{optional:!0}),n=u(To,{optional:!0}),r=u(new Hi("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Dn(e,this.ngControl,n,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Zr(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ji(),Ce(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Ce(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Ce(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ut(null),Ce(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?n.setAttribute("aria-labelledby",e):n.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&nl(this._trackedModal,"aria-owns",t),gm(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;nl(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,n=t===40||t===38||t===37||t===39,r=t===13||t===32,s=this._keyManager;if(!s.isTyping()&&r&&!Ht(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){let a=this.selected;s.onKeydown(e);let c=this.selected;c&&a!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,n=e.keyCode,r=n===40||n===38,s=t.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!s&&(n===13||n===32)&&t.activeItem&&!Ht(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!s&&this._multiple&&n===65&&e.ctrlKey){e.preventDefault();let a=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(a?c.select():c.deselect())})}else{let a=t.activeItemIndex;t.onKeydown(e),this._multiple&&r&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ht(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(n=>{if(this._selectionModel.isSelected(n))return!1;try{return n.value!=null&&this._compareWith(n.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof cr?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Ur(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=mt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ce(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),mt(...this.options.map(t=>t._stateChanges)).pipe(Ce(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let n=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(n=>n.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-select"]],contentQueries:function(t,n,r){if(t&1&&(Ye(r,p0,5),Ye(r,st,5),Ye(r,ml,5)),t&2){let s;J(s=ee())&&(n.customTrigger=s.first),J(s=ee())&&(n.options=s),J(s=ee())&&(n.optionGroups=s)}},viewQuery:function(t,n){if(t&1&&(Pe(t0,5),Pe(i0,5),Pe(Hc,5)),t&2){let r;J(r=ee())&&(n.trigger=r.first),J(r=ee())&&(n.panel=r.first),J(r=ee())&&(n._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,n){t&1&&g("keydown",function(s){return n._handleKeydown(s)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),t&2&&(fe("id",n.id)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),te("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",q],disableRipple:[2,"disableRipple","disableRipple",q],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Xi(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",q],placeholder:"placeholder",required:[2,"required","required",q],multiple:[2,"multiple","multiple",q],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",q],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Xi],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ve([{provide:dr,useExisting:o},{provide:dl,useExisting:o}]),Fe,ze],ngContentSelectors:o0,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,n){if(t&1){let r=F();Te(n0),l(0,"div",2,0),g("click",function(){return b(r),v(n.open())}),l(3,"div",3),Y(4,r0,2,1,"span",4)(5,l0,3,1,"span",5),d(),l(6,"div",6)(7,"div",7),Ui(),l(8,"svg",8),D(9,"path",9),d()()()(),Y(10,c0,3,9,"ng-template",10),g("backdropClick",function(){return b(r),v(n.close())})("attach",function(){return b(r),v(n._onAttached())})("detach",function(){return b(r),v(n.close())})}if(t&2){let r=At(1);h(3),fe("id",n._valueId),h(),L(n.empty?4:5),h(6),M("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||r)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)}},dependencies:[cr,Hc,Dd],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}'],encapsulation:2,data:{animation:[d0.transformPanel]},changeDetection:0})}return o})();var _t=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({providers:[u0],imports:[Ns,hl,ke,Xn,hr,hl,ke]})}return o})();function f0(o,i){if(o&1){let e=F();l(0,"gridster-item",20)(1,"div",21)(2,"button",22),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Ws=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,compactType:ue.None,maxCols:10,maxRows:10,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-compact"]],decls:41,vars:3,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/compact","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["aria-label","Compact type","placeholder","Compact Type",3,"ngModelChange","ngModel"],["value","none"],["value","compactUp"],["value","compactLeft"],["value","compactLeft&Up"],["value","compactUp&Left"],["value","compactRight"],["value","compactUp&Right"],["value","compactRight&Up"],["value","compactDown"],["value","compactDown&Left"],["value","compactLeft&Down"],["value","compactDown&Right"],["value","compactRight&Down"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"mat-select",4),C("ngModelChange",function(r){return w(t.options.compactType,r)||(t.options.compactType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(9,"mat-option",5),m(10,"None"),d(),l(11,"mat-option",6),m(12,"Compact Up"),d(),l(13,"mat-option",7),m(14,"Compact Left"),d(),l(15,"mat-option",8),m(16,"Compact Left & Up"),d(),l(17,"mat-option",9),m(18,"Compact Up & Left"),d(),l(19,"mat-option",10),m(20,"Compact Right"),d(),l(21,"mat-option",11),m(22,"Compact Up & Right"),d(),l(23,"mat-option",12),m(24,"Compact Right & Up"),d(),l(25,"mat-option",13),m(26,"Compact Down"),d(),l(27,"mat-option",14),m(28,"Compact Down & Left"),d(),l(29,"mat-option",15),m(30,"Compact Left & Down"),d(),l(31,"mat-option",16),m(32,"Compact Down & Right"),d(),l(33,"mat-option",17),m(34,"Compact Right & Down"),d()()(),l(35,"button",18),g("click",function(){return t.addItem()}),l(36,"mat-icon"),m(37,"add"),d()()(),l(38,"gridster",19),ie(39,f0,5,1,"gridster-item",20,ge),d()),e&2&&(h(5),M("src","assets/compact.md"),h(3),x("ngModel",t.options.compactType),h(30),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Me,xe,de,ce,be,he,me,_t,We,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};function g0(o,i){if(o&1){let e=F();l(0,"gridster-item",10)(1,"div",11)(2,"button",12),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var js=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-display-grid"]],decls:21,vars:3,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/displayGrid","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["aria-label","Display grid lines","placeholder","Display grid lines",3,"ngModelChange","ngModel"],["value","always"],["value","onDrag&Resize"],["value","none"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"mat-select",4),C("ngModelChange",function(r){return w(t.options.displayGrid,r)||(t.options.displayGrid=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(9,"mat-option",5),m(10,"Always"),d(),l(11,"mat-option",6),m(12,"On Drag & Resize"),d(),l(13,"mat-option",7),m(14,"None"),d()()(),l(15,"button",8),g("click",function(){return t.addItem()}),l(16,"mat-icon"),m(17,"add"),d()()(),l(18,"gridster",9),ie(19,g0,5,1,"gridster-item",10,ge),d()),e&2&&(h(5),M("src","assets/displayGrid.md"),h(3),x("ngModel",t.options.displayGrid),h(10),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Me,xe,de,ce,be,he,me,_t,We,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};var _0=["input"],b0=["label"],v0=["*"],y0=new R("mat-checkbox-default-options",{providedIn:"root",factory:tp});function tp(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var bt=function(o){return o[o.Init=0]="Init",o[o.Checked=1]="Checked",o[o.Unchecked=2]="Unchecked",o[o.Indeterminate=3]="Indeterminate",o}(bt||{}),x0={provide:Eo,useExisting:Rt(()=>Oe),multi:!0},qc=class{source;checked},ep=tp(),Oe=(()=>{class o{_elementRef=u(j);_changeDetectorRef=u(qe);_ngZone=u(W);_animationMode=u(pt,{optional:!0});_options=u(y0,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new qc;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new H;indeterminateChange=new H;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=bt.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){u(lt).load(ui);let e=u(new Hi("tabindex"),{optional:!0});this._options=this._options||ep,this.color=this._options.color||ep.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=u(yt).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate}set indeterminate(e){let t=e!=this._indeterminate;this._indeterminate=e,t&&(this._indeterminate?this._transitionCheckState(bt.Indeterminate):this._transitionCheckState(this.checked?bt.Checked:bt.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_indeterminate=!1;_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,n=this._getAnimationTargetElement();if(!(t===e||!n)&&(this._currentAnimationClass&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(r)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?bt.Checked:bt.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if(this._animationMode==="NoopAnimations")return"";switch(e){case bt.Init:if(t===bt.Checked)return this._animationClasses.uncheckedToChecked;if(t==bt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case bt.Unchecked:return t===bt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case bt.Checked:return t===bt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case bt.Indeterminate:return t===bt.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-checkbox"]],viewQuery:function(t,n){if(t&1&&(Pe(_0,5),Pe(b0,5)),t&2){let r;J(r=ee())&&(n._inputElement=r.first),J(r=ee())&&(n._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(t,n){t&2&&(Ei("id",n.id),fe("tabindex",null)("aria-label",null)("aria-labelledby",null),$t(n.color?"mat-"+n.color:"mat-accent"),te("_mat-animation-noopable",n._animationMode==="NoopAnimations")("mdc-checkbox--disabled",n.disabled)("mat-mdc-checkbox-disabled",n.disabled)("mat-mdc-checkbox-checked",n.checked)("mat-mdc-checkbox-disabled-interactive",n.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",q],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",q],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",q],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Xi(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",q],checked:[2,"checked","checked",q],disabled:[2,"disabled","disabled",q],indeterminate:[2,"indeterminate","indeterminate",q]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ve([x0,{provide:on,useExisting:o,multi:!0}]),Fe,ze],ngContentSelectors:v0,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(t,n){if(t&1){let r=F();Te(),l(0,"div",3),g("click",function(a){return b(r),v(n._preventBubblingFromLabel(a))}),l(1,"div",4,0)(3,"div",5),g("click",function(){return b(r),v(n._onTouchTargetClick())}),d(),l(4,"input",6,1),g("blur",function(){return b(r),v(n._onBlur())})("click",function(){return b(r),v(n._onInputClick())})("change",function(a){return b(r),v(n._onInteractionEvent(a))}),d(),D(6,"div",7),l(7,"div",8),Ui(),l(8,"svg",9),D(9,"path",10),d(),ya(),D(10,"div",11),d(),D(11,"div",12),d(),l(12,"label",13,2),G(14),d()()}if(t&2){let r=At(2);M("labelPosition",n.labelPosition),h(4),te("mdc-checkbox--selected",n.checked),M("checked",n.checked)("indeterminate",n.indeterminate)("disabled",n.disabled&&!n.disabledInteractive)("id",n.inputId)("required",n.required)("tabIndex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex),fe("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("aria-checked",n.indeterminate?"mixed":null)("aria-controls",n.ariaControls)("aria-disabled",n.disabled&&n.disabledInteractive?!0:null)("aria-expanded",n.ariaExpanded)("aria-owns",n.ariaOwns)("name",n.name)("value",n.value),h(7),M("matRippleTrigger",r)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),h(),M("for",n.inputId)}},dependencies:[xo,Rm],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover .mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return o})();var je=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[Oe,ke,ke]})}return o})();var w0=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0})}return o})(),ip=ti({passive:!0}),np=(()=>{class o{_platform=u(Ae);_ngZone=u(W);_styleLoader=u(lt);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Kt;this._styleLoader.load(w0);let t=kt(e),n=this._monitoredElements.get(t);if(n)return n.subject;let r=new N,s="cdk-text-field-autofilled",a=c=>{c.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(s)?(t.classList.add(s),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(s)&&(t.classList.remove(s),this._ngZone.run(()=>r.next({target:c.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",a,ip),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:r,unlisten:()=>{t.removeEventListener("animationstart",a,ip)}}),r}stopMonitoring(e){let t=kt(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static \u0275fac=function(t){return new(t||o)};static \u0275prov=O({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var op=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({})}return o})();var C0=new R("MAT_INPUT_VALUE_ACCESSOR"),k0=["button","checkbox","file","hidden","image","radio","range","reset","submit"],M0=new R("MAT_INPUT_CONFIG"),et=(()=>{class o{_elementRef=u(j);_platform=u(Ae);ngControl=u(pi,{optional:!0,self:!0});_autofillMonitor=u(np);_ngZone=u(W);_formField=u(mr,{optional:!0});_uid=u(yt).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_webkitBlinkWheelListenerAttached=!1;_config=u(M0,{optional:!0});_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new N;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Ot(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(Ln.required)??!1}set required(e){this._required=Ot(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Za().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ot(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>Za().has(e));constructor(){let e=u(So,{optional:!0}),t=u(To,{optional:!0}),n=u(qr),r=u(C0,{optional:!0,self:!0}),s=this._elementRef.nativeElement,a=s.nodeName.toLowerCase();r?qi(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=s,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{s.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Dn(n,this.ngControl,t,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=a==="select",this._isTextarea=a==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=s.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Er(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let t=this._elementRef.nativeElement;t.type==="number"?(t.type="text",t.setSelectionRange(0,0),t.type="number"):t.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){k0.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused&&!this.disabled||!this.empty}setDescribedByIds(e){let t=this._elementRef.nativeElement,n=t.getAttribute("aria-describedby"),r;if(n){let s=this._formFieldDescribedBy||e;r=e.concat(n.split(" ").filter(a=>a&&!s.includes(a)))}else r=e;this._formFieldDescribedBy=e,r.length?t.setAttribute("aria-describedby",r.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let t=e.target;!t.value&&t.selectionStart===0&&t.selectionEnd===0&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&this._type!=="number"&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(t,n){t&1&&g("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),t&2&&(Ei("id",n.id)("disabled",n.disabled&&!n.disabledInteractive)("required",n.required),fe("name",n.name||null)("readonly",n._getReadonlyAttribute())("aria-disabled",n.disabled&&n.disabledInteractive?"true":null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required)("id",n.id),te("mat-input-server",n._isServer)("mat-mdc-form-field-textarea-control",n._isInFormField&&n._isTextarea)("mat-mdc-form-field-input-control",n._isInFormField)("mat-mdc-input-disabled-interactive",n.disabledInteractive)("mdc-text-field__input",n._isInFormField)("mat-mdc-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",q]},exportAs:["matInput"],features:[Ve([{provide:dr,useExisting:o}]),Fe,ze]})}return o})(),tt=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({imports:[ke,hr,hr,op,ke]})}return o})();function I0(o,i){if(o&1){let e=F();l(0,"div",3)(1,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.enabled,n)||(r.options.draggable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(2," Drag Items "),d(),l(3,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.pushItems,n)||(r.options.pushItems=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(4," Push Items "),d(),l(5,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.dropOverItems,n)||(r.options.draggable.dropOverItems=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(6," Allow Drop Over Items "),d(),l(7,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.ignoreContent,n)||(r.options.draggable.ignoreContent=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(8," Ignore Content "),d(),l(9,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.disableScrollVertical,n)||(r.options.disableScrollVertical=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(10," Disable Vertical Scroll "),d(),l(11,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.disableScrollHorizontal,n)||(r.options.disableScrollHorizontal=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(12," Disable Horizontal Scroll "),d(),l(13,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.enableBoundaryControl,n)||(r.options.enableBoundaryControl=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(14," Enable Boundary Control "),d(),l(15,"mat-form-field")(16,"input",7),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.delayStart,n)||(r.options.draggable.delayStart=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(17,"mat-form-field")(18,"input",8),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.dragHandleClass,n)||(r.options.draggable.dragHandleClass=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(19,"mat-form-field")(20,"input",9),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.ignoreContentClass,n)||(r.options.draggable.ignoreContentClass=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(21,"button",10),g("click",function(){b(e);let n=f();return v(n.addItem())}),l(22,"mat-icon"),m(23,"add"),d()()()}if(o&2){let e=f();h(),x("ngModel",e.options.draggable.enabled),h(2),x("ngModel",e.options.pushItems),h(2),x("ngModel",e.options.draggable.dropOverItems),h(2),x("ngModel",e.options.draggable.ignoreContent),h(2),x("ngModel",e.options.disableScrollVertical),h(2),x("ngModel",e.options.disableScrollHorizontal),h(2),x("ngModel",e.options.enableBoundaryControl),h(3),x("ngModel",e.options.draggable.delayStart),h(2),x("ngModel",e.options.draggable.dragHandleClass),h(2),x("ngModel",e.options.draggable.ignoreContentClass)}}function E0(o,i){o&1&&(l(0,"div",12)(1,"div",15)(2,"span"),m(3,"Some content to select and click without dragging the widget"),d(),l(4,"a",16),m(5,"Link to Google"),d()()())}function S0(o,i){if(o&1){let e=F();l(0,"div",13)(1,"button",17)(2,"mat-icon"),m(3,"open_with"),d()(),l(4,"button",18),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(5,"mat-icon"),m(6,"delete"),d()()()}}function T0(o,i){if(o&1&&(l(0,"label"),m(1),d()),o&2){let e=f().$implicit;h(),Ze(e.label)}}function D0(o,i){if(o&1){let e=F();l(0,"button",19),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(1,"mat-icon"),m(2,"delete"),d()()}}function R0(o,i){if(o&1&&(l(0,"gridster-item",5)(1,"div",11),Y(2,E0,6,0,"div",12)(3,S0,7,0,"div",13)(4,T0,2,1,"label")(5,D0,3,0,"button",14),d()()),o&2){let e=i.$implicit;M("item",e),h(2),L(e.hasContent?2:-1),h(),L(e.hasContent?3:-1),h(),L(e.hasContent?-1:4),h(),L(e.hasContent?-1:5)}}var $s=class o{options;dashboard;static eventStart(i,e,t){console.info("eventStart",i,e,t)}static eventStop(i,e,t){console.info("eventStop",i,e,t)}static overlapEvent(i,e,t){console.log("overlap",i,e,t)}ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!0,swap:!1,draggable:{delayStart:0,enabled:!0,ignoreContentClass:"gridster-item-content",ignoreContent:!1,dragHandleClass:"drag-handler",stop:o.eventStop,start:o.eventStart,dropOverItems:!1,dropOverItemsCallback:o.overlapEvent},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2,hasContent:!0},{cols:1,rows:1,y:0,x:4},{cols:1,rows:1,y:2,x:5},{cols:1,rows:1,y:1,x:0},{cols:1,rows:1,y:1,x:0},{cols:2,rows:2,y:3,x:5,minItemRows:2,minItemCols:2,label:"Min rows & cols = 2"},{cols:2,rows:2,y:2,x:0,maxItemRows:2,maxItemCols:2,label:"Max rows & cols = 2"},{cols:2,rows:1,y:2,x:2,dragEnabled:!0,resizeEnabled:!0,label:"Drag&Resize Enabled"},{cols:1,rows:1,y:2,x:4,dragEnabled:!1,resizeEnabled:!1,label:"Drag&Resize Disabled"},{cols:1,rows:1,y:2,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-drag"]],decls:10,vars:3,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/drag","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"options"],[3,"item"],[3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Delay Start ms",3,"ngModelChange","ngModel"],["matInput","","type","text","placeholder","Drag Handle Class",3,"ngModelChange","ngModel"],["matInput","","type","text","placeholder","Ignore Content Class",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[1,"button-holder"],[1,"gridster-item-content"],[1,"item-buttons"],["mat-mini-fab",""],[1,"stuff"],["href","https://www.google.com","target","_blank"],["mat-icon-button","",1,"drag-handler"],["mat-icon-button","",1,"remove-button",3,"mousedown","touchstart"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),Y(6,I0,24,10,"div",3),l(7,"gridster",4),ie(8,R0,6,5,"gridster-item",5,ge),d()),e&2&&(h(5),M("src","assets/drag.md"),h(),L(t.options.draggable?6:-1),h(),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,zi,be,je,Oe,he,me,tt,et,We,le,_e,se,pe],encapsulation:2,changeDetection:0})};var Us=class o{widget;resizeEvent;resizeSub;ngOnInit(){this.resizeSub=this.resizeEvent.subscribe(i=>{i===this.widget&&console.log(i)})}ngOnDestroy(){this.resizeSub.unsubscribe()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-widget-a"]],inputs:{widget:"widget",resizeEvent:"resizeEvent"},decls:1,vars:1,template:function(e,t){e&1&&m(0),e&2&&Ze(t.widget.type)},encapsulation:2,changeDetection:0})};var Hs=class o{widget;resizeEvent;resizeSub;ngOnInit(){this.resizeSub=this.resizeEvent.subscribe(i=>{i===this.widget&&console.log(i)})}ngOnDestroy(){this.resizeSub.unsubscribe()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-widget-b"]],inputs:{widget:"widget",resizeEvent:"resizeEvent"},decls:1,vars:1,template:function(e,t){e&1&&m(0),e&2&&Ze(t.widget.type)},encapsulation:2,changeDetection:0})};var Gs=class o{widget;resizeEvent;resizeSub;ngOnInit(){this.resizeSub=this.resizeEvent.subscribe(i=>{i===this.widget&&console.log(i)})}ngOnDestroy(){this.resizeSub.unsubscribe()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-widget-c"]],inputs:{widget:"widget",resizeEvent:"resizeEvent"},decls:1,vars:1,template:function(e,t){e&1&&m(0),e&2&&Ze(t.widget.type)},encapsulation:2,changeDetection:0})};function A0(o,i){if(o&1&&D(0,"app-widget-a",0),o&2){let e=f();M("resizeEvent",e.resizeEvent)("widget",e.widget)}}function O0(o,i){if(o&1&&D(0,"app-widget-b",1),o&2){let e=f();M("widget",e.widget)("resizeEvent",e.resizeEvent)}}function F0(o,i){if(o&1&&D(0,"app-widget-c",1),o&2){let e=f();M("widget",e.widget)("resizeEvent",e.resizeEvent)}}var Ys=class o{widget;resizeEvent;static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-parent-dynamic"]],inputs:{widget:"widget",resizeEvent:"resizeEvent"},decls:3,vars:3,consts:[[3,"resizeEvent","widget"],[3,"widget","resizeEvent"]],template:function(e,t){e&1&&Y(0,A0,1,2,"app-widget-a",0)(1,O0,1,2,"app-widget-b",1)(2,F0,1,2,"app-widget-c",1),e&2&&(L(t.widget.type==="widgetA"?0:-1),h(),L(t.widget.type==="widgetB"?1:-1),h(),L(t.widget.type==="widgetC"?2:-1))},dependencies:[Us,Hs,Gs],encapsulation:2,changeDetection:0})};function P0(o,i){if(o&1&&(l(0,"gridster-item",4),D(1,"app-parent-dynamic",5),d()),o&2){let e=i.$implicit,t=f();M("item",e),h(),M("widget",e)("resizeEvent",t.resizeEvent)}}var qs=class o{options;dashboard;resizeEvent=new H;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,disableWindowResize:!1,scrollToNewItems:!1,disableWarnings:!1,ignoreMarginInRow:!1,itemResizeCallback:i=>{this.resizeEvent.emit(i)}},this.dashboard=[{cols:2,rows:1,y:0,x:0,type:"widgetA"},{cols:2,rows:2,y:0,x:2,type:"widgetB"},{cols:2,rows:1,y:1,x:0,type:"widgetC"}]}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-dynamic-widgets"]],decls:9,vars:2,consts:[[1,"options"],["href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/dynamicWidgets","mat-raised-button","","target","_blank",1,"source-code-button"],[3,"src"],[3,"options"],[3,"item"],[3,"widget","resizeEvent"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"gridster",3),ie(7,P0,2,3,"gridster-item",4,ge),d()),e&2&&(h(5),M("src","assets/dynamicWidgets.md"),h(),M("options",t.options),h(),ne(t.dashboard))},dependencies:[de,ce,he,me,le,_e,se,pe,Ys],encapsulation:2,changeDetection:0})};function L0(o,i){if(o&1){let e=F();l(0,"div",12),g("dragstart",function(n){b(e);let r=f();return v(r.dragStartHandler(n))}),m(1,"Drag me!"),d()}}function z0(o,i){if(o&1){let e=F();l(0,"gridster-item",11)(1,"div",13)(2,"button",14),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Xs=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellClickCallback:this.emptyCellClick.bind(this),emptyCellContextMenuCallback:this.emptyCellClick.bind(this),emptyCellDropCallback:this.emptyCellClick.bind(this),emptyCellDragCallback:this.emptyCellClick.bind(this),emptyCellDragMaxCols:50,emptyCellDragMaxRows:50},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}emptyCellClick(i,e){console.info("empty cell click",i,e),this.dashboard.push(e)}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}dragStartHandler(i){i.dataTransfer&&(i.dataTransfer.setData("text/plain","Drag Me Button"),i.dataTransfer.dropEffect="copy")}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-empty-cell"]],decls:28,vars:11,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/emptyCell","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"ngModelChange","ngModel"],["draggable","true"],[3,"ngModelChange","ngModel","disabled"],["matInput","","type","number","placeholder","Drag Max Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Drag Max Rows",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],["draggable","true",3,"dragstart"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.enableEmptyCellClick,r)||(t.options.enableEmptyCellClick=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(8," Enable click to add "),d(),l(9,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.enableEmptyCellContextMenu,r)||(t.options.enableEmptyCellContextMenu=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(10," Enable right click to add "),d(),l(11,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.enableEmptyCellDrop,r)||(t.options.enableEmptyCellDrop=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(12," Enable drop to add "),d(),Y(13,L0,2,0,"div",5),l(14,"mat-checkbox",6),g("ngModelChange",function(){return t.changedOptions()}),C("ngModelChange",function(r){return w(t.options.enableOccupiedCellDrop,r)||(t.options.enableOccupiedCellDrop=r),r}),m(15," Enable drop on occupied cell "),d(),l(16,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.enableEmptyCellDrag,r)||(t.options.enableEmptyCellDrag=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(17," Enable drag to add "),d(),l(18,"mat-form-field")(19,"input",7),C("ngModelChange",function(r){return w(t.options.emptyCellDragMaxCols,r)||(t.options.emptyCellDragMaxCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(20,"mat-form-field")(21,"input",8),C("ngModelChange",function(r){return w(t.options.emptyCellDragMaxRows,r)||(t.options.emptyCellDragMaxRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(22,"button",9),g("click",function(){return t.addItem()}),l(23,"mat-icon"),m(24,"add"),d()()(),l(25,"gridster",10),ie(26,z0,5,1,"gridster-item",11,ge),d()),e&2&&(h(5),M("src","assets/emptyCell.md"),h(2),x("ngModel",t.options.enableEmptyCellClick),h(2),x("ngModel",t.options.enableEmptyCellContextMenu),h(2),x("ngModel",t.options.enableEmptyCellDrop),h(2),L(t.options.enableEmptyCellDrop?13:-1),h(),x("ngModel",t.options.enableOccupiedCellDrop),M("disabled",!t.options.enableEmptyCellDrop),h(2),x("ngModel",t.options.enableEmptyCellDrag),h(3),x("ngModel",t.options.emptyCellDragMaxCols),h(2),x("ngModel",t.options.emptyCellDragMaxRows),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,be,je,Oe,he,me,tt,et,We,le,_e,se,pe],encapsulation:2,changeDetection:0})};function N0(o,i){if(o&1){let e=F();l(0,"gridster-item",7)(1,"div",8)(2,"button",9),g("mousedown",function(n){let r=b(e).$implicit,s=f(2);return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f(2);return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}function V0(o,i){if(o&1&&(l(0,"gridster",6),ie(1,N0,5,1,"gridster-item",7,ge),d()),o&2){let e=f();M("options",e.options),h(),ne(e.dashboard)}}var Zs=class o{options;dashboard;remove;static itemChange(i,e){console.info("itemChanged",i,e)}static itemResize(i,e){console.info("itemResized",i,e)}static itemInit(i,e){console.info("itemInitialized",i,e)}static itemRemoved(i,e){console.info("itemRemoved",i,e)}static itemValidate(i){return i.cols>0&&i.rows>0}static gridInit(i){console.info("gridInit",i)}static gridDestroy(i){console.info("gridDestroy",i)}static gridSizeChanged(i){console.info("gridSizeChanged",i)}ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,initCallback:o.gridInit,destroyCallback:o.gridDestroy,gridSizeChangedCallback:o.gridSizeChanged,itemChangeCallback:o.itemChange,itemResizeCallback:o.itemResize,itemInitCallback:o.itemInit,itemRemovedCallback:o.itemRemoved,itemValidateCallback:o.itemValidate,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}destroy(){this.remove=!this.remove}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-grid-events"]],decls:14,vars:2,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/gridEvents","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],["mat-mini-fab","",1,"destroy-button",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"button",4),g("click",function(){return t.addItem()}),l(8,"mat-icon"),m(9,"add"),d()(),l(10,"button",5),g("click",function(){return t.destroy()}),l(11,"mat-icon"),m(12,"delete"),d()()(),Y(13,V0,3,1,"gridster",6)),e&2&&(h(5),M("src","assets/gridEvents.md"),h(8),L(t.remove?-1:13))},dependencies:[de,ce,be,he,me,le,_e,se,pe],encapsulation:2,changeDetection:0})};function B0(o,i){if(o&1){let e=F();l(0,"gridster-item",19)(1,"div",20)(2,"button",21),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Ks=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-grid-margins"]],decls:39,vars:9,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/gridMargins","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["aria-label","Grid type","placeholder","Grid Type",3,"ngModelChange","ngModel"],["value","fit"],["value","scrollVertical"],["value","scrollHorizontal"],["value","fixed"],["value","verticalFixed"],["value","horizontalFixed"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Margin",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Grid Margin Top",3,"ngModelChange","ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Grid Margin Right",3,"ngModelChange","ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Grid Margin Bottom",3,"ngModelChange","ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Grid Margin Left",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"mat-select",4),C("ngModelChange",function(r){return w(t.options.gridType,r)||(t.options.gridType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(9,"mat-option",5),m(10,"Fit to screen"),d(),l(11,"mat-option",6),m(12,"Scroll Vertical"),d(),l(13,"mat-option",7),m(14,"Scroll Horizontal"),d(),l(15,"mat-option",8),m(16,"Fixed"),d(),l(17,"mat-option",9),m(18,"Vertical Fixed"),d(),l(19,"mat-option",10),m(20,"Horizontal Fixed"),d()()(),l(21,"mat-form-field")(22,"input",11),C("ngModelChange",function(r){return w(t.options.margin,r)||(t.options.margin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(23,"mat-checkbox",12),C("ngModelChange",function(r){return w(t.options.outerMargin,r)||(t.options.outerMargin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(24,"Outer Margin "),d(),l(25,"mat-form-field")(26,"input",13),C("ngModelChange",function(r){return w(t.options.outerMarginTop,r)||(t.options.outerMarginTop=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(27,"mat-form-field")(28,"input",14),C("ngModelChange",function(r){return w(t.options.outerMarginRight,r)||(t.options.outerMarginRight=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(29,"mat-form-field")(30,"input",15),C("ngModelChange",function(r){return w(t.options.outerMarginBottom,r)||(t.options.outerMarginBottom=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(31,"mat-form-field")(32,"input",16),C("ngModelChange",function(r){return w(t.options.outerMarginLeft,r)||(t.options.outerMarginLeft=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(33,"button",17),g("click",function(){return t.addItem()}),l(34,"mat-icon"),m(35,"add"),d()()(),l(36,"gridster",18),ie(37,B0,5,1,"gridster-item",19,ge),d()),e&2&&(h(5),M("src","assets/gridMargins.md"),h(3),x("ngModel",t.options.gridType),h(14),x("ngModel",t.options.margin),h(),x("ngModel",t.options.outerMargin),h(3),x("ngModel",t.options.outerMarginTop),h(2),x("ngModel",t.options.outerMarginRight),h(2),x("ngModel",t.options.outerMarginBottom),h(2),x("ngModel",t.options.outerMarginLeft),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,gi,fi,xe,de,ce,be,je,Oe,he,me,tt,et,We,_t,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};function W0(o,i){if(o&1){let e=F();l(0,"gridster-item",19)(1,"div",20)(2,"button",21),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Qs=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0},minCols:1,maxCols:100,minRows:1,maxRows:100,maxItemCols:100,minItemCols:1,maxItemRows:100,minItemRows:1,maxItemArea:2500,minItemArea:1,defaultItemCols:1,defaultItemRows:1,addEmptyRowsCount:2},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-grid-sizes"]],decls:39,vars:15,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/gridSizes","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["matInput","","type","number","placeholder","Min Grid Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Grid Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Grid Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Grid Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Area",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Area",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Default Item Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Default Item Cols",3,"ngModelChange","ngModel"],["matInput","","max","30","min","0","placeholder","Add Empty Rows Count","step","1","type","number",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"input",4),C("ngModelChange",function(r){return w(t.options.minCols,r)||(t.options.minCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(9,"mat-form-field")(10,"input",5),C("ngModelChange",function(r){return w(t.options.maxCols,r)||(t.options.maxCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(11,"mat-form-field")(12,"input",6),C("ngModelChange",function(r){return w(t.options.minRows,r)||(t.options.minRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(13,"mat-form-field")(14,"input",7),C("ngModelChange",function(r){return w(t.options.maxRows,r)||(t.options.maxRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(15,"mat-form-field")(16,"input",8),C("ngModelChange",function(r){return w(t.options.maxItemCols,r)||(t.options.maxItemCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(17,"mat-form-field")(18,"input",9),C("ngModelChange",function(r){return w(t.options.minItemCols,r)||(t.options.minItemCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(19,"mat-form-field")(20,"input",10),C("ngModelChange",function(r){return w(t.options.maxItemRows,r)||(t.options.maxItemRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(21,"mat-form-field")(22,"input",11),C("ngModelChange",function(r){return w(t.options.minItemRows,r)||(t.options.minItemRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(23,"mat-form-field")(24,"input",12),C("ngModelChange",function(r){return w(t.options.maxItemArea,r)||(t.options.maxItemArea=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(25,"mat-form-field")(26,"input",13),C("ngModelChange",function(r){return w(t.options.minItemArea,r)||(t.options.minItemArea=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(27,"mat-form-field")(28,"input",14),C("ngModelChange",function(r){return w(t.options.defaultItemRows,r)||(t.options.defaultItemRows=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(29,"mat-form-field")(30,"input",15),C("ngModelChange",function(r){return w(t.options.defaultItemCols,r)||(t.options.defaultItemCols=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(31,"mat-form-field")(32,"input",16),g("ngModelChange",function(){return t.changedOptions()}),C("ngModelChange",function(r){return w(t.options.addEmptyRowsCount,r)||(t.options.addEmptyRowsCount=r),r}),d()(),l(33,"button",17),g("click",function(){return t.addItem()}),l(34,"mat-icon"),m(35,"add"),d()()(),l(36,"gridster",18),ie(37,W0,5,1,"gridster-item",19,ge),d()),e&2&&(h(5),M("src","assets/gridSizes.md"),h(3),x("ngModel",t.options.minCols),h(2),x("ngModel",t.options.maxCols),h(2),x("ngModel",t.options.minRows),h(2),x("ngModel",t.options.maxRows),h(2),x("ngModel",t.options.maxItemCols),h(2),x("ngModel",t.options.minItemCols),h(2),x("ngModel",t.options.maxItemRows),h(2),x("ngModel",t.options.minItemRows),h(2),x("ngModel",t.options.maxItemArea),h(2),x("ngModel",t.options.minItemArea),h(2),x("ngModel",t.options.defaultItemRows),h(2),x("ngModel",t.options.defaultItemCols),h(2),x("ngModel",t.options.addEmptyRowsCount),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,gi,fi,xe,de,ce,be,he,me,tt,et,We,le,_e,se,pe],encapsulation:2,changeDetection:0})};function j0(o,i){if(o&1){let e=F();l(0,"gridster-item",18)(1,"div",19)(2,"button",20),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var Js=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,fixedColWidth:105,fixedRowHeight:105,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,mobileBreakpoint:640,useBodyForBreakpoint:!1,pushItems:!0,rowHeightRatio:1,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-grid-types"]],decls:43,vars:11,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/gridTypes","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["aria-label","Grid type","placeholder","Grid Type",3,"ngModelChange","ngModel"],["value","fit"],["value","scrollVertical"],["value","scrollHorizontal"],["value","fixed"],["value","verticalFixed"],["value","horizontalFixed"],["matInput","","type","number","placeholder","Fixed Col Width",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Fixed Row Height",3,"ngModelChange","ngModel"],["matInput","","placeholder","Row Height Ratio","step","0.1","type","number",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Mobile Breakpoint",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"mat-select",4),C("ngModelChange",function(r){return w(t.options.gridType,r)||(t.options.gridType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(9,"mat-option",5),m(10,"Fit to screen"),d(),l(11,"mat-option",6),m(12,"Scroll Vertical"),d(),l(13,"mat-option",7),m(14,"Scroll Horizontal"),d(),l(15,"mat-option",8),m(16,"Fixed"),d(),l(17,"mat-option",9),m(18,"Vertical Fixed"),d(),l(19,"mat-option",10),m(20,"Horizontal Fixed"),d()()(),l(21,"mat-form-field")(22,"input",11),C("ngModelChange",function(r){return w(t.options.fixedColWidth,r)||(t.options.fixedColWidth=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(23,"mat-form-field")(24,"input",12),C("ngModelChange",function(r){return w(t.options.fixedRowHeight,r)||(t.options.fixedRowHeight=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(25,"mat-form-field")(26,"input",13),g("ngModelChange",function(){return t.changedOptions()}),C("ngModelChange",function(r){return w(t.options.rowHeightRatio,r)||(t.options.rowHeightRatio=r),r}),d()(),l(27,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.setGridSize,r)||(t.options.setGridSize=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(28," Set Grid Size "),d(),l(29,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.keepFixedHeightInMobile,r)||(t.options.keepFixedHeightInMobile=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(30," Keep Fixed Height In Mobile "),d(),l(31,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.keepFixedWidthInMobile,r)||(t.options.keepFixedWidthInMobile=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(32," Keep Fixed Width In Mobile "),d(),l(33,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.useBodyForBreakpoint,r)||(t.options.useBodyForBreakpoint=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(34," Use Body Width as Breakpoint "),d(),l(35,"mat-form-field")(36,"input",15),C("ngModelChange",function(r){return w(t.options.mobileBreakpoint,r)||(t.options.mobileBreakpoint=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(37,"button",16),g("click",function(){return t.addItem()}),l(38,"mat-icon"),m(39,"add"),d()()(),l(40,"gridster",17),ie(41,j0,5,1,"gridster-item",18,ge),d()),e&2&&(h(5),M("src","assets/gridTypes.md"),h(3),x("ngModel",t.options.gridType),h(14),x("ngModel",t.options.fixedColWidth),h(2),x("ngModel",t.options.fixedRowHeight),h(2),x("ngModel",t.options.rowHeightRatio),h(),x("ngModel",t.options.setGridSize),h(2),x("ngModel",t.options.keepFixedHeightInMobile),h(2),x("ngModel",t.options.keepFixedWidthInMobile),h(2),x("ngModel",t.options.useBodyForBreakpoint),h(3),x("ngModel",t.options.mobileBreakpoint),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,be,je,Oe,he,me,tt,et,We,_t,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};function $0(o,i){if(o&1){let e=F();l(0,"mat-checkbox",14),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.enabled,n)||(r.options.draggable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Drag Items "),d()}if(o&2){let e=f();x("ngModel",e.options.draggable.enabled)}}function U0(o,i){if(o&1){let e=F();l(0,"mat-checkbox",14),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.enabled,n)||(r.options.resizable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Resize Items "),d()}if(o&2){let e=f();x("ngModel",e.options.resizable.enabled)}}function H0(o,i){o&1&&(l(0,"div",24)(1,"div",27)(2,"span"),m(3,"Some content to select and click without dragging the widget"),d(),l(4,"a",28),m(5,"Link to Google"),d()()())}function G0(o,i){if(o&1){let e=F();l(0,"div",25)(1,"button",29)(2,"mat-icon"),m(3,"open_with"),d()(),l(4,"button",30),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(5,"mat-icon"),m(6,"delete"),d()()()}}function Y0(o,i){if(o&1&&(l(0,"label"),m(1),d()),o&2){let e=f().$implicit;h(),Ze(e.label)}}function q0(o,i){if(o&1){let e=F();l(0,"button",31),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(1,"mat-icon"),m(2,"delete"),d()()}}function X0(o,i){if(o&1&&(l(0,"gridster-item",22)(1,"div",23),Y(2,H0,6,0,"div",24)(3,G0,7,0,"div",25)(4,Y0,2,1,"label")(5,q0,3,0,"button",26),d()()),o&2){let e=i.$implicit;M("item",e),h(2),L(e.hasContent?2:-1),h(),L(e.hasContent?3:-1),h(),L(e.hasContent?-1:4),h(),L(e.hasContent?-1:5)}}var ea=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,compactType:ue.None,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,mobileBreakpoint:640,useBodyForBreakpoint:!1,minCols:1,maxCols:100,minRows:1,maxRows:100,maxItemCols:100,minItemCols:1,maxItemRows:100,minItemRows:1,maxItemArea:2500,minItemArea:1,defaultItemCols:1,defaultItemRows:1,fixedColWidth:105,fixedRowHeight:105,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,scrollSensitivity:10,scrollSpeed:20,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{enabled:!0},resizable:{enabled:!0},swap:!1,pushItems:!0,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:ve.Always,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2,hasContent:!0},{cols:1,rows:1,y:0,x:4},{cols:1,rows:1,y:2,x:5},{cols:1,rows:1,y:1,x:0},{cols:1,rows:1,y:1,x:0},{cols:2,rows:2,y:3,x:5,minItemRows:2,minItemCols:2,label:"Min rows & cols = 2"},{cols:2,rows:2,y:2,x:0,maxItemRows:2,maxItemCols:2,label:"Max rows & cols = 2"},{cols:2,rows:1,y:2,x:2,dragEnabled:!0,resizeEnabled:!0,label:"Drag&Resize Enabled"},{cols:1,rows:1,y:2,x:4,dragEnabled:!1,resizeEnabled:!1,label:"Drag&Resize Disabled"},{cols:1,rows:1,y:2,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-general"]],decls:54,vars:14,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/home","target","_blank",1,"source-code-button"],[1,"options-header"],["aria-label","Grid type","placeholder","Grid Type",3,"ngModelChange","ngModel"],["value","fit"],["value","scrollVertical"],["value","scrollHorizontal"],["value","fixed"],["value","verticalFixed"],["value","horizontalFixed"],["aria-label","Display grid lines","placeholder","Display grid lines",3,"ngModelChange","ngModel"],["value","always"],["value","onDrag&Resize"],["value","none"],[3,"ngModelChange","ngModel"],[3,"ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Margin",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Mobile Breakpoint",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Fixed Col Width",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Fixed Row Height",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],[1,"gridster-item-content"],[1,"item-buttons"],["mat-mini-fab",""],[1,"stuff"],["href","https://www.google.com","target","_blank"],["mat-icon-button","",1,"drag-handler"],["mat-icon-button","",1,"remove-button",3,"mousedown","touchstart"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d()(),l(5,"div",2)(6,"mat-form-field")(7,"mat-select",3),C("ngModelChange",function(r){return w(t.options.gridType,r)||(t.options.gridType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(8,"mat-option",4),m(9,"Fit to screen"),d(),l(10,"mat-option",5),m(11,"Scroll Vertical"),d(),l(12,"mat-option",6),m(13,"Scroll Horizontal"),d(),l(14,"mat-option",7),m(15,"Fixed"),d(),l(16,"mat-option",8),m(17,"Vertical Fixed"),d(),l(18,"mat-option",9),m(19,"Horizontal Fixed"),d()()(),l(20,"mat-form-field")(21,"mat-select",10),C("ngModelChange",function(r){return w(t.options.displayGrid,r)||(t.options.displayGrid=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(22,"mat-option",11),m(23,"Always"),d(),l(24,"mat-option",12),m(25,"On Drag & Resize"),d(),l(26,"mat-option",13),m(27,"None"),d()()(),l(28,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.swap,r)||(t.options.swap=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(29," Swap Items "),d(),l(30,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.pushItems,r)||(t.options.pushItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(31," Push Items "),d(),Y(32,$0,2,1,"mat-checkbox",15)(33,U0,2,1,"mat-checkbox",15),l(34,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.pushResizeItems,r)||(t.options.pushResizeItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(35," Push Resize Items "),d(),l(36,"mat-form-field")(37,"input",16),C("ngModelChange",function(r){return w(t.options.margin,r)||(t.options.margin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(38,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.outerMargin,r)||(t.options.outerMargin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(39,"Outer Margin "),d(),l(40,"mat-checkbox",14),C("ngModelChange",function(r){return w(t.options.useBodyForBreakpoint,r)||(t.options.useBodyForBreakpoint=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(41,"Use Body Width as Breakpoint "),d(),l(42,"mat-form-field")(43,"input",17),C("ngModelChange",function(r){return w(t.options.mobileBreakpoint,r)||(t.options.mobileBreakpoint=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(44,"mat-form-field")(45,"input",18),C("ngModelChange",function(r){return w(t.options.fixedColWidth,r)||(t.options.fixedColWidth=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(46,"mat-form-field")(47,"input",19),C("ngModelChange",function(r){return w(t.options.fixedRowHeight,r)||(t.options.fixedRowHeight=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(48,"button",20),g("click",function(){return t.addItem()}),l(49,"mat-icon"),m(50,"add"),d()()(),l(51,"gridster",21),ie(52,X0,6,5,"gridster-item",22,ge),d()),e&2&&(h(7),x("ngModel",t.options.gridType),h(14),x("ngModel",t.options.displayGrid),h(7),x("ngModel",t.options.swap),h(2),x("ngModel",t.options.pushItems),h(2),L(t.options.draggable?32:-1),h(),L(t.options.resizable?33:-1),h(),x("ngModel",t.options.pushResizeItems),h(3),x("ngModel",t.options.margin),h(),x("ngModel",t.options.outerMargin),h(2),x("ngModel",t.options.useBodyForBreakpoint),h(3),x("ngModel",t.options.mobileBreakpoint),h(2),x("ngModel",t.options.fixedColWidth),h(2),x("ngModel",t.options.fixedRowHeight),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,gi,fi,xe,de,ce,zi,be,je,Oe,he,me,tt,et,We,_t,gt,st,se,pe],encapsulation:2,changeDetection:0})};function Z0(o,i){if(o&1){let e=F();l(0,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.s,n)||(r.dashboard[0].resizableHandles.s=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(1," Resize South "),d(),l(2,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.e,n)||(r.dashboard[0].resizableHandles.e=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(3," Resize East "),d(),l(4,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.n,n)||(r.dashboard[0].resizableHandles.n=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(5," Resize North "),d(),l(6,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.w,n)||(r.dashboard[0].resizableHandles.w=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(7," Resize West "),d(),l(8,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.se,n)||(r.dashboard[0].resizableHandles.se=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(9," Resize South-East "),d(),l(10,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.ne,n)||(r.dashboard[0].resizableHandles.ne=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(11," Resize North-East "),d(),l(12,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.sw,n)||(r.dashboard[0].resizableHandles.sw=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(13," Resize South-West "),d(),l(14,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f(2);return w(r.dashboard[0].resizableHandles.nw,n)||(r.dashboard[0].resizableHandles.nw=n),v(n)}),g("ngModelChange",function(){b(e);let n=f(2);return v(n.changedOptions())}),m(15," Resize North-West "),d()}if(o&2){let e=f(2);x("ngModel",e.dashboard[0].resizableHandles.s),h(2),x("ngModel",e.dashboard[0].resizableHandles.e),h(2),x("ngModel",e.dashboard[0].resizableHandles.n),h(2),x("ngModel",e.dashboard[0].resizableHandles.w),h(2),x("ngModel",e.dashboard[0].resizableHandles.se),h(2),x("ngModel",e.dashboard[0].resizableHandles.ne),h(2),x("ngModel",e.dashboard[0].resizableHandles.sw),h(2),x("ngModel",e.dashboard[0].resizableHandles.nw)}}function K0(o,i){if(o&1){let e=F();l(0,"div",3)(1,"mat-form-field")(2,"input",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].x,n)||(r.dashboard[0].x=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(3,"mat-form-field")(4,"input",7),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].y,n)||(r.dashboard[0].y=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(5,"mat-form-field")(6,"input",8),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].rows,n)||(r.dashboard[0].rows=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(7,"mat-form-field")(8,"input",9),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].cols,n)||(r.dashboard[0].cols=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(9,"mat-form-field")(10,"input",10),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].maxItemCols,n)||(r.dashboard[0].maxItemCols=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(11,"mat-form-field")(12,"input",11),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].minItemCols,n)||(r.dashboard[0].minItemCols=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(13,"mat-form-field")(14,"input",12),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].maxItemRows,n)||(r.dashboard[0].maxItemRows=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(15,"mat-form-field")(16,"input",13),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].minItemRows,n)||(r.dashboard[0].minItemRows=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(17,"mat-form-field")(18,"input",14),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].maxItemArea,n)||(r.dashboard[0].maxItemArea=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(19,"mat-form-field")(20,"input",15),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].minItemArea,n)||(r.dashboard[0].minItemArea=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(21,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].dragEnabled,n)||(r.dashboard[0].dragEnabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(22," Drag "),d(),l(23,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].resizeEnabled,n)||(r.dashboard[0].resizeEnabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(24," Resize "),d(),l(25,"mat-checkbox",16),C("ngModelChange",function(n){b(e);let r=f();return w(r.dashboard[0].compactEnabled,n)||(r.dashboard[0].compactEnabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(26," Compact "),d(),Y(27,Z0,16,8),l(28,"mat-form-field")(29,"mat-select",17),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.compactType,n)||(r.options.compactType=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),l(30,"mat-option",18),m(31,"None"),d(),l(32,"mat-option",19),m(33,"Compact Up"),d(),l(34,"mat-option",20),m(35,"Compact Left"),d(),l(36,"mat-option",21),m(37,"Compact Left & Up"),d(),l(38,"mat-option",22),m(39,"Compact Up & Left"),d()()(),l(40,"button",23),g("click",function(){b(e);let n=f();return v(n.addItem())}),l(41,"mat-icon"),m(42,"add"),d()()()}if(o&2){let e=f();h(2),x("ngModel",e.dashboard[0].x),h(2),x("ngModel",e.dashboard[0].y),h(2),x("ngModel",e.dashboard[0].rows),h(2),x("ngModel",e.dashboard[0].cols),h(2),x("ngModel",e.dashboard[0].maxItemCols),h(2),x("ngModel",e.dashboard[0].minItemCols),h(2),x("ngModel",e.dashboard[0].maxItemRows),h(2),x("ngModel",e.dashboard[0].minItemRows),h(2),x("ngModel",e.dashboard[0].maxItemArea),h(2),x("ngModel",e.dashboard[0].minItemArea),h(),x("ngModel",e.dashboard[0].dragEnabled),h(2),x("ngModel",e.dashboard[0].resizeEnabled),h(2),x("ngModel",e.dashboard[0].compactEnabled),h(2),L(e.dashboard[0].resizableHandles?27:-1),h(2),x("ngModel",e.options.compactType)}}function Q0(o,i){if(o&1){let e=F();l(0,"gridster-item",5)(1,"div",24)(2,"button",25),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var ta=class o{options;dashboard;static itemInit(i,e){console.info("itemInitialized",i,e)}ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,compactType:ue.None,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0},minCols:1,maxCols:100,minRows:1,maxRows:100,maxItemCols:100,minItemCols:1,maxItemRows:100,minItemRows:1,maxItemArea:2500,minItemArea:1,defaultItemCols:1,defaultItemRows:1},this.dashboard=[{cols:2,rows:1,y:0,x:0,initCallback:o.itemInit,minItemCols:1,maxItemCols:100,maxItemRows:100,minItemRows:1,minItemArea:1,maxItemArea:2500,dragEnabled:!0,resizeEnabled:!0,compactEnabled:!0,resizableHandles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0}},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:2,x:1}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-items"]],decls:10,vars:3,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/items","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"options"],[3,"item"],["matInput","","type","number","placeholder","X",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Y",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Cols",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Rows",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Max Item Area",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Min Item Area",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["aria-label","Compact type","placeholder","Compact Type",3,"ngModelChange","ngModel"],["value","none"],["value","compactUp"],["value","compactLeft"],["value","compactLeft&Up"],["value","compactUp&Left"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),Y(6,K0,43,15,"div",3),l(7,"gridster",4),ie(8,Q0,5,1,"gridster-item",5,ge),d()),e&2&&(h(5),M("src","assets/items.md"),h(),L(t.dashboard[0]?6:-1),h(),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,be,je,Oe,he,me,tt,et,We,_t,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};function J0(o,i){if(o&1){let e=F();l(0,"gridster-item",15)(1,"div",16)(2,"button",17),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var ia=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,draggable:{enabled:!0},resizable:{enabled:!0},disableWindowResize:!0,scrollToNewItems:!1,disableWarnings:!1,ignoreMarginInRow:!1,setGridSize:!1,scale:1},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-misc"]],decls:43,vars:10,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/misc","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"ngModelChange","ngModel"],["matInput","","type","number",3,"ngModelChange","ngModel"],["aria-label","Grid type","placeholder","Grid Type",3,"ngModelChange","ngModel"],["value","fit"],["value","scrollVertical"],["value","scrollHorizontal"],["value","fixed"],["value","verticalFixed"],["value","horizontalFixed"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.disableWindowResize,r)||(t.options.disableWindowResize=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(8," Disable window resize "),d(),l(9,"mat-checkbox",4),g("ngModelChange",function(){return t.changedOptions()}),C("ngModelChange",function(r){return w(t.options.setGridSize,r)||(t.options.setGridSize=r),r}),m(10," Set grid size "),d(),l(11,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.scrollToNewItems,r)||(t.options.scrollToNewItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(12," Scroll to new items "),d(),l(13,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.disableWarnings,r)||(t.options.disableWarnings=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(14," Disable console warnings "),d(),l(15,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.ignoreMarginInRow,r)||(t.options.ignoreMarginInRow=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(16," Ignore margin in row "),d(),l(17,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.disableAutoPositionOnConflict,r)||(t.options.disableAutoPositionOnConflict=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(18," Disable auto position on conflict "),d(),l(19,"mat-form-field")(20,"mat-label"),m(21,"Scale"),d(),l(22,"input",5),g("ngModelChange",function(){return t.changedOptions()}),C("ngModelChange",function(r){return w(t.options.scale,r)||(t.options.scale=r),r}),d()(),l(23,"mat-form-field")(24,"mat-select",6),C("ngModelChange",function(r){return w(t.options.gridType,r)||(t.options.gridType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(25,"mat-option",7),m(26,"Fit to screen"),d(),l(27,"mat-option",8),m(28,"Scroll Vertical"),d(),l(29,"mat-option",9),m(30,"Scroll Horizontal"),d(),l(31,"mat-option",10),m(32,"Fixed"),d(),l(33,"mat-option",11),m(34,"Vertical Fixed"),d(),l(35,"mat-option",12),m(36,"Horizontal Fixed"),d()()(),l(37,"button",13),g("click",function(){return t.addItem()}),l(38,"mat-icon"),m(39,"add"),d()()(),l(40,"gridster",14),ie(41,J0,5,1,"gridster-item",15,ge),d()),e&2&&(h(5),M("src","assets/misc.md"),h(2),x("ngModel",t.options.disableWindowResize),h(2),x("ngModel",t.options.setGridSize),h(2),x("ngModel",t.options.scrollToNewItems),h(2),x("ngModel",t.options.disableWarnings),h(2),x("ngModel",t.options.ignoreMarginInRow),h(2),x("ngModel",t.options.disableAutoPositionOnConflict),h(5),x("ngModel",t.options.scale),h(2),x("ngModel",t.options.gridType),h(16),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,be,je,Oe,he,me,tt,et,We,Bs,_t,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};var ex=["mat-menu-item",""],tx=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ix=["mat-icon, [matMenuItemIcon]","*"];function nx(o,i){o&1&&(Ui(),l(0,"svg",2),D(1,"polygon",3),d())}var ox=["*"];function rx(o,i){if(o&1){let e=F();l(0,"div",0),g("click",function(){b(e);let n=f();return v(n.closed.emit("click"))})("@transformMenu.start",function(n){b(e);let r=f();return v(r._onAnimationStart(n))})("@transformMenu.done",function(n){b(e);let r=f();return v(r._onAnimationDone(n))}),l(1,"div",1),G(2),d()()}if(o&2){let e=f();$t(e._classList),M("id",e.panelId)("@transformMenu",e._panelAnimationState),fe("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var Xc=new R("MAT_MENU_PANEL"),ur=(()=>{class o{_elementRef=u(j);_document=u(ae);_focusMonitor=u(yo);_parentMenu=u(Xc,{optional:!0});_changeDetectorRef=u(qe);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new N;_focused=new N;_highlighted=!1;_triggersSubmenu=!1;constructor(){u(lt).load(ui),this._parentMenu?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let n=0;n enter",mi("120ms cubic-bezier(0, 0, 0.2, 1)",Mt({opacity:1,transform:"scale(1)"}))),ei("* => void",mi("100ms 25ms linear",Mt({opacity:0})))]),fadeInItems:Si("fadeInItems",[Zi("showing",Mt({opacity:1})),ei("void => *",[Mt({opacity:0}),mi("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},WD=na.fadeInItems,jD=na.transformMenu,ax=new R("mat-menu-default-options",{providedIn:"root",factory:lx});function lx(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var fn=(()=>{class o{_elementRef=u(j);_changeDetectorRef=u(qe);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_allItems;_directDescendantItems=new no;_classList={};_panelAnimationState="void";_animationDone=new N;_isAnimating;parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(e){let t=this._previousPanelClass,n=k({},this._classList);t&&t.length&&t.split(" ").forEach(r=>{n[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{n[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=n}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new H;close=this.closed;panelId=u(yt).getId("mat-menu-panel-");_injector=u(Je);constructor(){let e=u(ax);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Hr(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ut(this._directDescendantItems),$e(e=>mt(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let n=e.toArray(),r=Math.max(0,Math.min(n.length-1,t.activeItemIndex||0));n[r]&&!n[r].disabled?t.setActiveItem(r):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(ut(this._directDescendantItems),$e(t=>mt(...t.map(n=>n._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,n=this._keyManager;switch(t){case 27:Ht(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&n.setFocusOrigin("keyboard"),n.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Yi(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){let n=this._keyManager;n.setFocusOrigin(e).setFirstItemActive(),!n.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=re(k({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ut(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=E({type:o,selectors:[["mat-menu"]],contentQueries:function(t,n,r){if(t&1&&(Ye(r,sx,5),Ye(r,ur,5),Ye(r,ur,4)),t&2){let s;J(s=ee())&&(n.lazyContent=s.first),J(s=ee())&&(n._allItems=s),J(s=ee())&&(n.items=s)}},viewQuery:function(t,n){if(t&1&&Pe(vn,5),t&2){let r;J(r=ee())&&(n.templateRef=r.first)}},hostVars:3,hostBindings:function(t,n){t&2&&fe("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",q],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:q(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Ve([{provide:Xc,useExisting:o}]),Fe],ngContentSelectors:ox,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","id"],[1,"mat-mdc-menu-content"]],template:function(t,n){t&1&&(Te(),Y(0,rx,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[na.transformMenu,na.fadeInItems]},changeDetection:0})}return o})(),sp=new R("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let o=u(Xt);return()=>o.scrollStrategies.reposition()}});function cx(o){return()=>o.scrollStrategies.reposition()}var dx={provide:sp,deps:[Xt],useFactory:cx},rp=ti({passive:!0});var ap=(()=>{class o{_overlay=u(Xt);_element=u(j);_viewContainerRef=u(Jt);_menuItemInstance=u(ur,{optional:!0,self:!0});_dir=u(ii,{optional:!0});_focusMonitor=u(yo);_ngZone=u(W);_scrollStrategy=u(sp);_changeDetectorRef=u(qe);_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=He.EMPTY;_hoverSubscription=He.EMPTY;_menuCloseSubscription=He.EMPTY;_parentMaterialMenu;_parentInnerPadding;_handleTouchStart=e=>{vo(e)||(this._openedBy="touch")};_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}_menu;menuData;restoreFocus=!0;menuOpened=new H;onMenuOpen=this.menuOpened;menuClosed=new H;onMenuClose=this.menuClosed;constructor(){let e=u(Xc,{optional:!0});this._parentMaterialMenu=e instanceof fn?e:void 0,this._element.nativeElement.addEventListener("touchstart",this._handleTouchStart,rp)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,rp),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;let t=this._createOverlay(e),n=t.getConfig(),r=n.positionStrategy;this._setPosition(e,r),n.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof fn&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ce(e.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof fn?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(De(n=>n.toState==="void"),ht(1),Ce(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe(n=>{this.menu instanceof fn&&this.menu._handleKeydown(n)})}return this._overlayRef}_getOverlayConfig(e){return new Zn({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(n=>{this._ngZone.run(()=>{let r=n.connectionPair.overlayX==="start"?"after":"before",s=n.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,s)})})}_setPosition(e,t){let[n,r]=e.xPosition==="before"?["end","start"]:["start","end"],[s,a]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[c,p]=[s,a],[_,y]=[n,r],I=0;if(this.triggersSubmenu()){if(y=n=e.xPosition==="before"?"start":"end",r=_=n==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let S=this._parentMaterialMenu.items.first;this._parentInnerPadding=S?S._getHostElement().offsetTop:0}I=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c=s==="top"?"bottom":"top",p=a==="top"?"bottom":"top");t.withPositions([{originX:n,originY:c,overlayX:_,overlayY:s,offsetY:I},{originX:r,originY:c,overlayX:y,overlayY:s,offsetY:I},{originX:n,originY:p,overlayX:_,overlayY:a,offsetY:-I},{originX:r,originY:p,overlayX:y,overlayY:a,offsetY:-I}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:V(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(De(s=>s!==this._menuItemInstance),De(()=>this._menuOpen)):V();return mt(e,n,r,t)}_handleMousedown(e){bo(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(De(e=>e===this._menuItemInstance&&!e.disabled),ga(0,fr)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof fn&&this.menu._isAnimating?this.menu._animationDone.pipe(ht(1),ga(0,fr),Ce(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new un(e.templateRef,this._viewContainerRef)),this._portal}static \u0275fac=function(t){return new(t||o)};static \u0275dir=$({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,n){t&1&&g("click",function(s){return n._handleClick(s)})("mousedown",function(s){return n._handleMousedown(s)})("keydown",function(s){return n._handleKeydown(s)}),t&2&&fe("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return o})(),lp=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=Z({type:o});static \u0275inj=X({providers:[dx],imports:[tn,ke,Ns,Xn,ke]})}return o})();function hx(o,i){if(o&1){let e=F();l(0,"gridster-item",9,0)(2,"div")(3,"button",10)(4,"mat-icon"),m(5,"more_vert"),d()(),l(6,"mat-menu",null,1)(8,"button",11),g("click",function(){b(e);let n=At(1);return v(n.bringToFront(1))}),l(9,"mat-icon"),m(10,"arrow_upward"),d(),l(11,"span"),m(12,"Bring To Front"),d()(),l(13,"button",11),g("click",function(){b(e);let n=At(1);return v(n.sendToBack(1))}),l(14,"mat-icon"),m(15,"arrow_downward"),d(),l(16,"span"),m(17,"Send To Back"),d()()(),l(18,"span"),m(19,"LayerIndex: "),l(20,"span",12),m(21),d()(),l(22,"div",13)(23,"button",14),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(24,"mat-icon"),m(25,"delete"),d()()()()()}if(o&2){let e=i.$implicit,t=At(7);M("item",e),h(3),M("matMenuTriggerFor",t),h(18),Ze(e.layerIndex===void 0?1:e.layerIndex)}}var oa=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!1,swap:!0,allowMultiLayer:!0,defaultLayerIndex:1,baseLayerIndex:2,maxLayerIndex:2,swapWhileDragging:!1,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0,layerIndex:2},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:2,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-swap"]],decls:19,vars:5,consts:[["gridsterItem",""],["menu","matMenu"],[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/multiLayer","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],["mat-icon-button","","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],[2,"margin-left","10px","color","blueviolet"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",2)(1,"a",3)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",4),d(),l(6,"div",5)(7,"mat-checkbox",6),C("ngModelChange",function(r){return w(t.options.allowMultiLayer,r)||(t.options.allowMultiLayer=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(8," Allow Multi Layer "),d(),l(9,"mat-checkbox",6),C("ngModelChange",function(r){return w(t.options.swap,r)||(t.options.swap=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(10," Swap Items "),d(),l(11,"mat-checkbox",6),C("ngModelChange",function(r){return w(t.options.swapWhileDragging,r)||(t.options.swapWhileDragging=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(12," Swap Items While Dragging "),d(),l(13,"button",7),g("click",function(){return t.addItem()}),l(14,"mat-icon"),m(15,"add"),d()()(),l(16,"gridster",8),ie(17,hx,26,3,"gridster-item",9,ge),d()),e&2&&(h(5),M("src","assets/multiLayer.md"),h(2),x("ngModel",t.options.allowMultiLayer),h(2),x("ngModel",t.options.swap),h(2),x("ngModel",t.options.swapWhileDragging),h(5),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Me,xe,de,ce,zi,be,je,Oe,he,me,lp,fn,ur,ap,le,_e,se,pe],encapsulation:2,changeDetection:0})};function ux(o,i){if(o&1){let e=F();l(0,"mat-checkbox",4),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.pushDirections.north,n)||(r.options.pushDirections.north=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Push North "),d()}if(o&2){let e=f();x("ngModel",e.options.pushDirections.north)}}function px(o,i){if(o&1){let e=F();l(0,"mat-checkbox",4),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.pushDirections.east,n)||(r.options.pushDirections.east=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Push East "),d()}if(o&2){let e=f();x("ngModel",e.options.pushDirections.east)}}function fx(o,i){if(o&1){let e=F();l(0,"mat-checkbox",4),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.pushDirections.south,n)||(r.options.pushDirections.south=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Push South "),d()}if(o&2){let e=f();x("ngModel",e.options.pushDirections.south)}}function gx(o,i){if(o&1){let e=F();l(0,"mat-checkbox",4),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.pushDirections.west,n)||(r.options.pushDirections.west=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Push West "),d()}if(o&2){let e=f();x("ngModel",e.options.pushDirections.west)}}function _x(o,i){if(o&1){let e=F();l(0,"gridster-item",8)(1,"div",9)(2,"button",10),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var ra=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!0,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,swap:!1,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-push"]],decls:25,vars:10,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/push","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"ngModelChange","ngModel"],[3,"ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.pushItems,r)||(t.options.pushItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(8," Push Items "),d(),l(9,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.disablePushOnDrag,r)||(t.options.disablePushOnDrag=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(10," Disable Push On Drag "),d(),l(11,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.disablePushOnResize,r)||(t.options.disablePushOnResize=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(12," Disable Push On Resize "),d(),Y(13,ux,2,1,"mat-checkbox",5)(14,px,2,1,"mat-checkbox",5)(15,fx,2,1,"mat-checkbox",5)(16,gx,2,1,"mat-checkbox",5),l(17,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.pushResizeItems,r)||(t.options.pushResizeItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(18," Push Resize Items "),d(),l(19,"button",6),g("click",function(){return t.addItem()}),l(20,"mat-icon"),m(21,"add"),d()()(),l(22,"gridster",7),ie(23,_x,5,1,"gridster-item",8,ge),d()),e&2&&(h(5),M("src","assets/push.md"),h(2),x("ngModel",t.options.pushItems),h(2),x("ngModel",t.options.disablePushOnDrag),h(2),x("ngModel",t.options.disablePushOnResize),h(2),L(t.options.pushDirections?13:-1),h(),L(t.options.pushDirections?14:-1),h(),L(t.options.pushDirections?15:-1),h(),L(t.options.pushDirections?16:-1),h(),x("ngModel",t.options.pushResizeItems),h(5),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Me,xe,de,ce,be,je,Oe,he,me,le,_e,se,pe],encapsulation:2,changeDetection:0})};function bx(o,i){if(o&1){let e=F();l(0,"div",3)(1,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.enabled,n)||(r.options.resizable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(2," Resize Items "),d(),l(3,"mat-form-field")(4,"input",7),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.delayStart,n)||(r.options.resizable.delayStart=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),d()(),l(5,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.s,n)||(r.options.resizable.handles.s=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(6," Resize South "),d(),l(7,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.e,n)||(r.options.resizable.handles.e=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(8," Resize East "),d(),l(9,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.n,n)||(r.options.resizable.handles.n=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(10," Resize North "),d(),l(11,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.w,n)||(r.options.resizable.handles.w=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(12," Resize West "),d(),l(13,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.se,n)||(r.options.resizable.handles.se=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(14," Resize South-East "),d(),l(15,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.ne,n)||(r.options.resizable.handles.ne=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(16," Resize North-East "),d(),l(17,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.sw,n)||(r.options.resizable.handles.sw=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(18," Resize South-West "),d(),l(19,"mat-checkbox",6),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.handles.nw,n)||(r.options.resizable.handles.nw=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(20," Resize North-West "),d(),l(21,"button",8),g("click",function(){b(e);let n=f();return v(n.addItem())}),l(22,"mat-icon"),m(23,"add"),d()()()}if(o&2){let e=f();h(),x("ngModel",e.options.resizable.enabled),h(3),x("ngModel",e.options.resizable.delayStart),h(),x("ngModel",e.options.resizable.handles.s),h(2),x("ngModel",e.options.resizable.handles.e),h(2),x("ngModel",e.options.resizable.handles.n),h(2),x("ngModel",e.options.resizable.handles.w),h(2),x("ngModel",e.options.resizable.handles.se),h(2),x("ngModel",e.options.resizable.handles.ne),h(2),x("ngModel",e.options.resizable.handles.sw),h(2),x("ngModel",e.options.resizable.handles.nw)}}function vx(o,i){if(o&1){let e=F();l(0,"gridster-item",5)(1,"div",9)(2,"button",10),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var sa=class o{options;dashboard;static eventStop(i,e,t){console.info("eventStop",i,e,t)}static eventStart(i,e,t){console.info("eventStart",i,e,t)}ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,resizable:{delayStart:0,enabled:!0,start:o.eventStart,stop:o.eventStop,handles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0}}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-resize"]],decls:10,vars:3,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/resize","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"options"],[3,"item"],[3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Delay Start ms",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),Y(6,bx,24,10,"div",3),l(7,"gridster",4),ie(8,vx,5,1,"gridster-item",5,ge),d()),e&2&&(h(5),M("src","assets/resize.md"),h(),L(t.options.resizable&&t.options.resizable.handles?6:-1),h(),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,xe,de,ce,be,je,Oe,he,me,tt,et,We,le,_e,se,pe],encapsulation:2,changeDetection:0})};function yx(o,i){if(o&1){let e=F();l(0,"mat-checkbox",15),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.draggable.enabled,n)||(r.options.draggable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Drag Items "),d()}if(o&2){let e=f();x("ngModel",e.options.draggable.enabled)}}function xx(o,i){if(o&1){let e=F();l(0,"mat-checkbox",15),C("ngModelChange",function(n){b(e);let r=f();return w(r.options.resizable.enabled,n)||(r.options.resizable.enabled=n),v(n)}),g("ngModelChange",function(){b(e);let n=f();return v(n.changedOptions())}),m(1," Resize Items "),d()}if(o&2){let e=f();x("ngModel",e.options.resizable.enabled)}}function wx(o,i){o&1&&(l(0,"div",25)(1,"div",28)(2,"span"),m(3,"Some content to select and click without dragging the widget"),d(),l(4,"a",29),m(5,"Link to Google"),d()()())}function Cx(o,i){if(o&1){let e=F();l(0,"div",26)(1,"button",30)(2,"mat-icon"),m(3,"open_with"),d()(),l(4,"button",31),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(5,"mat-icon"),m(6,"delete"),d()()()}}function kx(o,i){if(o&1&&(l(0,"label"),m(1),d()),o&2){let e=f().$implicit;h(),Ze(e.label)}}function Mx(o,i){if(o&1){let e=F();l(0,"button",32),g("mousedown",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){b(e);let r=f().$implicit,s=f();return v(s.removeItem(n,r))}),l(1,"mat-icon"),m(2,"delete"),d()()}}function Ix(o,i){if(o&1&&(l(0,"gridster-item",23)(1,"div",24),Y(2,wx,6,0,"div",25)(3,Cx,7,0,"div",26)(4,kx,2,1,"label")(5,Mx,3,0,"button",27),d()()),o&2){let e=i.$implicit;M("item",e),h(2),L(e.hasContent?2:-1),h(),L(e.hasContent?3:-1),h(),L(e.hasContent?-1:4),h(),L(e.hasContent?-1:5)}}var aa=class o{options;dashboard;ngOnInit(){document.body.setAttribute("dir","rtl"),this.options={gridType:P.Fit,compactType:ue.None,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,mobileBreakpoint:640,minCols:1,maxCols:100,minRows:1,maxRows:100,maxItemCols:100,minItemCols:1,maxItemRows:100,minItemRows:1,maxItemArea:2500,minItemArea:1,defaultItemCols:1,defaultItemRows:1,fixedColWidth:105,fixedRowHeight:105,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,scrollSensitivity:10,scrollSpeed:20,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{enabled:!0},resizable:{enabled:!0},swap:!1,pushItems:!0,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:ve.Always,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1,dirType:ot.RTL},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2,hasContent:!0},{cols:1,rows:1,y:0,x:4},{cols:1,rows:1,y:2,x:5},{cols:1,rows:1,y:1,x:0},{cols:1,rows:1,y:1,x:0},{cols:2,rows:2,y:3,x:5,minItemRows:2,minItemCols:2,label:"Min rows & cols = 2"},{cols:2,rows:2,y:2,x:0,maxItemRows:2,maxItemCols:2,label:"Max rows & cols = 2"},{cols:2,rows:1,y:2,x:2,dragEnabled:!0,resizeEnabled:!0,label:"Drag&Resize Enabled"},{cols:1,rows:1,y:2,x:4,dragEnabled:!1,resizeEnabled:!1,label:"Drag&Resize Disabled"},{cols:1,rows:1,y:2,x:6}],this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2,hasContent:!0},{cols:1,rows:1,y:0,x:4},{cols:1,rows:1,y:2,x:5},{cols:1,rows:1,y:1,x:0},{cols:1,rows:1,y:1,x:0},{cols:2,rows:2,y:3,x:5,minItemRows:2,minItemCols:2,label:"Min rows & cols = 2"},{cols:2,rows:2,y:2,x:0,maxItemRows:2,maxItemCols:2,label:"Max rows & cols = 2"},{cols:2,rows:1,y:2,x:2,dragEnabled:!0,resizeEnabled:!0,label:"Drag&Resize Enabled"},{cols:1,rows:1,y:2,x:4,dragEnabled:!1,resizeEnabled:!1,label:"Drag&Resize Disabled"},{cols:1,rows:1,y:2,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}ngOnDestroy(){document.body.removeAttribute("dir")}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-rtl"]],decls:53,vars:14,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/rtl","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["aria-label","Grid type","placeholder","Grid Type",3,"ngModelChange","ngModel"],["value","fit"],["value","scrollVertical"],["value","scrollHorizontal"],["value","fixed"],["value","verticalFixed"],["value","horizontalFixed"],["aria-label","Display grid lines","placeholder","Display grid lines",3,"ngModelChange","ngModel"],["value","always"],["value","onDrag&Resize"],["value","none"],[3,"ngModelChange","ngModel"],[3,"ngModel"],["matInput","","min","0","max","30","step","1","type","number","placeholder","Margin",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Mobile Breakpoint",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Fixed Col Width",3,"ngModelChange","ngModel"],["matInput","","type","number","placeholder","Fixed Row Height",3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],[1,"gridster-item-content"],[1,"item-buttons"],["mat-mini-fab",""],[1,"stuff"],["href","https://www.google.com","target","_blank"],["mat-icon-button","",1,"drag-handler"],["mat-icon-button","",1,"remove-button",3,"mousedown","touchstart"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-form-field")(8,"mat-select",4),C("ngModelChange",function(r){return w(t.options.gridType,r)||(t.options.gridType=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(9,"mat-option",5),m(10,"Fit to screen"),d(),l(11,"mat-option",6),m(12,"Scroll Vertical"),d(),l(13,"mat-option",7),m(14,"Scroll Horizontal"),d(),l(15,"mat-option",8),m(16,"Fixed"),d(),l(17,"mat-option",9),m(18,"Vertical Fixed"),d(),l(19,"mat-option",10),m(20,"Horizontal Fixed"),d()()(),l(21,"mat-form-field")(22,"mat-select",11),C("ngModelChange",function(r){return w(t.options.displayGrid,r)||(t.options.displayGrid=r),r}),g("ngModelChange",function(){return t.changedOptions()}),l(23,"mat-option",12),m(24,"Always"),d(),l(25,"mat-option",13),m(26,"On Drag & Resize"),d(),l(27,"mat-option",14),m(28,"None"),d()()(),l(29,"mat-checkbox",15),C("ngModelChange",function(r){return w(t.options.swap,r)||(t.options.swap=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(30," Swap Items "),d(),l(31,"mat-checkbox",15),C("ngModelChange",function(r){return w(t.options.pushItems,r)||(t.options.pushItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(32," Push Items "),d(),Y(33,yx,2,1,"mat-checkbox",16)(34,xx,2,1,"mat-checkbox",16),l(35,"mat-checkbox",15),C("ngModelChange",function(r){return w(t.options.pushResizeItems,r)||(t.options.pushResizeItems=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(36," Push Resize Items "),d(),l(37,"mat-form-field")(38,"input",17),C("ngModelChange",function(r){return w(t.options.margin,r)||(t.options.margin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(39,"mat-checkbox",15),C("ngModelChange",function(r){return w(t.options.outerMargin,r)||(t.options.outerMargin=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(40,"Outer Margin "),d(),l(41,"mat-form-field")(42,"input",18),C("ngModelChange",function(r){return w(t.options.mobileBreakpoint,r)||(t.options.mobileBreakpoint=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(43,"mat-form-field")(44,"input",19),C("ngModelChange",function(r){return w(t.options.fixedColWidth,r)||(t.options.fixedColWidth=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(45,"mat-form-field")(46,"input",20),C("ngModelChange",function(r){return w(t.options.fixedRowHeight,r)||(t.options.fixedRowHeight=r),r}),g("ngModelChange",function(){return t.changedOptions()}),d()(),l(47,"button",21),g("click",function(){return t.addItem()}),l(48,"mat-icon"),m(49,"add"),d()()(),l(50,"gridster",22),ie(51,Ix,6,5,"gridster-item",23,ge),d()),e&2&&(h(5),M("src","assets/rtl.md"),h(3),x("ngModel",t.options.gridType),h(14),x("ngModel",t.options.displayGrid),h(7),x("ngModel",t.options.swap),h(2),x("ngModel",t.options.pushItems),h(2),L(t.options.draggable?33:-1),h(),L(t.options.resizable?34:-1),h(),x("ngModel",t.options.pushResizeItems),h(3),x("ngModel",t.options.margin),h(),x("ngModel",t.options.outerMargin),h(3),x("ngModel",t.options.mobileBreakpoint),h(2),x("ngModel",t.options.fixedColWidth),h(2),x("ngModel",t.options.fixedRowHeight),h(4),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Xe,Qe,Me,gi,fi,xe,de,ce,zi,be,je,Oe,he,me,tt,et,We,_t,gt,st,le,_e,se,pe],encapsulation:2,changeDetection:0})};function Ex(o,i){if(o&1){let e=F();l(0,"gridster-item",7)(1,"div",8)(2,"button",9),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(3,"mat-icon"),m(4,"delete"),d()()()()}if(o&2){let e=i.$implicit;M("item",e)}}var la=class o{options;dashboard;ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,pushItems:!1,swap:!0,swapWhileDragging:!1,draggable:{enabled:!0},resizable:{enabled:!0}},this.dashboard=[{cols:2,rows:1,y:0,x:0},{cols:2,rows:2,y:0,x:2},{cols:1,rows:1,y:0,x:4},{cols:3,rows:2,y:1,x:4},{cols:1,rows:1,y:4,x:5},{cols:1,rows:1,y:2,x:1},{cols:2,rows:2,y:5,x:5},{cols:2,rows:2,y:3,x:2},{cols:2,rows:1,y:2,x:2},{cols:1,rows:1,y:3,x:4},{cols:1,rows:1,y:0,x:6}]}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-swap"]],decls:17,vars:4,consts:[[1,"options"],["mat-raised-button","","href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/swap","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],[3,"ngModelChange","ngModel"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],[1,"button-holder"],["mat-mini-fab","",3,"mousedown","touchstart"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.swap,r)||(t.options.swap=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(8," Swap Items "),d(),l(9,"mat-checkbox",4),C("ngModelChange",function(r){return w(t.options.swapWhileDragging,r)||(t.options.swapWhileDragging=r),r}),g("ngModelChange",function(){return t.changedOptions()}),m(10," Swap Items While Dragging "),d(),l(11,"button",5),g("click",function(){return t.addItem()}),l(12,"mat-icon"),m(13,"add"),d()()(),l(14,"gridster",6),ie(15,Ex,5,1,"gridster-item",7,ge),d()),e&2&&(h(5),M("src","assets/swap.md"),h(2),x("ngModel",t.options.swap),h(2),x("ngModel",t.options.swapWhileDragging),h(5),M("options",t.options),h(),ne(t.dashboard))},dependencies:[Ie,Me,xe,de,ce,be,je,Oe,he,me,le,_e,se,pe],encapsulation:2,changeDetection:0})};var ca=class o{id;ngOnInit(){console.info(`Init ${this.id}`)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-trackby-item"]],inputs:{id:"id"},decls:3,vars:1,consts:[[1,"button-holder"],[2,"font-size","30px"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1),m(2),d()()),e&2&&(h(2),Ir("ID: ",t.id,""))},encapsulation:2,changeDetection:0})};var Sx=(o,i)=>i.id;function Tx(o,i){if(o&1){let e=F();l(0,"gridster-item",7)(1,"button",8),g("mousedown",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))})("touchstart",function(n){let r=b(e).$implicit,s=f();return v(s.removeItem(n,r))}),l(2,"mat-icon"),m(3,"delete"),d()(),D(4,"app-trackby-item",9),d()}if(o&2){let e=i.$implicit;M("item",e),h(4),M("id",e.id)}}var da=class o{options;dashboard;dashboardOriginal;static itemInit(i,e){console.info("itemInitialized",i,e)}ngOnInit(){this.options={gridType:P.Fit,displayGrid:ve.Always,compactType:ue.None,pushItems:!0,draggable:{enabled:!0},resizable:{enabled:!0},minCols:1,maxCols:100,minRows:1,maxRows:100,maxItemCols:100,minItemCols:1,maxItemRows:100,minItemRows:1,maxItemArea:2500,minItemArea:1,defaultItemCols:1,defaultItemRows:1},this.dashboard=[{cols:2,rows:1,y:0,x:0,initCallback:o.itemInit,minItemCols:1,maxItemCols:100,maxItemRows:100,minItemRows:1,minItemArea:1,maxItemArea:2500,dragEnabled:!0,resizeEnabled:!0,compactEnabled:!0,id:0},{cols:2,rows:2,y:0,x:2,id:1},{cols:1,rows:1,y:0,x:4,id:2},{cols:3,rows:2,y:1,x:4,id:3},{cols:1,rows:1,y:2,x:1,id:4}],this.dashboardOriginal=this.dashboard.map(i=>k({},i))}changedOptions(){this.options.api&&this.options.api.optionsChanged&&this.options.api.optionsChanged()}reset(){this.dashboard=this.dashboardOriginal.map(i=>k({},i))}addItem(){this.dashboard.push({x:0,y:0,cols:1,rows:1,id:this.dashboard.length})}removeItem(i,e){i.preventDefault(),i.stopPropagation(),this.dashboard.splice(this.dashboard.indexOf(e),1)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=E({type:o,selectors:[["app-trackby"]],decls:15,vars:2,consts:[[1,"options"],["href","https://github.com/tiberiuzuld/angular-gridster2/tree/master/src/app/sections/trackBy","mat-raised-button","","target","_blank",1,"source-code-button"],[3,"src"],[1,"options-header"],["color","accent","mat-raised-button","",1,"cols-2",3,"click"],["mat-mini-fab","",1,"add-button","cols-2",3,"click"],[3,"options"],[3,"item"],["mat-mini-fab","",2,"position","absolute","right","10px","top","10px",3,"mousedown","touchstart"],[3,"id"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"a",1)(2,"mat-icon"),m(3,"open_in_new"),d(),m(4," Source "),d(),D(5,"markdown",2),d(),l(6,"div",3)(7,"button",4),g("click",function(){return t.reset()}),m(8," Reset "),d(),l(9,"button",5),g("click",function(){return t.addItem()}),l(10,"mat-icon"),m(11,"add"),d()()(),l(12,"gridster",6),ie(13,Tx,5,2,"gridster-item",7,Sx),d()),e&2&&(h(5),M("src","assets/trackBy.md"),h(7),M("options",t.options),h(),ne(t.dashboard))},dependencies:[de,ce,Os,be,he,me,le,_e,se,pe,ca],encapsulation:2,changeDetection:0})};var cp=[{path:"",component:ea},{path:"api",component:Ls},{path:"compact",component:Ws},{path:"displayGrid",component:js},{path:"drag",component:$s},{path:"dynamicWidgets",component:qs},{path:"emptyCell",component:Xs},{path:"gridEvents",component:Zs},{path:"gridMargins",component:Ks},{path:"gridSizes",component:Qs},{path:"gridTypes",component:Js},{path:"items",component:ta},{path:"trackBy",component:da},{path:"push",component:ra},{path:"resize",component:sa},{path:"swap",component:la},{path:"multiLayer",component:oa},{path:"misc",component:ia},{path:"rtl",component:aa},{path:"**",redirectTo:""}];var dp={providers:[Id({eventCoalescing:!0}),qh(cp),Yd(),cc(),nd(le.forRoot({loader:Ki,markedOptions:{provide:yc,useValue:{breaks:!0}}})),cc()]};nm(Es,dp).catch(o=>console.log(o)); diff --git a/polyfills-FFHMD2TL.js b/polyfills-FFHMD2TL.js deleted file mode 100644 index b01b791..0000000 --- a/polyfills-FFHMD2TL.js +++ /dev/null @@ -1,2 +0,0 @@ -var ce=globalThis;function te(e){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ce.performance;function n(M){e&&e.mark&&e.mark(M)}function a(M,s){e&&e.measure&&e.measure(M,s)}n("Zone");class t{static{this.__symbol__=te}static assertZonePatched(){if(ce.Promise!==S.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 s=t.current;for(;s.parent;)s=s.parent;return s}static get current(){return b.zone}static get currentTask(){return D}static __load_patch(s,i,o=!1){if(S.hasOwnProperty(s)){let g=ce[te("forceDuplicateZoneCheck")]===!0;if(!o&&g)throw Error("Already loaded patch: "+s)}else if(!ce["__Zone_disable_"+s]){let g="Zone:"+s;n(g),S[s]=i(ce,t,w),a(g,g)}}get parent(){return this._parent}get name(){return this._name}constructor(s,i){this._parent=s,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(s){let i=this.getZoneWith(s);if(i)return i._properties[s]}getZoneWith(s){let i=this;for(;i;){if(i._properties.hasOwnProperty(s))return i;i=i._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,i){if(typeof s!="function")throw new Error("Expecting function got: "+s);let o=this._zoneDelegate.intercept(this,s,i),g=this;return function(){return g.runGuarded(o,this,arguments,i)}}run(s,i,o,g){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,i,o,g)}finally{b=b.parent}}runGuarded(s,i=null,o,g){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,i,o,g)}catch(V){if(this._zoneDelegate.handleError(this,V))throw V}}finally{b=b.parent}}runTask(s,i,o){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");let g=s,{type:V,data:{isPeriodic:ee=!1,isRefreshable:Z=!1}={}}=s;if(s.state===q&&(V===z||V===y))return;let he=s.state!=A;he&&g._transitionTo(A,d);let _e=D;D=g,b={parent:b,zone:this};try{V==y&&s.data&&!ee&&!Z&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,g,i,o)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{let Q=s.state;if(Q!==q&&Q!==X)if(V==z||ee||Z&&Q===k)he&&g._transitionTo(d,A,k);else{let Ee=g._zoneDelegates;this._updateTaskCount(g,-1),he&&g._transitionTo(q,A,q),Z&&(g._zoneDelegates=Ee)}b=b.parent,D=_e}}scheduleTask(s){if(s.zone&&s.zone!==this){let o=this;for(;o;){if(o===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);o=o.parent}}s._transitionTo(k,q);let i=[];s._zoneDelegates=i,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(o){throw s._transitionTo(X,k,q),this._zoneDelegate.handleError(this,o),o}return s._zoneDelegates===i&&this._updateTaskCount(s,1),s.state==k&&s._transitionTo(d,k),s}scheduleMicroTask(s,i,o,g){return this.scheduleTask(new E(G,s,i,o,g,void 0))}scheduleMacroTask(s,i,o,g,V){return this.scheduleTask(new E(y,s,i,o,g,V))}scheduleEventTask(s,i,o,g,V){return this.scheduleTask(new E(z,s,i,o,g,V))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");if(!(s.state!==d&&s.state!==A)){s._transitionTo(x,d,A);try{this._zoneDelegate.cancelTask(this,s)}catch(i){throw s._transitionTo(X,x),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(s,-1),s._transitionTo(q,x),s.runCount=-1,s}}_updateTaskCount(s,i){let o=s._zoneDelegates;i==-1&&(s._zoneDelegates=null);for(let g=0;gM.hasTask(i,o),onScheduleTask:(M,s,i,o)=>M.scheduleTask(i,o),onInvokeTask:(M,s,i,o,g,V)=>M.invokeTask(i,o,g,V),onCancelTask:(M,s,i,o)=>M.cancelTask(i,o)};class f{get zone(){return this._zone}constructor(s,i,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=s,this._parentDelegate=i,this._forkZS=o&&(o&&o.onFork?o:i._forkZS),this._forkDlgt=o&&(o.onFork?i:i._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:i._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:i._interceptZS),this._interceptDlgt=o&&(o.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:i._invokeZS),this._invokeDlgt=o&&(o.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:i._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:i._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:i._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:i._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let g=o&&o.onHasTask,V=i&&i._hasTaskZS;(g||V)&&(this._hasTaskZS=g?o:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(s,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,i):new t(s,i)}intercept(s,i,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,i,o):i}invoke(s,i,o,g,V){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,i,o,g,V):i.apply(o,g)}handleError(s,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,i):!0}scheduleTask(s,i){let o=i;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,i),o||(o=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==G)U(i);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(s,i,o,g){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,i,o,g):i.callback.apply(o,g)}cancelTask(s,i){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");o=i.cancelFn(i)}return o}hasTask(s,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,i)}catch(o){this.handleError(s,o)}}_updateTaskCount(s,i){let o=this._taskCounts,g=o[s],V=o[s]=g+i;if(V<0)throw new Error("More tasks executed then were scheduled.");if(g==0||V==0){let ee={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:s};this.hasTask(this._zone,ee)}}}class E{constructor(s,i,o,g,V,ee){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=s,this.source=i,this.data=g,this.scheduleFn=V,this.cancelFn=ee,!o)throw new Error("callback is not defined");this.callback=o;let Z=this;s===z&&g&&g.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ce,Z,this,arguments)}}static invokeTask(s,i,o){s||(s=this),K++;try{return s.runCount++,s.zone.runTask(s,i,o)}finally{K==1&&$(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,k)}_transitionTo(s,i,o){if(this._state===i||this._state===o)this._state=s,s==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${i}'${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 T=te("setTimeout"),p=te("Promise"),C=te("then"),_=[],P=!1,I;function H(M){if(I||ce[p]&&(I=ce[p].resolve(0)),I){let s=I[C];s||(s=I.then),s.call(I,M)}else ce[T](M,0)}function U(M){K===0&&_.length===0&&H($),M&&_.push(M)}function $(){if(!P){for(P=!0;_.length;){let M=_;_=[];for(let s=0;sb,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[te("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:H},b={parent:null,zone:new t(null,null)},D=null,K=0;function W(){}return a("Zone","Zone"),t}function _t(){let e=globalThis,n=e[te("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=te(He),Ie=te(xe),ae="true",le="false",Pe=te("");function Ve(e,n){return Zone.current.wrap(e,n)}function Ge(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var j=te,De=typeof window<"u",pe=De?window:void 0,Y=De&&pe||globalThis,gt="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ve(e[a],n+"_"+a));return e}function yt(e,n){let a=e.constructor.name;for(let t=0;t{let p=function(){return T.apply(this,Fe(arguments,a+"."+c))};return fe(p,T),p})(f)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in Y)&&typeof Y.process<"u"&&Y.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof Y.process<"u"&&Y.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},mt=j("enable_beforeunload"),Ye=function(e){if(e=e||Y.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=j("ON_PROPERTY"+e.type));let a=this||e.target||Y,t=a[n],c;if(Be&&a===pe&&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),e.type==="beforeunload"&&Y[mt]&&typeof c=="string"?e.returnValue=c:c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=be(e,n);if(!t&&a&&be(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,E=t.set,T=n.slice(2),p=Ce[T];p||(p=Ce[T]=j("ON_PROPERTY"+T)),t.set=function(C){let _=this;if(!_&&e===Y&&(_=Y),!_)return;typeof _[p]=="function"&&_.removeEventListener(T,Ye),E&&E.call(_,null),_[p]=C,typeof C=="function"&&_.addEventListener(T,Ye,!1)},t.get=function(){let C=this;if(!C&&e===Y&&(C=Y),!C)return null;let _=C[p];if(_)return _;if(f){let P=f.call(this);if(P)return t.set.call(this,P),typeof C[gt]=="function"&&C.removeAttribute(n),P}return null},Ae(e,n,t),e[c]=!0}function ot(e,n,a){if(n)for(let t=0;tfunction(E,T){let p=a(E,T);return p.cbIdx>=0&&typeof T[p.cbIdx]=="function"?Ge(p.name,T[p.cbIdx],p,c):f.apply(E,T)})}function fe(e,n){e[j("OriginalDelegate")]=n}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var me=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{me=!1}var bt={useG:!0},ne={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=j("propagationStopped");function at(e,n){let a=(n?n(e):e)+le,t=(n?n(e):e)+ae,c=Pe+a,f=Pe+t;ne[e]={},ne[e][le]=c,ne[e][ae]=f}function Pt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",p=j(c),C="."+c+":",_="prependListener",P="."+_+":",I=function(k,d,A){if(k.isRemoved)return;let x=k.callback;typeof x=="object"&&x.handleEvent&&(k.callback=y=>x.handleEvent(y),k.originalDelegate=x);let X;try{k.invoke(k,d,[A])}catch(y){X=y}let G=k.options;if(G&&typeof G=="object"&&G.once){let y=k.originalDelegate?k.originalDelegate:k.callback;d[f].call(d,A.type,y,G)}return X};function H(k,d,A){if(d=d||e.event,!d)return;let x=k||d.target||e,X=x[ne[d.type][A?ae:le]];if(X){let G=[];if(X.length===1){let y=I(X[0],x,d);y&&G.push(y)}else{let y=X.slice();for(let z=0;z{throw z})}}}let U=function(k){return H(this,k,!1)},$=function(k){return H(this,k,!0)};function J(k,d){if(!k)return!1;let A=!0;d&&d.useG!==void 0&&(A=d.useG);let x=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let G=!1;d&&d.rt!==void 0&&(G=d.rt);let y=k;for(;y&&!y.hasOwnProperty(c);)y=je(y);if(!y&&k[c]&&(y=k),!y||y[p])return!1;let z=d&&d.eventNameToString,S={},w=y[p]=y[c],b=y[j(f)]=y[f],D=y[j(E)]=y[E],K=y[j(T)]=y[T],W;d&&d.prepend&&(W=y[j(d.prepend)]=y[d.prepend]);function M(r,u){return!me&&typeof r=="object"&&r?!!r.capture:!me||!u?r:typeof r=="boolean"?{capture:r,passive:!0}:r?typeof r=="object"&&r.passive!==!1?{...r,passive:!0}:r:{passive:!0}}let s=function(r){if(!S.isExisting)return w.call(S.target,S.eventName,S.capture?$:U,S.options)},i=function(r){if(!r.isRemoved){let u=ne[r.eventName],v;u&&(v=u[r.capture?ae:le]);let R=v&&r.target[v];if(R){for(let m=0;mre.zone.cancelTask(re);r.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(S.target=null,ke&&(ke.taskData=null),Ue&&(S.options.once=!0),!me&&typeof re.options=="boolean"||(re.options=se),re.target=N,re.capture=Oe,re.eventName=L,B&&(re.originalDelegate=F),O?ge.unshift(re):ge.push(re),m)return N}};return y[c]=l(w,C,ee,Z,G),W&&(y[_]=l(W,P,g,Z,G,!0)),y[f]=function(){let r=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(x&&!x(b,m,r,arguments))return;let O=ne[u],N;O&&(N=O[R?ae:le]);let L=N&&r[N];if(L)for(let F=0;Ffunction(c,f){c[ct]=!0,t&&t.apply(c,f)})}function Rt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=j("zoneTask");function ye(e,n,a,t){let c=null,f=null;n+=t,a+=t;let E={};function T(C){let _=C.data;_.args[0]=function(){return C.invoke.apply(this,arguments)};let P=c.apply(e,_.args);return Qe(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Ke(P.refresh)),C}function p(C){let{handle:_,handleId:P}=C.data;return f.call(e,_??P)}c=ue(e,n,C=>function(_,P){if(Ke(P[0])){let I={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?P[1]||0:void 0,args:P},H=P[0];P[0]=function(){try{return H.apply(this,arguments)}finally{let{handle:A,handleId:x,isPeriodic:X,isRefreshable:G}=I;!X&&!G&&(x?delete E[x]:A&&(A[Re]=null))}};let U=Ge(n,P[0],I,T,p);if(!U)return U;let{handleId:$,handle:J,isRefreshable:q,isPeriodic:k}=U.data;if($)E[$]=U;else if(J&&(J[Re]=U,q&&!k)){let d=J.refresh;J.refresh=function(){let{zone:A,state:x}=U;return x==="notScheduled"?(U._state="scheduled",A._updateTaskCount(U,1)):x==="running"&&(U._state="scheduling"),d.call(this)}}return J??$??U}else return C.apply(e,P)}),f=ue(e,a,C=>function(_,P){let I=P[0],H;Qe(I)?(H=E[I],delete E[I]):(H=I?.[Re],H?I[Re]=null:H=I),H?.type?H.cancelFn&&H.zone.cancelTask(H):C.apply(e,P)})}function Ct(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 Dt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:E}=n.getGlobalObjects();for(let p=0;pf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function et(e,n,a,t){if(!e)return;let c=ut(e,n,a);ot(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ot(e,n){if(Se&&!rt||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=kt()?[{target:c,ignoreProperties:["error"]}]:[];et(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";ye(n,a,t,"Timeout"),ye(n,a,t,"Interval"),ye(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{ye(n,"request","cancel","AnimationFrame"),ye(n,"mozRequest","mozCancel","AnimationFrame"),ye(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,_){return a.current.run(E,n,_,p)})}}),e.__load_patch("EventTarget",(n,a,t)=>{St(n,t),Dt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ve("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ot(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Ct(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=j("xhrTask"),c=j("xhrSync"),f=j("xhrListener"),E=j("xhrScheduled"),T=j("xhrURL"),p=j("xhrErrorBeforeScheduled");function C(_){let P=_.XMLHttpRequest;if(!P)return;let I=P.prototype;function H(w){return w[t]}let U=I[Le],$=I[Ie];if(!U){let w=_.XMLHttpRequestEventTarget;if(w){let b=w.prototype;U=b[Le],$=b[Ie]}}let J="readystatechange",q="scheduled";function k(w){let b=w.data,D=b.target;D[E]=!1,D[p]=!1;let K=D[f];U||(U=D[Le],$=D[Ie]),K&&$.call(D,J,K);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[E]&&w.state===q){let s=D[a.__symbol__("loadfalse")];if(D.status!==0&&s&&s.length>0){let i=w.invoke;w.invoke=function(){let o=D[a.__symbol__("loadfalse")];for(let g=0;gfunction(w,b){return w[c]=b[2]==!1,w[T]=b[1],x.apply(w,b)}),X="XMLHttpRequest.send",G=j("fetchTaskAborting"),y=j("fetchTaskScheduling"),z=ue(I,"send",()=>function(w,b){if(a.current[y]===!0||w[c])return z.apply(w,b);{let D={target:w,url:w[T],isPeriodic:!1,args:b,aborted:!1},K=Ge(X,d,D,k,A);w&&w[p]===!0&&!D.aborted&&K.state===q&&K.invoke()}}),S=ue(I,"abort",()=>function(w,b){let D=H(w);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[G]===!0)return S.apply(w,b)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&yt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){lt(n,c).forEach(T=>{let p=n.PromiseRejectionEvent;if(p){let C=new p(c,{promise:f.promise,reason:f.rejection});T.invoke(C)}})}}n.PromiseRejectionEvent&&(a[j("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[j("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{Rt(n,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function E(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 T=t.symbol,p=[],C=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),I="__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(;p.length;){let h=p.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){U(l)}}};let H=T("unhandledPromiseRejectionHandler");function U(h){t.onUnhandledError(h);try{let l=a[H];typeof l=="function"&&l.call(this,h)}catch{}}function $(h){return h&&h.then}function J(h){return h}function q(h){return Z.reject(h)}let k=T("state"),d=T("value"),A=T("finally"),x=T("parentPromiseValue"),X=T("parentPromiseState"),G="Promise.then",y=null,z=!0,S=!1,w=0;function b(h,l){return r=>{try{M(h,l,r)}catch(u){M(h,!1,u)}}}let D=function(){let h=!1;return function(r){return function(){h||(h=!0,r.apply(null,arguments))}}},K="Promise resolved with itself",W=T("currentTaskTrace");function M(h,l,r){let u=D();if(h===r)throw new TypeError(K);if(h[k]===y){let v=null;try{(typeof r=="object"||typeof r=="function")&&(v=r&&r.then)}catch(R){return u(()=>{M(h,!1,R)})(),h}if(l!==S&&r instanceof Z&&r.hasOwnProperty(k)&&r.hasOwnProperty(d)&&r[k]!==y)i(r),M(h,r[k],r[d]);else if(l!==S&&typeof v=="function")try{v.call(r,u(b(h,l)),u(b(h,!1)))}catch(R){u(()=>{M(h,!1,R)})()}else{h[k]=l;let R=h[d];if(h[d]=r,h[A]===A&&l===z&&(h[k]=h[X],h[d]=h[x]),l===S&&r instanceof Error){let m=a.currentTask&&a.currentTask.data&&a.currentTask.data[I];m&&f(r,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let O=h[d],N=!!r&&A===r[A];N&&(r[x]=O,r[X]=R);let L=l.run(m,void 0,N&&m!==q&&m!==J?[]:[O]);M(r,!0,L)}catch(O){M(r,!1,O)}},r)}let g="function ZoneAwarePromise() { [native code] }",V=function(){},ee=n.AggregateError;class Z{static toString(){return g}static resolve(l){return l instanceof Z?l:M(new this(null),z,l)}static reject(l){return M(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new Z((r,u)=>{l.resolve=r,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new ee([],"All promises were rejected"));let r=[],u=0;try{for(let m of l)u++,r.push(Z.resolve(m))}catch{return Promise.reject(new ee([],"All promises were rejected"))}if(u===0)return Promise.reject(new ee([],"All promises were rejected"));let v=!1,R=[];return new Z((m,O)=>{for(let N=0;N{v||(v=!0,m(L))},L=>{R.push(L),u--,u===0&&(v=!0,O(new ee(R,"All promises were rejected")))})})}static race(l){let r,u,v=new this((O,N)=>{r=O,u=N});function R(O){r(O)}function m(O){u(O)}for(let O of l)$(O)||(O=this.resolve(O)),O.then(R,m);return v}static all(l){return Z.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof Z?this:Z).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,r){let u,v,R=new this((L,F)=>{u=L,v=F}),m=2,O=0,N=[];for(let L of l){$(L)||(L=this.resolve(L));let F=O;try{L.then(B=>{N[F]=r?r.thenCallback(B):B,m--,m===0&&u(N)},B=>{r?(N[F]=r.errorCallback(B),m--,m===0&&u(N)):v(B)})}catch(B){v(B)}m++,O++}return m-=2,m===0&&u(N),R}constructor(l){let r=this;if(!(r instanceof Z))throw new Error("Must be an instanceof Promise.");r[k]=y,r[d]=[];try{let u=D();l&&l(u(b(r,z)),u(b(r,S)))}catch(u){M(r,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return Z}then(l,r){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||Z);let v=new u(V),R=a.current;return this[k]==y?this[d].push(R,v,l,r):o(this,R,v,l,r),v}catch(l){return this.then(null,l)}finally(l){let r=this.constructor?.[Symbol.species];(!r||typeof r!="function")&&(r=Z);let u=new r(V);u[A]=A;let v=a.current;return this[k]==y?this[d].push(v,u,l,l):o(this,v,u,l,l),u}}Z.resolve=Z.resolve,Z.reject=Z.reject,Z.race=Z.race,Z.all=Z.all;let he=n[_]=n.Promise;n.Promise=Z;let _e=T("thenPatched");function Q(h){let l=h.prototype,r=c(l,"then");if(r&&(r.writable===!1||!r.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,R){return new Z((O,N)=>{u.call(this,O,N)}).then(v,R)},h[_e]=!0}t.patchThen=Q;function Ee(h){return function(l,r){let u=h.apply(l,r);if(u instanceof Z)return u;let v=u.constructor;return v[_e]||Q(v),u}}return he&&(Q(he),ue(n,"fetch",h=>Ee(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=p,Z})}function It(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=j("OriginalDelegate"),c=j("Promise"),f=j("Error"),E=function(){if(typeof this=="function"){let _=this[t];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};E[t]=a,Function.prototype.toString=E;let T=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:T.call(this)}})}function Mt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let E=n[f]=n[t];n[t]=function(T,p,C){return p&&p.prototype&&c.forEach(function(_){let P=`${a}.${t}::`+_,I=p.prototype;try{if(I.hasOwnProperty(_)){let H=e.ObjectGetOwnPropertyDescriptor(I,_);H&&H.value?(H.value=e.wrapWithCurrentZone(H.value,P),e._redefineProperty(p.prototype,_,H)):I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}else I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}catch{}}),E.call(n,T,p,C)},e.attachOriginToPatched(n[t],E)}function Zt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=ot,t.patchMethod=ue,t.bindArguments=Fe,t.patchMacroTask=pt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),E=a.__symbol__("UNPATCHED_EVENTS");n[E]&&(n[f]=n[E]),n[f]&&(a[f]=a[E]=n[f]),t.patchEventPrototype=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=fe,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:ne,eventNames:c,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft);