From a96181b5245828449d8c04fa837358b67616e317 Mon Sep 17 00:00:00 2001 From: farengeyt451 Date: Mon, 13 Nov 2023 18:20:32 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20farengey?= =?UTF-8?q?t451/ngx-tippy-wrapper@d6b7201b0135886188cbd3e66be8c49d5a74b642?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- main.8b9df31831557eae.js => main.fe8a427edd2540f7.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename main.8b9df31831557eae.js => main.fe8a427edd2540f7.js (92%) diff --git a/index.html b/index.html index 60266f1..1d312e9 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ - + \ No newline at end of file diff --git a/main.8b9df31831557eae.js b/main.fe8a427edd2540f7.js similarity index 92% rename from main.8b9df31831557eae.js rename to main.fe8a427edd2540f7.js index a3dc477..62534fa 100644 --- a/main.8b9df31831557eae.js +++ b/main.fe8a427edd2540f7.js @@ -1 +1 @@ -(self.webpackChunkngx_tippy_demo=self.webpackChunkngx_tippy_demo||[]).push([[179],{333:(su,zi,It)=>{"use strict";function Be(e){return"function"==typeof e}function Br(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const ii=Br(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function wa(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Bn{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const r of t)r.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(Be(i))try{i()}catch(r){n=r instanceof ii?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{_d(r)}catch(s){n=null!=n?n:[],s instanceof ii?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ii(n)}}add(n){var t;if(n&&n!==this)if(this.closed)_d(n);else{if(n instanceof Bn){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&wa(t,n)}remove(n){const{_finalizers:t}=this;t&&wa(t,n),n instanceof Bn&&n._removeParent(this)}}Bn.EMPTY=(()=>{const e=new Bn;return e.closed=!0,e})();const md=Bn.EMPTY;function Ma(e){return e instanceof Bn||e&&"closed"in e&&Be(e.remove)&&Be(e.add)&&Be(e.unsubscribe)}function _d(e){Be(e)?e():e.unsubscribe()}const ir={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Es={setTimeout(e,n,...t){const{delegate:i}=Es;return null!=i&&i.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Es;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0};function vd(e){Es.setTimeout(()=>{const{onUnhandledError:n}=ir;if(!n)throw e;n(e)})}function or(){}const Jh=au("C",void 0,void 0);function au(e,n,t){return{kind:e,value:n,error:t}}let ko=null;function rr(e){if(ir.useDeprecatedSynchronousErrorHandling){const n=!ko;if(n&&(ko={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=ko;if(ko=null,t)throw i}}else e()}class uu extends Bn{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ma(n)&&n.add(this)):this.destination=In}static create(n,t,i){return new Ss(n,t,i)}next(n){this.isStopped?cu(function Gi(e){return au("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?cu(function An(e){return au("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?cu(Jh,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const yd=Function.prototype.bind;function sr(e,n){return yd.call(e,n)}class Ea{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){Ei(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){Ei(i)}else Ei(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Ei(t)}}}class Ss extends uu{constructor(n,t,i){let o;if(super(),Be(n)||!n)o={next:null!=n?n:void 0,error:null!=t?t:void 0,complete:null!=i?i:void 0};else{let r;this&&ir.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&sr(n.next,r),error:n.error&&sr(n.error,r),complete:n.complete&&sr(n.complete,r)}):o=n}this.destination=new Ea(o)}}function Ei(e){ir.useDeprecatedSynchronousErrorHandling?function lu(e){ir.useDeprecatedSynchronousErrorHandling&&ko&&(ko.errorThrown=!0,ko.error=e)}(e):vd(e)}function cu(e,n){const{onStoppedNotification:t}=ir;t&&Es.setTimeout(()=>t(e,n))}const In={closed:!0,next:or,error:function eg(e){throw e},complete:or},Os="function"==typeof Symbol&&Symbol.observable||"@@observable";function Lt(e){return e}function du(...e){return xe(e)}function xe(e){return 0===e.length?Lt:1===e.length?e[0]:function(t){return e.reduce((i,o)=>o(i),t)}}let Ce=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,o){const r=function pu(e){return e&&e instanceof uu||function bd(e){return e&&Be(e.next)&&Be(e.error)&&Be(e.complete)}(e)&&Ma(e)}(t)?t:new Ss(t,i,o);return rr(()=>{const{operator:s,source:a}=this;r.add(s?s.call(r,a):a?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=As(i))((o,r)=>{const s=new Ss({next:a=>{try{t(a)}catch(l){r(l),s.unsubscribe()}},error:r,complete:o});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[Os](){return this}pipe(...t){return xe(t)(this)}toPromise(t){return new(t=As(t))((i,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>i(r))})}}return e.create=n=>new e(n),e})();function As(e){var n;return null!==(n=null!=e?e:ir.Promise)&&void 0!==n?n:Promise}const fu=Br(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let zt=(()=>{class e extends Ce{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new Sa(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new fu}next(t){rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:o,observers:r}=this;return i||o?md:(this.currentObservers=null,r.push(t),new Bn(()=>{this.currentObservers=null,wa(r,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:o,isStopped:r}=this;i?t.error(o):r&&t.complete()}asObservable(){const t=new Ce;return t.source=this,t}}return e.create=(n,t)=>new Sa(n,t),e})();class Sa extends zt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:md}}function Cd(e){return Be(null==e?void 0:e.lift)}function pt(e){return n=>{if(Cd(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ze(e,n,t,i,o){return new hu(e,n,t,i,o)}class hu extends uu{constructor(n,t,i,o,r,s){super(n),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function W(e,n){return pt((t,i)=>{let o=0;t.subscribe(ze(i,r=>{i.next(e.call(n,r,o++))}))})}function G(e,n,t,i){var s,o=arguments.length,r=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,n,t,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(n,t,r):s(n,t))||r);return o>3&&r&&Object.defineProperty(n,t,r),r}function Ae(e){return this instanceof Ae?(this.v=e,this):new Ae(e)}function Pt(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=t.apply(e,n||[]),r=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(p){i[p]&&(o[p]=function(h){return new Promise(function(v,C){r.push([p,h,v,C])>1||a(p,h)})})}function a(p,h){try{!function l(p){p.value instanceof Ae?Promise.resolve(p.value.v).then(u,c):d(r[0][2],p)}(i[p](h))}catch(v){d(r[0][3],v)}}function u(p){a("next",p)}function c(p){a("throw",p)}function d(p,h){p(h),r.shift(),r.length&&a(r[0][0],r[0][1])}}function ho(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function gu(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(s){return new Promise(function(a,l){!function o(r,s,a,l){Promise.resolve(l).then(function(u){r({value:u,done:a})},s)}(a,l,(s=e[r](s)).done,s.value)})}}}const jr=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function wd(e){return Be(null==e?void 0:e.then)}function Md(e){return Be(e[Os])}function Ed(e){return Symbol.asyncIterator&&Be(null==e?void 0:e[Symbol.asyncIterator])}function Aa(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const mi=function _u(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function vu(e){return Be(null==e?void 0:e[mi])}function Ps(e){return Pt(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:o}=yield Ae(t.read());if(o)return yield Ae(void 0);yield yield Ae(i)}}finally{t.releaseLock()}})}function Ia(e){return Be(null==e?void 0:e.getReader)}function en(e){if(e instanceof Ce)return e;if(null!=e){if(Md(e))return function ig(e){return new Ce(n=>{const t=e[Os]();if(Be(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(jr(e))return function og(e){return new Ce(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,vd)})}(e);if(Ed(e))return Si(e);if(vu(e))return function Sd(e){return new Ce(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Ia(e))return function yu(e){return Si(Ps(e))}(e)}throw Aa(e)}function Si(e){return new Ce(n=>{(function bu(e,n){var t,i,o,r;return function tg(e,n,t,i){return new(t||(t=Promise))(function(r,s){function a(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?r(c.value):function o(r){return r instanceof t?r:new t(function(s){s(r)})}(c.value).then(a,l)}u((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=ho(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=t.return)&&(yield r.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function mo(e,n,t,i=0,o=!1){const r=n.schedule(function(){t(),o?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(r),!o)return r}function Zt(e,n,t=1/0){return Be(n)?Zt((i,o)=>W((r,s)=>n(i,r,o,s))(en(e(i,o))),t):("number"==typeof n&&(t=n),pt((i,o)=>function sg(e,n,t,i,o,r,s,a){const l=[];let u=0,c=0,d=!1;const p=()=>{d&&!l.length&&!u&&n.complete()},h=C=>u{r&&n.next(C),u++;let M=!1;en(t(C,c++)).subscribe(ze(n,T=>{null==o||o(T),r?h(T):n.next(T)},()=>{M=!0},void 0,()=>{if(M)try{for(u--;l.length&&uv(T)):v(T)}p()}catch(T){n.error(T)}}))};return e.subscribe(ze(n,h,()=>{d=!0,p()})),()=>{null==a||a()}}(i,o,e,t)))}function ar(e=1/0){return Zt(Lt,e)}const xt=new Ce(e=>e.complete());function tn(e){return e&&Be(e.schedule)}function Pa(e){return e[e.length-1]}function St(e){return Be(Pa(e))?e.pop():void 0}function _o(e){return tn(Pa(e))?e.pop():void 0}function Du(e,n=0){return pt((t,i)=>{t.subscribe(ze(i,o=>mo(i,e,()=>i.next(o),n),()=>mo(i,e,()=>i.complete(),n),o=>mo(i,e,()=>i.error(o),n)))})}function xa(e,n=0){return pt((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function Na(e,n){if(!e)throw new Error("Iterable cannot be null");return new Ce(t=>{mo(t,n,()=>{const i=e[Symbol.asyncIterator]();mo(t,n,()=>{i.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function bt(e,n){return n?function Ra(e,n){if(null!=e){if(Md(e))return function Ad(e,n){return en(e).pipe(xa(n),Du(n))}(e,n);if(jr(e))return function lr(e,n){return new Ce(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(wd(e))return function $r(e,n){return en(e).pipe(xa(n),Du(n))}(e,n);if(Ed(e))return Na(e,n);if(vu(e))return function Tu(e,n){return new Ce(t=>{let i;return mo(t,n,()=>{i=e[mi](),mo(t,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(s){return void t.error(s)}r?t.complete():t.next(o)},0,!0)}),()=>Be(null==i?void 0:i.return)&&i.return()})}(e,n);if(Ia(e))return function zr(e,n){return Na(Ps(e),n)}(e,n)}throw Aa(e)}(e,n):en(e)}function Vt(...e){const n=_o(e),t=function Cu(e,n){return"number"==typeof Pa(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?en(i[0]):ar(t)(bt(i,n)):xt}function vo(e={}){const{connector:n=(()=>new zt),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=e;return r=>{let s,a,l,u=0,c=!1,d=!1;const p=()=>{null==a||a.unsubscribe(),a=void 0},h=()=>{p(),s=l=void 0,c=d=!1},v=()=>{const C=s;h(),null==C||C.unsubscribe()};return pt((C,M)=>{u++,!d&&!c&&p();const T=l=null!=l?l:n();M.add(()=>{u--,0===u&&!d&&!c&&(a=wu(v,o))}),T.subscribe(M),!s&&u>0&&(s=new Ss({next:A=>T.next(A),error:A=>{d=!0,p(),a=wu(h,t,A),T.error(A)},complete:()=>{c=!0,p(),a=wu(h,i),T.complete()}}),en(C).subscribe(s))})(r)}}function wu(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new Ss({next:()=>{i.unsubscribe(),e()}});return n(...t).subscribe(i)}function at(e){for(let n in e)if(e[n]===at)return n;throw Error("Could not find renamed property on target object.")}function ur(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Qe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Qe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Lo(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const Id=at({__forward_ref__:at});function ke(e){return e.__forward_ref__=ke,e.toString=function(){return Qe(this())},e}function he(e){return xs(e)?e():e}function xs(e){return"function"==typeof e&&e.hasOwnProperty(Id)&&e.__forward_ref__===ke}class N extends Error{constructor(n,t){super(function Gr(e,n){return`NG0${Math.abs(e)}${n?": "+n.trim():""}`}(n,t)),this.code=n}}function pe(e){return"string"==typeof e?e:null==e?"":String(e)}function Fa(e,n){throw new N(-201,!1)}function Un(e,n){null==e&&function tt(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(n,e,null,"!=")}function $(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ie(e){return{providers:e.providers||[],imports:e.imports||[]}}function Fs(e){return se(e,We)||se(e,hn)}function se(e,n){return e.hasOwnProperty(n)?e[n]:null}function K(e){return e&&(e.hasOwnProperty(Mn)||e.hasOwnProperty(gn))?e[Mn]:null}const We=at({\u0275prov:at}),Mn=at({\u0275inj:at}),hn=at({ngInjectableDef:at}),gn=at({ngInjectorDef:at});var ue=(()=>((ue=ue||{})[ue.Default=0]="Default",ue[ue.Host=1]="Host",ue[ue.Self=2]="Self",ue[ue.SkipSelf=4]="SkipSelf",ue[ue.Optional=8]="Optional",ue))();let nn;function oi(e){const n=nn;return nn=e,n}function gg(e,n,t){const i=Fs(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&ue.Optional?null:void 0!==n?n:void Fa(Qe(e))}function Wr(e){return{toString:e}.toString()}var bo=(()=>((bo=bo||{})[bo.OnPush=0]="OnPush",bo[bo.Default=1]="Default",bo))(),Co=(()=>{return(e=Co||(Co={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Co;var e})();const Ct=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),La={},lt=[],xd=at({\u0275cmp:at}),mg=at({\u0275dir:at}),_g=at({\u0275pipe:at}),mC=at({\u0275mod:at}),cr=at({\u0275fac:at}),Au=at({__NG_ELEMENT_ID__:at});let UP=0;function de(e){return Wr(()=>{const t=!0===e.standalone,i={},o={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===bo.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||lt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Co.Emulated,id:"c"+UP++,styles:e.styles||lt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.dependencies,s=e.features;return o.inputs=yC(e.inputs,i),o.outputs=yC(e.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=r?()=>("function"==typeof r?r():r).map(_C).filter(vC):null,o.pipeDefs=r?()=>("function"==typeof r?r():r).map(si).filter(vC):null,o})}function _C(e){return ft(e)||ri(e)}function vC(e){return null!==e}function oe(e){return Wr(()=>({type:e.type,bootstrap:e.bootstrap||lt,declarations:e.declarations||lt,imports:e.imports||lt,exports:e.exports||lt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function yC(e,n){if(null==e)return La;const t={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),t[o]=i,n&&(n[o]=r)}return t}const V=de;function Pn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ft(e){return e[xd]||null}function ri(e){return e[mg]||null}function si(e){return e[_g]||null}function Ai(e,n){const t=e[mC]||null;if(!t&&!0===n)throw new Error(`Type ${Qe(e)} does not have '\u0275mod' property.`);return t}function _i(e){return Array.isArray(e)&&"object"==typeof e[1]}function To(e){return Array.isArray(e)&&!0===e[1]}function bg(e){return 0!=(8&e.flags)}function kd(e){return 2==(2&e.flags)}function Ld(e){return 1==(1&e.flags)}function wo(e){return null!==e.template}function qP(e){return 0!=(256&e[2])}function Bs(e,n){return e.hasOwnProperty(cr)?e[cr]:null}class ZP{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function mn(){return DC}function DC(e){return e.type.prototype.ngOnChanges&&(e.setInput=XP),QP}function QP(){const e=wC(this),n=null==e?void 0:e.current;if(n){const t=e.previous;if(t===La)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function XP(e,n,t,i){const o=wC(e)||function JP(e,n){return e[TC]=n}(e,{previous:La,current:null}),r=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[t],l=s[a];r[a]=new ZP(l&&l.currentValue,n,s===La),e[i]=n}mn.ngInherit=!0;const TC="__ngSimpleChanges__";function wC(e){return e[TC]||null}function on(e){for(;Array.isArray(e);)e=e[0];return e}function Vd(e,n){return on(n[e])}function Pi(e,n){return on(n[e.index])}function Mg(e,n){return e.data[n]}function ja(e,n){return e[n]}function xi(e,n){const t=n[e];return _i(t)?t:t[0]}function Hd(e){return 64==(64&e[2])}function qr(e,n){return null==n?null:e[n]}function MC(e){e[18]=0}function Eg(e,n){e[5]+=n;let t=e,i=e[3];for(;null!==i&&(1===n&&1===t[5]||-1===n&&0===t[5]);)i[5]+=n,t=i,i=i[3]}const Te={lFrame:FC(null),bindingsEnabled:!0};function SC(){return Te.bindingsEnabled}function k(){return Te.lFrame.lView}function Xe(){return Te.lFrame.tView}function zn(e){return Te.lFrame.contextLView=e,e[8]}function Gn(e){return Te.lFrame.contextLView=null,e}function _n(){let e=OC();for(;null!==e&&64===e.type;)e=e.parent;return e}function OC(){return Te.lFrame.currentTNode}function Ho(e,n){const t=Te.lFrame;t.currentTNode=e,t.isParent=n}function Sg(){return Te.lFrame.isParent}function Og(){Te.lFrame.isParent=!1}function ai(){const e=Te.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function $a(){return Te.lFrame.bindingIndex++}function pr(e){const n=Te.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function hx(e,n){const t=Te.lFrame;t.bindingIndex=t.bindingRootIndex=e,Ag(n)}function Ag(e){Te.lFrame.currentDirectiveIndex=e}function Ig(e){const n=Te.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}function xC(){return Te.lFrame.currentQueryIndex}function Pg(e){Te.lFrame.currentQueryIndex=e}function mx(e){const n=e[1];return 2===n.type?n.declTNode:1===n.type?e[6]:null}function NC(e,n,t){if(t&ue.SkipSelf){let o=n,r=e;for(;!(o=o.parent,null!==o||t&ue.Host||(o=mx(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;n=o,e=r}const i=Te.lFrame=RC();return i.currentTNode=n,i.lView=e,!0}function xg(e){const n=RC(),t=e[1];Te.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function RC(){const e=Te.lFrame,n=null===e?null:e.child;return null===n?FC(e):n}function FC(e){const n={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 null!==e&&(e.child=n),n}function kC(){const e=Te.lFrame;return Te.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const LC=kC;function Ng(){const e=kC();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 li(){return Te.lFrame.selectedIndex}function Yr(e){Te.lFrame.selectedIndex=e}function Ht(){const e=Te.lFrame;return Mg(e.tView,e.selectedIndex)}function fr(){Te.lFrame.currentNamespace="svg"}function Bd(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t=i)break}else n[l]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===n){e[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class Fu{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function $d(e,n,t){let i=0;for(;in){s=r-1;break}}}for(;r>16}(e),i=n;for(;t>0;)i=i[15],t--;return i}let kg=!0;function Gd(e){const n=kg;return kg=e,n}let Ax=0;const Bo={};function Lu(e,n){const t=Vg(e,n);if(-1!==t)return t;const i=n[1];i.firstCreatePass&&(e.injectorIndex=n.length,Lg(i.data,e),Lg(n,null),Lg(i.blueprint,null));const o=Wd(e,n),r=e.injectorIndex;if($C(o)){const s=za(o),a=Ga(o,n),l=a[1].data;for(let u=0;u<8;u++)n[r+u]=a[s+u]|l[s+u]}return n[r+8]=o,r}function Lg(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Vg(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Wd(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,o=n;for(;null!==o;){if(i=XC(o),null===i)return-1;if(t++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function qd(e,n,t){!function Ix(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Au)&&(i=t[Au]),null==i&&(i=t[Au]=Ax++);const o=255&i;n.data[e+(o>>5)]|=1<=0?255&n:Rx:n}(t);if("function"==typeof r){if(!NC(n,e,i))return i&ue.Host?WC(o,0,i):qC(n,t,i,o);try{const s=r(i);if(null!=s||i&ue.Optional)return s;Fa()}finally{LC()}}else if("number"==typeof r){let s=null,a=Vg(e,n),l=-1,u=i&ue.Host?n[16][6]:null;for((-1===a||i&ue.SkipSelf)&&(l=-1===a?Wd(e,n):n[a+8],-1!==l&&QC(i,!1)?(s=n[1],a=za(l),n=Ga(l,n)):a=-1);-1!==a;){const c=n[1];if(ZC(r,a,c.data)){const d=xx(a,n,t,s,i,u);if(d!==Bo)return d}l=n[a+8],-1!==l&&QC(i,n[1].data[a+8]===u)&&ZC(r,a,n)?(s=c,a=za(l),n=Ga(l,n)):a=-1}}return o}function xx(e,n,t,i,o,r){const s=n[1],a=s.data[e+8],c=Yd(a,s,t,null==i?kd(a)&&kg:i!=s&&0!=(3&a.type),o&ue.Host&&r===a);return null!==c?Vu(n,s,c,a):Bo}function Yd(e,n,t,i,o){const r=e.providerIndexes,s=n.data,a=1048575&r,l=e.directiveStart,c=r>>20,p=o?a+c:e.directiveEnd;for(let h=i?a:a+c;h=l&&v.type===t)return h}if(o){const h=s[l];if(h&&wo(h)&&h.type===t)return l}return null}function Vu(e,n,t,i){let o=e[t];const r=n.data;if(function wx(e){return e instanceof Fu}(o)){const s=o;s.resolving&&function Mu(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new N(-200,`Circular dependency in DI detected for ${e}${t}`)}(function Ge(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():pe(e)}(r[t]));const a=Gd(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?oi(s.injectImpl):null;NC(e,i,ue.Default);try{o=e[t]=s.factory(void 0,r,e,i),n.firstCreatePass&&t>=i.directiveStart&&function Dx(e,n,t){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const s=DC(n);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}o&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,o),r&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,r),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,r))}(t,r[t],n)}finally{null!==l&&oi(l),Gd(a),s.resolving=!1,LC()}}return o}function ZC(e,n,t){return!!(t[n+(e>>5)]&1<{const n=e.prototype.constructor,t=n[cr]||Hg(n),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const r=o[cr]||Hg(o);if(r&&r!==t)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Hg(e){return xs(e)?()=>{const n=Hg(he(e));return n&&n()}:Bs(e)}function XC(e){const n=e[1],t=n.type;return 2===t?n.declTNode:1===t?e[6]:null}function qa(e){return function Px(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let o=0;for(;o{const i=function Bg(e){return function(...t){if(e){const i=e(...t);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const s=new o(...r);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Ka)?l[Ka]:Object.defineProperty(l,Ka,{value:[]})[Ka];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class E{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=$({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ni(e,n){void 0===n&&(n=e);for(let t=0;tArray.isArray(t)?hr(t,n):n(t))}function eD(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Kd(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Uu(e,n){const t=[];for(let i=0;i=0?e[1|i]=t:(i=~i,function Hx(e,n,t,i){let o=e.length;if(o==n)e.push(t,i);else if(1===o)e.push(i,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function jg(e,n){const t=Xa(e,n);if(t>=0)return e[1|t]}function Xa(e,n){return function iD(e,n,t){let i=0,o=e.length>>t;for(;o!==i;){const r=i+(o-i>>1),s=e[r<n?o=r:i=r+1}return~(o<((vi=vi||{})[vi.Important=1]="Important",vi[vi.DashCase=2]="DashCase",vi))();const Qg=new Map;let hN=0;const Jg="__ngContext__";function Wn(e,n){_i(n)?(e[Jg]=n[20],function mN(e){Qg.set(e[20],e)}(n)):e[Jg]=n}function tm(e,n){return undefined(e,n)}function Yu(e){const n=e[3];return To(n)?n[3]:n}function nm(e){return wD(e[13])}function im(e){return wD(e[4])}function wD(e){for(;null!==e&&!To(e);)e=e[4];return e}function tl(e,n,t,i,o){if(null!=i){let r,s=!1;To(i)?r=i:_i(i)&&(s=!0,i=i[0]);const a=on(i);0===e&&null!==t?null==o?ID(n,t,a):js(n,t,a,o||null,!0):1===e&&null!==t?js(n,t,a,o||null,!0):2===e?function cm(e,n,t){const i=ep(e,n);i&&function VN(e,n,t,i){e.removeChild(n,t,i)}(e,i,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=r&&function UN(e,n,t,i,o){const r=t[7];r!==on(t)&&tl(n,e,i,r,o);for(let a=10;a0&&(e[t-1][4]=i[4]);const r=Kd(e,10+n);!function IN(e,n){Ku(e,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const s=r[19];null!==s&&s.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function SD(e,n){if(!(128&n[2])){const t=n[11];t.destroyNode&&Ku(e,n,t,3,null,null),function NN(e){let n=e[13];if(!n)return am(e[1],e);for(;n;){let t=null;if(_i(n))t=n[13];else{const i=n[10];i&&(t=i)}if(!t){for(;n&&!n[4]&&n!==e;)_i(n)&&am(n[1],n),n=n[3];null===n&&(n=e),_i(n)&&am(n[1],n),t=n&&n[4]}n=t}}(n)}}function am(e,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function LN(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i=0?i[o=u]():i[o=-u].unsubscribe(),r+=2}else{const s=i[o=t[r+1]];t[r].call(s)}if(null!==i){for(let r=o+1;re,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ip}())||void 0===n?void 0:n.createHTML(e))||e}function BD(e){var n;return(null===(n=function gm(){if(void 0===op&&(op=null,Ct.trustedTypes))try{op=Ct.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return op}())||void 0===n?void 0:n.createHTML(e))||e}class zs{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class qN extends zs{getTypeName(){return"HTML"}}class YN extends zs{getTypeName(){return"Style"}}class KN extends zs{getTypeName(){return"Script"}}class ZN extends zs{getTypeName(){return"URL"}}class QN extends zs{getTypeName(){return"ResourceURL"}}function Fi(e){return e instanceof zs?e.changingThisBreaksApplicationSecurity:e}function Uo(e,n){const t=function XN(e){return e instanceof zs&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===n}class oR{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString($s(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class rR{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(n){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=$s(n),t;const i=this.inertDocument.createElement("body");return i.innerHTML=$s(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const t=n.attributes;for(let o=t.length-1;0"),!0}endElement(n){const t=n.nodeName.toLowerCase();mm.hasOwnProperty(t)&&!zD.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(YD(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const cR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dR=/([^\#-~ |!])/g;function YD(e){return e.replace(/&/g,"&").replace(cR,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(dR,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let sp;function KD(e,n){let t=null;try{sp=sp||function $D(e){const n=new rR(e);return function sR(){try{return!!(new window.DOMParser).parseFromString($s(""),"text/html")}catch(e){return!1}}()?new oR(n):n}(e);let i=n?String(n):"";t=sp.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=t.innerHTML,t=sp.getInertBodyElement(i)}while(i!==r);return $s((new uR).sanitizeChildren(vm(t)||t))}finally{if(t){const i=vm(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function vm(e){return"content"in e&&function pR(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var st=(()=>((st=st||{})[st.NONE=0]="NONE",st[st.HTML=1]="HTML",st[st.STYLE=2]="STYLE",st[st.SCRIPT=3]="SCRIPT",st[st.URL=4]="URL",st[st.RESOURCE_URL=5]="RESOURCE_URL",st))();function ap(e){const n=Qu();return n?BD(n.sanitize(st.HTML,e)||""):Uo(e,"HTML")?BD(Fi(e)):KD(function HD(){return void 0!==hm?hm:"undefined"!=typeof document?document:void 0}(),pe(e))}function lp(e){const n=Qu();return n?n.sanitize(st.URL,e)||"":Uo(e,"URL")?Fi(e):rp(pe(e))}function Qu(){const e=k();return e&&e[12]}const ym=new E("ENVIRONMENT_INITIALIZER"),Gs=new E("INJECTOR",-1),QD=new E("INJECTOR_DEF_TYPES");class XD{get(n,t=ju){if(t===ju){const i=new Error(`NullInjectorError: No provider for ${Qe(n)}!`);throw i.name="NullInjectorError",i}return t}}function yR(...e){return{\u0275providers:JD(0,e)}}function JD(e,...n){const t=[],i=new Set;let o;return hr(n,r=>{const s=r;bm(s,t,[],i)&&(o||(o=[]),o.push(s))}),void 0!==o&&eT(o,t),t}function eT(e,n){for(let t=0;t{n.push(r)})}}function bm(e,n,t,i){if(!(e=he(e)))return!1;let o=null,r=K(e);const s=!r&&ft(e);if(r||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(r=K(l),!r)return!1;o=l}const a=i.has(o);if(s){if(a)return!1;if(i.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)bm(u,n,t,i)}}else{if(!r)return!1;{if(null!=r.imports&&!a){let u;i.add(o);try{hr(r.imports,c=>{bm(c,n,t,i)&&(u||(u=[]),u.push(c))})}finally{}void 0!==u&&eT(u,n)}if(!a){const u=Bs(o)||(()=>new o);n.push({provide:o,useFactory:u,deps:lt},{provide:QD,useValue:o,multi:!0},{provide:ym,useValue:()=>L(o),multi:!0})}const l=r.providers;null==l||a||hr(l,c=>{n.push(c)})}}return o!==e&&void 0!==e.providers}const bR=at({provide:String,useValue:at});function Cm(e){return null!==e&&"object"==typeof e&&bR in e}function Ws(e){return"function"==typeof e}const Dm=new E("Set Injector scope."),up={},DR={};let Tm;function cp(){return void 0===Tm&&(Tm=new XD),Tm}class Zr{}class iT extends Zr{constructor(n,t,i,o){super(),this.parent=t,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Mm(n,s=>this.processProvider(s)),this.records.set(Gs,nl(void 0,this)),o.has("environment")&&this.records.set(Zr,nl(void 0,this));const r=this.records.get(Dm);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(QD.multi,lt,ue.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const t=Ja(this),i=oi(void 0);try{return n()}finally{Ja(t),oi(i)}}get(n,t=ju,i=ue.Default){this.assertNotDestroyed();const o=Ja(this),r=oi(void 0);try{if(!(i&ue.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function SR(e){return"function"==typeof e||"object"==typeof e&&e instanceof E}(n)&&Fs(n);a=l&&this.injectableDefInScope(l)?nl(wm(n),up):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&ue.Self?cp():this.parent).get(n,t=i&ue.Optional&&t===ju?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Qd]=s[Qd]||[]).unshift(Qe(n)),o)throw s;return function Qx(e,n,t,i){const o=e[Qd];throw n[oD]&&o.unshift(n[oD]),e.message=function Xx(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Qe(n);if(Array.isArray(n))o=n.map(Qe).join(" -> ");else if("object"==typeof n){let r=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];r.push(s+":"+("string"==typeof a?JSON.stringify(a):Qe(a)))}o=`{${r.join(", ")}}`}return`${t}${i?"("+i+")":""}[${o}]: ${e.replace(qx,"\n ")}`}("\n"+e.message,o,t,i),e.ngTokenPath=o,e[Qd]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{oi(r),Ja(o)}}resolveInjectorInitializers(){const n=Ja(this),t=oi(void 0);try{const i=this.get(ym.multi,lt,ue.Self);for(const o of i)o()}finally{Ja(n),oi(t)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(Qe(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new N(205,!1)}processProvider(n){let t=Ws(n=he(n))?n:he(n&&n.provide);const i=function wR(e){return Cm(e)?nl(void 0,e.useValue):nl(oT(e),up)}(n);if(Ws(n)||!0!==n.multi)this.records.get(t);else{let o=this.records.get(t);o||(o=nl(void 0,up,!0),o.factory=()=>Gg(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,i)}hydrate(n,t){return t.value===up&&(t.value=DR,t.value=t.factory()),"object"==typeof t.value&&t.value&&function ER(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=he(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function wm(e){const n=Fs(e),t=null!==n?n.factory:Bs(e);if(null!==t)return t;if(e instanceof E)throw new N(204,!1);if(e instanceof Function)return function TR(e){const n=e.length;if(n>0)throw Uu(n,"?"),new N(204,!1);const t=function O(e){const n=e&&(e[We]||e[hn]);if(n){const t=function H(e){if(e.hasOwnProperty("name"))return e.name;const n=(""+e).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),n}return null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new N(204,!1)}function oT(e,n,t){let i;if(Ws(e)){const o=he(e);return Bs(o)||wm(o)}if(Cm(e))i=()=>he(e.useValue);else if(function nT(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Gg(e.deps||[]));else if(function tT(e){return!(!e||!e.useExisting)}(e))i=()=>L(he(e.useExisting));else{const o=he(e&&(e.useClass||e.provide));if(!function MR(e){return!!e.deps}(e))return Bs(o)||wm(o);i=()=>new o(...Gg(e.deps))}return i}function nl(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function OR(e){return!!e.\u0275providers}function Mm(e,n){for(const t of e)Array.isArray(t)?Mm(t,n):OR(t)?Mm(t.\u0275providers,n):n(t)}class rT{}class PR{resolveComponentFactory(n){throw function IR(e){const n=Error(`No component factory found for ${Qe(e)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=e,n}(n)}}let Qr=(()=>{class e{}return e.NULL=new PR,e})();function xR(){return il(_n(),k())}function il(e,n){return new fe(Pi(e,n))}let fe=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=xR,e})();function NR(e){return e instanceof fe?e.nativeElement:e}class qs{}let Yi=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function RR(){const e=k(),t=xi(_n().index,e);return(_i(t)?t:e)[11]}(),e})(),FR=(()=>{class e{}return e.\u0275prov=$({token:e,providedIn:"root",factory:()=>null}),e})();class Xu{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const kR=new Xu("14.2.12"),Em={};function Om(e){return e.ngOriginalError}class ol{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Om(n);for(;t&&Om(t);)t=Om(t);return t||null}}function Am(e){return e.ownerDocument.defaultView}function aT(e){return e.ownerDocument}function _r(e){return e instanceof Function?e():e}function uT(e,n,t){let i=e.length;for(;;){const o=e.indexOf(n,t);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const r=n.length;if(o+r===i||e.charCodeAt(o+r)<=32)return o}t=o+1}}const cT="ng-template";function GR(e,n,t){let i=0;for(;ir?"":o[d+1].toLowerCase();const h=8&i?p:null;if(h&&-1!==uT(h,u,0)||2&i&&u!==p){if(Mo(i))return!1;s=!0}}}}else{if(!s&&!Mo(i)&&!Mo(l))return!1;if(s&&Mo(l))continue;s=!1,i=l|1&i}}return Mo(i)||s}function Mo(e){return 0==(1&e)}function YR(e,n,t,i){if(null===n)return-1;let o=0;if(i||!t){let r=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!Mo(s)&&(n+=fT(r,o),o=""),i=s,r=r||!Mo(i);t++}return""!==o&&(n+=fT(r,o)),n}const Se={};function D(e){hT(Xe(),k(),li()+e,!1)}function hT(e,n,t,i){if(!i)if(3==(3&n[2])){const r=e.preOrderCheckHooks;null!==r&&Ud(n,r,t)}else{const r=e.preOrderHooks;null!==r&&jd(n,r,0,t)}Yr(t)}function vT(e,n=null,t=null,i){const o=yT(e,n,t,i);return o.resolveInjectorInitializers(),o}function yT(e,n=null,t=null,i,o=new Set){const r=[t||lt,yR(e)];return i=i||("object"==typeof e?void 0:Qe(e)),new iT(r,n||cp(),i||null,o)}let xn=(()=>{class e{static create(t,i){var o;if(Array.isArray(t))return vT({name:""},i,t,"");{const r=null!==(o=t.name)&&void 0!==o?o:"";return vT({name:r},t.parent,t.providers,r)}}}return e.THROW_IF_NOT_FOUND=ju,e.NULL=new XD,e.\u0275prov=$({token:e,providedIn:"any",factory:()=>L(Gs)}),e.__NG_ELEMENT_ID__=-1,e})();function _(e,n=ue.Default){const t=k();return null===t?L(e,n):YC(_n(),t,he(e),n)}function pp(){throw new Error("invalid")}function fp(e,n){return e<<17|n<<2}function Eo(e){return e>>17&32767}function Rm(e){return 2|e}function vr(e){return(131068&e)>>2}function Fm(e,n){return-131069&e|n<<2}function km(e){return 1|e}function kT(e,n){const t=e.contentQueries;if(null!==t)for(let i=0;i22&&hT(e,n,22,!1),t(i,o)}finally{Yr(r)}}function VT(e,n,t){if(bg(n)){const o=n.directiveEnd;for(let r=n.directiveStart;r0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,o,s)}}function GT(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function WT(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function zF(e,n,t){if(t){if(n.exportAs)for(let i=0;i0&&Qm(t)}}function Qm(e){for(let i=nm(e);null!==i;i=im(i))for(let o=10;o0&&Qm(r)}const t=e[1].components;if(null!==t)for(let i=0;i0&&Qm(o)}}function QF(e,n){const t=xi(n,e),i=t[1];(function XF(e,n){for(let t=n.length;t-1&&(sm(n,i),Kd(t,i))}this._attachedToViewContainer=!1}SD(this._lView[1],this._lView)}onDestroy(n){BT(this._lView[1],this._lView,null,n)}markForCheck(){Xm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){yp(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function xN(e,n){Ku(e,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=n}}class JF extends Ju{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;yp(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}}class t_ extends Qr{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=ft(n);return new ec(t,this.ngModule)}}function ew(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class tk{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){const o=this.injector.get(n,Em,i);return o!==Em||t===Em?o:this.parentInjector.get(n,t,i)}}class ec extends rT{constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function eF(e){return e.map(JR).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return ew(this.componentDef.inputs)}get outputs(){return ew(this.componentDef.outputs)}create(n,t,i,o){let r=(o=o||this.ngModule)instanceof Zr?o:null==o?void 0:o.injector;r&&null!==this.componentDef.getStandaloneInjector&&(r=this.componentDef.getStandaloneInjector(r)||r);const s=r?new tk(n,r):n,a=s.get(qs,null);if(null===a)throw new N(407,!1);const l=s.get(FR,null),u=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=i?function RF(e,n,t){return e.selectRootElement(n,t===Co.ShadowDom)}(u,i,this.componentDef.encapsulation):rm(u,c,function ek(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(c)),p=this.componentDef.onPush?288:272,h=Ym(0,null,null,1,0,null,null,null,null,null),v=mp(null,h,null,p,null,null,a,u,l,s,null);let C,M;xg(v);try{const T=function ok(e,n,t,i,o,r){const s=t[1];t[22]=e;const l=al(s,22,2,"#host",null),u=l.mergedAttrs=n.hostAttrs;null!==u&&(bp(l,u,!0),null!==e&&($d(o,e,u),null!==l.classes&&pm(o,e,l.classes),null!==l.styles&&VD(o,e,l.styles)));const c=i.createRenderer(e,n),d=mp(t,HT(n),null,n.onPush?32:16,t[22],l,i,c,r||null,null,null);return s.firstCreatePass&&(qd(Lu(l,t),s,n.type),WT(s,l),qT(l,t.length,1)),vp(t,d),t[22]=d}(d,this.componentDef,v,a,u);if(d)if(i)$d(u,d,["ng-version",kR.full]);else{const{attrs:A,classes:S}=function tF(e){const n=[],t=[];let i=1,o=2;for(;i0&&pm(u,d,S.join(" "))}if(M=Mg(h,22),void 0!==t){const A=M.projection=[];for(let S=0;S=0;i--){const o=e[i];o.hostVars=n+=o.hostVars,o.hostAttrs=zd(o.hostAttrs,t=zd(t,o.hostAttrs))}}(i)}function n_(e){return e===La?{}:e===lt?[]:e}function lk(e,n){const t=e.viewQuery;e.viewQuery=t?(i,o)=>{n(i,o),t(i,o)}:n}function uk(e,n){const t=e.contentQueries;e.contentQueries=t?(i,o,r)=>{n(i,o,r),t(i,o,r)}:n}function ck(e,n){const t=e.hostBindings;e.hostBindings=t?(i,o)=>{n(i,o),t(i,o)}:n}let Dp=null;function Ys(){if(!Dp){const e=Ct.Symbol;if(e&&e.iterator)Dp=e.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(on(R[i.index])):i.index;let b=null;if(!a&&l&&(b=function Dk(e,n,t,i){const o=e.cleanup;if(null!=o)for(let r=0;rl?a[l]:null}"string"==typeof s&&(r+=2)}return null}(e,n,o,i.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=r,b.__ngLastListenerFn__=r,h=!1;else{r=gw(i,n,d,r,!1);const R=t.listen(T,o,r);p.push(r,R),c&&c.push(o,S,A,A+1)}}else r=gw(i,n,d,r,!1);const v=i.outputs;let C;if(h&&null!==v&&(C=v[o])){const M=C.length;if(M)for(let T=0;T0;)n=n[15],e--;return n}(e,Te.lFrame.contextLView))[8]}(e)}function Tk(e,n){let t=null;const i=function KR(e){const n=e.attrs;if(null!=n){const t=n.indexOf(5);if(0==(1&t))return n[t+1]}return null}(e);for(let o=0;o=0}const yn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Mw(e){return e.substring(yn.key,yn.keyEnd)}function Ew(e,n){const t=yn.textEnd;return t===n?-1:(n=yn.keyEnd=function Ik(e,n,t){for(;n32;)n++;return n}(e,yn.key=n,t),yl(e,n,t))}function yl(e,n,t){for(;n=0;t=Ew(n,t))Ri(e,Mw(n),!0)}function So(e,n,t,i){const o=k(),r=Xe(),s=pr(2);r.firstUpdatePass&&xw(r,e,s,i),n!==Se&&qn(o,s,n)&&Rw(r,r.data[li()],o,o[11],e,o[s+1]=function Uk(e,n){return null==e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Qe(Fi(e)))),e}(n,t),i,s)}function Pw(e,n){return n>=e.expandoStartIndex}function xw(e,n,t,i){const o=e.data;if(null===o[t+1]){const r=o[li()],s=Pw(e,t);kw(r,i)&&null===n&&!s&&(n=!1),n=function Fk(e,n,t,i){const o=Ig(e);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(t=oc(t=s_(null,e,n,t,i),n.attrs,i),r=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==o)if(t=s_(o,e,n,t,i),null===r){let l=function kk(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==vr(i))return e[Eo(i)]}(e,n,i);void 0!==l&&Array.isArray(l)&&(l=s_(null,e,n,l[1],i),l=oc(l,n.attrs,i),function Lk(e,n,t,i){e[Eo(t?n.classBindings:n.styleBindings)]=i}(e,n,i,l))}else r=function Vk(e,n,t){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r0)&&(u=!0)}else c=t;if(o)if(0!==l){const p=Eo(e[a+1]);e[i+1]=fp(p,a),0!==p&&(e[p+1]=Fm(e[p+1],i)),e[a+1]=function bF(e,n){return 131071&e|n<<17}(e[a+1],i)}else e[i+1]=fp(a,0),0!==a&&(e[a+1]=Fm(e[a+1],i)),a=i;else e[i+1]=fp(l,0),0===a?a=i:e[l+1]=Fm(e[l+1],i),l=i;u&&(e[i+1]=Rm(e[i+1])),ww(e,c,i,!0),ww(e,c,i,!1),function Mk(e,n,t,i,o){const r=o?e.residualClasses:e.residualStyles;null!=r&&"string"==typeof n&&Xa(r,n)>=0&&(t[i+1]=km(t[i+1]))}(n,c,e,i,r),s=fp(a,l),r?n.classBindings=s:n.styleBindings=s}(o,r,n,t,s,i)}}function s_(e,n,t,i,o){let r=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let p=t[o+1];p===Se&&(p=d?lt:void 0);let h=d?jg(p,i):c===i?p:void 0;if(u&&!Mp(h)&&(h=jg(l,i)),Mp(h)&&(a=h,s))return a;const v=e[o+1];o=s?Eo(v):vr(v)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=jg(l,i))}return a}function Mp(e){return void 0!==e}function kw(e,n){return 0!=(e.flags&(n?16:32))}function m(e,n=""){const t=k(),i=Xe(),o=e+22,r=i.firstCreatePass?al(i,o,1,n,null):i.data[o],s=t[o]=function om(e,n){return e.createText(n)}(t[11],n);tp(i,t,s,r),Ho(r,!1)}function rc(e){return gt("",e,""),rc}function gt(e,n,t){const i=k(),o=cl(i,e,n,t);return o!==Se&&function yr(e,n,t){const i=Vd(n,e);!function MD(e,n,t){e.setValue(n,t)}(e[11],i,t)}(i,li(),o),gt}function bl(e,n,t){!function Oo(e,n,t,i){const o=Xe(),r=pr(2);o.firstUpdatePass&&xw(o,null,r,i);const s=k();if(t!==Se&&qn(s,r,t)){const a=o.data[li()];if(kw(a,i)&&!Pw(o,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=Lo(l,t||"")),o_(o,a,s,t,i)}else!function Bk(e,n,t,i,o,r,s,a){o===Se&&(o=lt);let l=0,u=0,c=0>20;if(Ws(e)||!e.multi){const h=new Fu(l,o,_),v=d_(a,n,o?c:c+p,d);-1===v?(qd(Lu(u,s),r,a),c_(r,e,n.length),n.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(h),s.push(h)):(t[v]=h,s[v]=h)}else{const h=d_(a,n,c+p,d),v=d_(a,n,c,c+p),C=h>=0&&t[h],M=v>=0&&t[v];if(o&&!M||!o&&!C){qd(Lu(u,s),r,a);const T=function r2(e,n,t,i,o){const r=new Fu(e,t,_);return r.multi=[],r.index=n,r.componentProviders=0,O0(r,o,i&&!t),r}(o?o2:n2,t.length,o,i,l);!o&&M&&(t[v].providerFactory=T),c_(r,e,n.length,0),n.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(T),s.push(T)}else c_(r,e,h>-1?h:v,O0(t[o?v:h],l,!o&&i));!o&&i&&M&&t[v].componentProviders++}}}function c_(e,n,t,i){const o=Ws(n),r=function CR(e){return!!e.useClass}(n);if(o||r){const l=(r?he(n.useClass):n).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const c=u.indexOf(t);-1===c?u.push(t,[i,l]):u[c+1].push(i,l)}else u.push(t,l)}}}function O0(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function d_(e,n,t,i){for(let o=t;o{t.providersResolver=(i,o)=>function t2(e,n,t){const i=Xe();if(i.firstCreatePass){const o=wo(e);u_(t,i.data,i.blueprint,o,!0),u_(n,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,n)}}class Qs{}class A0{}class I0 extends Qs{constructor(n,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new t_(this);const i=Ai(n);this._bootstrapComponents=_r(i.bootstrap),this._r3Injector=yT(n,t,[{provide:Qs,useValue:this},{provide:Qr,useValue:this.componentFactoryResolver}],Qe(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class f_ extends A0{constructor(n){super(),this.moduleType=n}create(n){return new I0(this.moduleType,n)}}class a2 extends Qs{constructor(n,t,i){super(),this.componentFactoryResolver=new t_(this),this.instance=null;const o=new iT([...n,{provide:Qs,useValue:this},{provide:Qr,useValue:this.componentFactoryResolver}],t||cp(),i,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Ip(e,n,t=null){return new a2(e,n,t).injector}let l2=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const i=JD(0,t.type),o=i.length>0?Ip([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,o)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=$({token:e,providedIn:"environment",factory:()=>new e(L(Zr))}),e})();function P0(e){e.getStandaloneInjector=n=>n.get(l2).getOrCreateStandaloneInjector(e)}function Re(e,n,t){const i=ai()+e,o=k();return o[i]===Se?$o(o,i,t?n.call(t):n()):function nc(e,n){return e[n]}(o,i)}function Yn(e,n,t,i){return H0(k(),ai(),e,n,t,i)}function g_(e,n,t,i,o){return B0(k(),ai(),e,n,t,i,o)}function V0(e,n,t,i,o,r){return function U0(e,n,t,i,o,r,s,a){const l=n+t;return function Tp(e,n,t,i,o){const r=Ks(e,n,t,i);return qn(e,n+2,o)||r}(e,l,o,r,s)?$o(e,l+3,a?i.call(a,o,r,s):i(o,r,s)):pc(e,l+3)}(k(),ai(),e,n,t,i,o,r)}function pc(e,n){const t=e[n];return t===Se?void 0:t}function H0(e,n,t,i,o,r){const s=n+t;return qn(e,s,o)?$o(e,s+1,r?i.call(r,o):i(o)):pc(e,s+1)}function B0(e,n,t,i,o,r,s){const a=n+t;return Ks(e,a,o,r)?$o(e,a+2,s?i.call(s,o,r):i(o,r)):pc(e,a+2)}function Rt(e,n){const t=Xe();let i;const o=e+22;t.firstCreatePass?(i=function T2(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[o]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(o,i.onDestroy)):i=t.data[o];const r=i.factory||(i.factory=Bs(i.type)),s=oi(_);try{const a=Gd(!1),l=r();return Gd(a),function yk(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,k(),o,l),l}finally{oi(s)}}function Bt(e,n,t){const i=e+22,o=k(),r=ja(o,i);return fc(o,i)?H0(o,ai(),n,r.transform,t,r):r.transform(t)}function fc(e,n){return e[1].data[n].pure}function m_(e){return n=>{setTimeout(e,void 0,n)}}const dt=class S2 extends zt{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,i){var o,r,s;let a=n,l=t||(()=>null),u=i;if(n&&"object"==typeof n){const d=n;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),l=null===(r=d.error)||void 0===r?void 0:r.bind(d),u=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=m_(l),a&&(a=m_(a)),u&&(u=m_(u)));const c=super.subscribe({next:a,error:l,complete:u});return n instanceof Bn&&n.add(c),c}};function O2(){return this._results[Ys()]()}class Pp{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Ys(),i=Pp.prototype;i[t]||(i[t]=O2)}get changes(){return this._changes||(this._changes=new dt)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const i=this;i.dirty=!1;const o=Ni(n);(this._changesDetected=!function Lx(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=P2,e})();const A2=Fn,I2=class extends A2{constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(n,t){const i=this._declarationTContainer.tViews,o=mp(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,t||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(i)),Gm(i,o,n),new Ju(o)}};function P2(){return xp(_n(),k())}function xp(e,n){return 4&e.type?new I2(n,e,il(e,n)):null}let di=(()=>{class e{}return e.__NG_ELEMENT_ID__=x2,e})();function x2(){return q0(_n(),k())}const N2=di,G0=class extends N2{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return il(this._hostTNode,this._hostLView)}get injector(){return new Wa(this._hostTNode,this._hostLView)}get parentInjector(){const n=Wd(this._hostTNode,this._hostLView);if($C(n)){const t=Ga(n,this._hostLView),i=za(n);return new Wa(t[1].data[i+8],t)}return new Wa(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=W0(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,t,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const s=n.createEmbeddedView(t||{},r);return this.insert(s,o),s}createComponent(n,t,i,o,r){const s=n&&!function Bu(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const d=t||{};a=d.index,i=d.injector,o=d.projectableNodes,r=d.environmentInjector||d.ngModuleRef}const l=s?n:new ec(ft(n)),u=i||this.parentInjector;if(!r&&null==l.ngModule){const p=(s?u:this.parentInjector).get(Zr,null);p&&(r=p)}const c=l.create(u,o,void 0,r);return this.insert(c.hostView,a),c}insert(n,t){const i=n._lView,o=i[1];if(function sx(e){return To(e[3])}(i)){const c=this.indexOf(n);if(-1!==c)this.detach(c);else{const d=i[3],p=new G0(d,d[6],d[3]);p.detach(p.indexOf(n))}}const r=this._adjustIndex(t),s=this._lContainer;!function RN(e,n,t,i){const o=10+i,r=t.length;i>0&&(t[o-1][4]=n),i0)i.push(s[a/2]);else{const u=r[a+1],c=n[-l];for(let d=10;d{class e{constructor(t){this.appInits=t,this.resolve=Rp,this.reject=Rp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{i()}).catch(o=>{this.reject(o)}),0===t.length&&i(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(L(gc,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const mc=new E("AppId",{providedIn:"root",factory:function _M(){return`${S_()}${S_()}${S_()}`}});function S_(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const vM=new E("Platform Initializer"),es=new E("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),yM=new E("appBootstrapListener"),bM=new E("AnimationModuleType");let aV=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Cr=new E("LocaleId",{providedIn:"root",factory:()=>U(Cr,ue.Optional|ue.SkipSelf)||function lV(){return"undefined"!=typeof $localize&&$localize.locale||Tl}()});class cV{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let O_=(()=>{class e{compileModuleSync(t){return new f_(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),r=_r(Ai(t).declarations).reduce((s,a)=>{const l=ft(a);return l&&s.push(new ec(l)),s},[]);return new cV(i,r)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const fV=(()=>Promise.resolve(0))();function A_(e){"undefined"==typeof Zone?fV.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ct{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new dt(!1),this.onMicrotaskEmpty=new dt(!1),this.onStable=new dt(!1),this.onError=new dt(!1),"undefined"==typeof Zone)throw new N(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const r=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new r("Angular"))}Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&t,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function hV(){let e=Ct.requestAnimationFrame,n=Ct.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function _V(e){const n=()=>{!function mV(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ct,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,P_(e),e.isCheckStableRunning=!0,I_(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),P_(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,o,r,s,a)=>{try{return TM(e),t.invokeTask(o,r,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||e.shouldCoalesceRunChangeDetection)&&n(),wM(e)}},onInvoke:(t,i,o,r,s,a,l)=>{try{return TM(e),t.invoke(o,r,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),wM(e)}},onHasTask:(t,i,o,r)=>{t.hasTask(o,r),i===o&&("microTask"==r.change?(e._hasPendingMicrotasks=r.microTask,P_(e),I_(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,i,o,r)=>(t.handleError(o,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ct.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(ct.isInAngularZone())throw new N(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,o){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,n,gV,Rp,Rp);try{return r.runTask(s,t,i)}finally{r.cancelTask(s)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const gV={};function I_(e){if(0==e._nesting&&!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 P_(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function TM(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function wM(e){e._nesting--,I_(e)}class vV{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new dt,this.onMicrotaskEmpty=new dt,this.onStable=new dt,this.onError=new dt}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,o){return n.apply(t,i)}}const MM=new E(""),kp=new E("");let _c,x_=(()=>{class e{constructor(t,i,o){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,_c||(function yV(e){_c=e}(o),o.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ct.assertNotInAngularZone(),A_(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())A_(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==r),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:o})}whenStable(t,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,o){return[]}}return e.\u0275fac=function(t){return new(t||e)(L(ct),L(N_),L(kp))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),N_=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){var o;return null!==(o=null==_c?void 0:_c.findTestabilityInTree(this,t,i))&&void 0!==o?o:null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),qo=null;const EM=new E("AllowMultipleToken"),R_=new E("PlatformDestroyListeners");class SM{constructor(n,t){this.name=n,this.token=t}}function AM(e,n,t=[]){const i=`Platform: ${n}`,o=new E(i);return(r=[])=>{let s=F_();if(!s||s.injector.get(EM,!1)){const a=[...t,...r,{provide:o,useValue:!0}];e?e(a):function DV(e){if(qo&&!qo.get(EM,!1))throw new N(400,!1);qo=e;const n=e.get(PM);(function OM(e){const n=e.get(vM,null);n&&n.forEach(t=>t())})(e)}(function IM(e=[],n){return xn.create({name:n,providers:[{provide:Dm,useValue:"platform"},{provide:R_,useValue:new Set([()=>qo=null])},...e]})}(a,i))}return function wV(e){const n=F_();if(!n)throw new N(401,!1);return n}()}}function F_(){var e;return null!==(e=null==qo?void 0:qo.get(PM))&&void 0!==e?e:null}let PM=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const o=function NM(e,n){let t;return t="noop"===e?new vV:("zone.js"===e?void 0:e)||new ct(n),t}(null==i?void 0:i.ngZone,function xM(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(i)),r=[{provide:ct,useValue:o}];return o.run(()=>{const s=xn.create({providers:r,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(ol,null);if(!l)throw new N(402,!1);return o.runOutsideAngular(()=>{const u=o.onError.subscribe({next:c=>{l.handleError(c)}});a.onDestroy(()=>{Lp(this._modules,a),u.unsubscribe()})}),function RM(e,n,t){try{const i=t();return ic(i)?i.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(l,o,()=>{const u=a.injector.get(Fp);return u.runInitializers(),u.donePromise.then(()=>(function o0(e){Un(e,"Expected localeId to be defined"),"string"==typeof e&&(n0=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Cr,Tl)||Tl),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,i=[]){const o=FM({},i);return function bV(e,n,t){const i=new f_(t);return Promise.resolve(i)}(0,0,t).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(t){const i=t.injector.get(El);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new N(403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new N(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(R_,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(L(xn))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function FM(e,n){return Array.isArray(n)?n.reduce(FM,e):Object.assign(Object.assign({},e),n)}let El=(()=>{class e{constructor(t,i,o){this._zone=t,this._injector=i,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new Ce(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Ce(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{ct.assertNotInAngularZone(),A_(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{ct.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=Vt(r,s.pipe(vo()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const o=t instanceof rT;if(!this._injector.get(Fp).done)throw!o&&function Va(e){const n=ft(e)||ri(e)||si(e);return null!==n&&n.standalone}(t),new N(405,false);let s;s=o?t:this._injector.get(Qr).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function CV(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Qs),u=s.create(xn.NULL,[],i||s.selector,a),c=u.location.nativeElement,d=u.injector.get(MM,null);return null==d||d.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Lp(this.components,u),null==d||d.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new N(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Lp(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(yM,[]).concat(this._bootstrapListeners).forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Lp(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new N(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(t){return new(t||e)(L(ct),L(Zr),L(ol))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Lp(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}let LM=!0,VM=!1;function HM(){return VM=!0,LM}let Zn=(()=>{class e{}return e.__NG_ELEMENT_ID__=SV,e})();function SV(e){return function OV(e,n,t){if(kd(e)&&!t){const i=xi(e.index,n);return new Ju(i,i)}return 47&e.type?new Ju(n[16],n):null}(_n(),k(),16==(16&e))}class $M{constructor(){}supports(n){return tc(n)}create(n){return new RV(n)}}const NV=(e,n)=>n;class RV{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||NV}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,o=0,r=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(o,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,o),i=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,r,o)):n=this._addAfter(new FV(t,i),r,o),n}_verifyReinsertion(n,t,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new zM),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new zM),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class FV{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class kV{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class zM{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new kV,this.map.set(t,i)),i.add(n)}get(n,t){const o=this.map.get(n);return o?o.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function GM(e,n,t){const i=e.previousIndex;if(null===i)return i;let o=0;return t&&i{if(t&&t.key===o)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(o,i);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const i=n._prev;return t._next=n,t._prev=i,n._prev=t,i&&(i._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,t);const r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}const i=new VV(n);return this._records.set(n,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(i=>t(n[i],i))}}class VV{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function qM(){return new Bp([new $M])}let Bp=(()=>{class e{constructor(t){this.factories=t}static create(t,i){if(null!=i){const o=i.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||qM()),deps:[[e,new Us,new gr]]}}find(t){const i=this.factories.find(o=>o.supports(t));if(null!=i)return i;throw new N(901,!1)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:qM}),e})();function YM(){return new vc([new WM])}let vc=(()=>{class e{constructor(t){this.factories=t}static create(t,i){if(i){const o=i.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||YM()),deps:[[e,new Us,new gr]]}}find(t){const i=this.factories.find(o=>o.supports(t));if(i)return i;throw new N(901,!1)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:YM}),e})();const UV=AM(null,"core",[]);let jV=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(L(El))},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function Tr(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Up=null;function Yo(){return Up}const Ye=new E("DocumentToken");let B_=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:function(){return function WV(){return L(KM)}()},providedIn:"platform"}),e})();const qV=new E("Location Initialized");let KM=(()=>{class e extends B_{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Yo().getBaseHref(this._doc)}onPopState(t){const i=Yo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Yo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,i,o){ZM()?this._history.pushState(t,i,o):this.location.hash=o}replaceState(t,i,o){ZM()?this._history.replaceState(t,i,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(L(Ye))},e.\u0275prov=$({token:e,factory:function(){return function YV(){return new KM(L(Ye))}()},providedIn:"platform"}),e})();function ZM(){return!!window.history.pushState}function U_(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function QM(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function wr(e){return e&&"?"!==e[0]?"?"+e:e}let ea=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:function(){return U(JM)},providedIn:"root"}),e})();const XM=new E("appBaseHref");let JM=(()=>{class e extends ea{constructor(t,i){var o,r,s;super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=null!==(s=null!==(o=null!=i?i:this._platformLocation.getBaseHrefFromDOM())&&void 0!==o?o:null===(r=U(Ye).location)||void 0===r?void 0:r.origin)&&void 0!==s?s:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return U_(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+wr(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${i}${o}`:i}pushState(t,i,o,r){const s=this.prepareExternalUrl(o+wr(r));this._platformLocation.pushState(t,i,s)}replaceState(t,i,o,r){const s=this.prepareExternalUrl(o+wr(r));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,t)}}return e.\u0275fac=function(t){return new(t||e)(L(B_),L(XM,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),KV=(()=>{class e extends ea{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=U_(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,o,r){let s=this.prepareExternalUrl(o+wr(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,o,r){let s=this.prepareExternalUrl(o+wr(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,t)}}return e.\u0275fac=function(t){return new(t||e)(L(B_),L(XM,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),j_=(()=>{class e{constructor(t){this._subject=new dt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._baseHref=QM(eE(i)),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){var t;null===(t=this._urlChangeSubscription)||void 0===t||t.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+wr(i))}normalize(t){return e.stripTrailingSlash(function QV(e,n){return e&&n.startsWith(e)?n.substring(e.length):n}(this._baseHref,eE(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",o=null){this._locationStrategy.pushState(o,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+wr(i)),o)}replaceState(t,i="",o=null){this._locationStrategy.replaceState(o,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+wr(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){var i,o;null===(o=(i=this._locationStrategy).historyGo)||void 0===o||o.call(i,t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var i;const o=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(o,1),0===this._urlChangeListeners.length&&(null===(i=this._urlChangeSubscription)||void 0===i||i.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(o=>o(t,i))}subscribe(t,i,o){return this._subject.subscribe({next:t,error:i,complete:o})}}return e.normalizeQueryParams=wr,e.joinWithSlash=U_,e.stripTrailingSlash=QM,e.\u0275fac=function(t){return new(t||e)(L(ea))},e.\u0275prov=$({token:e,factory:function(){return function ZV(){return new j_(L(ea))}()},providedIn:"root"}),e})();function eE(e){return e.replace(/\/index.html$/,"")}let uE=(()=>{class e{constructor(t,i,o,r){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(tc(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Qe(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(t){return new(t||e)(_(Bp),_(vc),_(fe),_(Yi))},e.\u0275dir=V({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})(),cE=(()=>{class e{constructor(t){this._viewContainerRef=t,this.ngComponentOutlet=null}ngOnChanges(t){const{_viewContainerRef:i,ngComponentOutletNgModule:o,ngComponentOutletNgModuleFactory:r}=this;if(i.clear(),this._componentRef=void 0,this.ngComponentOutlet){const s=this.ngComponentOutletInjector||i.parentInjector;(t.ngComponentOutletNgModule||t.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=o?function s2(e,n){return new I0(e,null!=n?n:null)}(o,dE(s)):r?r.create(dE(s)):void 0),this._componentRef=i.createComponent(this.ngComponentOutlet,{index:i.length,injector:s,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return e.\u0275fac=function(t){return new(t||e)(_(di))},e.\u0275dir=V({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[mn]}),e})();function dE(e){return e.get(Qs).injector}class FH{constructor(n,t,i,o){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ji=(()=>{class e{constructor(t,i,o){this._viewContainer=t,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((o,r,s)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new FH(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,s),fE(a,o)}});for(let o=0,r=i.length;o{fE(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(_(di),_(Fn),_(Bp))},e.\u0275dir=V({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function fE(e,n){e.context.$implicit=n.item}let un=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new LH,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){hE("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){hE("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(_(di),_(Fn))},e.\u0275dir=V({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class LH{constructor(){this.$implicit=null,this.ngIf=null}}function hE(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Qe(n)}'.`)}let mE=(()=>{class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:r,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(o,r,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return e.\u0275fac=function(t){return new(t||e)(_(di))},e.\u0275dir=V({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[mn]}),e})();class jH{createSubscription(n,t){return n.subscribe({next:t,error:i=>{throw i}})}dispose(n){n.unsubscribe()}}class $H{createSubscription(n,t){return n.then(t,i=>{throw i})}dispose(n){}}const zH=new $H,GH=new jH;let Qn=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(ic(t))return zH;if(dw(t))return GH;throw function Po(e,n){return new N(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(_(Zn,16))},e.\u0275pipe=Pn({name:"async",type:e,pure:!1,standalone:!0}),e})(),_E=(()=>{class e{constructor(t){this.differs=t,this.keyValues=[],this.compareFn=vE}transform(t,i=vE){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const o=this.differ.diff(t),r=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(s=>{this.keyValues.push(function nB(e,n){return{key:e,value:n}}(s.key,s.currentValue))})),(o||r)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}}return e.\u0275fac=function(t){return new(t||e)(_(vc,16))},e.\u0275pipe=Pn({name:"keyvalue",type:e,pure:!1,standalone:!0}),e})();function vE(e,n){const t=e.key,i=n.key;if(t===i)return 0;if(void 0===t)return 1;if(void 0===i)return-1;if(null===t)return 1;if(null===i)return-1;if("string"==typeof t&&"string"==typeof i)return t{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();const yE="browser";function bE(e){return e===yE}function Qp(e){return"server"===e}let Xp=(()=>{class e{}return e.\u0275prov=$({token:e,providedIn:"root",factory:()=>new cB(L(Ye),window)}),e})();class cB{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function dB(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const s=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(s)return s}o=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=CE(this.window.history)||CE(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function CE(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class ov extends class IB extends class GV{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function zV(e){Up||(Up=e)}(new ov)}onAndCancel(n,t,i){return n.addEventListener(t,i,!1),()=>{n.removeEventListener(t,i,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function PB(){return Dc=Dc||document.querySelector("base"),Dc?Dc.getAttribute("href"):null}();return null==t?null:function xB(e){ef=ef||document.createElement("a"),ef.setAttribute("href",e);const n=ef.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Dc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function RH(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[o,r]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}(document.cookie,n)}}let ef,Dc=null;const ME=new E("TRANSITION_ID"),RB=[{provide:gc,useFactory:function NB(e,n,t){return()=>{t.get(Fp).donePromise.then(()=>{const i=Yo(),o=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let r=0;r{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const Sl=new E("EventManagerPlugins");let tf=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(o=>o.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,o){return this._findPluginFor(i).addEventListener(t,i,o)}addGlobalEventListener(t,i,o){return this._findPluginFor(i).addGlobalEventListener(t,i,o)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const o=this._plugins;for(let r=0;r{class e{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),i.add(o))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),Tc=(()=>{class e extends SE{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,o){t.forEach(r=>{const s=this._doc.createElement("style");s.textContent=r,o.push(i.appendChild(s))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(OE),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(t,o,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(OE))}}return e.\u0275fac=function(t){return new(t||e)(L(Ye))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function OE(e){Yo().remove(e)}const rv={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},sv=/%COMP%/g;function nf(e,n,t){for(let i=0;i{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let rf=(()=>{class e{constructor(t,i,o){this.eventManager=t,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new av(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Co.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new jB(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(t),o}case 1:case Co.ShadowDom:return new $B(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const o=nf(i.id,i.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(L(tf),L(Tc),L(mc))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();class av{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(rv[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){(NE(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(NE(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,o){if(o){t=o+":"+t;const r=rv[o];r?n.setAttributeNS(r,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const o=rv[i];o?n.removeAttributeNS(o,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,o){o&(vi.DashCase|vi.Important)?n.style.setProperty(t,i,o&vi.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&vi.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){n[t]=i}setValue(n,t){n.nodeValue=t}listen(n,t,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,PE(i)):this.eventManager.addEventListener(n,t,PE(i))}}function NE(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class jB extends av{constructor(n,t,i,o){super(n),this.component=i;const r=nf(o+"-"+i.id,i.styles,[]);t.addStyles(r),this.contentAttr=function HB(e){return"_ngcontent-%COMP%".replace(sv,e)}(o+"-"+i.id),this.hostAttr=function BB(e){return"_nghost-%COMP%".replace(sv,e)}(o+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}class $B extends av{constructor(n,t,i,o){super(n),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=nf(o.id,o.styles,[]);for(let s=0;s{class e extends EE{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,o){return t.addEventListener(i,o,!1),()=>this.removeEventListener(t,i,o)}removeEventListener(t,i,o){return t.removeEventListener(i,o)}}return e.\u0275fac=function(t){return new(t||e)(L(Ye))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const RE=["alt","control","meta","shift"],GB={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},WB={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let qB=(()=>{class e extends EE{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,o){const r=e.parseEventName(i),s=e.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Yo().onAndCancel(t,r.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=e._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),RE.forEach(u=>{const c=i.indexOf(u);c>-1&&(i.splice(c,1),s+=u+".")}),s+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let o=GB[t.key]||t.key,r="";return i.indexOf("code.")>-1&&(o=t.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),RE.forEach(s=>{s!==o&&(0,WB[s])(t)&&(r+=s+".")}),r+=o,r===i)}static eventCallback(t,i,o){return r=>{e.matchEventFullKeyCode(r,t)&&o.runGuarded(()=>i(r))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(L(Ye))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const kE=[{provide:es,useValue:yE},{provide:vM,useValue:function YB(){ov.makeCurrent()},multi:!0},{provide:Ye,useFactory:function ZB(){return function WN(e){hm=e}(document),document},deps:[]}],QB=AM(UV,"browser",kE),LE=new E(""),VE=[{provide:kp,useClass:class FB{addToWindow(n){Ct.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},Ct.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ct.getAllAngularRootElements=()=>n.getAllRootElements(),Ct.frameworkStabilizers||(Ct.frameworkStabilizers=[]),Ct.frameworkStabilizers.push(i=>{const o=Ct.getAllAngularTestabilities();let r=o.length,s=!1;const a=function(l){s=s||l,r--,0==r&&i(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,t,i){if(null==t)return null;const o=n.getTestability(t);return null!=o?o:i?Yo().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null}},deps:[]},{provide:MM,useClass:x_,deps:[ct,N_,kp]},{provide:x_,useClass:x_,deps:[ct,N_,kp]}],HE=[{provide:Dm,useValue:"root"},{provide:ol,useFactory:function KB(){return new ol},deps:[]},{provide:Sl,useClass:zB,multi:!0,deps:[Ye,ct,es]},{provide:Sl,useClass:qB,multi:!0,deps:[Ye]},{provide:rf,useClass:rf,deps:[tf,Tc,mc]},{provide:qs,useExisting:rf},{provide:SE,useExisting:Tc},{provide:Tc,useClass:Tc,deps:[Ye]},{provide:tf,useClass:tf,deps:[Sl,ct]},{provide:class pB{},useClass:kB,deps:[]},[]];let BE=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:mc,useValue:t.appId},{provide:ME,useExisting:mc},RB]}}}return e.\u0275fac=function(t){return new(t||e)(L(LE,12))},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({providers:[...HE,...VE],imports:[mt,jV]}),e})(),uv=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return e.\u0275fac=function(t){return new(t||e)(L(Ye))},e.\u0275prov=$({token:e,factory:function(t){let i=null;return i=t?new t:function JB(){return new uv(L(Ye))}(),i},providedIn:"root"}),e})();"undefined"!=typeof window&&window;let sf=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:function(t){let i=null;return i=t?new(t||e):L($E),i},providedIn:"root"}),e})(),$E=(()=>{class e extends sf{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case st.NONE:return i;case st.HTML:return Uo(i,"HTML")?Fi(i):KD(this._doc,String(i)).toString();case st.STYLE:return Uo(i,"Style")?Fi(i):i;case st.SCRIPT:if(Uo(i,"Script"))return Fi(i);throw new Error("unsafe value used in a script context");case st.URL:return Uo(i,"URL")?Fi(i):rp(String(i));case st.RESOURCE_URL:if(Uo(i,"ResourceURL"))return Fi(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function JN(e){return new qN(e)}(t)}bypassSecurityTrustStyle(t){return function eR(e){return new YN(e)}(t)}bypassSecurityTrustScript(t){return function tR(e){return new KN(e)}(t)}bypassSecurityTrustUrl(t){return function nR(e){return new ZN(e)}(t)}bypassSecurityTrustResourceUrl(t){return function iR(e){return new QN(e)}(t)}}return e.\u0275fac=function(t){return new(t||e)(L(Ye))},e.\u0275prov=$({token:e,factory:function(t){let i=null;return i=t?new t:function sU(e){return new $E(e.get(Ye))}(L(xn)),i},providedIn:"root"}),e})();const{isArray:aU}=Array,{getPrototypeOf:lU,prototype:uU,keys:cU}=Object;function zE(e){if(1===e.length){const n=e[0];if(aU(n))return{args:n,keys:null};if(function dU(e){return e&&"object"==typeof e&&lU(e)===uU}(n)){const t=cU(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:pU}=Array;function dv(e){return W(n=>function fU(e,n){return pU(n)?e(...n):e(n)}(e,n))}function GE(e,n){return e.reduce((t,i,o)=>(t[i]=n[o],t),{})}let WE=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(_(Yi),_(fe))},e.\u0275dir=V({type:e}),e})(),ta=(()=>{class e extends WE{}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,features:[le]}),e})();const eo=new E("NgValueAccessor"),mU={provide:eo,useExisting:ke(()=>wc),multi:!0},vU=new E("CompositionEventMode");let wc=(()=>{class e extends WE{constructor(t,i,o){super(t,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function _U(){const e=Yo()?Yo().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return e.\u0275fac=function(t){return new(t||e)(_(Yi),_(fe),_(vU,8))},e.\u0275dir=V({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,i){1&t&&ce("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[j([mU]),le]}),e})();const Jn=new E("NgValidators"),is=new E("NgAsyncValidators");function iS(e){return null!=e}function oS(e){return ic(e)?bt(e):e}function rS(e){let n={};return e.forEach(t=>{n=null!=t?Object.assign(Object.assign({},n),t):n}),0===Object.keys(n).length?null:n}function sS(e,n){return n.map(t=>t(e))}function aS(e){return e.map(n=>function CU(e){return!e.validate}(n)?n:t=>n.validate(t))}function pv(e){return null!=e?function lS(e){if(!e)return null;const n=e.filter(iS);return 0==n.length?null:function(t){return rS(sS(t,n))}}(aS(e)):null}function fv(e){return null!=e?function uS(e){if(!e)return null;const n=e.filter(iS);return 0==n.length?null:function(t){return function hU(...e){const n=St(e),{args:t,keys:i}=zE(e),o=new Ce(r=>{const{length:s}=t;if(!s)return void r.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=p},()=>l--,void 0,()=>{(!l||!d)&&(u||r.next(i?GE(i,a):a),r.complete())}))}});return n?o.pipe(dv(n)):o}(sS(t,n).map(oS)).pipe(W(rS))}}(aS(e)):null}function cS(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function hv(e){return e?Array.isArray(e)?e:[e]:[]}function lf(e,n){return Array.isArray(e)?e.includes(n):e===n}function fS(e,n){const t=hv(n);return hv(e).forEach(o=>{lf(t,o)||t.push(o)}),t}function hS(e,n){return hv(n).filter(t=>!lf(e,t))}class gS{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=pv(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=fv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class Er extends gS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class fi extends gS{get formDirective(){return null}get path(){return null}}let gv=(()=>{class e extends class mS{constructor(n){this._cd=n}get isTouched(){var n,t;return!(null===(t=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===t||!t.touched)}get isUntouched(){var n,t;return!(null===(t=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===t||!t.untouched)}get isPristine(){var n,t;return!(null===(t=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===t||!t.pristine)}get isDirty(){var n,t;return!(null===(t=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===t||!t.dirty)}get isValid(){var n,t;return!(null===(t=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===t||!t.valid)}get isInvalid(){var n,t;return!(null===(t=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===t||!t.invalid)}get isPending(){var n,t;return!(null===(t=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===t||!t.pending)}get isSubmitted(){var n;return!(null===(n=this._cd)||void 0===n||!n.submitted)}}{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(_(Er,2))},e.\u0275dir=V({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&ut("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[le]}),e})();const Mc="VALID",cf="INVALID",Ol="PENDING",Ec="DISABLED";function vS(e){return Array.isArray(e)?pv(e):e||null}function yS(e){return Array.isArray(e)?fv(e):e||null}function df(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Sc(e,n){var t,i;(function Dv(e,n){const t=function dS(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(cS(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=function pS(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(cS(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const o=()=>e.updateValueAndValidity();hf(n._rawValidators,o),hf(n._rawAsyncValidators,o)})(e,n),n.valueAccessor.writeValue(e.value),e.disabled&&(null===(i=(t=n.valueAccessor).setDisabledState)||void 0===i||i.call(t,!0)),function PU(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&TS(e,n)})}(e,n),function NU(e,n){const t=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function xU(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&TS(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function IU(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function hf(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function TS(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function SS(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function OS(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const UU={provide:Er,useExisting:ke(()=>Al)},xS=(()=>Promise.resolve())();let Al=(()=>{class e extends Er{constructor(t,i,o,r,s){super(),this._changeDetectorRef=s,this.control=new class extends class DS{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=t,this._composedValidatorFn=vS(this._rawValidators),this._composedAsyncValidatorFn=yS(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Mc}get invalid(){return this.status===cf}get pending(){return this.status==Ol}get disabled(){return this.status===Ec}get enabled(){return this.status!==Ec}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=vS(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=yS(n)}addValidators(n){this.setValidators(fS(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(fS(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(hS(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(hS(n,this._rawAsyncValidators))}hasValidator(n){return lf(this._rawValidators,n)}hasAsyncValidator(n){return lf(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Ol,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Ec,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=Mc,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Mc||this.status===Ol)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ec:Mc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ol,this._hasOwnPendingAsyncValidator=!0;const t=oS(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((i,o)=>i&&i._find(o),this)}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new dt,this.statusChanges=new dt}_calculateStatus(){return this._allControlsDisabled()?Ec:this.errors?cf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ol)?Ol:this._anyControlsHaveStatus(cf)?cf:Mc}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){df(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}}{constructor(n=null,t,i){super(function yv(e){return(df(e)?e.validators:e)||null}(t),function bv(e,n){return(df(n)?n.asyncValidators:e)||null}(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),df(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=OS(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){SS(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){SS(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){OS(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},this._registered=!1,this.update=new dt,this._parent=t,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=function wv(e,n){if(!n)return null;let t,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===wc?t=r:function kU(e){return Object.getPrototypeOf(e.constructor)===ta}(r)?i=r:o=r}),o||i||t||null}(0,r)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function Tv(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,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(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Sc(this.control,this),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()}_updateValue(t){xS.then(()=>{var i;this.control.setValue(t,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,o=0!==i&&Tr(i);xS.then(()=>{var r;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_getPath(t){return this._parent?function pf(e,n){return[...n.path,e]}(t,this._parent):[t]}}return e.\u0275fac=function(t){return new(t||e)(_(fi,9),_(Jn,10),_(is,10),_(eo,10),_(Zn,8))},e.\u0275dir=V({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[j([UU]),le,mn]}),e})(),RS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();const Ev=new E("NgModelWithFormControlWarning");let QS=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[RS]}),e})(),Nv=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[QS]}),e})(),f3=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ev,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[QS]}),e})();class XS{}const Sr="*";function Kt(e,n){return{type:7,name:e,definitions:n,options:{}}}function we(e,n=null){return{type:4,styles:n,timings:e}}function JS(e,n=null){return{type:2,steps:e,options:n}}function B(e){return{type:6,styles:e,offset:null}}function Ve(e,n,t=null){return{type:1,expr:e,animation:n,options:t}}function kn(e,n,t=null){return{type:11,selector:e,animation:n,options:t}}function ei(e,n){return{type:12,timings:e,animation:n}}function eO(e){Promise.resolve().then(e)}class Ac{constructor(n=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){eO(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class tO{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,i=0,o=0;const r=this.players.length;0==r?eO(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==r&&this._onFinish()}),s.onDestroy(()=>{++i==r&&this._onDestroy()}),s.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}function nO(e){return new N(3e3,!1)}function Q3(){return"undefined"!=typeof window&&void 0!==window.document}function Fv(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function os(e){switch(e.length){case 0:return new Ac;case 1:return e[0];default:return new tO(e)}}function iO(e,n,t,i,o=new Map,r=new Map){const s=[],a=[];let l=-1,u=null;if(i.forEach(c=>{const d=c.get("offset"),p=d==l,h=p&&u||new Map;c.forEach((v,C)=>{let M=C,T=v;if("offset"!==C)switch(M=n.normalizePropertyName(M,s),T){case"!":T=o.get(C);break;case Sr:T=r.get(C);break;default:T=n.normalizeStyleValue(C,M,T,s)}h.set(M,T)}),p||a.push(h),u=h,l=d}),s.length)throw function H3(e){return new N(3502,!1)}();return a}function kv(e,n,t,i){switch(n){case"start":e.onStart(()=>i(t&&Lv(t,"start",e)));break;case"done":e.onDone(()=>i(t&&Lv(t,"done",e)));break;case"destroy":e.onDestroy(()=>i(t&&Lv(t,"destroy",e)))}}function Lv(e,n,t){const i=t.totalTime,r=Vv(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,null==i?e.totalTime:i,!!t.disabled),s=e._data;return null!=s&&(r._data=s),r}function Vv(e,n,t,i,o="",r=0,s){return{element:e,triggerName:n,fromState:t,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function Vi(e,n,t){let i=e.get(n);return i||e.set(n,i=t),i}function oO(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}let Hv=(e,n)=>!1,rO=(e,n,t)=>[],sO=null;function Bv(e){const n=e.parentNode||e.host;return n===sO?null:n}(Fv()||"undefined"!=typeof Element)&&(Q3()?(sO=(()=>document.documentElement)(),Hv=(e,n)=>{for(;n;){if(n===e)return!0;n=Bv(n)}return!1}):Hv=(e,n)=>e.contains(n),rO=(e,n,t)=>{if(t)return Array.from(e.querySelectorAll(n));const i=e.querySelector(n);return i?[i]:[]});let ia=null,aO=!1;const lO=Hv,uO=rO;let cO=(()=>{class e{validateStyleProperty(t){return function J3(e){ia||(ia=function ej(){return"undefined"!=typeof document?document.body:null}()||{},aO=!!ia.style&&"WebkitAppearance"in ia.style);let n=!0;return ia.style&&!function X3(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in ia.style,!n&&aO&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in ia.style)),n}(t)}matchesElement(t,i){return!1}containsElement(t,i){return lO(t,i)}getParentElement(t){return Bv(t)}query(t,i,o){return uO(t,i,o)}computeStyle(t,i,o){return o||""}animate(t,i,o,r,s,a=[],l){return new Ac(o,r)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),Uv=(()=>{class e{}return e.NOOP=new cO,e})();const jv="ng-enter",mf="ng-leave",_f="ng-trigger",vf=".ng-trigger",pO="ng-animating",$v=".ng-animating";function Or(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:zv(parseFloat(n[1]),n[2])}function zv(e,n){return"s"===n?1e3*e:e}function yf(e,n,t){return e.hasOwnProperty("duration")?e:function ij(e,n,t){let o,r=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(nO()),{duration:0,delay:0,easing:""};o=zv(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=zv(parseFloat(l),a[4]));const u=a[5];u&&(s=u)}else o=e;if(!t){let a=!1,l=n.length;o<0&&(n.push(function _3(){return new N(3100,!1)}()),a=!0),r<0&&(n.push(function v3(){return new N(3101,!1)}()),a=!0),a&&n.splice(l,0,nO())}return{duration:o,delay:r,easing:s}}(e,n,t)}function Ic(e,n={}){return Object.keys(e).forEach(t=>{n[t]=e[t]}),n}function fO(e){const n=new Map;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}function rs(e,n=new Map,t){if(t)for(let[i,o]of t)n.set(i,o);for(let[i,o]of e)n.set(i,o);return n}function gO(e,n,t){return t?n+":"+t+";":""}function mO(e){let n="";for(let t=0;t{const r=Wv(o);t&&!t.has(o)&&t.set(o,e.style[r]),e.style[r]=i}),Fv()&&mO(e))}function oa(e,n){e.style&&(n.forEach((t,i)=>{const o=Wv(i);e.style[o]=""}),Fv()&&mO(e))}function Pc(e){return Array.isArray(e)?1==e.length?e[0]:JS(e):e}const Gv=new RegExp("{{\\s*(.+?)\\s*}}","g");function _O(e){let n=[];if("string"==typeof e){let t;for(;t=Gv.exec(e);)n.push(t[1]);Gv.lastIndex=0}return n}function xc(e,n,t){const i=e.toString(),o=i.replace(Gv,(r,s)=>{let a=n[s];return null==a&&(t.push(function b3(e){return new N(3003,!1)}()),a=""),a.toString()});return o==i?e:o}function bf(e){const n=[];let t=e.next();for(;!t.done;)n.push(t.value),t=e.next();return n}const sj=/-+([a-z0-9])/g;function Wv(e){return e.replace(sj,(...n)=>n[1].toUpperCase())}function aj(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Hi(e,n,t){switch(n.type){case 7:return e.visitTrigger(n,t);case 0:return e.visitState(n,t);case 1:return e.visitTransition(n,t);case 2:return e.visitSequence(n,t);case 3:return e.visitGroup(n,t);case 4:return e.visitAnimate(n,t);case 5:return e.visitKeyframes(n,t);case 6:return e.visitStyle(n,t);case 8:return e.visitReference(n,t);case 9:return e.visitAnimateChild(n,t);case 10:return e.visitAnimateRef(n,t);case 11:return e.visitQuery(n,t);case 12:return e.visitStagger(n,t);default:throw function C3(e){return new N(3004,!1)}()}}function vO(e,n){return window.getComputedStyle(e)[n]}function fj(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(i=>function hj(e,n,t){if(":"==e[0]){const l=function gj(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}(e,t);if("function"==typeof l)return void n.push(l);e=l}const i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function R3(e){return new N(3015,!1)}()),n;const o=i[1],r=i[2],s=i[3];n.push(yO(o,s));"<"==r[0]&&!("*"==o&&"*"==s)&&n.push(yO(s,o))}(i,t,n)):t.push(e),t}const wf=new Set(["true","1"]),Mf=new Set(["false","0"]);function yO(e,n){const t=wf.has(e)||Mf.has(e),i=wf.has(n)||Mf.has(n);return(o,r)=>{let s="*"==e||e==o,a="*"==n||n==r;return!s&&t&&"boolean"==typeof o&&(s=o?wf.has(e):Mf.has(e)),!a&&i&&"boolean"==typeof r&&(a=r?wf.has(n):Mf.has(n)),s&&a}}const mj=new RegExp("s*:selfs*,?","g");function qv(e,n,t,i){return new _j(e).build(n,t,i)}class _j{constructor(n){this._driver=n}build(n,t,i){const o=new bj(t);return this._resetContextStyleTimingState(o),Hi(this,Pc(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let i=t.queryCount=0,o=t.depCount=0;const r=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function T3(){return new N(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=u}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,o+=l.depCount,s.push(l)}else t.errors.push(function w3(){return new N(3007,!1)}())}),{type:7,name:n.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(n,t){const i=this.visitStyle(n.styles,t),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{_O(l).forEach(u=>{s.hasOwnProperty(u)||r.add(u)})})}),r.size&&(bf(r.values()),t.errors.push(function M3(e,n){return new N(3008,!1)}()))}return{type:0,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const i=Hi(this,Pc(n.animation),t);return{type:1,matchers:fj(n.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:ra(n.options)}}visitSequence(n,t){return{type:2,steps:n.steps.map(i=>Hi(this,i,t)),options:ra(n.options)}}visitGroup(n,t){const i=t.currentTime;let o=0;const r=n.steps.map(s=>{t.currentTime=i;const a=Hi(this,s,t);return o=Math.max(o,t.currentTime),a});return t.currentTime=o,{type:3,steps:r,options:ra(n.options)}}visitAnimate(n,t){const i=function Dj(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return Yv(yf(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Yv(0,0,"");return r.dynamic=!0,r.strValue=t,r}const o=yf(t,n);return Yv(o.duration,o.delay,o.easing)}(n.timings,t.errors);t.currentAnimateTimings=i;let o,r=n.styles?n.styles:B({});if(5==r.type)o=this.visitKeyframes(r,t);else{let s=n.styles,a=!1;if(!s){a=!0;const u={};i.easing&&(u.easing=i.easing),s=B(u)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,o=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(n,t){const i=this._makeStyleAst(n,t);return this._validateStyleAst(i,t),i}_makeStyleAst(n,t){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of o)"string"==typeof a?a===Sr?i.push(a):t.errors.push(new N(3002,!1)):i.push(fO(a));let r=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r))for(let l of a.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,t){const i=t.currentAnimateTimings;let o=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const u=t.collectedStyles.get(t.currentQuerySelector),c=u.get(l);let d=!0;c&&(r!=o&&r>=c.startTime&&o<=c.endTime&&(t.errors.push(function S3(e,n,t,i,o){return new N(3010,!1)}()),d=!1),r=c.startTime),d&&u.set(l,{startTime:r,endTime:o}),t.options&&function rj(e,n,t){const i=n.params||{},o=_O(e);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||t.push(function y3(e){return new N(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function O3(){return new N(3011,!1)}()),i;let r=0;const s=[];let a=!1,l=!1,u=0;const c=n.steps.map(T=>{const A=this._makeStyleAst(T,t);let S=null!=A.offset?A.offset:function Cj(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(A.styles),b=0;return null!=S&&(r++,b=A.offset=S),l=l||b<0||b>1,a=a||b0&&r{const S=p>0?A==h?1:p*A:s[A],b=S*M;t.currentTime=v+C.delay+b,C.duration=b,this._validateStyleAst(T,t),T.offset=S,i.styles.push(T)}),i}visitReference(n,t){return{type:8,animation:Hi(this,Pc(n.animation),t),options:ra(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:9,options:ra(n.options)}}visitAnimateRef(n,t){return{type:10,animation:this.visitReference(n.animation,t),options:ra(n.options)}}visitQuery(n,t){const i=t.currentQuerySelector,o=n.options||{};t.queryCount++,t.currentQuery=n;const[r,s]=function vj(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(mj,"")),e=e.replace(/@\*/g,vf).replace(/@\w+/g,t=>vf+"-"+t.slice(1)).replace(/:animating/g,$v),[e,n]}(n.selector);t.currentQuerySelector=i.length?i+" "+r:r,Vi(t.collectedStyles,t.currentQuerySelector,new Map);const a=Hi(this,Pc(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:ra(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function x3(){return new N(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:yf(n.timings,t.errors,!0);return{type:12,animation:Hi(this,Pc(n.animation),t),timings:i,options:null}}}class bj{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ra(e){return e?(e=Ic(e)).params&&(e.params=function yj(e){return e?Ic(e):null}(e.params)):e={},e}function Yv(e,n,t){return{duration:e,delay:n,easing:t}}function Kv(e,n,t,i,o,r,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class Ef{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const Mj=new RegExp(":enter","g"),Sj=new RegExp(":leave","g");function Zv(e,n,t,i,o,r=new Map,s=new Map,a,l,u=[]){return(new Oj).buildKeyframes(e,n,t,i,o,r,s,a,l,u)}class Oj{buildKeyframes(n,t,i,o,r,s,a,l,u,c=[]){u=u||new Ef;const d=new Qv(n,t,u,o,r,c,[]);d.options=l;const p=l.delay?Or(l.delay):0;d.currentTimeline.delayNextStep(p),d.currentTimeline.setStyles([s],null,d.errors,l),Hi(this,i,d);const h=d.timelines.filter(v=>v.containsAnimation());if(h.length&&a.size){let v;for(let C=h.length-1;C>=0;C--){const M=h[C];if(M.element===t){v=M;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([a],null,d.errors,l)}return h.length?h.map(v=>v.buildKeyframes()):[Kv(t,[],[],[],0,p,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const i=t.subInstructions.get(t.element);if(i){const o=t.createSubContext(n.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const i=t.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,i),this.visitReference(n.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,i){var o;for(const r of n){const s=null==r?void 0:r.delay;if(s){const a="number"==typeof s?s:Or(xc(s,null!==(o=null==r?void 0:r.params)&&void 0!==o?o:{},t.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,t,i){let r=t.currentTimeline.currentTime;const s=null!=i.duration?Or(i.duration):null,a=null!=i.delay?Or(i.delay):null;return 0!==s&&n.forEach(l=>{const u=t.appendInstructionToTimeline(l,s,a);r=Math.max(r,u.duration+u.delay)}),r}visitReference(n,t){t.updateOptions(n.options,!0),Hi(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const i=t.subContextCount;let o=t;const r=n.options;if(r&&(r.params||r.delay)&&(o=t.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Sf);const s=Or(r.delay);o.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>Hi(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const i=[];let o=t.currentTimeline.currentTime;const r=n.options&&n.options.delay?Or(n.options.delay):0;n.steps.forEach(s=>{const a=t.createSubContext(n.options);r&&a.delayNextStep(r),Hi(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(o),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const i=n.strValue;return yf(t.params?xc(i,t.params,t.errors):i,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const i=t.currentAnimateTimings=this._visitTiming(n.timings,t),o=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),o.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const i=t.currentTimeline,o=t.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const i=t.currentAnimateTimings,o=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(o+r),t.previousNode=n}visitQuery(n,t){const i=t.currentTimeline.currentTime,o=n.options||{},r=o.delay?Or(o.delay):0;r&&(6===t.previousNode.type||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Sf);let s=i;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{t.currentQueryIndex=c;const d=t.createSubContext(n.options,u);r&&d.delayNextStep(r),u===t.element&&(l=d.currentTimeline),Hi(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const i=t.parentContext,o=t.currentTimeline,r=n.timings,s=Math.abs(r.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const c=t.currentTimeline;l&&c.delayNextStep(l);const d=c.currentTime;Hi(this,n.animation,t),t.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const Sf={};class Qv{constructor(n,t,i,o,r,s,a,l){this._driver=n,this.element=t,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Sf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Of(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=Or(i.duration)),null!=i.delay&&(o.delay=Or(i.delay));const r=i.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=xc(r[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const i=n.params={};Object.keys(t).forEach(o=>{i[o]=t[o]})}}return n}createSubContext(n=null,t,i){const o=t||this.element,r=new Qv(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Sf,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,i){const o={duration:null!=t?t:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new Aj(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,i,o,r,s){let a=[];if(o&&a.push(this.element),n.length>0){n=(n=n.replace(Mj,"."+this._enterClassName)).replace(Sj,"."+this._leaveClassName);let u=this._driver.query(this.element,n,1!=i);0!==i&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),a.push(...u)}return!r&&0==a.length&&s.push(function N3(e){return new N(3014,!1)}()),a}}class Of{constructor(n,t,i,o){this._driver=n,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,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(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new Of(this._driver,n,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+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||Sr),this._currentKeyframe.set(t,Sr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,i,o){var r;t&&this._previousKeyframe.set("easing",t);const s=o&&o.params||{},a=function Ij(e,n){const t=new Map;let i;return e.forEach(o=>{if("*"===o){i=i||n.keys();for(let r of i)t.set(r,Sr)}else rs(o,t)}),t}(n,this._globalTimelineStyles);for(let[l,u]of a){const c=xc(u,s,i);this._pendingStyles.set(l,c),this._localTimelineStyles.has(l)||this._backFill.set(l,null!==(r=this._globalTimelineStyles.get(l))&&void 0!==r?r:Sr),this._updateStyle(l,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,i)=>{const o=this._styleSummary.get(i);(!o||t.time>o.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const u=rs(a,new Map,this._backFill);u.forEach((c,d)=>{"!"===c?n.add(d):c===Sr&&t.add(d)}),i||u.set("offset",l/this.duration),o.push(u)});const r=n.size?bf(n.values()):[],s=t.size?bf(t.values()):[];if(i){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return Kv(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}}class Aj extends Of{constructor(n,t,i,o,r,s,a=!1){super(n,t,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],s=i+t,a=t/s,l=rs(n[0]);l.set("offset",0),r.push(l);const u=rs(n[0]);u.set("offset",DO(a)),r.push(u);const c=n.length-1;for(let d=1;d<=c;d++){let p=rs(n[d]);const h=p.get("offset");p.set("offset",DO((t+h*i)/s)),r.push(p)}i=s,t=0,o="",n=r}return Kv(this.element,n,this.preStyleProps,this.postStyleProps,i,t,o,!0)}}function DO(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}class Xv{}const Pj=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"]);class xj extends Xv{normalizePropertyName(n,t){return Wv(n)}normalizeStyleValue(n,t,i,o){let r="";const s=i.toString().trim();if(Pj.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function D3(e,n){return new N(3005,!1)}())}return s+r}}function TO(e,n,t,i,o,r,s,a,l,u,c,d,p){return{type:0,element:e,triggerName:n,isRemovalTransition:o,fromState:t,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:p}}const Jv={};class wO{constructor(n,t,i){this._triggerName=n,this.ast=t,this._stateStyles=i}match(n,t,i,o){return function Nj(e,n,t,i,o){return e.some(r=>r(n,t,i,o))}(this.ast.matchers,n,t,i,o)}buildStyles(n,t,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(null==n?void 0:n.toString())||o),o?o.buildStyles(t,i):new Map}build(n,t,i,o,r,s,a,l,u,c){var d;const p=[],h=this.ast.options&&this.ast.options.params||Jv,C=this.buildStyles(i,a&&a.params||Jv,p),M=l&&l.params||Jv,T=this.buildStyles(o,M,p),A=new Set,S=new Map,b=new Map,R="void"===o,x={params:Rj(M,h),delay:null===(d=this.ast.options)||void 0===d?void 0:d.delay},ae=c?[]:Zv(n,t,this.ast.animation,r,s,C,T,x,u,p);let me=0;if(ae.forEach(Pe=>{me=Math.max(Pe.duration+Pe.delay,me)}),p.length)return TO(t,this._triggerName,i,o,R,C,T,[],[],S,b,me,p);ae.forEach(Pe=>{const $e=Pe.element,Ze=Vi(S,$e,new Set);Pe.preStyleProps.forEach(yt=>Ze.add(yt));const qe=Vi(b,$e,new Set);Pe.postStyleProps.forEach(yt=>qe.add(yt)),$e!==t&&A.add($e)});const je=bf(A.values());return TO(t,this._triggerName,i,o,R,C,T,ae,je,S,b,me)}}function Rj(e,n){const t=Ic(n);for(const i in e)e.hasOwnProperty(i)&&null!=e[i]&&(t[i]=e[i]);return t}class Fj{constructor(n,t,i){this.styles=n,this.defaultParams=t,this.normalizer=i}buildStyles(n,t){const i=new Map,o=Ic(this.defaultParams);return Object.keys(n).forEach(r=>{const s=n[r];null!==s&&(o[r]=s)}),this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((s,a)=>{s&&(s=xc(s,o,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(l,s)})}),i}}class Lj{constructor(n,t,i){this.name=n,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(o=>{this.states.set(o.name,new Fj(o.style,o.options&&o.options.params||{},i))}),MO(this.states,"true","1"),MO(this.states,"false","0"),t.transitions.forEach(o=>{this.transitionFactories.push(new wO(n,o,this.states))}),this.fallbackTransition=function Vj(e,n,t){return new wO(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,i,o){return this.transitionFactories.find(s=>s.match(n,t,i,o))||null}matchStyles(n,t,i){return this.fallbackTransition.buildStyles(n,t,i)}}function MO(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const Hj=new Ef;class Bj{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const i=[],r=qv(this._driver,t,i,[]);if(i.length)throw function B3(e){return new N(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,t,i){const o=n.element,r=iO(0,this._normalizer,0,n.keyframes,t,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,t,i={}){const o=[],r=this._animations.get(n);let s;const a=new Map;if(r?(s=Zv(this._driver,t,r,jv,mf,new Map,new Map,i,Hj,o),s.forEach(c=>{const d=Vi(a,c.element,new Map);c.postStyleProps.forEach(p=>d.set(p,null))})):(o.push(function U3(){return new N(3300,!1)}()),s=[]),o.length)throw function j3(e){return new N(3504,!1)}();a.forEach((c,d)=>{c.forEach((p,h)=>{c.set(h,this._driver.computeStyle(d,h,Sr))})});const u=os(s.map(c=>{const d=a.get(c.element);return this._buildPlayer(c,new Map,d)}));return this._playersById.set(n,u),u.onDestroy(()=>this.destroy(n)),this.players.push(u),u}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function $3(e){return new N(3301,!1)}();return t}listen(n,t,i,o){const r=Vv(t,"","","");return kv(this._getPlayer(n),i,r,o),()=>{}}command(n,t,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,t,o[0]||{});const r=this._getPlayer(n);switch(i){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(o[0]));break;case"destroy":this.destroy(n)}}}const EO="ng-animate-queued",ey="ng-animate-disabled",Gj=[],SO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},to="__ng_removed";class ty{constructor(n,t=""){this.namespaceId=t;const i=n&&n.hasOwnProperty("value");if(this.value=function Zj(e){return null!=e?e:null}(i?n.value:n),i){const r=Ic(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const t=n.params;if(t){const i=this.options.params;Object.keys(t).forEach(o=>{null==i[o]&&(i[o]=t[o])})}}}const Nc="void",ny=new ty(Nc);class qj{constructor(n,t,i){this.id=n,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,no(t,this._hostClassName)}listen(n,t,i,o){if(!this._triggers.has(t))throw function z3(e,n){return new N(3302,!1)}();if(null==i||0==i.length)throw function G3(e){return new N(3303,!1)}();if(!function Qj(e){return"start"==e||"done"==e}(i))throw function W3(e,n){return new N(3400,!1)}();const r=Vi(this._elementListeners,n,[]),s={name:t,phase:i,callback:o};r.push(s);const a=Vi(this._engine.statesByElement,n,new Map);return a.has(t)||(no(n,_f),no(n,_f+"-"+t),a.set(t,ny)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function q3(e){return new N(3401,!1)}();return t}trigger(n,t,i,o=!0){const r=this._getTrigger(t),s=new iy(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(no(n,_f),no(n,_f+"-"+t),this._engine.statesByElement.set(n,a=new Map));let l=a.get(t);const u=new ty(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(t,u),l||(l=ny),u.value!==Nc&&l.value===u.value){if(!function e$(e,n){const t=Object.keys(e),i=Object.keys(n);if(t.length!=i.length)return!1;for(let o=0;o{oa(n,M),Ko(n,T)})}return}const p=Vi(this._engine.playersByElement,n,[]);p.forEach(C=>{C.namespaceId==this.id&&C.triggerName==t&&C.queued&&C.destroy()});let h=r.matchTransition(l.value,u.value,n,u.params),v=!1;if(!h){if(!o)return;h=r.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:h,fromState:l,toState:u,player:s,isFallbackTransition:v}),v||(no(n,EO),s.onStart(()=>{Il(n,EO)})),s.onDone(()=>{let C=this.players.indexOf(s);C>=0&&this.players.splice(C,1);const M=this._engine.playersByElement.get(n);if(M){let T=M.indexOf(s);T>=0&&M.splice(T,1)}}),this.players.push(s),p.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const i=this._engine.driver.query(n,vf,!0);i.forEach(o=>{if(o[to])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,t,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,t,i,o){const r=this._engine.statesByElement.get(n),s=new Map;if(r){const a=[];if(r.forEach((l,u)=>{if(s.set(u,l.value),this._triggers.has(u)){const c=this.trigger(n,u,Nc,o);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),i&&os(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(t&&i){const o=new Set;t.forEach(r=>{const s=r.name;if(o.has(s))return;o.add(s);const l=this._triggers.get(s).fallbackTransition,u=i.get(s)||ny,c=new ty(Nc),d=new iy(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(n,t){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,t);else{const r=n[to];(!r||r===SO)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,t))}}insertNode(n,t){no(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Vv(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,kv(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):t.push(i)}),this._queue=[],t.sort((i,o)=>{const r=i.transition.ast.depCount,s=o.transition.ast.depCount;return 0==r||0==s?r-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let t=!1;return this._elementListeners.has(n)&&(t=!0),t=!!this._queue.find(i=>i.element===n)||t,t}}class Yj{constructor(n,t,i){this.bodyNode=n,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,t){const i=new qj(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,t){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=o.get(a);if(l){const u=i.indexOf(l);i.splice(u+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return o.set(t,n),n}register(n,t){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,t)),i}registerTrigger(n,t,i){let o=this._namespaceLookup[n];o&&o.register(t,i)&&this.totalAnimations++}destroy(n,t){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&t.add(r)}return t}trigger(n,t,i,o){if(Af(t)){const r=this._fetchNamespace(n);if(r)return r.trigger(t,i,o),!0}return!1}insertNode(n,t,i,o){if(!Af(t))return;const r=t[to];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(t,i)}o&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),no(n,ey)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Il(n,ey))}removeNode(n,t,i,o){if(Af(t)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(t,o):this.markElementAsRemoved(n,t,!1,o),i){const s=this.namespacesByHostElement.get(t);s&&s.id!==n&&s.removeNode(t,o)}}else this._onRemovalComplete(t,o)}markElementAsRemoved(n,t,i,o,r){this.collectedLeaveElements.push(t),t[to]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,t,i,o,r){return Af(t)?this._fetchNamespace(n).listen(t,i,o,r):()=>{}}_buildInstruction(n,t,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,t,r)}destroyInnerAnimations(n){let t=this.driver.query(n,vf,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,$v,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return os(this.players).onDone(()=>n());n()})}processLeaveNode(n){var t;const i=n[to];if(i&&i.setForRemoval){if(n[to]=SO,i.namespaceId){this.destroyInnerAnimations(n);const o=this._fetchNamespace(i.namespaceId);o&&o.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}!(null===(t=n.classList)||void 0===t)&&t.contains(ey)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?os(t).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function Y3(e){return new N(3402,!1)}()}_flushAnimations(n,t){const i=new Ef,o=[],r=new Map,s=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(z=>{c.add(z);const X=this.driver.query(z,".ng-animate-queued",!0);for(let te=0;te{const te=jv+C++;v.set(X,te),z.forEach(be=>no(be,te))});const M=[],T=new Set,A=new Set;for(let z=0;zT.add(be)):A.add(X))}const S=new Map,b=IO(p,Array.from(T));b.forEach((z,X)=>{const te=mf+C++;S.set(X,te),z.forEach(be=>no(be,te))}),n.push(()=>{h.forEach((z,X)=>{const te=v.get(X);z.forEach(be=>Il(be,te))}),b.forEach((z,X)=>{const te=S.get(X);z.forEach(be=>Il(be,te))}),M.forEach(z=>{this.processLeaveNode(z)})});const R=[],x=[];for(let z=this._namespaceList.length-1;z>=0;z--)this._namespaceList[z].drainQueuedTransitions(t).forEach(te=>{const be=te.player,nt=te.element;if(R.push(be),this.collectedEnterElements.length){const $t=nt[to];if($t&&$t.setForMove){if($t.previousTriggersValues&&$t.previousTriggersValues.has(te.triggerName)){const Hn=$t.previousTriggersValues.get(te.triggerName),wn=this.statesByElement.get(te.element);if(wn&&wn.has(te.triggerName)){const $i=wn.get(te.triggerName);$i.value=Hn,wn.set(te.triggerName,$i)}}return void be.destroy()}}const On=!d||!this.driver.containsElement(d,nt),kt=S.get(nt),ni=v.get(nt),it=this._buildInstruction(te,i,ni,kt,On);if(it.errors&&it.errors.length)return void x.push(it);if(On)return be.onStart(()=>oa(nt,it.fromStyles)),be.onDestroy(()=>Ko(nt,it.toStyles)),void o.push(be);if(te.isFallbackTransition)return be.onStart(()=>oa(nt,it.fromStyles)),be.onDestroy(()=>Ko(nt,it.toStyles)),void o.push(be);const Mi=[];it.timelines.forEach($t=>{$t.stretchStartingKeyframe=!0,this.disabledNodes.has($t.element)||Mi.push($t)}),it.timelines=Mi,i.append(nt,it.timelines),s.push({instruction:it,player:be,element:nt}),it.queriedElements.forEach($t=>Vi(a,$t,[]).push(be)),it.preStyleProps.forEach(($t,Hn)=>{if($t.size){let wn=l.get(Hn);wn||l.set(Hn,wn=new Set),$t.forEach(($i,nr)=>wn.add(nr))}}),it.postStyleProps.forEach(($t,Hn)=>{let wn=u.get(Hn);wn||u.set(Hn,wn=new Set),$t.forEach(($i,nr)=>wn.add(nr))})});if(x.length){const z=[];x.forEach(X=>{z.push(function K3(e,n){return new N(3505,!1)}())}),R.forEach(X=>X.destroy()),this.reportError(z)}const ae=new Map,me=new Map;s.forEach(z=>{const X=z.element;i.has(X)&&(me.set(X,X),this._beforeAnimationBuild(z.player.namespaceId,z.instruction,ae))}),o.forEach(z=>{const X=z.element;this._getPreviousPlayers(X,!1,z.namespaceId,z.triggerName,null).forEach(be=>{Vi(ae,X,[]).push(be),be.destroy()})});const je=M.filter(z=>xO(z,l,u)),Pe=new Map;AO(Pe,this.driver,A,u,Sr).forEach(z=>{xO(z,l,u)&&je.push(z)});const Ze=new Map;h.forEach((z,X)=>{AO(Ze,this.driver,new Set(z),l,"!")}),je.forEach(z=>{var X,te;const be=Pe.get(z),nt=Ze.get(z);Pe.set(z,new Map([...Array.from(null!==(X=null==be?void 0:be.entries())&&void 0!==X?X:[]),...Array.from(null!==(te=null==nt?void 0:nt.entries())&&void 0!==te?te:[])]))});const qe=[],yt=[],pn={};s.forEach(z=>{const{element:X,player:te,instruction:be}=z;if(i.has(X)){if(c.has(X))return te.onDestroy(()=>Ko(X,be.toStyles)),te.disabled=!0,te.overrideTotalTime(be.totalTime),void o.push(te);let nt=pn;if(me.size>1){let kt=X;const ni=[];for(;kt=kt.parentNode;){const it=me.get(kt);if(it){nt=it;break}ni.push(kt)}ni.forEach(it=>me.set(it,nt))}const On=this._buildAnimation(te.namespaceId,be,ae,r,Ze,Pe);if(te.setRealPlayer(On),nt===pn)qe.push(te);else{const kt=this.playersByElement.get(nt);kt&&kt.length&&(te.parentPlayer=os(kt)),o.push(te)}}else oa(X,be.fromStyles),te.onDestroy(()=>Ko(X,be.toStyles)),yt.push(te),c.has(X)&&o.push(te)}),yt.forEach(z=>{const X=r.get(z.element);if(X&&X.length){const te=os(X);z.setRealPlayer(te)}}),o.forEach(z=>{z.parentPlayer?z.syncPlayerEvents(z.parentPlayer):z.destroy()});for(let z=0;z!On.destroyed);nt.length?Xj(this,X,nt):this.processLeaveNode(X)}return M.length=0,qe.forEach(z=>{this.players.push(z),z.onDone(()=>{z.destroy();const X=this.players.indexOf(z);this.players.splice(X,1)}),z.play()}),qe}elementContainsData(n,t){let i=!1;const o=t[to];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(n).elementContainsData(t)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,i,o,r){let s=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==Nc;a.forEach(u=>{u.queued||!l&&u.triggerName!=o||s.push(u)})}}return(i||o)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(n,t,i){const r=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const u=l.element,c=u!==r,d=Vi(i,u,[]);this._getPreviousPlayers(u,c,s,a,t.toState).forEach(h=>{const v=h.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),h.destroy(),d.push(h)})}oa(r,t.fromStyles)}_buildAnimation(n,t,i,o,r,s){const a=t.triggerName,l=t.element,u=[],c=new Set,d=new Set,p=t.timelines.map(v=>{const C=v.element;c.add(C);const M=C[to];if(M&&M.removedBeforeQueried)return new Ac(v.duration,v.delay);const T=C!==l,A=function Jj(e){const n=[];return PO(e,n),n}((i.get(C)||Gj).map(ae=>ae.getRealPlayer())).filter(ae=>!!ae.element&&ae.element===C),S=r.get(C),b=s.get(C),R=iO(0,this._normalizer,0,v.keyframes,S,b),x=this._buildPlayer(v,R,A);if(v.subTimeline&&o&&d.add(C),T){const ae=new iy(n,a,C);ae.setRealPlayer(x),u.push(ae)}return x});u.forEach(v=>{Vi(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>function Kj(e,n,t){let i=e.get(n);if(i){if(i.length){const o=i.indexOf(t);i.splice(o,1)}0==i.length&&e.delete(n)}return i}(this.playersByQueriedElement,v.element,v))}),c.forEach(v=>no(v,pO));const h=os(p);return h.onDestroy(()=>{c.forEach(v=>Il(v,pO)),Ko(l,t.toStyles)}),d.forEach(v=>{Vi(o,v,[]).push(h)}),h}_buildPlayer(n,t,i){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,i):new Ac(n.duration,n.delay)}}class iy{constructor(n,t,i){this.namespaceId=n,this.triggerName=t,this.element=i,this._player=new Ac,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,i)=>{t.forEach(o=>kv(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){Vi(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function Af(e){return e&&1===e.nodeType}function OO(e,n){const t=e.style.display;return e.style.display=null!=n?n:"none",t}function AO(e,n,t,i,o){const r=[];t.forEach(l=>r.push(OO(l)));const s=[];i.forEach((l,u)=>{const c=new Map;l.forEach(d=>{const p=n.computeStyle(u,d,o);c.set(d,p),(!p||0==p.length)&&(u[to]=Wj,s.push(u))}),e.set(u,c)});let a=0;return t.forEach(l=>OO(l,r[a++])),s}function IO(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const o=new Set(n),r=new Map;function s(a){if(!a)return 1;let l=r.get(a);if(l)return l;const u=a.parentNode;return l=t.has(u)?u:o.has(u)?1:s(u),r.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function no(e,n){var t;null===(t=e.classList)||void 0===t||t.add(n)}function Il(e,n){var t;null===(t=e.classList)||void 0===t||t.remove(n)}function Xj(e,n,t){os(t).onDone(()=>e.processLeaveNode(n))}function PO(e,n){for(let t=0;to.add(r)):n.set(e,i),t.delete(e),!0}class Rc{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new Yj(n,t,i),this._timelineEngine=new Bj(n,t,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(n,t,i,o,r){const s=n+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],c=qv(this._driver,r,l,[]);if(l.length)throw function V3(e,n){return new N(3404,!1)}();a=function kj(e,n,t){return new Lj(e,n,t)}(o,c,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,o,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,i,o){this._transitionEngine.insertNode(n,t,i,o)}onRemove(n,t,i,o){this._transitionEngine.removeNode(n,t,o||!1,i)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,i,o){if("@"==i.charAt(0)){const[r,s]=oO(i);this._timelineEngine.command(r,t,s,o)}else this._transitionEngine.trigger(n,t,i,o)}listen(n,t,i,o,r){if("@"==i.charAt(0)){const[s,a]=oO(i);return this._timelineEngine.listen(s,t,a,r)}return this._transitionEngine.listen(n,t,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let n$=(()=>{class e{constructor(t,i,o){this._element=t,this._startStyles=i,this._endStyles=o,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ko(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ko(this._element,this._initialStyles),this._endStyles&&(Ko(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(oa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(oa(this._element,this._endStyles),this._endStyles=null),Ko(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function oy(e){let n=null;return e.forEach((t,i)=>{(function i$(e){return"display"===e||"position"===e})(i)&&(n=n||new Map,n.set(i,t))}),n}class NO{constructor(n,t,i,o){this.element=n,this.keyframes=t,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(n,t,i){return n.animate(this._convertKeyframesToObject(t),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:vO(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class o${validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,t){return!1}containsElement(n,t){return lO(n,t)}getParentElement(n){return Bv(n)}query(n,t,i){return uO(n,t,i)}computeStyle(n,t,i){return window.getComputedStyle(n)[t]}animate(n,t,i,o,r,s=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const u=new Map,c=s.filter(h=>h instanceof NO);(function lj(e,n){return 0===e||0===n})(i,o)&&c.forEach(h=>{h.currentSnapshot.forEach((v,C)=>u.set(C,v))});let d=function oj(e){return e.length?e[0]instanceof Map?e:e.map(n=>fO(n)):[]}(t).map(h=>rs(h));d=function uj(e,n,t){if(t.size&&n.length){let i=n[0],o=[];if(t.forEach((r,s)=>{i.has(s)||o.push(s),i.set(s,r)}),o.length)for(let r=1;rs.set(a,vO(e,a)))}}return n}(n,d,u);const p=function t$(e,n){let t=null,i=null;return Array.isArray(n)&&n.length?(t=oy(n[0]),n.length>1&&(i=oy(n[n.length-1]))):n instanceof Map&&(t=oy(n)),t||i?new n$(e,t,i):null}(n,d);return new NO(n,d,l,p)}}let r$=(()=>{class e extends XS{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Co.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(t)?JS(t):t;return RO(this._renderer,null,i,"register",[o]),new s$(i,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(L(qs),L(Ye))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();class s$ extends class g3{}{constructor(n,t){super(),this._id=n,this._renderer=t}create(n,t){return new a$(this._id,n,t||{},this._renderer)}}class a${constructor(n,t,i,o){this.id=n,this.element=t,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,t){return this._renderer.listen(this.element,`@@${this.id}:${n}`,t)}_command(n,...t){return RO(this._renderer,this.element,this.id,n,t)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,t;return null!==(t=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==t?t:0}}function RO(e,n,t,i,o){return e.setProperty(n,`@@${t}:${i}`,o)}const FO="@.disabled";let l$=(()=>{class e{constructor(t,i,o){this.delegate=t,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,s)=>{const a=null==s?void 0:s.parentNode(r);a&&s.removeChild(a,r)}}createRenderer(t,i){const r=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let c=this._rendererCache.get(r);return c||(c=new kO("",r,this.engine,()=>this._rendererCache.delete(r)),this._rendererCache.set(r,c)),c}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=c=>{Array.isArray(c)?c.forEach(l):this.engine.registerTrigger(s,a,t,c.name,c)};return i.data.animation.forEach(l),new u$(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,o){t>=0&&ti(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(L(qs),L(Rc),L(ct))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();class kO{constructor(n,t,i,o){this.namespaceId=n,this.delegate=t,this.engine=i,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){var n;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(n=this._onDestroy)||void 0===n||n.call(this)}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,i,o=!0){this.delegate.insertBefore(n,t,i),this.engine.onInsert(this.namespaceId,t,n,o)}removeChild(n,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,i,o){this.delegate.setAttribute(n,t,i,o)}removeAttribute(n,t,i){this.delegate.removeAttribute(n,t,i)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,i,o){this.delegate.setStyle(n,t,i,o)}removeStyle(n,t,i){this.delegate.removeStyle(n,t,i)}setProperty(n,t,i){"@"==t.charAt(0)&&t==FO?this.disableAnimations(n,!!i):this.delegate.setProperty(n,t,i)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,i){return this.delegate.listen(n,t,i)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class u$ extends kO{constructor(n,t,i,o,r){super(t,i,o,r),this.factory=n,this.namespaceId=t}setProperty(n,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==FO?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,t.slice(1),i):this.delegate.setProperty(n,t,i)}listen(n,t,i){if("@"==t.charAt(0)){const o=function c$(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let r=t.slice(1),s="";return"@"!=r.charAt(0)&&([r,s]=function d$(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,t,i)}}let p$=(()=>{class e extends Rc{constructor(t,i,o,r){super(t.body,i,o)}ngOnDestroy(){this.flush()}}return e.\u0275fac=function(t){return new(t||e)(L(Ye),L(Uv),L(Xv),L(El))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const LO=[{provide:XS,useClass:r$},{provide:Xv,useFactory:function f$(){return new xj}},{provide:Rc,useClass:p$},{provide:qs,useFactory:function h$(e,n,t){return new l$(e,n,t)},deps:[rf,Rc,ct]}],ry=[{provide:Uv,useFactory:()=>new o$},{provide:bM,useValue:"BrowserAnimations"},...LO],VO=[{provide:Uv,useClass:cO},{provide:bM,useValue:"NoopAnimations"},...LO];let g$=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?VO:ry}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({providers:ry,imports:[BE]}),e})();const m$=["addListener","removeListener"],_$=["addEventListener","removeEventListener"],v$=["on","off"];function Bi(e,n,t,i){if(Be(t)&&(i=t,t=void 0),i)return Bi(e,n,t).pipe(dv(i));const[o,r]=function C$(e){return Be(e.addEventListener)&&Be(e.removeEventListener)}(e)?_$.map(s=>a=>e[s](n,a,t)):function y$(e){return Be(e.addListener)&&Be(e.removeListener)}(e)?m$.map(HO(e,n)):function b$(e){return Be(e.on)&&Be(e.off)}(e)?v$.map(HO(e,n)):[];if(!o&&jr(e))return Zt(s=>Bi(s,n,t))(en(e));if(!o)throw new TypeError("Invalid event target");return new Ce(s=>{const a=(...l)=>s.next(1r(a)})}function HO(e,n){return t=>i=>e[t](n,i)}function Pl(...e){return function D$(){return ar(1)}()(bt(e,_o(e)))}function Cn(...e){const n=_o(e);return pt((t,i)=>{(n?Pl(e,t,n):Pl(e,t)).subscribe(i)})}function bi(e,n=Lt){return e=null!=e?e:T$,pt((t,i)=>{let o,r=!0;t.subscribe(ze(i,s=>{const a=n(s);(r||!e(o,a))&&(r=!1,o=a,i.next(s))}))})}function T$(e,n){return e===n}const sy={now:()=>(sy.delegate||Date).now(),delegate:void 0};class ay extends zt{constructor(n=1/0,t=1/0,i=sy){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){const{isStopped:t,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;t||(i.push(n),!o&&i.push(r.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const t=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let s=0;snew ay(i,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}const Ft=new E("An abstraction over global window object",{factory:()=>{const{defaultView:e}=U(Ye);if(!e)throw new Error("Window is not available");return e}}),ly=new E("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{const{requestAnimationFrame:e,cancelAnimationFrame:n}=U(Ft);return new Ce(i=>{let o=NaN;const r=s=>{i.next(s),o=e(r)};return o=e(r),()=>{n(o)}}).pipe(vo())}}),w$=(new E("An abstraction over window.caches object",{factory:()=>U(Ft).caches}),new E("An abstraction over window.crypto object",{factory:()=>U(Ft).crypto}),new E("An abstraction over window.CSS object",{factory:()=>U(Ft).CSS||{escape:e=>e,supports:()=>!1}})),M$=(new E("An abstraction over window.history object",{factory:()=>U(Ft).history}),new E("An abstraction over window.localStorage object",{factory:()=>U(Ft).localStorage})),Pf=(new E("An abstraction over window.location object",{factory:()=>U(Ft).location}),new E("An abstraction over window.navigator object",{factory:()=>U(Ft).navigator})),E$=(new E("An abstraction over window.navigator.mediaDevices object",{factory:()=>U(Pf).mediaDevices}),new E("An abstraction over window.navigator.connection object",{factory:()=>U(Pf).connection||null}),new E("Shared Observable based on `document visibility changed`",{factory:()=>{const e=U(Ye);return Bi(e,"visibilitychange").pipe(Cn(0),W(()=>"hidden"!==e.visibilityState),bi(),xl({refCount:!1,bufferSize:1}))}}),new E("An abstraction over window.performance object",{factory:()=>U(Ft).performance}),new E("An abstraction over window.screen object",{factory:()=>U(Ft).screen}),new E("An abstraction over window.sessionStorage object",{factory:()=>U(Ft).sessionStorage}),new E("An abstraction over SpeechRecognition class",{factory:()=>{const e=U(Ft);return e.speechRecognition||e.webkitSpeechRecognition||null}}),new E("An abstraction over window.speechSynthesis object",{factory:()=>U(Ft).speechSynthesis}),new E("An abstraction over window.navigator.userAgent object",{factory:()=>U(Pf).userAgent}));let S$=(()=>{class e{constructor(t){this.window=t}isMatches(t){return this.window.matchMedia(t).matches}}return e.\u0275fac=function(t){return new(t||e)(L(Ft))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Sn=(()=>{class e extends zt{ngOnDestroy(){this.next(),this.complete()}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const BO=[{view:"data attribute",value:"data_attribute"},{view:"content property",value:"content_property"},{view:"ngxTippy directive",value:"ngxTippy_directive"},{view:"setContent method",value:"setContent_method"},{view:"tippyProps",value:"tippyProps"},{view:"ng-template",value:"ng_template"},{view:"html template",value:"html_template"},{view:"component",value:"component"},{view:"element reference",value:"element_reference"}],uy="(prefers-color-scheme: light)";var jt=(()=>{return(e=jt||(jt={})).Light="light-scheme",e.Dark="dark-scheme",jt;var e})();class cn extends zt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const UO="preferred_scheme",ss="is_system_scheme";let as=(()=>{class e{constructor(t,i){this.window=t,this.storage=i,this.listenForSchemeChanges()}getPreferredScheme(){return new Promise((t,i)=>{const o=this.getSystemScheme(),r=this.getIsSystemSchemeFlag();if(o&&r){const s="true"===r;this.initSchemeSubject(o),this.initIsSystemSchemeSubject(s),t({scheme:o,isSystemSchemeFlag:s})}else i("Error occurs while loading scheme")})}get scheme$(){return this._scheme$.asObservable()}get isSystemScheme$(){return this._isSystemScheme$.asObservable()}toggleScheme(t){t===jt.Dark&&(this.storeSchemeToLocalStorage(jt.Dark),this.emitSchemeChanges(jt.Dark)),t===jt.Light&&(this.storeSchemeToLocalStorage(jt.Light),this.emitSchemeChanges(jt.Light)),this.storage.setItem(ss,"false"),this.emitIsSystemSchemeChanges(!1)}toggleSystemScheme(){if("true"===this.storage.getItem(ss))this.storage.setItem(ss,"false"),this.emitIsSystemSchemeChanges(!1);else{this.storage.setItem(ss,"true"),this.emitIsSystemSchemeChanges(!0);const i=this.getMatchedScheme(this.window.matchMedia(uy).matches);this.storeSchemeToLocalStorage(i),this.emitSchemeChanges(i)}}listenForSchemeChanges(){Bi(this.window.matchMedia(uy),"change").subscribe(i=>{const o=this.storage.getItem(ss);if(o&&"true"===o){const r=this.getMatchedScheme(i.matches);this.storeSchemeToLocalStorage(r),this.emitSchemeChanges(r)}})}getSystemScheme(){const t=this.storage.getItem(UO),i=this.getMatchedScheme(this.window.matchMedia(uy).matches);return console.log("\u{1f680} ~ preferredScheme:",i),t||(this.storeSchemeToLocalStorage(i),i)}getIsSystemSchemeFlag(){return this.storage.getItem(ss)||this.storage.setItem(ss,"true"),this.storage.getItem(ss)}initSchemeSubject(t){this._scheme$=new cn(t)}initIsSystemSchemeSubject(t){this._isSystemScheme$=new cn(t)}emitSchemeChanges(t){this._scheme$.next(t)}emitIsSystemSchemeChanges(t){this._isSystemScheme$.next(t)}storeSchemeToLocalStorage(t){this.storage.setItem(UO,t)}getMatchedScheme(t){return t?jt.Light:jt.Dark}}return e.\u0275fac=function(t){return new(t||e)(L(Ft),L(M$))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class A${constructor(n){this.internalDirectiveInstance=n}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}}let Ci=(()=>{class e{constructor(t,i){t.createEmbeddedView(i,new A$(this))}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(_(di),_(Fn))},e.\u0275dir=V({type:e,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"}}),e})(),Nl=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();var w=(()=>{return(e=w||(w={})).AD="AD",e.AE="AE",e.AF="AF",e.AG="AG",e.AI="AI",e.AL="AL",e.AM="AM",e.AO="AO",e.AR="AR",e.AT="AT",e.AU="AU",e.AW="AW",e.AZ="AZ",e.BA="BA",e.BB="BB",e.BD="BD",e.BE="BE",e.BF="BF",e.BG="BG",e.BH="BH",e.BI="BI",e.BJ="BJ",e.BL="BL",e.BM="BM",e.BN="BN",e.BO="BO",e.BQ="BQ",e.BR="BR",e.BS="BS",e.BT="BT",e.BW="BW",e.BY="BY",e.BZ="BZ",e.CD="CD",e.CF="CF",e.CG="CG",e.CH="CH",e.CI="CI",e.CL="CL",e.CM="CM",e.CN="CN",e.CO="CO",e.CR="CR",e.CU="CU",e.CV="CV",e.CW="CW",e.CY="CY",e.CZ="CZ",e.DE="DE",e.DJ="DJ",e.DK="DK",e.DM="DM",e.DO="DO",e.DZ="DZ",e.EC="EC",e.EE="EE",e.EG="EG",e.ER="ER",e.ES="ES",e.ET="ET",e.FI="FI",e.FJ="FJ",e.FK="FK",e.FM="FM",e.FR="FR",e.GA="GA",e.GB="GB",e.GD="GD",e.GE="GE",e.GF="GF",e.GH="GH",e.GI="GI",e.GL="GL",e.GM="GM",e.GN="GN",e.GP="GP",e.GQ="GQ",e.GR="GR",e.GT="GT",e.GW="GW",e.GY="GY",e.HK="HK",e.HN="HN",e.HR="HR",e.HT="HT",e.HU="HU",e.ID="ID",e.IE="IE",e.IL="IL",e.IN="IN",e.IQ="IQ",e.IR="IR",e.IS="IS",e.IT="IT",e.JM="JM",e.JO="JO",e.JP="JP",e.KE="KE",e.KG="KG",e.KH="KH",e.KM="KM",e.KN="KN",e.KP="KP",e.KR="KR",e.KW="KW",e.KY="KY",e.KZ="KZ",e.LA="LA",e.LB="LB",e.LC="LC",e.LI="LI",e.LK="LK",e.LR="LR",e.LS="LS",e.LT="LT",e.LU="LU",e.LV="LV",e.LY="LY",e.MA="MA",e.MC="MC",e.MD="MD",e.ME="ME",e.MF="MF",e.MG="MG",e.MK="MK",e.ML="ML",e.MM="MM",e.MN="MN",e.MO="MO",e.MQ="MQ",e.MR="MR",e.MS="MS",e.MT="MT",e.MU="MU",e.MV="MV",e.MW="MW",e.MX="MX",e.MY="MY",e.MZ="MZ",e.NA="NA",e.NE="NE",e.NG="NG",e.NI="NI",e.NL="NL",e.NO="NO",e.NP="NP",e.NZ="NZ",e.OM="OM",e.PA="PA",e.PE="PE",e.PF="PF",e.PG="PG",e.PH="PH",e.PK="PK",e.PL="PL",e.PT="PT",e.PW="PW",e.PY="PY",e.QA="QA",e.RE="RE",e.RO="RO",e.RS="RS",e.RU="RU",e.RW="RW",e.SA="SA",e.SB="SB",e.SC="SC",e.SD="SD",e.SE="SE",e.SG="SG",e.SH="SH",e.SI="SI",e.SK="SK",e.SL="SL",e.SM="SM",e.SN="SN",e.SO="SO",e.SR="SR",e.ST="ST",e.SV="SV",e.SX="SX",e.SY="SY",e.SZ="SZ",e.TC="TC",e.TD="TD",e.TG="TG",e.TH="TH",e.TJ="TJ",e.TL="TL",e.TM="TM",e.TN="TN",e.TO="TO",e.TR="TR",e.TT="TT",e.TW="TW",e.TZ="TZ",e.UA="UA",e.UG="UG",e.UY="UY",e.UZ="UZ",e.VC="VC",e.VE="VE",e.VG="VG",e.VN="VN",e.VU="VU",e.WS="WS",e.XK="XK",e.YE="YE",e.YT="YT",e.ZA="ZA",e.ZM="ZM",e.ZW="ZW",e.US="US",e.CA="CA",w;var e})();const L$=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},{months:["January","February","March","April","May","June","July","August","September","October","November","December"],close:"Close",nothingFoundMessage:"Nothing found",defaultErrorMessage:"Value is invalid",spinTexts:["Previous","Next"],shortWeekDays:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],countries:{[w.AD]:"Andorra",[w.AE]:"United Arab Emirates",[w.AF]:"Afghanistan",[w.AG]:"Antigua and Barbuda",[w.BL]:"Saint Barth\xe9lemy",[w.AI]:"Anguilla",[w.AL]:"Albania",[w.AM]:"Armenia",[w.AO]:"Angola",[w.AR]:"Argentina",[w.AT]:"Austria",[w.AU]:"Australia",[w.AW]:"Aruba",[w.AZ]:"Azerbaijan",[w.BA]:"Bosnia and Herzegovina",[w.BB]:"Barbados",[w.BD]:"Bangladesh",[w.BE]:"Belgium",[w.BF]:"Burkina Faso",[w.BG]:"Bulgaria",[w.BH]:"Bahrain",[w.BI]:"Burundi",[w.BJ]:"Benin",[w.GF]:"Guyana",[w.BM]:"Bermuda",[w.BN]:"Brunei Darussalam",[w.BO]:"Bolivia",[w.BQ]:"Bonaire, Sint Eustatius and Saba",[w.BR]:"Brazil",[w.BS]:"Bahamas",[w.BT]:"Bhutan",[w.BW]:"Botswana",[w.BY]:"Belarus",[w.BZ]:"Belize",[w.CA]:"Canada",[w.CD]:"Dem. Rep. Congo (Kinshasa)",[w.CF]:"Central African Republic",[w.CG]:"Congo (Brazzaville)",[w.CH]:"Switzerland",[w.CI]:"Ivory Coast",[w.CL]:"Chile",[w.CM]:"Cameroon",[w.CN]:"China",[w.CO]:"Colombia",[w.CR]:"Costa Rica",[w.CU]:"Cuba",[w.CV]:"Cape Verde",[w.CW]:"Cura\xe7ao",[w.CY]:"Cyprus",[w.CZ]:"Czech Republic",[w.DE]:"Germany",[w.DJ]:"Djibouti",[w.DK]:"Denmark",[w.DM]:"Dominica",[w.DO]:"Dominican Republic",[w.DZ]:"Algeria",[w.EC]:"Ecuador",[w.EE]:"Estonia",[w.EG]:"Egypt",[w.ER]:"Eritrea",[w.ES]:"Spain",[w.ET]:"Ethiopia",[w.FI]:"Finland",[w.FJ]:"Fiji",[w.FK]:"Falkland Islands",[w.FM]:"F.S. of Micronesia",[w.FR]:"France",[w.GA]:"Gabon",[w.GB]:"United Kingdom",[w.GD]:"Grenada",[w.GE]:"Georgia",[w.GP]:"Guadeloupe",[w.GH]:"Ghana",[w.GI]:"Gibraltar",[w.GL]:"Greenland",[w.GM]:"Gambia",[w.GN]:"Guinea",[w.MF]:"Saint-Martin",[w.GQ]:"Equatorial Guinea",[w.GR]:"Greece",[w.GT]:"Guatemala",[w.GW]:"Guinea-Bissau",[w.GY]:"Guyana",[w.HK]:"Hong Kong",[w.HN]:"Honduras",[w.HR]:"Croatia",[w.HT]:"Haiti",[w.HU]:"Hungary",[w.ID]:"Indonesia",[w.IE]:"Ireland",[w.IL]:"Israel",[w.IN]:"India",[w.IQ]:"Iraq",[w.IR]:"Iran",[w.IS]:"Iceland",[w.IT]:"Italy",[w.JM]:"Jamaica",[w.JO]:"Jordan",[w.JP]:"Japan",[w.KE]:"Kenya",[w.KG]:"Kyrgyzstan",[w.KH]:"Cambodia",[w.KM]:"Comoros",[w.KN]:"Saint Kitts and Nevis",[w.KP]:"Korean PDR",[w.KR]:"Rep. Korea",[w.KW]:"Kuwait",[w.KY]:"Cayman Islands",[w.KZ]:"Kazakhstan",[w.LA]:"Laos",[w.LB]:"Lebanon",[w.LC]:"Saint Lucia",[w.LI]:"Liechtenstein",[w.LK]:"Sri Lanka",[w.LR]:"Liberia",[w.LS]:"Lesotho",[w.LT]:"Lithuania",[w.LU]:"Luxembourg",[w.LV]:"Latvia",[w.LY]:"Libya",[w.MA]:"Morocco",[w.MC]:"Monaco",[w.MD]:"Moldova",[w.ME]:"Montenegro",[w.MQ]:"Martinique",[w.MG]:"Madagascar",[w.MK]:"Rep. of North Macedonia",[w.ML]:"Mali",[w.MM]:"Burma (Myanmar)",[w.MN]:"Mongolia",[w.MO]:"Macau",[w.RE]:"R\xe9union",[w.MR]:"Mauritania",[w.MS]:"Montserrat",[w.MT]:"Malta",[w.MU]:"Mauritius",[w.MV]:"Maldives",[w.MW]:"Malawi",[w.MX]:"Mexico",[w.MY]:"Malaysia",[w.MZ]:"Mozambique",[w.NA]:"Namibia",[w.NE]:"Niger",[w.NG]:"Nigeria",[w.NI]:"Nicaragua",[w.NL]:"Netherlands",[w.NO]:"Norway",[w.NP]:"Nepal",[w.NZ]:"New Zealand",[w.OM]:"Oman",[w.PA]:"Panama",[w.PE]:"Peru",[w.PF]:"French Polynesia (Tahiti)",[w.PG]:"Papua New Guinea",[w.PH]:"Philippines",[w.PK]:"Pakistan",[w.PL]:"Poland",[w.PT]:"Portugal",[w.PW]:"Palau",[w.PY]:"Paraguay",[w.QA]:"Qatar",[w.YT]:"Mayotte",[w.RO]:"Romania",[w.RS]:"Serbia",[w.RU]:"Russia",[w.RW]:"Rwanda",[w.SA]:"Saudi Arabia",[w.SB]:"Solomon Islands",[w.SC]:"Seychelles",[w.SD]:"Sudan",[w.SE]:"Sweden",[w.SG]:"Singapore",[w.SH]:"Saint Helena",[w.SI]:"Slovenia",[w.SK]:"Slovakia",[w.SL]:"Sierra Leone",[w.SM]:"San Marino",[w.SN]:"Senegal",[w.SO]:"Somalia",[w.SR]:"Suriname",[w.ST]:"Sao Tome and Principe",[w.SV]:"El Salvador",[w.SX]:"Sint Maarten",[w.SY]:"Syrian Arab Republic",[w.SZ]:"Swaziland",[w.TC]:"Turks and Caicos",[w.TD]:"Chad",[w.TG]:"Togo",[w.TH]:"Thailand",[w.TJ]:"Tajikistan",[w.TL]:"East Timor",[w.TM]:"Turkmenistan",[w.TN]:"Tunisia",[w.TO]:"Tonga",[w.TR]:"Turkey",[w.TT]:"Trinidad and Tobago",[w.TW]:"Taiwan",[w.TZ]:"Tanzania",[w.UA]:"Ukraine",[w.UG]:"Uganda",[w.US]:"USA",[w.UY]:"Uruguay",[w.UZ]:"Uzbekistan",[w.VC]:"Saint Vincent and the Grenadines",[w.VE]:"Venezuela",[w.VG]:"British Virgin Islands",[w.VN]:"Vietnam",[w.VU]:"Vanuatu",[w.WS]:"Samoa",[w.XK]:"Kosovo",[w.YE]:"Yemen",[w.ZA]:"South Africa",[w.ZM]:"Zambia",[w.ZW]:"Zimbabwe"}}),{cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range"],range:["from","to"],countTexts:["Plus","Minus"],time:{"HH:MM":"HH:MM","HH:MM:SS":"HH:MM:SS","HH:MM:SS.MSS":"HH:MM:SS.MSS"},dateTexts:{DMY:"dd.mm.yyyy",MDY:"mm.dd.yyyy",YMD:"yyyy.mm.dd"},digitalInformationUnits:["B","KB","MB"],passwordTexts:["Show password","Hide password"],copyTexts:["Copy","Copied"],shortCalendarMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pagination:["Previous page","Next page"],fileTexts:{loadingError:"Upload failed",preview:"Preview",remove:"Remove"},inputFileTexts:{defaultLabelSingle:"or drop\xa0it\xa0here",defaultLabelMultiple:"or drop\xa0them\xa0here",defaultLinkSingle:"Choose a file",defaultLinkMultiple:"Choose files",maxSizeRejectionReason:"File is too large ",formatRejectionReason:"Wrong file type",drop:"Drop file here",dropMultiple:"Drop files here"},multiSelectTexts:{all:"Select all",none:"Select none"}}),{showHideText:"Show/Hide",paginationTexts:{pages:"Pages",linesPerPage:"Lines per page",of:"of"}}),{cardNumber:["Number","Card number"],cardExpiry:["Expires","Valid through"]}),{colorSelectorModeNames:["Solid color","Gradient"],toolbarTools:{undo:"Undo",redo:"Redo",font:"Font",fontStyle:"Font style",fontSize:"Font size",bold:"Bold",italic:"Italic",underline:"Underline",strikeThrough:"Strike through",justify:"Justify",justifyLeft:"Justify left",justifyCenter:"Justify center",justifyRight:"Justify right",justifyFull:"Justify full",list:"List",indent:"Indent",outdent:"Outdent",unorderedList:"Unordered list",orderedList:"Ordered list",quote:"Quote",foreColor:"Color",backColor:"Background color",hiliteColor:"Highlight color",clear:"Clear",link:"Link",attach:"Attach file",tex:"Insert TeX",code:"Code",image:"Insert image",insertHorizontalRule:"Insert horizontal rule",superscript:"Superscript",subscript:"Subscript",insertTable:"Insert table",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"Merge cells",splitCells:"Split cells",rowsColumnsManaging:"Managing rows and columns",cellColor:"Cell color",setDetails:"Details",removeDetails:"Remove details"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Insert column before","Insert column after"],["Insert row before","Insert row after"],["Delete column","Delete row"]],editorCodeOptions:["Code in the text","Code in block"],editorFontOptions:{small:"Small",large:"Large",normal:"Normal",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}});function ne(...e){return bt(e,_o(e))}const V$=new E("[TUI_DEFAULT_LANGUAGE]: Default Language for Taiga UI libraries i18n",{factory:()=>L$}),H$=new E("[TUI_LANGUAGE]: Language for Taiga UI libraries i18n",{factory:()=>ne(U(V$))});function Ot(e,n){return pt((t,i)=>{let o=null,r=0,s=!1;const a=()=>s&&!o&&i.complete();t.subscribe(ze(i,l=>{null==o||o.unsubscribe();let u=0;const c=r++;en(e(l,c)).subscribe(o=ze(i,d=>i.next(n?n(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Mt(e){return()=>U(H$).pipe(Ot(n=>function B$(e){return!!e&&(e instanceof Ce||Be(e.lift)&&Be(e.subscribe))}(n)?n:ne(n)),W(n=>n[e]))}new E("[TUI_LANGUAGE_LOADER]: Webpack chunk loader for Taiga UI libraries i18n"),new E("[TUI_LANGUAGE_STORAGE_KEY]: Default key for search value in storage",{factory:()=>"tuiLanguage"}),new Pp;const cy=()=>{},jO={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},dy=Object.assign(Object.assign({},jO),{toJSON:()=>jO}),fy=Kt("tuiParentAnimation",[Ve("* => void",[B({overflow:"hidden"}),kn(":scope > *",[function m3(e=null){return{type:9,options:e}}()],{optional:!0})])]),$O=1e3/15,z$=e=>"ownerSVGElement"in e?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,q$={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:"\xa0",zeroPadding:!0},Y$=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"],zO=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"];const GO={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function WO(e){return!(!e||"undefined"==typeof getComputedStyle)&&("fixed"===getComputedStyle(e).getPropertyValue("position")||WO(e.parentElement))}function qO({document:e,innerWidth:n}){return Math.max(e.documentElement.clientWidth||0,n||0)}const my='width="',_y='height="',vy="{let r=function f5(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;r<0&&(r=0);let s=0;return t.schedule(function(){o.closed||(o.next(s++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function Nf(e,n){return Be(n)?Ot(()=>e,n):Ot(()=>e)}function xo(e){return W(()=>e)}function Ui(e){return e<=0?()=>xt:pt((n,t)=>{let i=0;n.subscribe(ze(t,o=>{++i<=e&&(t.next(o),e<=i&&t.complete())}))})}function At(e,n){return pt((t,i)=>{let o=0;t.subscribe(ze(i,r=>e.call(n,r,o++)&&i.next(r)))})}function ZO(){return pt((e,n)=>{e.subscribe(ze(n,or))})}function QO(...e){const n=St(e);return pt((t,i)=>{const o=e.length,r=new Array(o);let s=e.map(()=>!1),a=!1;for(let l=0;l{r[l]=u,!a&&!s[l]&&(s[l]=!0,(a=s.every(Lt))&&(s=null))},or));t.subscribe(ze(i,l=>{if(a){const u=[l,...r];i.next(n?n(...u):u)}}))})}function Et(e,n,t){const i=Be(e)||n||t?{next:e,error:n,complete:t}:e;return i?pt((o,r)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;o.subscribe(ze(r,l=>{var u;null===(u=i.next)||void 0===u||u.call(i,l),r.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var u;a=!1,null===(u=i.error)||void 0===u||u.call(i,l),r.error(l)},()=>{var l,u;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(u=i.finalize)||void 0===u||u.call(i)}))}):Lt}const Ke={enabled:!1,get assert(){return this.enabled?Function.prototype.bind.call(console.assert,console):cy}};function ls(e,n,t){return Ke.assert(!Number.isNaN(e)),Ke.assert(!Number.isNaN(n)),Ke.assert(!Number.isNaN(t)),Ke.assert(t>=n),Math.min(t,Math.max(n,e))}function Rf(e,n,t){return Ke.assert(!Number.isNaN(e)),Ke.assert(!Number.isNaN(n)),Ke.assert(!Number.isNaN(t)),Ke.assert(n=n&&e=t?t:Math.round(e)}function Dy(e){return"number"==typeof e}function m5(e){return null!=e}function Rl(e){return"string"==typeof e}function Ff(e,n,t,i){return t?function _5(e,n,t){let i=e;for(;i!==n.parentElement;){if(Math.floor(i.scrollTop)>0&&!t||Math.ceil(i.scrollTop+i.clientHeight)0&&!t||Math.ceil(i.scrollLeft+i.clientWidth)e.clientHeight||!n&&e.scrollWidth>e.clientWidth?e:Ty(e.parentElement,n)}function w5({target:e,currentTarget:n}){return e===n}function wy(e){return function e1(e){return function y5(e){return e.matches("input")}(e)||function b5(e){return e.matches("textarea")}(e)}(e)&&!e.readOnly||e.isContentEditable}function Hf(e){var n;if(null===(n=e.activeElement)||void 0===n||!n.shadowRoot)return e.activeElement;let t=e.activeElement.shadowRoot.activeElement;for(;null!=t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function n1(e){const n=Hf(e);Ar(n)&&n.blur()}function My(e){if(e.hasAttribute("disabled")||"-1"===e.getAttribute("tabIndex"))return!1;if(Ar(e)&&e.isContentEditable||"0"===e.getAttribute("tabIndex"))return!0;switch(e.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return e.hasAttribute("controls");case"INPUT":return"hidden"!==e.getAttribute("type");case"A":case"LINK":return e.hasAttribute("href");default:return!1}}function E5(e){return!e.hasAttribute("disabled")&&("-1"===e.getAttribute("tabIndex")||My(e))}function kc({initial:e,root:n,previous:t=!1,keyboard:i=!0}){if(!n.ownerDocument)return null;const o=i?My:E5,r=n.ownerDocument.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,z$);for(r.currentNode=e;t?r.previousNode():r.nextNode();)if(Ar(r.currentNode)&&(e=r.currentNode),Ar(e)&&o(e))return e;return null}function Fl(e){return!(null==e||!e.ownerDocument)&&Hf(e.ownerDocument)===e}function Bf(e){if(!e.ownerDocument||!e.contains)return!1;const n=Hf(e.ownerDocument);return null!==n&&e.contains(n)}function Me(e,n,t={}){return Bi(e,n,t)}function r1(e=0){return du(Nf(io(e).pipe(xo(!1),Cn(!0))),bi())}let Sy,Oy;function Ay(){return Et(e=>e.preventDefault())}function s1(e){return Et(()=>{e.markForCheck()})}function sa(e){return n=>new Ce(t=>e.runOutsideAngular(()=>n.subscribe(t)))}function kl(e){return du(sa(e),function I5(e){return n=>new Ce(t=>n.subscribe({next:i=>e.run(()=>t.next(i)),error:i=>e.run(()=>t.error(i)),complete:()=>e.run(()=>t.complete())}))}(e))}function P5(e,n){return"string"==typeof e?function N5(e){const n=e.match(/url\(#(\w\w+)/g)||[];return[...new Set(n)].map(t=>t.slice(5))}(e).reduce((i,o)=>i.replace(new RegExp(o,"g"),`${o}_${n||function x5(){return Math.floor(Math.random()*Date.now())}()}`),e):e}function Je(e){return pt((n,t)=>{en(e).subscribe(ze(t,()=>t.complete(),or)),!t.closed&&n.subscribe(t)})}const Iy=new E("[TUI_ANIMATIONS_DURATION]: Duration of all Taiga UI animations in ms",{factory:()=>300}),Uf=new E("[TUI_ANIMATION_OPTIONS]: Options for Taiga UI animations",{factory:()=>({params:{duration:U(Iy)}})}),R5=new E("[TUI_ASSERT_ENABLED]: Flag to enable assertions across Taiga UI",{factory:()=>HM()});new E("[TUI_DATA_LIST_ACCESSOR]: Accessor for options");const k5=new E("[TUI_DATA_LIST_HOST]: DataList controller");function L5(e){return{provide:k5,useExisting:e}}new E("[TUI_DAY_TYPE_HANDLER]: Token for adding data-type attribute to calendar cell",{factory:()=>e=>e.isWeekend?"weekend":"weekday"}),new E("[TUI_DOCUMENT_OR_SHADOW_ROOT]: Document or ShadowRoot");const a1=new E("[TUI_ELEMENT_REF]: ElementRef when you cannot use @Input for single time injection"),V5=new E("[TUI_FIRST_DAY_OF_WEEK]: The first day of the week index",{factory:()=>1}),l1=(new E("[TUI_MONTHS]: Localized months names",{factory:Mt("months")}),new E("[TUI_CLOSE_WORD]: i18n 'close' word",{factory:Mt("close")})),B5=(new E("[TUI_NOTHING_FOUND_MESSAGE]: i18n 'Nothing found' message",{factory:Mt("nothingFoundMessage")}),new E("[TUI_DEFAULT_ERROR_MESSAGE]: i18n of error message",{factory:Mt("defaultErrorMessage")}),new E("[TUI_SPIN_TEXTS]: spin i18n texts",{factory:Mt("spinTexts")}),new E("[TUI_SHORT_WEEK_DAYS]: calendars i18n texts",{factory:Mt("shortWeekDays")})),U5=new E("[TUI_ICONS_PLACE]: Recommended paths to icons from documentation guide",{factory:()=>"assets/taiga-ui/icons"}),j5=new E("[TUI_ICONS]: A key/value dictionary of icon names and src to be defined with TuiSvgService",{factory:()=>({})}),$5=new E("[TUI_ICONS_PATH]: A handler to retrieve USE id for icon by name",{factory:()=>function X$(e){const n="/"===e[e.length-1]?e:`${e}/`;return t=>t.startsWith("tuiIcon")?`${n}${t}.svg#${t}`:(e=>e.includes(".svg#")?e:`#${e}`)(t)}(U(U5))}),z5=new E("[TUI_MEDIA]: Token for media constant",{factory:()=>({mobile:768,desktopSmall:1024,desktopLarge:1280})}),Py=new E("[TUI_IS_MOBILE_RES]: Mobile resolution stream for private providers",{factory:()=>{const e=U(Ft),n=U(z5);return Me(e,"resize").pipe(vo(),Cn(null),W(()=>function o5(e,{mobile:n}){return qO(e)u1});new E("[TUI_NUMBER_FORMAT]: Formatting configuration for displayed numbers",{factory:()=>q$}),new E("[TUI_OPTION_CONTENT]: Content for tuiOption component");const W5=e=>{const n=e.length-1;return[e[n],...e.slice(0,n)]},$f=(new E("[TUI_ORDERED_SHORT_WEEK_DAYS]: Ordered calendars i18n texts",{factory:()=>{const e=U(V5);return U(B5).pipe(W(W5),W(n=>[...n.slice(e),...n.slice(0,e)]))}}),new E("[TUI_SANITIZER]: A custom Sanitizer to sanitize source before inlining")),xy=new E("[TUI_SCROLL_REF]: Scrollable container"),q5=(new E("[TUI_SELECTION_STREAM]: A stream of possible selection changes",{factory:()=>{const e=U(Ye);return Vt(Me(e,"selectionchange"),Me(e,"mouseup"),Me(e,"mousedown").pipe(Nf(Me(e,"mousemove").pipe(Je(Me(e,"mouseup"))))),Me(e,"keydown"),Me(e,"keyup")).pipe(vo())}}),new E("[TUI_SVG_CONTENT_PROCESSOR]: Transform function the contents of the loaded svg file",{factory:()=>P5})),Y5=new E("[TUI_SVG_SRC_PROCESSOR]: Source path processor for svg",{factory:()=>Lt}),K5=new E("[TUI_TEXTFIELD_APPEARANCE]: Appearance for inputs",{factory:()=>"textfield"}),c1=new E("[TUI_TEXTFIELD_HOST]: An interface to communicate with textfield based controls");function d1(e){return{provide:c1,useExisting:e}}const Z5=new E("[TUI_THEME]: Theme name",{factory:()=>"Taiga"}),p1=new E("[TUI_VALUE_ACCESSOR]: Buffer token to pass NG_VALUE_ACCESSOR to a different Injector");function zf(e){return new Ce(n=>{en(e()).subscribe(n)})}function f1(e,n){return n?t=>Pl(n.pipe(Ui(1),ZO()),t.pipe(f1(e))):Zt((t,i)=>e(t,i).pipe(Ui(1),xo(t)))}function Gf(e,n=yy){const t=io(e,n);return f1(()=>t)}const h1={leading:!0,trailing:!1};function Wf(e,n=yy,t=h1){const i=io(e,n);return function Q5(e,n=h1){return pt((t,i)=>{const{leading:o,trailing:r}=n;let s=!1,a=null,l=null,u=!1;const c=()=>{null==l||l.unsubscribe(),l=null,r&&(h(),u&&i.complete())},d=()=>{l=null,u&&i.complete()},p=v=>l=en(e(v)).subscribe(ze(i,c,d)),h=()=>{if(s){s=!1;const v=a;a=null,i.next(v),!u&&p(v)}};t.subscribe(ze(i,v=>{s=!0,a=v,(!l||l.closed)&&(o?h():p(v))},()=>{u=!0,(!(r&&s&&l)||l.closed)&&i.complete()}))})}(()=>i,t)}const Xt=new E("An abstraction over global window object",{factory:()=>{const{defaultView:e}=U(Ye);if(!e)throw new Error("Window is not available");return e}}),X5=new E("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{const{requestAnimationFrame:e,cancelAnimationFrame:n}=U(Xt);return new Ce(i=>{let o=NaN;const r=s=>{i.next(s),o=e(r)};return o=e(r),()=>{n(o)}}).pipe(vo())}}),J5=(new E("An abstraction over window.caches object",{factory:()=>U(Xt).caches}),new E("An abstraction over window.crypto object",{factory:()=>U(Xt).crypto}),new E("An abstraction over window.CSS object",{factory:()=>U(Xt).CSS||{escape:e=>e,supports:()=>!1}}),new E("An abstraction over window.history object",{factory:()=>U(Xt).history})),Lc=(new E("An abstraction over window.localStorage object",{factory:()=>U(Xt).localStorage}),new E("An abstraction over window.location object",{factory:()=>U(Xt).location}),new E("An abstraction over window.navigator object",{factory:()=>U(Xt).navigator})),g1=(new E("An abstraction over window.navigator.mediaDevices object",{factory:()=>U(Lc).mediaDevices}),new E("An abstraction over window.navigator.connection object",{factory:()=>U(Lc).connection||null}),new E("Shared Observable based on `document visibility changed`",{factory:()=>{const e=U(Ye);return Bi(e,"visibilitychange").pipe(Cn(0),W(()=>"hidden"!==e.visibilityState),bi(),xl({refCount:!1,bufferSize:1}))}}),new E("An abstraction over window.performance object",{factory:()=>U(Xt).performance}),new E("An abstraction over window.sessionStorage object",{factory:()=>U(Xt).sessionStorage}),new E("An abstraction over SpeechRecognition class",{factory:()=>{const e=U(Xt);return e.speechRecognition||e.webkitSpeechRecognition||null}}),new E("An abstraction over window.speechSynthesis object",{factory:()=>U(Xt).speechSynthesis}),new E("An abstraction over window.navigator.userAgent object",{factory:()=>U(Lc).userAgent}));let _t=(()=>{class e extends ay{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),ez=(()=>{class e{constructor(t,i){this.resolver=t,this.injector=i,this.map=new Map}addComponent(t){this.map.has(t)||this.map.set(t,this.resolver.resolveComponentFactory(t).create(this.injector))}}return e.\u0275fac=function(t){return new(t||e)(L(Qr),L(Gs))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),qf=(()=>{class e extends Ce{constructor({nativeElement:t},i,o){super(r=>this.focusVisible$.subscribe(r)),this.focusVisible$=function S5(e){const n=Me(e,"blur"),{ownerDocument:t}=e;if(!t)throw new u5;return(!Oy||!Sy)&&(Sy=Me(t,"mouseup",{capture:!0}).pipe(r1(),Cn(!1),xl({bufferSize:1,refCount:!0})),Oy=Me(t,"mousedown",{capture:!0}).pipe(r1(),Cn(!1),xl({bufferSize:1,refCount:!0}))),Vt(Pl(Me(e,"focus").pipe(Ui(1)),n.pipe(At(()=>!Fl(e)),Ui(1),ZO())).pipe(function h5(e){let t,n=1/0;return null!=e&&("object"==typeof e?({count:n=1/0,delay:t}=e):n=e),n<=0?()=>xt:pt((i,o)=>{let s,r=0;const a=()=>{if(null==s||s.unsubscribe(),s=null,null!=t){const u="number"==typeof t?io(t):en(t(r)),c=ze(o,()=>{c.unsubscribe(),l()});u.subscribe(c)}else l()},l=()=>{let u=!1;s=i.subscribe(ze(o,void 0,()=>{++ro||r),At(i=>!i))).pipe(Nf(n.pipe(xo(!1),Ui(1),Cn(!0))),bi())}(t).pipe(s1(i),Je(o))}}return e.\u0275fac=function(t){return new(t||e)(L(fe),L(Zn),L(_t,2))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),Ny=(()=>{class e{generate(){return`tui_${e.autoId++}${Date.now()}`}}return e.autoId=0,e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),m1=(()=>{class e extends Ce{constructor(t,i){super(o=>this.callback$.subscribe(o)),this.callback$=zf(()=>{let{nativeElement:o}=t;const r=[i,o];for(;o.parentElement;)o=o.parentElement,r.push(o);return Vt(...r.map(s=>Me(s,"scroll")))})}}return e.\u0275fac=function(t){return new(t||e)(L(fe),L(Xt))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),_1=(()=>{class e extends Ce{constructor(t,{nativeElement:i},o,r,s,a){super(l=>this.obscured$.subscribe(l)),this.obscured$=Vt(Vt(t,Bi(r,"resize")).pipe(Gf(0)),a.pipe(Wf($O))).pipe(W(()=>function D5(e){const{ownerDocument:n}=e;if(null==n||!n.defaultView||!e.getBoundingClientRect)return null;const{innerWidth:t,innerHeight:i}=n.defaultView,o=Vf(e),r=e.getBoundingClientRect(),s=ls(Math.round(r.left)+2,0,t),a=ls(Math.round(r.top)+2,0,i),l=ls(Math.round(r.right)-2,0,t),u=ls(Math.round(r.bottom)-2,0,i),c=ls(Math.round(r.left+r.width/2),0,t),d=ls(Math.round(r.top+r.height/2),0,i),h=[o.elementFromPoint(c,a),o.elementFromPoint(c,u),o.elementFromPoint(s,d),o.elementFromPoint(l,d)].filter(m5);if(!h.length)return h;const v=h.filter(C=>!e.contains(C));return 4===v.length?v:null}(i)),Cn(null),bi(),kl(o),Je(s))}}return e.\u0275fac=function(t){return new(t||e)(L(m1,2),L(fe),L(ct),L(Xt),L(_t,2),L(X5))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),nz=(()=>{class e{constructor(){this.cache=new Map}request(t){const i=this.cache.get(t);if(i)return i;const r=new Ce(s=>{const a=new XMLHttpRequest;return a.onreadystatechange=()=>{if(4===a.readyState){const l=a.responseType?a.response:a.responseText;200===a.status?(s.next(l),s.complete()):s.error(l)}},a.open("GET",t),a.send(),()=>{a.abort()}}).pipe(xl({bufferSize:1,refCount:!1}));return this.cache.set(t,r),r}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function ee(e,...n){return(t,i)=>{const{name:o}=t.constructor,r=function iz(e,n){return`Default value for ${String(e)} was not provided in ${n}, error in Taiga UI Angular Kit`}(i,o),s=function oz(e,n){return`Undefined was passed as ${String(e)} to ${n}, which is invalid input, using default value:`}(i,o);Object.defineProperty(t,i,{get(){Ke.assert(!1,r)},set(a){const l=void 0!==a,u=function rz(e,n){return`Undefined was passed as default value for ${String(e)} to ${n}, error in Taiga UI Angular Kit`}(i,o);let c=a;Ke.assert(l,u),l&&e&&Ke.assert(e.call(this,a),`${String(i)} in ${o} received:`,a,...n),Object.defineProperty(this,i,{get:()=>c,set(d){const p=void 0!==d,h=a;Ke.assert(p,s,String(h)),p&&e&&Ke.assert(e.call(this,d),`${String(i)} in ${o} received:`,d,...n),c=p?d:h}})}})}}function Ll(e,n,{get:t,enumerable:i,value:o}){if(t)return{enumerable:i,get(){const s=t.call(this);return Object.defineProperty(this,n,{enumerable:i,value:s}),s}};if("function"!=typeof o)throw new c5;const r=o;return{enumerable:i,get(){let l,s=[],a=!1;const u=(...c)=>(a&&s.length===c.length&&c.every((p,h)=>p===s[h])||(s=c,l=r.apply(this,c),a=!0),l);return Object.defineProperty(this,n,{value:u}),u}}}function Yf(e,...n){return(t,i,{configurable:o,enumerable:r,get:s,set:a})=>{const{name:l}=t.constructor;return{configurable:o,enumerable:r,get:s,set(u){void 0!==u&&e&&Ke.assert(e.call(this,u),`${String(i)} in ${l} received:`,u,...n),a&&void 0!==u?a.call(this,u):Ke.assert(void 0!==u,function sz(e,n){return`Undefined was passed as ${String(e)} to ${n}, setter will not be called`}(i,l))}}}}const az=["viewContainer"];let Ry=(()=>{class e{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new dt,this.focusVisibleChange=new dt,this.focusVisible=!1,this.autoIdString=`tui_interactive_${e.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get computedFocused(){var t;return!this.computedDisabled&&(null!==(t=this.pseudoFocus)&&void 0!==t?t:this.focused)}get computedFocusVisible(){var t;return!this.computedDisabled&&(null!==(t=this.pseudoFocus)&&void 0!==t?t:this.focusVisible)}get id(){return this.nativeId?this.nativeId:this.autoIdString}updateFocused(t){this.focusedChange.emit(t)}updateFocusVisible(t){this.focusVisible!==t&&(this.focusVisible=t,this.focusVisibleChange.emit(t))}}return e.autoId=0,e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=V({type:e,hostVars:6,hostBindings:function(t,i){2&t&&ut("_disabled",i.computedDisabled)("_focused",i.computedFocused)("_focus-visible",i.computedFocusVisible)},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}}),G([ee()],e.prototype,"pseudoHover",void 0),G([ee()],e.prototype,"pseudoActive",void 0),G([ee()],e.prototype,"pseudoFocus",void 0),G([ee()],e.prototype,"focusable",void 0),G([ee()],e.prototype,"nativeId",void 0),e})(),Fy=(()=>{class e extends Ry{constructor(t,i,o){super(),this.ngControl=t,this.changeDetectorRef=i,this.valueTransformer=o,this.onTouched=cy,this.onChange=cy,this.fallbackValue=this.getFallbackValue(),this.destroy$=new zt,this.readOnly=!1,this.pseudoInvalid=null,null===this.ngControl?Ke.assert(!1,`NgControl not injected in ${this.constructor.name}!\n`,"Use [(ngModel)] or [formControl] or formControlName for correct work."):this.ngControl.valueAccessor=this}get computedInvalid(){return this.interactive&&(null!==this.pseudoInvalid?this.pseudoInvalid:this.touched&&this.invalid)}get value(){var t;return null!==(t=this.previousInternalValue)&&void 0!==t?t:this.fallbackValue}get safeCurrentValue(){var t;return null!==(t=this.rawValue)&&void 0!==t?t:this.fallbackValue}get invalid(){return this.safeNgControlData(({invalid:t})=>t,!1)}get valid(){return this.safeNgControlData(({valid:t})=>t,!1)}get touched(){return this.safeNgControlData(({touched:t})=>t,!1)}get disabled(){return this.safeNgControlData(({disabled:t})=>t,!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData(({control:t})=>t,null)}get computedName(){var t,i;return null!==(i=null===(t=this.controlName)||void 0===t?void 0:t.toString())&&void 0!==i?i:null}get controlName(){var t,i,o;return null!==(o=null===(i=null===(t=this.ngControl)||void 0===t?void 0:t.name)||void 0===i?void 0:i.toString())&&void 0!==o?o:null}get rawValue(){const{ngControl:t}=this;if(null!==t)return this.fromControlValue(t instanceof Al&&void 0===this.previousInternalValue?t.viewModel:t.value)}ngOnInit(){var t,i;null===(t=this.ngControl)||void 0===t||!t.valueChanges||null===(i=this.ngControl)||void 0===i||!i.statusChanges||Vt(this.ngControl.valueChanges,this.ngControl.statusChanges).pipe(Je(this.destroy$)).subscribe(()=>this.refreshLocalValue(this.safeCurrentValue))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkControlUpdate(){this.changeDetectorRef.markForCheck()}registerOnChange(t){this.onChange=i=>{t(this.toControlValue(i))}}registerOnTouched(t){this.onTouched=t}setDisabledState(){this.checkControlUpdate()}writeValue(t){this.refreshLocalValue(this.fromControlValue(this.ngControl instanceof Al&&void 0===this.previousInternalValue?this.ngControl.model:t))}updateFocused(t){t||this.controlMarkAsTouched(),super.updateFocused(t)}updateValue(t){this.disabled||this.valueIdenticalComparator(this.value,t)||(this.previousInternalValue=t,this.controlSetValue(t))}valueIdenticalComparator(t,i){return t===i}safeNgControlData(t,i){var o;return null!==(o=this.ngControl&&t(this.ngControl))&&void 0!==o?o:i}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(t){this.onChange(t),this.checkControlUpdate()}refreshLocalValue(t){this.previousInternalValue=t,this.checkControlUpdate()}fromControlValue(t){return this.valueTransformer?this.valueTransformer.fromControlValue(t):t}toControlValue(t){return this.valueTransformer?this.valueTransformer.toControlValue(t):t}}return e.\u0275fac=function(t){pp()},e.\u0275dir=V({type:e,hostVars:4,hostBindings:function(t,i){2&t&&ut("_readonly",i.readOnly)("_invalid",i.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[le]}),G([ee()],e.prototype,"readOnly",void 0),G([ee()],e.prototype,"pseudoInvalid",void 0),e})();function uz(e){return{provide:Fy,useExisting:e}}let No=(()=>{class e{constructor(){this.change$=new zt}ngOnChanges(){this.change$.next()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=V({type:e,features:[mn]}),e})(),v1=(()=>{class e extends Ce{constructor(t){super(i=>this.dialogs$.subscribe(i)),this.idService=t,this.dialogs$=new cn([])}open(t,i={}){return new Ce(o=>{const s=Object.assign(Object.assign(Object.assign({},this.defaultOptions),i),{content:t,completeWith:a=>{o.next(a),o.complete()},$implicit:o,component:this.component,createdAt:Date.now(),id:this.idService.generate()});return this.dialogs$.next([...this.dialogs$.value,s]),()=>{this.dialogs$.next(this.dialogs$.value.filter(a=>a!==s))}})}}return e.\u0275fac=function(t){return new(t||e)(L(Ny))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),ky=(()=>{class e{get safeHost(){if(!this.host)throw new l5;return this.host}attach(t){this.host=t}add(t){return this.safeHost.addComponentChild(t)}remove({hostView:t}){t.destroy()}addTemplate(t,i){return this.safeHost.addTemplateChild(t,i)}removeTemplate(t){t.destroy()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),Ly=(()=>{class e{constructor(t,i,o){this.injector=t,this.elementRef=i,o.attach(this)}get clientRect(){return this.elementRef.nativeElement.getBoundingClientRect()}addComponentChild(t){const i=t.createInjector(this.injector),r=i.get(Qr).resolveComponentFactory(t.component),a=xn.create({parent:i,providers:[{provide:e,useValue:this}]}),l=this.viewContainerRef.createComponent(r,void 0,a);return l.changeDetectorRef.detectChanges(),l}addTemplateChild(t,i){return this.viewContainerRef.createEmbeddedView(t,i)}}return e.\u0275fac=function(t){return new(t||e)(_(Gs),_(fe),_(ky))},e.\u0275dir=V({type:e,viewQuery:function(t,i){if(1&t&&Kn(az,5,di),2&t){let o;qt(o=Yt())&&(i.viewContainerRef=o.first)}}}),e})(),cz=(()=>{class e{constructor(t){if(this.documentRef=t,null!==this.style)return void this.addTheme();const i=this.documentRef.head.querySelectorAll("style");this.constructor.style=i[i.length-1]}get style(){return this.constructor.style}ngOnDestroy(){this.removeTheme()}addTheme(){this.style&&this.documentRef.head.appendChild(this.style)}removeTheme(){this.style&&this.documentRef.head.contains(this.style)&&this.documentRef.head.removeChild(this.style)}}return e.style=null,e.\u0275fac=function(t){return new(t||e)(_(Ye))},e.\u0275dir=V({type:e}),e})();const pz=/ipad|iphone|ipod/;function y1(e){return pz.test(e.userAgent.toLowerCase())||function dz(e){return 0===e.platform.indexOf("Mac")||"iPhone"===e.platform}(e)&&e.maxTouchPoints>1}const fz=/^((?!chrome|android).)*safari/i;function b1(e){return pt((n,t)=>{let i,r,o=!1,s=!1,a=!1;const l=()=>a&&s&&(t.complete(),!0),c=()=>{a=!1,i=n.subscribe(ze(t,void 0,()=>{a=!0,!l()&&(r||(r=new zt,e(r).subscribe(ze(t,()=>{i?c():o=!0},()=>{s=!0,l()}))),r).next()})),o&&(i.unsubscribe(),i=null,o=!1,c())};c()})}const gz=new E("[TUI_REMOVED_ELEMENT]: Element currently being removed by AnimationEngine",{factory:()=>{const e={onRemovalComplete:()=>{}},n=new cn(null),t=U(Rc,ue.Optional)||e,{onRemovalComplete:i=e.onRemovalComplete}=t;return t.onRemovalComplete=(o,r)=>{n.next(o),i(o,r)},n.pipe(Ot(o=>io(0).pipe(xo(null),Cn(o))),vo())}}),mz=new E("[TUI_ACTIVE_ELEMENT]: Active element on the document for ActiveZone",{factory:()=>{const e=U(gz),n=U(Xt),t=U(Ye),i=Me(n,"focusout"),o=Me(n,"focusin"),r=Me(n,"blur"),s=Me(n,"mousedown"),a=Me(n,"mouseup");return Vt(i.pipe(Je(s),b1(()=>a),QO(e),At(([l,u])=>C1(Lf(l),u)),W(([{relatedTarget:l}])=>l)),r.pipe(W(()=>t.activeElement),At(l=>!(null==l||!l.matches("iframe")))),o.pipe(Ot(l=>{const u=Lf(l),c=Vf(u);return c===t?ne(u):function _z(e){return Vt(Me(e,"focusin").pipe(W(({target:n})=>n)),Me(e,"focusout").pipe(At(({target:n,relatedTarget:t})=>!!t&&C1(n)),W(({relatedTarget:n})=>n)))}(c).pipe(Cn(u))})),s.pipe(Ot(l=>t.activeElement&&t.activeElement!==t.body?i.pipe(Ui(1),xo(Lf(l)),Je(io(0))):ne(Lf(l))))).pipe(bi(),vo())}});function C1(e,n=null){return!(Vf(e).activeElement===e||e.disabled||null!=n&&n.contains(e))}const D1=new E("[TUI_ALERTS]: A stream of alerts",{factory:()=>[]});function vz(e){return{provide:D1,multi:!0,useExisting:e}}new E("[TUI_DEFAULT_RENDERER]: A Renderer2 for global services",{factory:()=>U(qs).createRenderer(null,null)});const Vy=new E("[TUI_DIALOGS]: A stream of dialogs",{factory:()=>[]});function yz(e){return{provide:Vy,multi:!0,useExisting:e}}const T1=new E("[TUI_FOCUSABLE_ITEM_ACCESSOR]: A component that can be focused");function Vc(e){return{provide:T1,useExisting:e}}const Hy=new E("[TUI_IS_IOS]: iOS browser detection",{factory:()=>y1(U(Lc))}),bz=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/,Cz=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/,Kf=new E("[TUI_IS_MOBILE]: Mobile browser detection",{factory:()=>bz.test(U(g1).toLowerCase())||Cz.test(U(g1).slice(0,4).toLowerCase())}),Oe=(new E("[TUI_IS_ANDROID]: Mobile browser that is not iOS (technically includes Windows Phone, Blackberry etc.)",{factory:()=>U(Kf)&&!U(Hy)}),new E("[TUI_IS_APPLE]: Apple(safari/webkit) detection",{factory:()=>function hz(e){return y1(e)||fz.test(e.userAgent.toLowerCase())}(U(Lc))}),new E("[TUI_IS_CHROMIUM]: Chromium browser engine detection",{factory:()=>!!U(Xt).chrome}),new E("[TUI_IS_CYPRESS]: Detect if app is running under Cypress",{factory:()=>!!U(Xt).Cypress}),new E("[TUI_IS_FIREFOX]: Firefox browser engine detection",{factory:()=>{var e;return void 0!==(null===(e=U(Xt))||void 0===e?void 0:e.mozCancelFullScreen)}}),new E("[TUI_IS_WEBKIT]: Webkit browser engine detection",{factory:()=>{var e;return!(null===(e=U(Xt))||void 0===e||!e.webkitConvertPointFromNodeToPage)}}),new E("[TUI_RANGE] SSR safe default empty Range",{factory:()=>bE(U(es))?new Range:{}}),new E("[TUI_SWIPE_OPTIONS]: Swipe options",{factory:()=>({timeout:500,threshold:30})}),new E("[TUI_TAKE_ONLY_TRUSTED_EVENTS]: This token need for override behavior the `pressedObservable` function",{factory:()=>!0}),new E("[TUI_TOUCH_SUPPORTED]: Touch support detection",{factory:()=>U(Xt).matchMedia("(any-pointer: coarse)").matches}),new E("[TUI_WINDOW_HEIGHT]: Window height accounting for disappearing address bar",{factory:()=>{const e=U(Xt);return Me(e,"resize").pipe(Cn(null),W(()=>e.innerHeight),xl({bufferSize:1,refCount:!0}))}}),new E("[TUI_ZOOM_OPTIONS]: Zoom options",{factory:()=>({wheelSensitivity:.01})}),"{{duration}}ms ease-in-out"),et={params:{duration:300}},ti=300,Dz=Kt("tuiHeightCollapse",[Ve(":enter",[B({height:0}),we(Oe,B({height:"*"}))],et),Ve(":leave",[B({height:"*"}),we(Oe,B({height:0}))],et)]),Zf=(Kt("tuiHeightCollapseList",[Ve("* => *",[kn(":enter",[B({height:0}),ei(ti,[we(Oe,B({height:"*"}))])],{optional:!0}),kn(":leave",[B({height:"*"}),ei(ti,[we(Oe,B({height:0}))])],{optional:!0})],et)]),Kt("tuiWidthCollapse",[Ve(":enter",[B({width:0}),we(Oe,B({width:"*"}))],et),Ve(":leave",[B({width:"*"}),we(Oe,B({width:0}))],et)]),Kt("tuiWidthCollapseList",[Ve("* => *",[kn(":enter",[B({width:0}),ei(ti,[we(Oe,B({width:"*"}))])],{optional:!0}),kn(":leave",[B({width:"*"}),ei(ti,[we(Oe,B({width:0}))])],{optional:!0})],et)]),Kt("tuiFadeIn",[Ve(":enter",[B({opacity:0}),we(Oe,B({opacity:1}))],et),Ve(":leave",[B({opacity:1}),we(Oe,B({opacity:0}))],et)])),Tz=(Kt("tuiFadeInList",[Ve("* => *",[kn(":enter",[B({opacity:0}),ei(ti,[we(Oe,B({opacity:1}))])],{optional:!0}),kn(":leave",[B({opacity:1}),ei(ti,[we(Oe,B({opacity:0}))])],{optional:!0})],et)]),Kt("tuiFadeInTop",[Ve(":enter",[B({transform:"translateY(-10px)",opacity:0}),we(Oe,B({transform:"translateY(0)",opacity:1}))],et),Ve(":leave",[B({transform:"translateY(0)",opacity:1}),we(Oe,B({transform:"translateY(-10px)",opacity:0}))],et)]),Kt("tuiFadeInBottom",[Ve(":enter",[B({transform:"translateY(10px)",opacity:0}),we(Oe,B({transform:"translateY(0)",opacity:1}))],et),Ve(":leave",[B({transform:"translateY(0)",opacity:1}),we(Oe,B({transform:"translateY(10px)",opacity:0}))],et)]),Kt("tuiDropdownAnimation",[Ve("* => fadeInTop",[B({transform:"translateY(-10px)",opacity:0}),we(Oe,B({transform:"translateY(0)",opacity:1}))],et),Ve("* => fadeInBottom",[B({transform:"translateY(10px)",opacity:0}),we(Oe,B({transform:"translateY(0)",opacity:1}))],et),Ve("fadeInBottom => *",[B({transform:"translateY(0)",opacity:1}),we(Oe,B({transform:"translateY(10px)",opacity:0}))],et),Ve("fadeInTop => *",[B({transform:"translateY(0)",opacity:1}),we(Oe,B({transform:"translateY(-10px)",opacity:0}))],et)])),wz=(Kt("tuiScaleIn",[Ve(":enter",[B({transform:"scale(0)"}),we(Oe,B({transform:"scale(1)"}))],et),Ve(":leave",[B({transform:"scale(1)"}),we(Oe,B({transform:"scale(0)"}))],et)]),Kt("tuiScaleInList",[Ve("* => *",[kn(":enter",[B({transform:"scale(0)"}),ei(ti,[we(Oe,B({transform:"scale(1)"}))])],{optional:!0}),kn(":leave",[B({transform:"scale(1)"}),ei(ti,[we(Oe,B({transform:"scale(0)"}))])],{optional:!0})],et)]),Kt("tuiSlideIn",[Ve("* => left",[B({transform:"translateX(-100%)"}),we(Oe,B({transform:"translateX(0)"}))],et),Ve("left => *",[B({transform:"translateX(0)"}),we(Oe,B({transform:"translateX(-100%)"}))],et),Ve("* => right",[B({transform:"translateX(100%)"}),we(Oe,B({transform:"translateX(0)"}))],et),Ve("right => *",[B({transform:"translateX(0)"}),we(Oe,B({transform:"translateX(100%)"}))],et)]),Kt("tuiSlideInLeft",[Ve(":enter",[B({transform:"translateX(-100%)"}),we(Oe,B({transform:"translateX(0)"}))],et),Ve(":leave",[B({transform:"translateX(0)"}),we(Oe,B({transform:"translateX(-100%)"}))],et)]),Kt("tuiSlideInLeftList",[Ve("* => *",[kn(":enter",[B({transform:"translateX(-100%)"}),ei(ti,[we(Oe,B({transform:"translateX(0)"}))])],{optional:!0}),kn(":leave",[B({transform:"translateX(0)"}),ei(ti,[we(Oe,B({transform:"translateX(-100%)"}))])],{optional:!0})],et)]),Kt("tuiSlideInRight",[Ve(":enter",[B({transform:"translateX(100%)"}),we(Oe,B({transform:"translateX(0)"}))],et),Ve(":leave",[B({transform:"translateX(0)"}),we(Oe,B({transform:"translateX(100%)"}))],et)])),Mz=(Kt("tuiSlideInRightList",[Ve("* => *",[kn(":enter",[B({transform:"translateX(100%)"}),ei(ti,[we(Oe,B({transform:"translateX(0)"}))])],{optional:!0}),kn(":leave",[B({transform:"translateX(0)"}),ei(ti,[we(Oe,B({transform:"translateX(100%)"}))])],{optional:!0})],et)]),Kt("tuiSlideInTop",[Ve(":enter",[B({transform:"translate3d(0,{{start}},0)"}),we(Oe,B({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),Ve(":leave",[B({transform:"translate3d(0,{{end}},0)"}),we(Oe,B({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})])),Vl=(Kt("tuiSlideInTopList",[Ve("* => *",[kn(":enter",[B({transform:"translateY(100%)"}),ei(ti,[we(Oe,B({transform:"translateY(0)"}))])],{optional:!0}),kn(":leave",[B({transform:"translateY(0)"}),ei(ti,[we(Oe,B({transform:"translateY(100%)"}))])],{optional:!0})],et)]),Kt("tuiSlideInBottom",[Ve(":enter",[B({transform:"translateY(-100%)"}),we(Oe,B({transform:"translateY(0)"}))],et),Ve(":leave",[B({transform:"translateY(0)"}),we(Oe,B({transform:"translateY(-100%)"}))],et)]),Kt("tuiSlideInBottomList",[Ve("* => *",[kn(":enter",[B({transform:"translateY(-100%)"}),ei(ti,[we(Oe,B({transform:"translateY(0)"}))])],{optional:!0}),kn(":leave",[B({transform:"translateY(0)"}),ei(ti,[we(Oe,B({transform:"translateY(-100%)"}))])],{optional:!0})],et)]),new E("Context from *polymorpheusOutlet"));class Ir{constructor(n,t=null){this.component=n,this.injector=t}createInjector(n,t){return xn.create({parent:this.injector||n,providers:[{provide:Vl,useValue:t}]})}}let w1=(()=>{class e{constructor(t,i){this.template=t,this.changeDetectorRef=i,this.polymorpheus=""}check(){this.changeDetectorRef.markForCheck()}static ngTemplateContextGuard(t,i){return!0}}return e.\u0275fac=function(t){return new(t||e)(_(Fn,2),_(Zn))},e.\u0275dir=V({type:e,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"]}),e})();class M1{constructor(n){this.$implicit=n}get polymorpheusOutlet(){return this.$implicit}}let oo=(()=>{class e{constructor(t,i,o){this.viewContainerRef=t,this.injector=i,this.templateRef=o,this.content=""}get template(){return By(this.content)?this.content.template:this.content instanceof Fn?this.content:this.templateRef}ngOnChanges({content:t}){const i=this.getContext();if(this.viewRef&&(this.viewRef.context=i),this.componentRef&&this.componentRef.injector.get(Zn).markForCheck(),t)if(this.viewContainerRef.clear(),E1(this.content)){const r=this.context&&new Proxy(this.context,{get:(l,u)=>{var c;return null===(c=this.context)||void 0===c?void 0:c[u]}}),s=this.content.createInjector(this.injector,r),a=s.get(Qr).resolveComponentFactory(this.content.component);this.componentRef=this.viewContainerRef.createComponent(a,0,s)}else null!=(i instanceof M1&&i.$implicit)&&(this.viewRef=this.viewContainerRef.createEmbeddedView(this.template,i))}ngDoCheck(){By(this.content)&&this.content.check()}static ngTemplateContextGuard(t,i){return!0}getContext(){return function Ez(e){return By(e)||e instanceof Fn}(this.content)||E1(this.content)?this.context:new M1("function"==typeof this.content?this.content(this.context):this.content)}}return e.\u0275fac=function(t){return new(t||e)(_(di),_(xn),_(Fn))},e.\u0275dir=V({type:e,selectors:[["","polymorpheusOutlet",""]],inputs:{content:["polymorpheusOutlet","content"],context:["polymorpheusOutletContext","context"]},features:[mn]}),e})();function By(e){return e instanceof w1}function E1(e){return e instanceof Ir}let ro=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();class la extends Ce{}function Hc(e){return{provide:la,useExisting:e}}class S1{}function O1(e){return{provide:S1,useExisting:e}}let A1=(()=>{class e{constructor(t,i,o){i.pipe(bi(),Je(t)).subscribe(r=>{o.toggle(r)})}}return e.\u0275fac=function(t){return new(t||e)(_(_t,2),_(la),_(S1))},e.\u0275dir=V({type:e}),e})(),I1=(()=>{class e{constructor(t){this.host=t}get readOnly(){return this.host.readOnly}get disabled(){return this.host.computedDisabled}get invalid(){return this.host.computedInvalid}get focusable(){return this.host.computedFocusable}get value(){var t;return(null===(t=this.host.value)||void 0===t?void 0:t.toString())||""}process(t){}}return e.\u0275fac=function(t){return new(t||e)(_(Fy))},e.\u0275dir=V({type:e}),e})();class P1{}function Uy(e){return{provide:P1,useExisting:e}}class ua{}function Qf(e){return{provide:ua,useExisting:e}}let x1=(()=>{class e extends cn{constructor(){super([])}add(t){this.next(this.value.concat(t))}remove(t){this.value.includes(t)&&this.next(this.value.filter(i=>i!==t))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Xf=(()=>{class e extends Ce{constructor({nativeElement:t},i,o,r){super(s=>i.pipe(W(()=>t.getBoundingClientRect()),W(a=>r.getPosition(a)),sa(o)).subscribe(s))}}return e.\u0275fac=function(t){return new(t||e)(L(fe),L(ly),L(ct),L(P1))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),N1=(()=>{class e{constructor(t,i,o){this.tuiSanitizer=t,this.sanitizer=i,this.originals={},this.items$=new cn(new Map),this.define(o)}define(t){const{value:i}=this.items$;Object.keys(t).forEach(o=>{this.defineIcon(o,t[o],i)}),this.items$.next(i)}getOriginal(t){return this.originals[t]||null}defineIcon(t,i,o){if(o.has(t))return;const r=this.parseSrc(t,i);r?(o.set(t,r),this.originals=Object.assign(Object.assign({},this.originals),{[t]:i})):Ke.assert(!1,"Unable to parse given SVG src")}parseSrc(t,i){return this.sanitize(function i5(e,n){if(e.includes(`id="${n}"`))return e;const t=e.slice(Math.max(0,e.indexOf(vy))),i=t.slice(0,Math.max(0,t.indexOf(">")));if(null==i||!i.includes(my)||!i.includes(_y))return`${t.replace(vy,``;const o=i.indexOf(my),r=i.indexOf(_y),s=o+my.length,a=r+_y.length,l=i.slice(s,i.indexOf('"',s)),u=i.slice(a,i.indexOf('"',a));if(!u||!l||l.includes("%")||u.includes("%")||l.includes("em")||u.includes("em"))return t.replace(vy,`${t}`}(i,t))}sanitize(t){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(st.HTML,t):this.sanitizer.sanitize(st.HTML,t))||"")}}return e.\u0275fac=function(t){return new(t||e)(L($f,8),L(sf),L(j5))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ro(e){return pt((n,t)=>{let r,i=null,o=!1;i=n.subscribe(ze(t,void 0,void 0,s=>{r=en(e(s,Ro(e)(n))),i?(i.unsubscribe(),i=null,r.subscribe(t)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(t))})}function Sz(e,n){1&e&&F(0,"div",3),2&e&&y("innerHTML",q().tuiLet,ap)}function Oz(e,n){if(1&e){const t=Li();fr(),g(0,"svg",4),ce("error",function(){return zn(t),Gn(q(2).onError())}),F(1,"use"),f()}if(2&e){const t=q(2);D(1),vt("href",t.use,null,"xlink")}}function Az(e,n){if(1&e&&(rn(0),I(1,Sz,1,1,"div",1),I(2,Oz,2,1,"ng-template",null,2,Zi),sn()),2&e){const t=Nn(3),i=q();D(1),y("ngIf",i.isInnerHTML)("ngIfElse",t)}}let cs=(()=>{class e{constructor(t,i,o,r,s,a,l,u,c,d){this.documentRef=t,this.windowRef=i,this.iconsPath=o,this.tuiSanitizer=r,this.svgService=s,this.staticRequestService=a,this.sanitizer=l,this.elementRef=u,this.srcProcessor=c,this.contentProcessor=d,this.src$=new ay(1),this.icon="",this.innerHTML$=this.src$.pipe(Ot(()=>Rl(this.icon)?this.isExternal?this.getExternalIcon(this.icon):ne(this.getSafeHtml(this.icon)):ne(this.icon)),Cn(""))}set src(t){this.icon=this.srcProcessor(t),this.src$.next()}get src(){return this.icon}get use(){return Rl(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.iconsPath):""}get isInnerHTML(){return!Rl(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return Vf(this.elementRef.nativeElement)!==this.documentRef}get isUse(){return this.use.includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return Rl(this.icon)&&this.icon.endsWith(".svg")}get isSrc(){return Rl(this.icon)&&function e5(e){const n=e.trim();return n.startsWith("<")&&n.endsWith(">")}(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){const{use:t,isUse:i,windowRef:o}=this;return i&&t.startsWith("http")&&!!o.origin&&!t.startsWith(o.origin)}onError(t="External icon is missing on the given URL"){const{icon:i}=this,o=new CustomEvent("tui-icon-error",{bubbles:!0,detail:{message:t,icon:i}});Ke.assert(!1,t,i),this.elementRef.nativeElement.dispatchEvent(o)}resolveName(t,i){return i(t)}getSafeHtml(t){return this.isSrc?this.sanitize(t):this.process(t)}process(t){const i=this.svgService.getOriginal(t);return this.isName&&!i&&!!t&&this.onError("Attempted to use undefined named icon"),this.isShadowDOM&&this.isName?this.sanitize(i||""):""}sanitize(t){return t=this.contentProcessor(t),this.tuiSanitizer&&Rl(t)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(st.HTML,t)||""):t}getExternalIcon(t){const i=t.includes(".svg")?t:this.use;return this.staticRequestService.request(i).pipe(Ro(()=>(this.onError("Failed to load external SVG"),ne(""))),W(o=>this.sanitize(o.replace("{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,Nl]]}),e})(),Bc=(()=>{class e extends No{constructor(){super(...arguments),this.mode=null}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiMode",""]],inputs:{mode:["tuiMode","mode"]},features:[le]}),e})(),R1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function Fz(e,n){if(1&e&&(rn(0),m(1),sn()),2&e){const t=n.polymorpheusOutlet;D(1),gt(" ",t," ")}}function kz(e,n){if(1&e&&(fr(),function VC(){!function bx(){Te.lFrame.currentNamespace=null}()}(),g(0,"div",6),I(1,Fz,2,1,"ng-container",7),f()),2&e){const t=q(2);ut("t-text_horizontal",t.isHorizontal),D(1),y("polymorpheusOutlet",t.textContent)}}function Lz(e,n){if(1&e&&(g(0,"div",2),fr(),g(1,"svg",3),F(2,"circle",4),f(),I(3,kz,2,3,"div",5),f()),2&e){const t=q();ut("t-loader_horizontal",t.isHorizontal)("t-loader_inherit-color",t.inheritColor),vt("data-tui-element-size",t.size),D(3),y("ngIf",t.hasText)}}const Vz=["*"],k1={size:"m",inheritColor:!1,overlay:!1},L1=new E("[TUI_LOADER_OPTIONS]: Default parameters for loader component",{factory:()=>k1});let V1=(()=>{class e{constructor(t,i,o,r){this.documentRef=t,this.elementRef=i,this.isIos=o,this.options=r,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay,this.textContent="",this.loading=!0,this.isApple=function Rz(e){const n=e.ownerDocument,t=null==n?void 0:n.defaultView;return!!t&&"safari"in t}(this.elementRef.nativeElement)||this.isIos}set showLoader(t){t&&this.focused&&n1(this.documentRef),this.loading=t}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!function n5(e,n="s"){return GO[e]>GO[n]}(this.size)}get focused(){return Bf(this.elementRef.nativeElement)}}return e.\u0275fac=function(t){return new(t||e)(_(Ye),_(fe),_(Hy),_(L1))},e.\u0275cmp=de({type:e,selectors:[["tui-loader"]],hostVars:2,hostBindings:function(t,i){2&t&&ut("_loading",i.loading)},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},ngContentSelectors:Vz,decls:3,vars:6,consts:[[1,"t-content",3,"disabled"],["class","t-loader",3,"t-loader_horizontal","t-loader_inherit-color",4,"ngIf"],[1,"t-loader"],["automation-id","tui-loader__loader","focusable","false","viewBox","0 0 100 100","xmlns","http://www.w3.org/2000/svg",1,"t-icon"],["cx","50","cy","50","r","50","stroke-dasharray","314",1,"t-circle"],["automation-id","tui-loader__text","class","t-text",3,"t-text_horizontal",4,"ngIf"],["automation-id","tui-loader__text",1,"t-text"],[4,"polymorpheusOutlet"]],template:function(t,i){1&t&&(Rn(),g(0,"fieldset",0),Tt(1),f(),I(2,Lz,4,6,"div",1)),2&t&&(ut("t-content_has-overlay",i.hasOverlay)("t-content_loading",i.loading),y("disabled",i.loading&&!i.isApple),D(2),y("ngIf",i.loading))},dependencies:[un,oo],styles:["@keyframes tuiLoaderDashOffset{0%{stroke-dashoffset:-66}50%{stroke-dashoffset:-314}to{stroke-dashoffset:-66}}@keyframes tuiLoaderRotate{0%{transform:rotate(0)}50%{transform:rotate(1turn)}to{transform:rotate(3turn)}}[_nghost-%COMP%]{position:relative;display:flex}._loading[_nghost-%COMP%]{overflow:hidden}.t-content[_ngcontent-%COMP%]{z-index:0;min-width:100%;height:100%;padding:0;margin:0;border:none}.t-content_has-overlay[_ngcontent-%COMP%]{opacity:.3}.t-content_loading[_ngcontent-%COMP%]{pointer-events:none}.t-loader[_ngcontent-%COMP%]{position:relative;left:-100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;flex-shrink:0;align-self:center;color:var(--tui-text-01);stroke:var(--tui-primary);animation:tuiFadeIn var(--tui-duration)}.t-loader.t-loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.t-loader.t-loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.t-loader[data-tui-element-size=xs][_ngcontent-%COMP%]{font-size:.75rem;stroke-width:38}.t-loader[data-tui-element-size=s][_ngcontent-%COMP%]{font-size:1rem;stroke-width:25}.t-loader[data-tui-element-size=m][_ngcontent-%COMP%]{font-size:1.5rem;stroke-width:17}.t-loader[data-tui-element-size=l][_ngcontent-%COMP%]{font-size:2.5rem;stroke-width:15}.t-loader[data-tui-element-size=xl][_ngcontent-%COMP%]{font-size:3.5rem;stroke-width:14}.t-loader[data-tui-element-size=xxl][_ngcontent-%COMP%]{font-size:5rem;stroke-width:10}.t-text[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.t-text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}.t-icon[_ngcontent-%COMP%]{display:block;min-width:1em;max-width:1em;min-height:1em;max-height:1em;margin:.25rem -.5em;border-radius:100%;overflow:hidden;transform:scaleY(-1);animation:tuiLoaderRotate 3s linear infinite}.t-circle[_ngcontent-%COMP%]{fill:none;stroke:inherit;stroke-width:inherit;animation:tuiLoaderDashOffset 3s linear infinite}"],changeDetection:0}),G([ee()],e.prototype,"size",void 0),G([ee()],e.prototype,"inheritColor",void 0),G([ee()],e.prototype,"overlay",void 0),G([ee()],e.prototype,"textContent",void 0),G([Yf()],e.prototype,"showLoader",null),e})(),H1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,ro]]}),e})();const Hz={provide:Py,deps:[[new Us,Py],fe],useFactory:(e,{nativeElement:n})=>(n["$.class._mobile"]=e,e)},Hl={provide:aa,deps:[[new gr,Bc],fe],useFactory:(e,{nativeElement:n})=>{const t=e?e.change$.pipe(Cn(null),W(()=>e.mode)):ne(null);return n["$.data-mode.attr"]=t,t}};let B1=(()=>{class e{constructor(t){this.mode$=t,this.disabled=!1,this.readOnly=!1,this.hover=null,this.active=null,this.focus=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focus&&!this.disabled}get interactiveState(){return this.disabled?"disabled":this.readOnly?"readonly":this.active?"active":this.hover?"hover":null}get noHover(){return this.readOnly||!1===this.hover}get noActive(){return this.readOnly||!1===this.active}}return e.\u0275fac=function(t){return new(t||e)(_(aa))},e.\u0275dir=V({type:e,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(t,i){1&t&&ce("$.data-mode.attr",function(){return i.mode$}),2&t&&(vt("data-appearance",i.appearance)("data-state",i.interactiveState),ut("_invalid",i.computedInvalid)("_focused",i.computedFocused)("_no-hover",i.noHover)("_no-active",i.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"},features:[j([Hl])]}),e})(),jy=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();const Bz=["tuiButton",""];function Uz(e,n){1&e&&zo(0)}function jz(e,n){1&e&&F(0,"tui-svg",8),2&e&&y("src",n.polymorpheusOutlet)}function $z(e,n){if(1&e&&(g(0,"span",6),I(1,jz,1,1,"tui-svg",7),f()),2&e){const t=q();D(1),y("polymorpheusOutlet",t.icon)}}function zz(e,n){1&e&&F(0,"tui-svg",8),2&e&&y("src",n.polymorpheusOutlet)}function Gz(e,n){if(1&e&&(g(0,"span",9),I(1,zz,1,1,"tui-svg",7),f()),2&e){const t=q();D(1),y("polymorpheusOutlet",t.iconRight)}}function Wz(e,n){1&e&&F(0,"tui-loader",10),2&e&&y("size",q().loaderSize)("inheritColor",!0)}const qz=["*"],U1={size:"l",shape:null,appearance:"primary"},j1=new E("[TUI_BUTTON_OPTIONS]: Default parameters for button component",{factory:()=>U1});let Zo=(()=>{class e extends Ry{constructor(t,i,o,r){var s;super(),this.mode=t,this.elementRef=i,this.options=r,this.mode$=(null===(s=this.mode)||void 0===s?void 0:s.change$)||xt,this.appearance=null,this.disabled=!1,this.icon="",this.iconRight="",this.shape=this.options.shape,this.showLoader=!1,this.size=this.options.size,this.appearance$=this.mode$.pipe(Cn(null),W(()=>this.computedAppearance),bi()),o.subscribe(a=>{this.updateFocusVisible(a)})}get nativeFocusableElement(){return this.nativeDisabled?null:this.elementRef.nativeElement}get focused(){return!this.showLoader&&Fl(this.elementRef.nativeElement)}get loaderSize(){return"l"===this.size||"xl"===this.size?"m":"s"}get computedAppearance(){var t;return null!==(t=this.appearance)&&void 0!==t?t:this.options.appearance||""}get nativeDisabled(){return this.computedDisabled||this.showLoader?"":null}get tabIndex(){return this.focusable?0:-1}onFocused(t){this.updateFocused(t)}}return e.\u0275fac=function(t){return new(t||e)(_(Bc,8),_(fe),_(qf),_(j1))},e.\u0275cmp=de({type:e,selectors:[["button","tuiButton",""],["button","tuiIconButton",""],["a","tuiButton",""],["a","tuiIconButton",""]],hostVars:7,hostBindings:function(t,i){1&t&&ce("focusin",function(){return i.onFocused(!0)})("focusout",function(){return i.onFocused(!1)}),2&t&&(sc("tabIndex",i.tabIndex),vt("data-shape",i.shape)("data-size",i.size)("data-appearance",i.computedAppearance)("disabled",i.nativeDisabled),ut("_loading",i.showLoader))},inputs:{appearance:"appearance",disabled:"disabled",icon:"icon",iconRight:"iconRight",shape:"shape",showLoader:"showLoader",size:"size"},features:[j([Vc(e),_t,qf]),le],attrs:Bz,ngContentSelectors:qz,decls:8,vars:11,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"appearance","hover","active","disabled","focus"],[1,"t-content"],["class","t-left",4,"ngIf"],["class","t-right",4,"ngIf"],["class","t-loader",3,"size","inheritColor",4,"ngIf"],[1,"t-left"],["class","t-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-icon",3,"src"],[1,"t-right"],[1,"t-loader",3,"size","inheritColor"]],template:function(t,i){1&t&&(Rn(),I(0,Uz,1,0,"ng-container",0),Rt(1,"async"),g(2,"div",1)(3,"span",2),I(4,$z,2,1,"span",3),Tt(5),I(6,Gz,2,1,"span",4),f(),I(7,Wz,1,2,"tui-loader",5),f()),2&t&&(y("ngIf",Bt(1,9,i.appearance$)),D(2),y("appearance",i.computedAppearance)("hover",i.pseudoHover)("active",i.pseudoActive)("disabled",i.computedDisabled)("focus",i.computedFocusVisible),D(2),y("ngIf",i.icon),D(2),y("ngIf",i.iconRight),D(1),y("ngIf",i.showLoader))},dependencies:[cs,V1,un,B1,oo,Qn],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:inline-block;flex-shrink:0;vertical-align:top;border-radius:var(--tui-radius-m);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-decoration:none;outline:none}[disabled][_nghost-%COMP%]{pointer-events:none}[tuiIconButton][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0}[data-shape=rounded][_nghost-%COMP%]{border-radius:6.25rem}[data-size=xs][_nghost-%COMP%]{height:var(--tui-height-xs);font-weight:normal}[data-size=xs][data-shape=square][_nghost-%COMP%], [data-size=xs][tuiIconButton][_nghost-%COMP%]{height:var(--tui-height-xs);width:var(--tui-height-xs)}[data-size=s][_nghost-%COMP%]{height:var(--tui-height-s);font-weight:normal}[data-size=s][data-shape=square][_nghost-%COMP%], [data-size=s][tuiIconButton][_nghost-%COMP%]{height:var(--tui-height-s);width:var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{height:var(--tui-height-m);font:var(--tui-font-text-m);font-weight:bold}[data-size=m][data-shape=square][_nghost-%COMP%], [data-size=m][tuiIconButton][_nghost-%COMP%]{height:var(--tui-height-m);width:var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:bold}[data-size=l][data-shape=square][_nghost-%COMP%], [data-size=l][tuiIconButton][_nghost-%COMP%]{height:var(--tui-height-l);width:var(--tui-height-l)}[data-size=xl][_nghost-%COMP%]{height:3.75rem;font:var(--tui-font-text-m);font-weight:bold}[data-size=xl][data-shape=square][_nghost-%COMP%], [data-size=xl][tuiIconButton][_nghost-%COMP%]{height:3.75rem;width:3.75rem}.t-loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:default}.t-left[_ngcontent-%COMP%]{margin:0 .5rem 0 -.25rem}.t-right[_ngcontent-%COMP%]{margin:0 -.5rem 0 .25rem}.t-icon[_ngcontent-%COMP%]{display:block}[data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1rem;height:1rem}[tuiIconButton][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-right[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;align-items:center;justify-content:center}.t-wrapper[_ngcontent-%COMP%]{position:relative;z-index:0;box-sizing:border-box;cursor:pointer}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .5rem)}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-width:1px}[data-size=s][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .75rem)}[data-size=m][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 1.5rem)}[data-size=l][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.25rem)}[data-size=xl][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.5rem)}[data-shape=square][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center;text-align:center}._loading[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{opacity:0}"],changeDetection:0}),G([ee()],e.prototype,"appearance",void 0),G([ee()],e.prototype,"disabled",void 0),G([ee()],e.prototype,"icon",void 0),G([ee()],e.prototype,"iconRight",void 0),G([ee()],e.prototype,"shape",void 0),G([ee()],e.prototype,"showLoader",void 0),G([ee()],e.prototype,"size",void 0),e})(),$y=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,ro,jy,ca,H1]]}),e})();function Yz(e,n){1&e&&F(0,"tui-svg",3),2&e&&y("src",q().icon)}function Kz(e,n){if(1&e){const t=Li();g(0,"button",4),ce("click",function(){return zn(t),Gn(q().close.emit())}),Rt(1,"async"),f()}2&e&&y("title",Bt(1,1,q().closeWord$))}const Zz=["*"],Qz={info:"tuiIconInfo",success:"tuiIconCheckCircle",error:"tuiIconCancel",warning:"tuiIconAttention"};let ds=(()=>{class e{constructor(t,i){this.closeWord$=t,this.options=i,this.hasIcon=this.options.hasIcon,this.status=this.options.status,this.close=new dt}get icon(){return Qz[this.status]}get hasClose(){return function O5(e){return e.observed||!!e.observers.length}(this.close)}}return e.\u0275fac=function(t){return new(t||e)(_(l1),_(jf))},e.\u0275cmp=de({type:e,selectors:[["tui-notification"]],hostVars:5,hostBindings:function(t,i){2&t&&(vt("data-tui-host-status",i.status),ut("_has-icon",i.hasIcon)("_has-close-button",i.hasClose))},inputs:{hasIcon:"hasIcon",status:"status"},outputs:{close:"close"},ngContentSelectors:Zz,decls:4,vars:2,consts:[["automation-id","tui-notification__icon","class","t-icon",3,"src",4,"ngIf"],[1,"t-content"],["tuiIconButton","","type","button","automation-id","tui-notification__close","size","xs","icon","tuiIconCloseLarge","appearance","icon","class","t-close",3,"title","click",4,"ngIf"],["automation-id","tui-notification__icon",1,"t-icon",3,"src"],["tuiIconButton","","type","button","automation-id","tui-notification__close","size","xs","icon","tuiIconCloseLarge","appearance","icon",1,"t-close",3,"title","click"]],template:function(t,i){1&t&&(Rn(),I(0,Yz,1,1,"tui-svg",0),g(1,"div",1),Tt(2),f(),I(3,Kz,2,3,"button",2)),2&t&&(y("ngIf",i.hasIcon),D(3),y("ngIf",i.hasClose))},dependencies:[cs,Zo,un,Qn],styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;padding:.75rem 1rem;border-radius:var(--tui-radius-m);background:#fff;background:var(--tui-base-01);box-sizing:border-box;overflow:hidden}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";pointer-events:none}._has-close-button[_nghost-%COMP%]{padding-right:2rem}._has-icon[_nghost-%COMP%]{padding-left:2.75rem}[data-tui-host-status=info][_nghost-%COMP%]{color:var(--tui-info-fill);background:linear-gradient(var(--tui-info-bg),var(--tui-info-bg)),var(--tui-base-01)}[data-tui-host-status=success][_nghost-%COMP%]{color:var(--tui-success-fill);background:linear-gradient(var(--tui-success-bg),var(--tui-success-bg)),var(--tui-base-01)}[data-tui-host-status=error][_nghost-%COMP%]{color:var(--tui-error-fill);background:linear-gradient(var(--tui-error-bg),var(--tui-error-bg)),var(--tui-base-01)}[data-tui-host-status=warning][_nghost-%COMP%]{color:var(--tui-warning-fill);background:linear-gradient(var(--tui-warning-bg),var(--tui-warning-bg)),var(--tui-base-01)}.t-content[_ngcontent-%COMP%]{word-wrap:break-word;color:var(--tui-text-01)}.t-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:1rem;display:flex;width:1rem;height:100%;max-height:3rem;align-items:center}.t-close[_ngcontent-%COMP%]{position:absolute;top:.625rem;right:.5rem}'],changeDetection:0}),G([ee()],e.prototype,"hasIcon",void 0),G([ee()],e.prototype,"status",void 0),e})(),$1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,ca,$y]]}),e})();function Xz(e,n){if(1&e&&(rn(0),m(1),sn()),2&e){const t=n.polymorpheusOutlet;D(1),gt(" ",t," ")}}function Jz(e,n){if(1&e&&(g(0,"label",6),I(1,Xz,2,1,"ng-container",5),f()),2&e){const t=q(2);D(1),y("polymorpheusOutlet",t.item.label)("polymorpheusOutletContext",t.item)}}function e4(e,n){if(1&e&&(rn(0),m(1),sn()),2&e){const t=n.polymorpheusOutlet;D(1),gt(" ",t," ")}}function t4(e,n){if(1&e){const t=Li();g(0,"tui-notification",2),ce("close",function(){return zn(t),Gn(q().closeNotification())}),I(1,Jz,2,2,"label",3),g(2,"div",4),I(3,e4,2,1,"ng-container",5),f()()}if(2&e){const t=q();y("status",t.item.status)("hasIcon",t.item.hasIcon),D(1),y("ngIf",t.item.label),D(2),y("polymorpheusOutlet",t.item.content)("polymorpheusOutletContext",t.item)}}function n4(e,n){if(1&e&&(rn(0),m(1),sn()),2&e){const t=n.polymorpheusOutlet;D(1),gt(" ",t," ")}}function o4(e,n){if(1&e&&(g(0,"label",6),I(1,n4,2,1,"ng-container",5),f()),2&e){const t=q(2);D(1),y("polymorpheusOutlet",t.item.label)("polymorpheusOutletContext",t.item)}}function r4(e,n){if(1&e&&(rn(0),m(1),sn()),2&e){const t=n.polymorpheusOutlet;D(1),gt(" ",t," ")}}function s4(e,n){if(1&e&&(g(0,"tui-notification",7),I(1,o4,2,2,"label",3),g(2,"div",4),I(3,r4,2,1,"ng-container",5),f()()),2&e){const t=q();y("status",t.item.status)("hasIcon",t.item.hasIcon),D(1),y("ngIf",t.item.label),D(2),y("polymorpheusOutlet",t.item.content)("polymorpheusOutletContext",t.item)}}let a4=(()=>{class e{constructor(t,i,o,r,s){this.elementRef=t,this.destroy$=i,this.options=o,this.animationOptions=r,this.item=s,this.autoClose="function"==typeof this.item.autoClose?this.item.autoClose(this.item.status):this.item.autoClose,this.animation=Object.assign({value:""},this.animationOptions)}ngOnInit(){this.initAutoClose()}closeNotification(){this.item.$implicit.complete()}initAutoClose(){!this.autoClose||io(Dy(this.autoClose)?this.autoClose:this.options.defaultAutoCloseTime).pipe(Je(Bi(this.elementRef.nativeElement,"mouseenter")),b1(()=>Bi(this.elementRef.nativeElement,"mouseleave")),Je(this.destroy$)).subscribe(()=>this.closeNotification())}}return e.\u0275fac=function(t){return new(t||e)(_(fe),_(_t,2),_(jf),_(Uf),_(Vl))},e.\u0275cmp=de({type:e,selectors:[["tui-alert"]],hostAttrs:["role","alert"],hostVars:3,hostBindings:function(t,i){2&t&&Cl("@tuiFadeIn",i.animation)("@tuiSlideInRight",i.animation)("@tuiHeightCollapse",i.animation)},features:[j([_t])],decls:3,vars:2,consts:[[3,"status","hasIcon","close",4,"ngIf","ngIfElse"],["noClose",""],[3,"status","hasIcon","close"],["automation-id","tui-notification-alert__heading","class","t-heading",4,"ngIf"],["automation-id","tui-notification-alert__content",1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-notification-alert__heading",1,"t-heading"],[3,"status","hasIcon"]],template:function(t,i){if(1&t&&(I(0,t4,4,5,"tui-notification",0),I(1,s4,4,5,"ng-template",null,1,Zi)),2&t){const o=Nn(2);y("ngIf",i.item.hasCloseButton)("ngIfElse",o)}},dependencies:[ds,un,oo],styles:["[_nghost-%COMP%]{box-shadow:0 1.5rem 1rem rgba(0,0,0,.03),0 .75rem .75rem rgba(0,0,0,.04),0 .25rem .375rem rgba(0,0,0,.05);display:block;border-radius:var(--tui-radius-m);width:18rem;margin:2rem 3rem 0 auto}tui-root._mobile [_nghost-%COMP%]{margin:1rem 1rem 0 auto}[_nghost-%COMP%]:not(:first-child){margin-top:.75rem}.t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:bold;margin:0}.t-content[_ngcontent-%COMP%]{color:var(--tui-text-01);word-wrap:break-word}.t-content[_ngcontent-%COMP%]:empty{display:none}"],data:{animation:[Zf,wz,Dz]},changeDetection:0}),e})(),l4=(()=>{class e extends v1{constructor(t,i){super(i),this.defaultOptions=t,this.component=new Ir(a4)}}return e.\u0275fac=function(t){return new(t||e)(L(jf),L(Ny))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),u4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({providers:[vz(l4)],imports:[[mt,ro,$1]]}),e})(),c4=(()=>{class e{constructor({nativeElement:t},i,o,r){Bi(t,r,{passive:!1}).pipe(sa(i),Ay(),Je(o)).subscribe()}}return e.\u0275fac=function(t){return new(t||e)(_(fe),_(ct),_(_t,2),qa("tuiPreventDefault"))},e.\u0275dir=V({type:e,selectors:[["","tuiPreventDefault",""]],features:[j([_t])]}),e})(),d4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function p4(e,n){if(1&e&&(rn(0),m(1),sn()),2&e){const t=n.polymorpheusOutlet;D(1),gt(" ",t," ")}}function f4(e,n){if(1&e&&(g(0,"header",5),I(1,p4,2,1,"ng-container",3),f()),2&e){const t=q();D(1),y("polymorpheusOutlet",t.header)("polymorpheusOutletContext",t.context)}}function h4(e,n){if(1&e){const t=Li();rn(0),m(1),g(2,"div",6)(3,"button",7),ce("click",function(){return zn(t),Gn(q().context.$implicit.complete())}),m(4),f()(),sn()}if(2&e){const t=n.polymorpheusOutlet,i=q();let o;D(1),gt(" ",t," "),D(3),gt(" ",(null==(o=i.context.data)?null:o.button)||"OK"," ")}}function g4(e,n){if(1&e){const t=Li();g(0,"div",8)(1,"button",9),ce("click",function(){return zn(t),Gn(q().close())}),Rt(2,"async"),f()()}if(2&e){const t=q();D(1),y("title",Bt(2,1,t.closeWord$))}}const m4=new E("[TUI_DIALOGS_CLOSE]: A stream to close dialogs",{factory:()=>xt}),z1=new E("[TUI_DIALOG_CLOSE_STREAM]: Dialogs closing stream"),v4=[_t,{provide:z1,deps:[Ye,Ft,fe,m4,_t,Vl],useFactory:(e,n,{nativeElement:t},i,o,{dismissible:r})=>r?Vt(Me(t,"click").pipe(At(w5)),Me(e,"keydown").pipe(At(({key:s,target:a})=>"Escape"===s&&us(a)&&(!kf(t,a)||t.contains(a)))),Me(e,"mousedown").pipe(At(({target:s,clientX:a})=>us(s)&&qO(n)-a>17&&!kf(t,s)),Nf(Me(e,"mouseup").pipe(Ui(1),At(({target:s})=>us(s)&&!kf(t,s))))),i).pipe(Je(o)):i}],y4=new Error("Required dialog was dismissed");let b4=(()=>{class e{constructor(t,i,o,r,s){this.duration=t,this.isMobile=i,this.context=o,this.closeWord$=s,this.animation={value:"",params:{start:"40px",duration:this.duration}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:this.duration}},r.subscribe(()=>{this.close()})}get size(){return this.context.size}get header(){return this.context.header}get slideInTop(){return"fullscreen"===this.size||"page"===this.size||this.isMobile?this.fullscreenAnimation:this.animation}close(){this.context.required?this.context.$implicit.error(y4):this.context.$implicit.complete()}}return e.\u0275fac=function(t){return new(t||e)(_(Iy),_(Kf),_(Vl),_(z1),_(l1))},e.\u0275cmp=de({type:e,selectors:[["tui-dialog"]],hostVars:5,hostBindings:function(t,i){2&t&&(vt("data-size",i.size),Cl("@tuiSlideInTop",i.slideInTop)("@tuiFadeIn",i.slideInTop),ut("_centered",i.header))},features:[j(v4)],decls:6,vars:6,consts:[["class","t-header",4,"ngIf"],[1,"t-content"],[1,"t-heading",3,"id","textContent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["class","t-wrapper",4,"ngIf"],[1,"t-header"],[1,"t-buttons"],["tuiButton","","size","m",3,"click"],[1,"t-wrapper"],["tuiIconButton","","tuiPreventDefault","mousedown","automation-id","tui-dialog__close","size","s","appearance","","icon","tuiIconCloseLarge","shape","rounded",1,"t-close",3,"title","click"]],template:function(t,i){1&t&&(I(0,f4,2,2,"header",0),g(1,"div",1),F(2,"h2",2),g(3,"section"),I(4,h4,5,2,"ng-container",3),f()(),I(5,g4,3,3,"div",4)),2&t&&(y("ngIf",i.header),D(2),y("id",i.context.id)("textContent",i.context.label),D(2),y("polymorpheusOutlet",i.context.content)("polymorpheusOutletContext",i.context),D(1),y("ngIf",i.context.closeable))},dependencies:[Zo,un,oo,c4,Qn],styles:['[_nghost-%COMP%]{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1rem;border:2.5rem solid transparent}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;box-shadow:0 1.125rem 1.875rem rgba(0,0,0,.48);content:"";border-radius:inherit;pointer-events:none}[data-size=auto][_nghost-%COMP%]{width:auto}[data-size=s][_nghost-%COMP%]{width:30rem}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[data-size=s][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}[data-size=m][_nghost-%COMP%]{width:42.5rem}[data-size=m][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.75rem;font:var(--tui-font-heading-4)}[data-size=l][_nghost-%COMP%]{width:55rem}[data-size=l][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=fullscreen][_nghost-%COMP%], [data-size=page][_nghost-%COMP%]{width:100%;min-height:100%;border-radius:0;border:none;background:var(--tui-elevation-01);box-shadow:0 4rem var(--tui-elevation-01)}[data-size=fullscreen][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:3rem calc(50vw - (45rem / 2))}[data-size=fullscreen][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0}._centered[_nghost-%COMP%]{text-align:center}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%]{min-width:100%;width:100%;max-width:100%;border-radius:0;border:none;margin:auto 0 0}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}.t-heading[_ngcontent-%COMP%]{margin:0;word-wrap:break-word;font:var(--tui-font-heading-3)}.t-heading[_ngcontent-%COMP%]:empty{display:none}.t-header[_ngcontent-%COMP%]{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}[data-size=fullscreen][_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%] .t-header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{flex:1}.t-content[_ngcontent-%COMP%]{border-radius:inherit;padding:2rem;background:var(--tui-base-01)}.t-content[_ngcontent-%COMP%]:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-wrapper[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;order:-1}.t-close[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:1.5rem;right:1.5rem;color:var(--tui-base-01);background:rgba(104,104,104,.96)}.t-close[_ngcontent-%COMP%]:hover{background:rgba(159,159,159,.86)}[_nghost-%COMP%]:not([data-size="fullscreen"]) .t-close[_ngcontent-%COMP%]{animation:tuiFadeIn var(--tui-duration)}[_nghost-%COMP%]:not([data-size="fullscreen"]).ng-animating .t-close[_ngcontent-%COMP%]{display:none}tui-root._mobile[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;background:transparent;color:var(--tui-base-06)}tui-root._mobile[_nghost-%COMP%] .t-close[_ngcontent-%COMP%]:hover, tui-root._mobile [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]:hover{color:var(--tui-base-07)}.t-buttons[_ngcontent-%COMP%]{margin-top:1.25rem;text-align:right}'],data:{animation:[Mz,Zf]}}),e})();const G1={size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""},W1=new E("[TUI_DIALOG_OPTIONS]: Default parameters for dialog component",{factory:()=>G1}),C4=new Ir(b4);let D4=(()=>{class e extends v1{constructor(){super(...arguments),this.component=C4,this.defaultOptions=Object.assign(Object.assign({},U(W1)),{data:void 0})}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),T4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({providers:[yz(D4)],imports:[[ro,$y,mt,d4]]}),e})();const w4=["wrapper"];function M4(e,n){if(1&e&&(g(0,"tui-loader",4),zo(1,5),f()),2&e){const t=q(2);y("overlay",!0)("showLoader",t.loading),D(1),y("ngTemplateOutlet",t.content)}}function E4(e,n){if(1&e&&(rn(0),Tt(1),I(2,M4,2,3,"tui-loader",3),sn()),2&e){const t=q();D(2),y("ngIf",t.async)("ngIfElse",t.content)}}const S4=["*"];let O4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=V({type:e,selectors:[["","tuiExpandContent",""]]}),e})(),I4=(()=>{class e{constructor(t){this.changeDetectorRef=t,this.state=0,this.async=!1,this.content=null,this.expanded=null}set expandedSetter(t){if(null!==this.expanded)return 0!==this.state?(this.expanded=t,void(this.state=3)):(this.expanded=t,void this.retrigger(this.async&&t?1:3));this.expanded=t}get overflow(){return 0!==this.state}get loading(){return!!this.expanded&&this.async&&1===this.state}get height(){const{expanded:t,state:i,contentWrapper:o}=this;return t&&2===i||!t&&3===i?0:o&&(!t&&2===i||t&&3===i)?o.nativeElement.offsetHeight:o&&t&&1===i?Math.max(o.nativeElement.offsetHeight,48):null}get contentVisible(){return this.expanded||0!==this.state}onTransitionEnd({propertyName:t}){"opacity"===t&&3===this.state&&(this.state=0)}onExpandLoaded(t){t.stopPropagation(),1===this.state&&this.retrigger(3)}retrigger(t){this.state=2,setTimeout(()=>{2===this.state&&(this.state=t,this.changeDetectorRef.markForCheck())})}}return e.\u0275fac=function(t){return new(t||e)(_(Zn))},e.\u0275cmp=de({type:e,selectors:[["tui-expand"]],contentQueries:function(t,i,o){if(1&t&&Xs(o,O4,5,Fn),2&t){let r;qt(r=Yt())&&(i.content=r.first)}},viewQuery:function(t,i){if(1&t&&Kn(w4,5),2&t){let o;qt(o=Yt())&&(i.contentWrapper=o.first)}},hostVars:9,hostBindings:function(t,i){1&t&&ce("transitionend.self",function(r){return i.onTransitionEnd(r)})("tui-expand-loaded",function(r){return i.onExpandLoaded(r)}),2&t&&(vt("aria-expanded",i.expanded),br("height",i.height,"px"),ut("_expanded",i.expanded)("_overflow",i.overflow)("_loading",i.loading))},inputs:{async:"async",expandedSetter:["expanded","expandedSetter"]},ngContentSelectors:S4,decls:3,vars:1,consts:[[1,"t-wrapper"],["wrapper",""],[4,"ngIf"],["size","l",3,"overlay","showLoader",4,"ngIf","ngIfElse"],["size","l",3,"overlay","showLoader"],[3,"ngTemplateOutlet"]],template:function(t,i){1&t&&(Rn(),g(0,"div",0,1),I(2,E4,3,2,"ng-container",2),f()),2&t&&(D(2),y("ngIf",i.contentVisible))},dependencies:[V1,un,mE],styles:['[_nghost-%COMP%]{display:block;transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);opacity:0}._overflow[_nghost-%COMP%]{overflow:hidden}._expanded[_nghost-%COMP%]{opacity:1;transform:translate(0)}._loading[_nghost-%COMP%]{opacity:.99}.t-wrapper[_ngcontent-%COMP%]:before, .t-wrapper[_ngcontent-%COMP%]:after{content:"";display:table}'],changeDetection:0}),G([ee()],e.prototype,"async",void 0),G([Yf()],e.prototype,"expandedSetter",null),e})(),q1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,H1]]}),e})();const P4=["tuiLink",""];function x4(e,n){1&e&&F(0,"tui-svg",3),2&e&&y("src",q().icon||"")}function N4(e,n){1&e&&F(0,"tui-svg",4),2&e&&y("src",q().icon||"")}const R4=["*"];let ps=(()=>{class e{constructor(t,i,o){this.elementRef=t,this.mode$=i,this.pseudo=!1,this.icon="",this.iconAlign="right",this.iconRotated=!1,this.mode=null,this.focusVisible=!1,this.focusedChange=Vt(Me(this.elementRef.nativeElement,"focusin").pipe(xo(!0)),Me(this.elementRef.nativeElement,"focusout").pipe(xo(!1))),o.subscribe(r=>{this.focusVisible=r})}get nativeFocusableElement(){return this.elementRef.nativeElement}get focused(){return Fl(this.nativeFocusableElement)}get hasIcon(){return!!this.icon}get iconAlignLeft(){return this.hasIcon&&"left"===this.iconAlign}get iconAlignRight(){return this.hasIcon&&"right"===this.iconAlign}}return e.\u0275fac=function(t){return new(t||e)(_(fe),_(aa),_(qf))},e.\u0275cmp=de({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostVars:7,hostBindings:function(t,i){1&t&&ce("$.data-mode.attr",function(){return i.mode$}),2&t&&(vt("data-host-mode",i.mode),ut("_pseudo",i.pseudo)("_icon-rotated",i.iconRotated)("_focus-visible",i.focusVisible))},inputs:{pseudo:"pseudo",icon:"icon",iconAlign:"iconAlign",iconRotated:"iconRotated",mode:"mode"},exportAs:["tuiLink"],features:[j([Vc(e),qf,_t,Hl])],attrs:P4,ngContentSelectors:R4,decls:4,vars:2,consts:[["class","t-icon t-icon_left",3,"src",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_right",3,"src",4,"ngIf"],[1,"t-icon","t-icon_left",3,"src"],[1,"t-icon","t-icon_right",3,"src"]],template:function(t,i){1&t&&(Rn(),I(0,x4,1,1,"tui-svg",0),g(1,"span",1),Tt(2),f(),I(3,N4,1,1,"tui-svg",2)),2&t&&(y("ngIf",i.iconAlignLeft),D(3),y("ngIf",i.iconAlignRight))},dependencies:[cs,un],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);text-decoration:none;text-align:left;text-transform:inherit;font-weight:inherit;cursor:pointer;outline:none}[_nghost-%COMP%]:hover{color:var(--tui-link-hover)}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}[data-mode=onLight][_nghost-%COMP%]:hover, [data-mode=onLight]._active[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(0,0,0,.48);text-decoration-color:rgba(0,0,0,.48)}[data-mode=onLight]._pseudo[_nghost-%COMP%]:hover, [data-mode=onLight]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative-night)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:hover, [data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:active, [data-mode=onLight][data-host-mode=negative]._active[_nghost-%COMP%]{color:var(--tui-negative-night-hover)}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][_nghost-%COMP%]:hover, [data-mode=onDark][_nghost-%COMP%]:active, [data-mode=onDark]._active[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(255,255,255,.48);text-decoration-color:rgba(255,255,255,.48)}[data-mode=onDark]._pseudo[_nghost-%COMP%]:hover, [data-mode=onDark]._pseudo[_nghost-%COMP%]:active, [data-mode=onDark]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:hover, [data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:active, [data-mode=onDark][data-host-mode=positive]._active[_nghost-%COMP%]{color:var(--tui-positive-night-hover)}[data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative)}[data-host-mode=negative][_nghost-%COMP%]:hover{color:var(--tui-negative-hover)}[data-host-mode=negative]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(222,76,30,.48);text-decoration-color:rgba(222,76,30,.48)}[data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive)}[data-host-mode=positive][_nghost-%COMP%]:hover{color:var(--tui-positive-hover)}[data-host-mode=positive]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(58,169,129,.48);text-decoration-color:rgba(58,169,129,.48)}._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-selection)}[data-mode=onLight]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear);color:var(--tui-text-01)}[data-mode=onDark]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear-inverse);color:var(--tui-text-01-night)}[data-host-mode=positive]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-success-bg)}[data-host-mode=negative]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-error-bg)}._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding-bottom:.15em;-webkit-text-decoration:underline dashed rgba(51,111,238,.48);text-decoration:underline dashed rgba(51,111,238,.48);text-underline-offset:.2em;text-decoration-thickness:.7px}.t-icon[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-top:-.125rem;opacity:.8}.t-icon_left[_ngcontent-%COMP%]{margin-right:.25rem}.t-icon_right[_ngcontent-%COMP%]{margin-left:.25rem}[_nghost-%COMP%]:hover .t-icon[_ngcontent-%COMP%]{opacity:1}._icon-rotated[_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),G([ee()],e.prototype,"pseudo",void 0),G([ee()],e.prototype,"icon",void 0),G([ee()],e.prototype,"iconAlign",void 0),G([ee()],e.prototype,"iconRotated",void 0),G([ee()],e.prototype,"mode",void 0),e})(),F4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,ca]]}),e})();const k4=["positionFixedOffset"],L4=["*"];let Y1=(()=>{class e extends ky{}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),V4=(()=>{class e extends Ly{fixedPositionOffset(){var t;return(null===(t=this.positionFixedOffsetRef)||void 0===t?void 0:t.nativeElement.getBoundingClientRect())||dy}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275cmp=de({type:e,selectors:[["tui-dropdown-host"]],viewQuery:function(t,i){if(1&t&&Kn(k4,5),2&t){let o;qt(o=Yt())&&(i.positionFixedOffsetRef=o.first)}},features:[j([{provide:ky,useExisting:Y1},{provide:Ly,useExisting:e}]),le],ngContentSelectors:L4,decls:5,vars:0,consts:[[1,"t-position-fixed-offset"],["positionFixedOffset",""],["viewContainer",""]],template:function(t,i){1&t&&(Rn(),F(0,"div",0,1),Tt(2),zo(3,null,2))},styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block;height:100%}[_nghost-%COMP%]:before{content:"";display:block;overflow:hidden}.t-position-fixed-offset[_ngcontent-%COMP%]{position:fixed;left:0;top:0;pointer-events:none;visibility:hidden;width:100%;height:100%}'],changeDetection:0}),e})(),H4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function Jf(...e){const n=_o(e),t=St(e),{args:i,keys:o}=zE(e);if(0===i.length)return bt([],n);const r=new Ce(function B4(e,n,t=Lt){return i=>{K1(n,()=>{const{length:o}=e,r=new Array(o);let s=o,a=o;for(let l=0;l{const u=bt(e[l],n);let c=!1;u.subscribe(ze(i,d=>{r[l]=d,c||(c=!0,a--),a||i.next(t(r.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,o?s=>GE(o,s):Lt));return t?r.pipe(dv(t)):r}function K1(e,n,t){e?mo(t,e,n):n()}let U4=(()=>{class e{constructor(t,i,o){this.documentRef=t,this.elementRef=i,this.renderer=o,this.activeElement=Hf(this.documentRef),Promise.resolve().then(()=>{this.elementRef.nativeElement.focus()})}onBlur(){this.renderer.removeAttribute(this.elementRef.nativeElement,"tabIndex")}onFocusIn(t){const{nativeElement:i}=this.elementRef;if(kf(i,t))return;const o=kc({initial:i,root:i});o&&o.focus()}ngOnDestroy(){n1(this.documentRef),Promise.resolve().then(()=>{Ar(this.activeElement)&&this.activeElement.focus()})}}return e.\u0275fac=function(t){return new(t||e)(_(Ye),_(fe),_(Yi))},e.\u0275dir=V({type:e,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(t,i){1&t&&ce("blur",function(){return i.onBlur()})("focusin.silent",function(r){return i.onFocusIn(r.target)},!1,Am)}}),e})(),j4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})(),Z1=(()=>{class e{constructor({nativeElement:t},i,o){this.mode="scroll",Me(t,"wheel",{passive:!1}).pipe(At(()=>this.enabled),sa(i),Je(o)).subscribe(r=>{this.processEvent(r,!!r.deltaY,r.deltaY?r.deltaY<0:r.deltaX<0)}),Me(t,"touchstart",{passive:!0}).pipe(Ot(({touches:r})=>{let c,{clientX:s,clientY:a}=r[0],l=0,u=0;return Me(t,"touchmove",{passive:!1}).pipe(At(()=>this.enabled),Et(d=>{const p=d.changedTouches[0];l=s-p.clientX,u=a-p.clientY,s=p.clientX,a=p.clientY,void 0===c&&(c=Math.abs(u)>Math.abs(l)),this.processEvent(d,c,c?u<0:l<0)}))}),sa(i),Je(o)).subscribe()}get enabled(){return"none"!==this.mode}get overscrollBehavior(){return this.enabled?"contain":null}processEvent(t,i,o){var r;const{target:s,currentTarget:a,cancelable:l}=t;if(l&&us(s)&&"range"!==(null===(r=s)||void 0===r?void 0:r.type)){if("all"===this.mode&&(i&&!a.contains(Ty(s))||!i&&!a.contains(Ty(s,!1))))return void t.preventDefault();if(i&&(o&&!Ff(s,a,!0,!1)||!o&&!Ff(s,a,!0,!0)))return void t.preventDefault();!i&&(o&&!Ff(s,a,!1,!1)||!o&&!Ff(s,a,!1,!0))&&t.preventDefault()}}}return e.\u0275fac=function(t){return new(t||e)(_(fe),_(ct),_(_t,2))},e.\u0275dir=V({type:e,selectors:[["","tuiOverscroll",""]],hostVars:2,hostBindings:function(t,i){2&t&&br("overscroll-behavior",i.overscrollBehavior)},inputs:{mode:["tuiOverscroll","mode"]},features:[j([_t])]}),e})(),Q1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function $4(e,n){1&e&&zo(0)}function z4(e,n){if(1&e&&(g(0,"section",3),I(1,$4,1,0,"ng-container",4),f()),2&e){const t=n.$implicit;y("@tuiParentAnimation",void 0),vt("aria-labelledby",t.id),D(1),y("polymorpheusOutlet",t.component)("polymorpheusOutletContext",t)}}function G4(e,n){if(1&e){const t=Li();g(0,"div",5),ce("popstate",function(){const r=zn(t).tuiLet,s=q().ngIf;return Gn(q().closeLast(s,!!r))},0,Am)("transitionend",function(o){const s=zn(t).tuiLet,a=q().ngIf;return Gn(q().onDialog(o,!!a.length,!!s))}),f()}2&e&&ut("t-overlay_visible",q().ngIf.length)}function W4(e,n){if(1&e&&(rn(0),I(1,z4,2,4,"section",1),I(2,G4,1,2,"div",2),Rt(3,"async"),sn()),2&e){const t=n.ngIf,i=q();D(1),y("ngForOf",t),D(1),y("tuiLet",Bt(3,2,i.isDialogClosesOnBack$))}}const q4=new E("[TUI_DIALOG_CLOSES_ON_BACK]: Is closing dialog on browser backward navigation enabled",{factory:()=>ne(!1)}),zy={label:"ignoreMe"};let K4=(()=>{class e{constructor(t,i,o,r){this.isDialogClosesOnBack$=t,this.dialogsByType=i,this.historyRef=o,this.titleService=r,this.dialogs$=Jf(this.dialogsByType).pipe(W(s=>(new Array).concat(...s).sort((a,l)=>a.createdAt-l.createdAt)))}closeLast(t,i){if(!i)return;const[o]=t.slice(-1);!o||(t.length>1&&this.historyRef.pushState(zy,this.titleService.getTitle()),o.$implicit.complete())}onDialog({propertyName:t},i,o){!o||"letter-spacing"!==t||(i?this.historyRef.pushState(zy,this.titleService.getTitle()):(e=>(null==e?void 0:e.label)===zy.label)(this.historyRef.state)&&this.historyRef.back())}}return e.\u0275fac=function(t){return new(t||e)(_(q4),_(Vy),_(J5),_(uv))},e.\u0275cmp=de({type:e,selectors:[["tui-dialog-host"]],decls:2,vars:3,consts:[[4,"ngIf"],["tuiFocusTrap","","tuiScrollRef","","tuiOverscroll","all","role","dialog","aria-modal","true","class","t-dialog",4,"ngFor","ngForOf"],["class","t-overlay",3,"t-overlay_visible","popstate","transitionend",4,"tuiLet"],["tuiFocusTrap","","tuiScrollRef","","tuiOverscroll","all","role","dialog","aria-modal","true",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-overlay",3,"popstate","transitionend"]],template:function(t,i){1&t&&(I(0,W4,4,4,"ng-container",0),Rt(1,"async")),2&t&&y("ngIf",Bt(1,1,i.dialogs$))},dependencies:[un,Ji,U4,Z1,oo,Ci,Qn],styles:["[_nghost-%COMP%]{position:fixed;left:0;bottom:0;width:100%;height:0}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:flex-start;outline:none;overflow:auto;overflow:overlay}.t-dialog[_ngcontent-%COMP%]{bottom:auto;height:100%}.t-overlay[_ngcontent-%COMP%]{height:100%;pointer-events:none;touch-action:none;opacity:0;letter-spacing:normal;transition:opacity var(--tui-duration),letter-spacing .01s;background:rgba(0,0,0,.75);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-overlay_visible[_ngcontent-%COMP%]{opacity:1;letter-spacing:1px}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}"],data:{animation:[fy]}}),e})(),Z4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,ro,Q1,j4,Nl]]}),e})(),Q4=(()=>{class e{transform(t,i,...o){return i(t,...o)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Pn({name:"tuiMapper",type:e,pure:!0}),e})(),X4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function J4(e,n){if(1&e&&(zo(0,3),Rt(1,"tuiMapper")),2&e){const t=n.$implicit,i=q(2);y("ngComponentOutlet",t.component.component)("ngComponentOutletInjector",function z0(e,n,t,i){const o=e+22,r=k(),s=ja(r,o);return fc(r,o)?B0(r,ai(),n,s.transform,t,i,s):s.transform(t,i)}(1,2,t,i.mapper))}}function eG(e,n){if(1&e&&(g(0,"div",1),I(1,J4,2,5,"ng-container",2),Rt(2,"async"),f()),2&e){const t=n.$implicit;y("@tuiParentAnimation",void 0),D(1),y("ngForOf",Bt(2,2,t))}}let tG=(()=>{class e{constructor(t,i){this.alerts=t,this.injector=i,this.mapper=o=>xn.create({providers:[{provide:Vl,useValue:o}],parent:this.injector})}}return e.\u0275fac=function(t){return new(t||e)(_(D1),_(Gs))},e.\u0275cmp=de({type:e,selectors:[["tui-alert-host"]],decls:1,vars:1,consts:[["class","t-notifications-wrapper",4,"ngFor","ngForOf"],[1,"t-notifications-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(t,i){1&t&&I(0,eG,3,4,"div",0),2&t&&y("ngForOf",i.alerts)},dependencies:[Ji,cE,Q4,Qn],styles:["tui-alert-host>.t-notifications-wrapper{position:fixed;top:0;left:0;display:flex;width:100%;height:100%;flex-direction:column;pointer-events:none}tui-alert-host>.t-notifications-wrapper>*{pointer-events:auto}\n"],encapsulation:2,data:{animation:[fy]}}),e})(),nG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,X4]]}),e})(),iG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function oG(e,n){if(1&e&&(g(0,"div",3),F(1,"div",4),f()),2&e){const t=q().ngIf,i=q();ut("t-bar_has-horizontal",t[1]),y("@tuiFadeIn",i.animation)}}function rG(e,n){if(1&e&&(g(0,"div",5),F(1,"div",6),f()),2&e){const t=q().ngIf,i=q();ut("t-bar_has-vertical",t[0]),y("@tuiFadeIn",i.animation)}}function sG(e,n){if(1&e&&(rn(0),I(1,oG,2,3,"div",1),I(2,rG,2,3,"div",2),sn()),2&e){const t=n.ngIf;D(1),y("ngIf",t[0]),D(1),y("ngIf",t[1])}}let aG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=V({type:e,selectors:[["","tuiScrollbarWrapper",""]],features:[j([{provide:a1,useExisting:fe}])]}),e})(),lG=(()=>{class e{constructor(t,i,o,r,s,a,l,u,c,d){this.wrapper=s,this.container=a,this.documentRef=l,this.windowRef=u,this.elementRef=c,this.viewportScroller=d,this.tuiScrollbar="vertical";const{nativeElement:p}=this.elementRef,h=Me(p,"mousedown"),v=Me(this.documentRef,"mousemove"),C=Me(this.documentRef,"mouseup");Vt(Me(s.nativeElement,"mousedown").pipe(Ay(),W(T=>this.getScrolled(T,.5,.5))),h.pipe(Ay(),function A5(){return Et(e=>{e.stopPropagation()})}(),Ot(T=>{const A=p.getBoundingClientRect(),S=function uG({clientY:e},{top:n,height:t}){return(e-n)/t}(T,A),b=function cG({clientX:e},{left:n,width:t}){return(e-n)/t}(T,A);return v.pipe(W(R=>this.getScrolled(R,S,b)),Je(C))}))).pipe(sa(t),Je(o)).subscribe(([T,A])=>{const[S,b]=this.viewportScroller.getScrollPosition();this.container?"vertical"===this.tuiScrollbar?i.setProperty(this.container.nativeElement,"scrollTop",T):i.setProperty(this.container.nativeElement,"scrollLeft",A):this.viewportScroller.scrollToPosition(["vertical"===this.tuiScrollbar?S:A,"vertical"===this.tuiScrollbar?T:b])}),Vt(Bi(this.container?this.container.nativeElement:this.windowRef,"scroll"),r.pipe(Wf($O))).pipe(sa(t),Je(o)).subscribe(()=>{"vertical"===this.tuiScrollbar?(i.setStyle(p,"top",100*this.thumb+"%"),i.setStyle(p,"height",100*this.view+"%")):(i.setStyle(p,"left",100*this.thumb+"%"),i.setStyle(p,"width",100*this.view+"%"))})}get scrolled(){const{scrollTop:t,scrollHeight:i,clientHeight:o,scrollLeft:r,scrollWidth:s,clientWidth:a}=this.computedContainer;return"vertical"===this.tuiScrollbar?t/(i-o):r/(s-a)}get compensation(){const{clientHeight:t,scrollHeight:i,clientWidth:o,scrollWidth:r}=this.computedContainer;return t*t/i>24&&"vertical"===this.tuiScrollbar||o*o/r>24&&"horizontal"===this.tuiScrollbar?0:"vertical"===this.tuiScrollbar?24/t:24/o}get thumb(){return this.scrolled*(1-(this.compensation||this.view))}get view(){const{clientHeight:t,scrollHeight:i,clientWidth:o,scrollWidth:r}=this.computedContainer;return"vertical"===this.tuiScrollbar?Math.ceil(t/i*100)/100:Math.ceil(o/r*100)/100}get computedContainer(){var t;return(null===(t=this.container)||void 0===t?void 0:t.nativeElement)||this.documentRef.documentElement}getScrolled({clientY:t,clientX:i},o,r){const{offsetHeight:s,offsetWidth:a}=this.elementRef.nativeElement,{top:l,left:u,width:c,height:d}=this.wrapper.nativeElement.getBoundingClientRect();return[(t-l-s*o)/(d-s)*(this.computedContainer.scrollHeight-d),(i-u-a*r)/(c-a)*(this.computedContainer.scrollWidth-c)]}}return e.\u0275fac=function(t){return new(t||e)(_(ct),_(Yi),_(_t,2),_(ly),_(a1),_(xy,8),_(Ye),_(Ft),_(fe),_(Xp))},e.\u0275dir=V({type:e,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[j([_t])]}),e})(),X1=(()=>{class e{constructor(t,i,o,r,s,a){this.options=t,this.ngZone=i,this.documentRef=o,this.scrollRef=r,this.animationFrame$=s,this.mode$=a,this.refresh$=this.animationFrame$.pipe(Wf(300),W(()=>this.scrollbars),Cn([!1,!1]),bi((l,u)=>l[0]===u[0]&&l[1]===u[1]),kl(this.ngZone)),this.animation=Object.assign({value:""},this.options)}get scrollbars(){const{clientHeight:t,scrollHeight:i,clientWidth:o,scrollWidth:r}=this.scrollRef?this.scrollRef.nativeElement:this.documentRef.documentElement;return[Math.ceil(t/i*100)<100,Math.ceil(o/r*100)<100]}}return e.\u0275fac=function(t){return new(t||e)(_(Uf),_(ct),_(Ye),_(xy,8),_(ly),_(aa))},e.\u0275cmp=de({type:e,selectors:[["tui-scroll-controls"]],hostBindings:function(t,i){1&t&&ce("$.data-mode.attr",function(){return i.mode$})},features:[j([Hl])],decls:2,vars:3,consts:[[4,"ngIf"],["tuiScrollbarWrapper","","class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["tuiScrollbarWrapper","","class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],["tuiScrollbarWrapper","",1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],["tuiScrollbarWrapper","",1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(t,i){1&t&&(I(0,sG,3,2,"ng-container",0),Rt(1,"async")),2&t&&y("ngIf",Bt(1,1,i.refresh$))},dependencies:[un,aG,lG,Qn],styles:["[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);float:left;margin-right:calc(-100% + 1px);-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:calc(-100% + 1px);margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto}.t-bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.t-bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.t-bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.t-thumb[_ngcontent-%COMP%]{transition-property:all;transition-duration:.15s;transition-timing-function:ease-in-out;position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;background:var(--tui-text-01);background-clip:content-box;box-sizing:border-box;transition-property:width,height;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}[data-mode=onDark][_nghost-%COMP%] .t-thumb[_ngcontent-%COMP%]{background-color:var(--tui-text-01-night)}.t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{right:0;width:.75rem;min-height:1.25rem}.t-bar_vertical[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{bottom:0;height:.75rem;min-width:1.25rem}.t-bar_horizontal[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{height:.875rem}"],data:{animation:[Zf]},changeDetection:0}),e})(),J1=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,Nl]]}),e})();function dG(e,n){1&e&&(fr(),F(0,"defs",4)),2&e&&y("innerHTML",n.$implicit,ap)}function pG(e,n){if(1&e&&(fr(),rn(0),I(1,dG,1,1,"defs",3),sn()),2&e){const t=q();D(1),y("ngForOf",t.items)}}function fG(e,n){if(1&e&&(fr(),g(0,"defs"),F(1,"svg",6),f()),2&e){const t=n.$implicit;D(1),y("outerHTML",t,ap)}}function hG(e,n){1&e&&(fr(),I(0,fG,2,1,"defs",5)),2&e&&y("ngForOf",q().items)}let gG=(()=>{class e{constructor(t,i,o,r){this.svgService=t,this.changeDetectorRef=i,this.destroy$=o,this.isBrowser=!0,this.isBrowser=!Qp(r)}ngOnInit(){this.svgService.items$.pipe(Je(this.destroy$)).subscribe(t=>{this.items=t.values(),this.changeDetectorRef.detectChanges()})}}return e.\u0275fac=function(t){return new(t||e)(_(N1),_(Zn),_(_t,2),_(es))},e.\u0275cmp=de({type:e,selectors:[["tui-svg-defs-host"]],features:[j([_t])],decls:4,vars:2,consts:[["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],[4,"ngIf","ngIfElse"],["server",""],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[3,"outerHTML"]],template:function(t,i){if(1&t&&(fr(),g(0,"svg",0),I(1,pG,2,1,"ng-container",1),I(2,hG,1,1,"ng-template",null,2,Zi),f()),2&t){const o=Nn(3);D(1),y("ngIf",i.isBrowser)("ngIfElse",o)}},dependencies:[un,Ji],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0}),e})(),mG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,Nl]]}),e})();function eA(e){return At((n,t)=>e<=t)}let da=(()=>{class e{constructor(t,i,o,r){this.active$=t,this.ngZone=i,this.elementRef=o,this.directParentActiveZone=r,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe(W(s=>!!s&&this.contains(s)),Cn(!1),bi(),eA(1),kl(this.ngZone)),this.directParentActiveZone&&this.directParentActiveZone.addSubActiveZone(this)}set tuiActiveZoneParentSetter(t){this.setZone(t)}ngOnDestroy(){this.directParentActiveZone&&this.directParentActiveZone.removeSubActiveZone(this),this.tuiActiveZoneParent&&this.tuiActiveZoneParent.removeSubActiveZone(this)}contains(t){return this.elementRef.nativeElement.contains(t)||this.subActiveZones.some((i,o,r)=>r.indexOf(i)===o&&i.contains(t))}setZone(t){this.tuiActiveZoneParent&&this.tuiActiveZoneParent.removeSubActiveZone(this),t&&t.addSubActiveZone(this),this.tuiActiveZoneParent=t}addSubActiveZone(t){this.subActiveZones=[...this.subActiveZones,t]}removeSubActiveZone(t){this.subActiveZones=function XO(e,n){return e.slice(0,Math.max(n,0)).concat(e.slice(Math.max(n+1,0)))}(this.subActiveZones,this.subActiveZones.indexOf(t))}}return e.\u0275fac=function(t){return new(t||e)(_(mz),_(ct),_(fe),_(e,12))},e.\u0275dir=V({type:e,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],inputs:{tuiActiveZoneParentSetter:["tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"]}),G([ee()],e.prototype,"tuiActiveZoneParentSetter",null),G([Ll],e.prototype,"setZone",null),e})(),th=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function _G(e,n){1&e&&zo(0)}const vG=function(e){return{$implicit:e}};function yG(e,n){if(1&e&&(g(0,"div",1),I(1,_G,1,0,"ng-container",2),f()),2&e){const t=n.$implicit;y("@tuiParentAnimation",void 0)("tuiActiveZoneParent",t.activeZone||null),D(1),y("polymorpheusOutlet",t.component)("polymorpheusOutletContext",Yn(4,vG,t))}}let bG=(()=>{class e{constructor(t){this.hints$=t}}return e.\u0275fac=function(t){return new(t||e)(_(x1))},e.\u0275cmp=de({type:e,selectors:[["tui-hints-host"]],hostAttrs:["aria-live","polite"],decls:2,vars:3,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,i){1&t&&(I(0,yG,2,6,"div",0),Rt(1,"async")),2&t&&y("ngForOf",Bt(1,1,i.hints$))},dependencies:[Ji,da,oo,Qn],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}"],data:{animation:[fy]}}),e})(),CG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,ro,th]]}),e})();function tA(e,n=!1){return pt((t,i)=>{let o=0;t.subscribe(ze(i,r=>{const s=e(r,o++);(s||n)&&i.next(r),!s&&i.complete()}))})}class pa{supports(n){return n.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(n){return n.split(".").filter(t=>!this.modifier.includes(t)).join(".")}}let TG=(()=>{class e extends pa{constructor(){super(...arguments),this.modifier="$"}addEventListener(t,i){t[i]=t[i]||xt;const o=this.getMethod(t,i),s=Pl(this.manager.getZone().onStable.pipe(tA(()=>t[i]===xt)),zf(()=>t[i])).subscribe(o);return()=>s.unsubscribe()}getMethod(t,i){const[,o,r,s=""]=i.split(".");return i.endsWith(".attr")?a=>null===a?t.removeAttribute(o):t.setAttribute(o,String(a)):"class"===o?a=>t.classList.toggle(r,!!a):"style"===o?a=>t.style.setProperty(function DG(e){return e.replace(/[a-z][A-Z]/g,n=>`${n[0]}-${n[1].toLowerCase()}`)}(r),`${a}${s}`):a=>t[o]=a}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),wG=(()=>{class e extends pa{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(t){return t.includes(".")&&!this.unwrap(t).includes(".")}addEventListener(t,i,o){return t.addEventListener(this.unwrap(i),o,{once:i.includes(".once"),passive:i.includes(".passive"),capture:i.includes(".capture")}),()=>t.removeEventListener(this.unwrap(i),o)}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),MG=(()=>{class e extends pa{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(t,i,o){return this.manager.addEventListener(t,this.unwrap(i),s=>{s.preventDefault(),o(s)})}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),EG=(()=>{class e extends pa{constructor(){super(...arguments),this.modifier=".self"}addEventListener(t,i,o){return this.manager.addEventListener(t,this.unwrap(i),s=>{s.target===s.currentTarget&&o(s)})}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),nh=(()=>{class e extends pa{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(t,i,o){return e.ngZone=this.manager.getZone(),e.ngZone.runOutsideAngular(()=>this.manager.addEventListener(t,this.unwrap(i),o))}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const SG=[nh,TG,wG,MG,EG,(()=>{class e extends pa{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(t,i,o){return this.manager.addEventListener(t,this.unwrap(i),s=>{s.stopPropagation(),o(s)})}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),(()=>{class e extends pa{constructor(){super(...arguments),this.modifier=".init"}addEventListener(){return console.warn(".init plugin is no longer necessary as of v3.1.0"),()=>{}}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})()].map(e=>({provide:Sl,multi:!0,useClass:e}));let OG=(()=>{class e{constructor([t]){console.assert(!(t instanceof nh)||e.initialized,"EventPluginsModule must come after BrowserModule in imports"),e.initialized=!0}}return e.initialized=!1,e.\u0275fac=function(t){return new(t||e)(L(Sl))},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({providers:SG}),e})();function AG(e,n){1&e&&F(0,"tui-scroll-controls",2)}const IG=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],PG=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];let xG=(()=>{class e{constructor(t,i,o,r,s,a,{body:l},u){this.duration=t,this.elementRef=i,this.dialogs=o,this.isMobile=r,this.isMobileRes$=a,this.scrollbars$=this.dialogs.length&&!this.isMobile?Vt(...this.dialogs).pipe(W(({length:c})=>!c)):ne(!this.isMobile),Ke.enabled=s,l.setAttribute("data-tui-theme",u.toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)(_(Iy),_(fe),_(Vy),_(Kf),_(R5),_(Py),_(Ye),_(Z5))},e.\u0275cmp=de({type:e,selectors:[["tui-root"]],hostAttrs:["data-tui-version","3.15.0"],hostVars:2,hostBindings:function(t,i){1&t&&ce("$.class._mobile",function(){return i.isMobileRes$}),2&t&&br("--tui-duration",i.duration,"ms")},features:[j([Hz])],ngContentSelectors:PG,decls:14,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(t,i){1&t&&(Rn(IG),I(0,AG,1,0,"tui-scroll-controls",0),Rt(1,"async"),F(2,"tui-svg-defs-host"),g(3,"tui-dropdown-host")(4,"div",1),Tt(5),f(),Tt(6,1),F(7,"tui-dialog-host"),Tt(8,2),F(9,"tui-alert-host"),Tt(10,3),f(),Tt(11,4),F(12,"tui-hints-host"),Tt(13,5)),2&t&&y("ngIf",Bt(1,1,i.scrollbars$))},dependencies:[X1,gG,V4,K4,tG,bG,un,Qn],styles:['@keyframes tuiPresent{to{content:"1"}}html,.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}body{font:var(--tui-font-text-s);color:var(--tui-text-01);margin:0}tui-root{position:relative;display:block;flex:1;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;margin:0}.t-root-content{position:relative;z-index:0;height:100%}\n'],encapsulation:2}),e})(),NG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,OG,iG,H4,mG,CG,Z4,nG,J1]]}),e})(),RG=(()=>{class e extends cz{}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275cmp=de({type:e,selectors:[["tui-theme-night"]],features:[le],decls:0,vars:0,template:function(t,i){},styles:[":root{--tui-base-01: #222;--tui-base-02: #333;--tui-base-03: #808080;--tui-base-04: #959595;--tui-base-05: #b0b0b0;--tui-base-06: #d7d7d7;--tui-base-07: #ededed;--tui-base-08: #f6f6f6;--tui-base-09: #fff;--tui-focus: rgba(51, 51, 51, .64);--tui-secondary: rgba(255, 255, 255, .16);--tui-secondary-hover: rgba(255, 255, 255, .24);--tui-secondary-active: rgba(255, 255, 255, .4);--tui-clear: rgba(255, 255, 255, .16);--tui-clear-disabled: rgba(255, 255, 255, .08);--tui-clear-hover: rgba(255, 255, 255, .24);--tui-clear-active: rgba(255, 255, 255, .4);--tui-error-fill: #ff8c67;--tui-error-bg: rgba(244, 87, 37, .32);--tui-error-bg-hover: rgba(244, 87, 37, .4);--tui-success-fill: #4ac99b;--tui-success-bg: rgba(74, 201, 155, .32);--tui-success-bg-hover: rgba(74, 201, 155, .4);--tui-warning-fill: #ffc700;--tui-warning-bg: rgba(255, 199, 0, .32);--tui-warning-bg-hover: rgba(255, 199, 0, .4);--tui-info-fill: #70b6f6;--tui-info-bg: rgba(112, 182, 246, .32);--tui-info-bg-hover: rgba(112, 182, 246, .4);--tui-neutral-fill: #959ba4;--tui-neutral-bg: rgba(149, 155, 164, .32);--tui-neutral-bg-hover: rgba(149, 155, 164, .48);--tui-text-01: #ffffff;--tui-text-02: rgba(255, 255, 255, .72);--tui-text-03: rgba(255, 255, 255, .6);--tui-link: #6788ff;--tui-link-hover: #526ed3;--tui-positive: #44c596;--tui-positive-hover: #3aa981;--tui-negative: #ff8c67;--tui-negative-hover: #bb593a;--tui-autofill: var(--tui-autofill-night);--tui-elevation-01: #222;--tui-elevation-02: #222}tui-notification{--tui-base-01: #000}\n"],encapsulation:2}),e})(),FG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function kG(e,n){1&e&&F(0,"tui-scroll-controls")}const LG=["*"];let nA=(()=>{class e{constructor(t,i,o,r){this.cssRef=t,this.elementRef=i,this.userAgent=o,this.isIos=r,this.delegated=!1,this.isLegacy=!this.cssRef.supports("position","sticky")||function Nz(e){return e.toLowerCase().includes("firefox")}(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new fe(this.elementRef.nativeElement)}get showScrollbars(){return!this.hidden&&!this.isIos&&(!this.isLegacy||this.delegated)}get showNative(){return this.isLegacy&&!this.hidden&&!this.delegated}onScrollable(t){this.delegated=!0,this.browserScrollRef.nativeElement=t}scrollIntoView(t){var i;if(this.delegated)return;const{nativeElement:o}=this.browserScrollRef,{offsetTop:r,offsetLeft:s}=function T5(e,n){Ke.assert(e.contains(n),"Host must contain element");let{offsetTop:t,offsetLeft:i,offsetParent:o}=n;for(;Ar(o)&&o!==e;)t+=o.offsetTop,i+=o.offsetLeft,o=o.offsetParent;return{offsetTop:t,offsetLeft:i}}(o,t),{clientHeight:a,clientWidth:l}=o,{offsetHeight:u,offsetWidth:c}=t;null===(i=o.scrollTo)||void 0===i||i.call(o,s+c/2-l/2,r+u/2-a/2)}}return e.\u0275fac=function(t){return new(t||e)(_(w$),_(fe),_(E$),_(Hy))},e.\u0275cmp=de({type:e,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(t,i){1&t&&ce("tui-scrollable.stop",function(r){return i.onScrollable(r.detail)})("tui-scroll-into-view.stop",function(r){return i.scrollIntoView(r.detail)}),2&t&&ut("_legacy",i.showNative)},inputs:{hidden:"hidden"},features:[j([{provide:xy,deps:[e],useFactory:({browserScrollRef:n})=>n}])],ngContentSelectors:LG,decls:3,vars:1,consts:[[4,"ngIf"],[1,"t-content"]],template:function(t,i){1&t&&(Rn(),I(0,kG,1,0,"tui-scroll-controls",0),g(1,"div",1),Tt(2),f()),2&t&&y("ngIf",i.showScrollbars)},dependencies:[X1,un],styles:["[_nghost-%COMP%]{z-index:0;position:relative;display:flex;overflow:auto}[_nghost-%COMP%]:not(._legacy){scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar, [_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}._legacy[_nghost-%COMP%]{overflow:overlay}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){._legacy[_nghost-%COMP%]::-webkit-scrollbar, ._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:2.667rem solid transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar{background-color:transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}.t-content[_ngcontent-%COMP%]{position:relative;z-index:0;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:-moz-max-content;height:max-content}"],changeDetection:0}),G([ee()],e.prototype,"hidden",void 0),e})(),iA=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,J1]]}),e})(),Gy=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})(),oA=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})(),VG=(()=>{class e{constructor(){this.focusable=!0}get tabIndex(){return this.focusable?0:-1}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=V({type:e,selectors:[["","tuiFocusable",""]],hostVars:1,hostBindings:function(t,i){2&t&&sc("tabIndex",i.tabIndex)},inputs:{focusable:["tuiFocusable","focusable"]}}),e})(),ih=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})(),HG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt]]}),e})(),jG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,Gy,oA,ih,ro,ca,HG,q1]]}),e})();const $G=["*"];let rA=(()=>{class e{constructor(t){this.mode$=t,this.value="",this.size="m",this.status="default",this.hoverable=!1}get padding(){var t;return this.isEmpty?"none":Dy(null===(t=this.value)||void 0===t?void 0:t.valueOf())?"m":"l"}get outputValue(){var t;const i=null===(t=this.value)||void 0===t?void 0:t.valueOf();return Dy(i)&&i>99?"99+":String(this.value)}get isEmpty(){return""===this.value}titleText({offsetWidth:t,scrollWidth:i}){return t{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt]]}),e})();const GG=["*"];let WG=(()=>{class e{constructor(){this.size="m",this.textAlign="left",this.hoverable=!1,this.transparent=!1}get sizeS(){return"s"===this.size}get sizeM(){return"m"===this.size}get sizeL(){return"l"===this.size}get textAlignLeft(){return"left"===this.textAlign}get textAlignCenter(){return"center"===this.textAlign}get textAlignRight(){return"right"===this.textAlign}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=de({type:e,selectors:[["tui-island"],["a","tuiIsland",""]],hostAttrs:[1,"tui-island"],hostVars:16,hostBindings:function(t,i){2&t&&ut("tui-island_hoverable",i.hoverable)("tui-island_transparent",i.transparent)("tui-island_size_s",i.sizeS)("tui-island_size_m",i.sizeM)("tui-island_size_l",i.sizeL)("tui-island_text-align_left",i.textAlignLeft)("tui-island_text-align_center",i.textAlignCenter)("tui-island_text-align_right",i.textAlignRight)},inputs:{size:"size",textAlign:"textAlign",hoverable:"hoverable",transparent:"transparent"},ngContentSelectors:GG,decls:1,vars:0,template:function(t,i){1&t&&(Rn(),Tt(0))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),G([ee()],e.prototype,"size",void 0),G([ee()],e.prototype,"textAlign",void 0),G([ee()],e.prototype,"hoverable",void 0),G([ee()],e.prototype,"transparent",void 0),e})(),qG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt]]}),e})(),YG=(()=>{class e{constructor(t,i){this.enabled$=new zt;const o=i.pipe(W(r=>!!r&&(!t||!r.length||r.every(s=>!t.contains(s)))));this.tuiObscured=this.enabled$.pipe(Ot(r=>r?o:xt))}set tuiObscuredEnabled(t){this.enabled$.next(t)}}return e.\u0275fac=function(t){return new(t||e)(_(da,8),_(_1,2))},e.\u0275dir=V({type:e,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[j([_1,m1,_t])]}),G([Yf()],e.prototype,"tuiObscuredEnabled",null),e})(),KG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function ZG({currentTarget:e,relatedTarget:n}){return!us(n)||!us(e)||!e.contains(n)}let fs=(()=>{class e extends Ce{constructor(t,i){super(o=>this.stream$.subscribe(o)),this.elementRef=t,this.ngZone=i,this.stream$=Vt(Me(this.elementRef.nativeElement,"mouseenter").pipe(xo(!0)),Me(this.elementRef.nativeElement,"mouseleave").pipe(xo(!1)),Me(this.elementRef.nativeElement,"mouseout").pipe(At(ZG),xo(!1))).pipe(bi(),kl(this.ngZone))}}return e.\u0275fac=function(t){return new(t||e)(L(fe),L(ct))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),QG=(()=>{class e{constructor(t){this.tuiHoveredChange=t}}return e.\u0275fac=function(t){return new(t||e)(_(fs))},e.\u0275dir=V({type:e,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[j([fs])]}),e})(),XG=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function Pr(e){return Ke.assert(Number.isFinite(e),"Value must be finite number"),`${e}px`}function JG(e,n){if(1&e&&(g(0,"div",5),m(1),f()),2&e){const t=n.polymorpheusOutlet;D(1),gt(" ",t," ")}}const e6=function(e){return{$implicit:e}},t6=new E("[TUI_DROPDOWN_COMPONENT] A component to display a dropdown",{factory:()=>r6});let Wy=(()=>{class e{constructor(t,i,o){this.elementRef=t,this.component=i,this.dropdownService=o,this.content="",this.dropdownBoxRef=null}get position(){return WO(this.elementRef.nativeElement)?"fixed":"absolute"}ngAfterViewChecked(){var t,i;null===(t=this.dropdownBoxRef)||void 0===t||t.changeDetectorRef.detectChanges(),null===(i=this.dropdownBoxRef)||void 0===i||i.changeDetectorRef.markForCheck()}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.elementRef.nativeElement.getBoundingClientRect()}toggle(t){t&&this.content&&!this.dropdownBoxRef?this.dropdownBoxRef=this.dropdownService.add(this.component):!t&&this.dropdownBoxRef&&(this.dropdownService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null)}}return e.\u0275fac=function(t){return new(t||e)(_(fe),_(Ir),_(Y1))},e.\u0275dir=V({type:e,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:["tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[j([Qf(e),O1(e),{provide:Ir,deps:[t6,Gs],useClass:Ir}]),mn]}),G([ee()],e.prototype,"content",void 0),G([Ll],e.prototype,"position",null),e})(),sA=(()=>{class e extends la{constructor(t){super(i=>this.stream$.subscribe(i)),this.hovered$=t,this.toggle$=new zt,this.stream$=Vt(this.toggle$,this.hovered$).pipe(Ot(i=>ne(i).pipe(Gf(i?this.showDelay:this.hideDelay)))),this.showDelay=200,this.hideDelay=500}toggle(t){this.toggle$.next(t)}}return e.\u0275fac=function(t){return new(t||e)(_(fs))},e.\u0275dir=V({type:e,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:["tuiDropdownShowDelay","showDelay"],hideDelay:["tuiDropdownHideDelay","hideDelay"]},features:[j([Hc(e),fs]),le]}),G([ee()],e.prototype,"showDelay",void 0),G([ee()],e.prototype,"hideDelay",void 0),e})();const n6={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4},fa=new E("[TUI_DROPDOWN_OPTIONS] Default parameters for dropdown directive",{factory:()=>n6});let o6=(()=>{class e{constructor(t){this.options=t,this.align=this.options.align,this.direction=this.options.direction,this.limitWidth=this.options.limitWidth,this.minHeight=this.options.minHeight,this.maxHeight=this.options.maxHeight,this.offset=this.options.offset}}return e.\u0275fac=function(t){return new(t||e)(_(fa,4))},e.\u0275dir=V({type:e,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:["tuiDropdownAlign","align"],direction:["tuiDropdownDirection","direction"],limitWidth:["tuiDropdownLimitWidth","limitWidth"],minHeight:["tuiDropdownMinHeight","minHeight"],maxHeight:["tuiDropdownMaxHeight","maxHeight"],offset:["tuiDropdownOffset","offset"]},features:[j([{provide:fa,useExisting:ke(()=>e)}])]}),G([ee()],e.prototype,"align",void 0),G([ee()],e.prototype,"direction",void 0),G([ee()],e.prototype,"limitWidth",void 0),G([ee()],e.prototype,"minHeight",void 0),G([ee()],e.prototype,"maxHeight",void 0),G([ee()],e.prototype,"offset",void 0),e})(),r6=(()=>{class e{constructor(t,i,o,r,s,a,l,u,c,d){this.directive=o,this.elementRef=r,this.host=s,this.accessor=a,this.windowRef=l,this.animationOptions=u,this.options=c,this.hoverDirective=d,this.dropdownAnimation=Object.assign({value:"fadeInTop"},this.animationOptions),t.pipe(Je(i)).subscribe(([p,h])=>{this.update(p,h)})}onHoveredChange(t){this.hoverDirective&&this.hoverDirective.toggle(t)}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}update(t,i){const{style:o}=this.elementRef.nativeElement,{right:r}=this.elementRef.nativeElement.getBoundingClientRect(),{limitWidth:s,maxHeight:a,offset:l}=this.options,{innerHeight:u}=this.windowRef,{clientRect:c}=this.host,{position:d}=this.directive,p=this.accessor.getClientRect(),v="fixed"===d?0:-c.top;t+=v;const M=(i+="fixed"===d?0:-c.left)p.left&&t{class e extends A1{}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiDropdown",""]],features:[j([_t]),le]}),e})(),a6=(()=>{class e extends ua{getClientRect(){var t;return(null===(t=this.tuiDropdownHost)||void 0===t?void 0:t.getBoundingClientRect())||dy}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiDropdown","","tuiDropdownHost",""]],inputs:{tuiDropdownHost:"tuiDropdownHost"},features:[j([Qf(e)]),le]}),e})(),l6=(()=>{class e extends la{constructor(){super(t=>this.stream$.subscribe(t)),this.stream$=new zt,this.tuiDropdownManual=!1}ngOnChanges(){this.stream$.next(this.tuiDropdownManual)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=V({type:e,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[j([Hc(e)]),le,mn]}),e})(),aA=(()=>{class e{constructor(t,i,o){this.options=t,this.windowRef=i,this.accessor=o}getPosition({width:t,height:i}){const o=this.accessor.getClientRect(),{innerHeight:r,innerWidth:s}=this.windowRef,{minHeight:a,align:l,direction:u,offset:c}=this.options,d=this.previous||u||"bottom",p=Math.max(o.right-t,c),h={top:o.top-2*c,bottom:r-o.bottom-2*c},v={top:o.top-c-i,bottom:o.bottom+c,right:p,left:o.left+th.bottom?"top":"bottom";return h[d]>a&&u||h[d]>i?[v[d],v[l]]:(this.previous=C,[v[C],v[l]])}}return e.\u0275fac=function(t){return new(t||e)(_(fa),_(Ft),_(ua))},e.\u0275dir=V({type:e,selectors:[["","tuiDropdown","",3,"tuiDropdownCustomPosition","",3,"tuiDropdownSided",""]],features:[j([Uy(e)])]}),e})(),u6=(()=>{class e{constructor(t,i,o,r){this.options=t,this.windowRef=i,this.accessor=o,this.vertical=r,this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4}getPosition(t){if(!1===this.tuiDropdownSided)return this.vertical.getPosition(t);const{height:i,width:o}=t,r=this.accessor.getClientRect(),{innerHeight:s,innerWidth:a}=this.windowRef,{align:l,direction:u,minHeight:c,offset:d}=this.options,p={top:r.bottom,left:r.left-d,right:a-r.right-d,bottom:s-r.top},h={top:r.bottom-i+this.tuiDropdownSidedOffset+1,left:r.left-o-d,right:r.right+d,bottom:r.top-this.tuiDropdownSidedOffset-1},v=p.top>p.bottom?"top":"bottom",M=p[l]>o?h[l]:p.left>p.right?h.left:h.right;return p[this.previous]>c&&u||this.previous===v?[h[this.previous],M]:(this.previous=v,[h[v],M])}}return e.\u0275fac=function(t){return new(t||e)(_(fa),_(Ft),_(ua),_(aA))},e.\u0275dir=V({type:e,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[j([aA,Uy(e)])]}),e})(),c6=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[ro,th,Q1,iA,R1,XG]]}),e})();const d6=["wrapper"];function p6(e,n){if(1&e&&(rn(0),m(1),sn()),2&e){const t=n.polymorpheusOutlet;D(1),gt(" ",t," ")}}const f6=function(e,n){return{$implicit:e,close:n}};function h6(e,n){if(1&e){const t=Li();g(0,"div",5,6),ce("keydown.esc",function(o){return zn(t),Gn(q(2).onKeyDownEsc(o))})("keydown",function(o){return zn(t),Gn(q(2).onKeydown(o))}),I(2,p6,2,1,"ng-container",7),f(),F(3,"div")}if(2&e){q();const t=Nn(1),i=q();D(2),y("polymorpheusOutlet",i.content)("polymorpheusOutletContext",g_(2,f6,t,i.close))}}function g6(e,n){if(1&e){const t=Li();g(0,"div",1,2),ce("tuiObscured",function(o){return zn(t),Gn(q().onHostObscured(o))})("tuiActiveZoneChange",function(o){return zn(t),Gn(q().onActiveZone(o))}),Tt(2),I(3,h6,4,5,"ng-template",3,4,Zi),f()}if(2&e){const t=n.tuiLet,i=Nn(4),o=q();y("tuiDropdownSided",o.sided)("tuiDropdownHost",o.host)("tuiDropdown",i)("tuiDropdownManual",t&&o.canOpen)("tuiObscuredEnabled",t),D(3),y("polymorpheus",o.context)}}const m6=["*"];let _6=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=V({type:e,selectors:[["","tuiHostedDropdownHost",""]]}),e})(),lA=(()=>{class e{constructor(t,i){this.hover$=t,this.elementRef=i,this.manual$=new cn(!1),this.content="",this.sided=!1,this.canOpen=!0,this.openChange=new dt,this.focusedChange=new dt,this.open$=Jf([this.manual$,(this.hover$||xt).pipe(Cn(!1))]).pipe(W(([o,r])=>o||r)),this.close=()=>this.updateOpen(!1)}set open(t){this.manual$.next(t)}get open(){return this.manual$.value}get host(){var t;return(null===(t=this.dropdownHost)||void 0===t?void 0:t.nativeElement)||this.elementRef.nativeElement}get computedHost(){var t;return(null===(t=this.dropdownHost)||void 0===t?void 0:t.nativeElement)||this.nativeFocusableElement||this.elementRef.nativeElement}get dropdown(){var t,i;return null===(i=null===(t=this.dropdownDirective)||void 0===t?void 0:t.dropdownBoxRef)||void 0===i?void 0:i.location.nativeElement}get nativeFocusableElement(){return My(this.host)?this.host:kc({initial:this.host,root:this.elementRef.nativeElement})}get focused(){return Bf(this.host)||this.open&&!!this.wrapper&&Bf(this.wrapper.nativeElement)}onFocusIn(t){this.computedHost.contains(t)||this.updateOpen(!1)}onClick(t){!this.hostEditable&&this.computedHost.contains(t)&&this.updateOpen(!this.open)}onKeyDownEsc(t){!this.canOpen||!this.open||(t.stopPropagation(),this.closeDropdown())}onArrow(t,i){this.focusDropdown(t,i)}onKeydown({key:t,target:i,defaultPrevented:o}){!o&&function J$(e){return 1===e.length||Y$.includes(e)}(t)&&this.hostEditable&&Ar(i)&&!wy(i)&&this.focusHost()}onActiveZone(t){this.updateFocused(t),t||this.updateOpen(!1)}onHostObscured(t){t&&this.closeDropdown()}updateOpen(t){t&&!this.canOpen||(this.open=t,this.openChange.emit(t))}get hostEditable(){return wy(this.computedHost)}focusDropdown(t,i){const o=this.nativeFocusableElement;if(!(o&&Ar(o)&&us(t.target)&&o.contains(t.target)))return;if(!(this.wrapper&&this.open&&this.dropdown&&Ar(this.wrapper.nativeElement.nextElementSibling)))return this.updateOpen(!0),void(wy(o)||t.preventDefault());const s=kc({initial:i?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,root:this.wrapper.nativeElement,previous:!i});!s||(s.focus(),t.preventDefault())}closeDropdown(){this.focused&&this.focusHost(),this.updateOpen(!1)}focusHost(){const t=this.nativeFocusableElement;t&&t.focus({preventScroll:!0})}updateFocused(t){this.focusedChange.emit(t)}}return e.\u0275fac=function(t){return new(t||e)(_(sA,8),_(fe))},e.\u0275cmp=de({type:e,selectors:[["tui-hosted-dropdown"]],contentQueries:function(t,i,o){if(1&t&&Xs(o,_6,5,fe),2&t){let r;qt(r=Yt())&&(i.dropdownHost=r.first)}},viewQuery:function(t,i){if(1&t&&(Kn(d6,5,fe),Kn(Wy,5),Kn(da,5)),2&t){let o;qt(o=Yt())&&(i.wrapper=o.first),qt(o=Yt())&&(i.dropdownDirective=o.first),qt(o=Yt())&&(i.activeZone=o.first)}},hostVars:2,hostBindings:function(t,i){1&t&&ce("focusin",function(r){return i.onFocusIn(r.target)})("click",function(r){return i.onClick(r.target)})("keydown.esc",function(r){return i.onKeyDownEsc(r)})("keydown.arrowDown",function(r){return i.onArrow(r,!0)})("keydown.arrowUp",function(r){return i.onArrow(r,!1)}),2&t&&ut("_hosted_dropdown_focused",i.focused)},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{openChange:"openChange",focusedChange:"focusedChange"},features:[j([Vc(e)])],ngContentSelectors:m6,decls:2,vars:3,consts:[["class","t-wrapper",3,"tuiDropdownSided","tuiDropdownHost","tuiDropdown","tuiDropdownManual","tuiObscuredEnabled","tuiObscured","tuiActiveZoneChange",4,"tuiLet"],[1,"t-wrapper",3,"tuiDropdownSided","tuiDropdownHost","tuiDropdown","tuiDropdownManual","tuiObscuredEnabled","tuiObscured","tuiActiveZoneChange"],["activeZone","tuiActiveZone"],[3,"polymorpheus"],["dropdown","polymorpheus"],[3,"keydown.esc","keydown"],["wrapper",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,i){1&t&&(Rn(),I(0,g6,5,6,"div",0),Rt(1,"async")),2&t&&y("tuiLet",!!Bt(1,1,i.open$))},dependencies:[Ci,u6,Wy,s6,a6,l6,YG,da,w1,oo,Qn],styles:["[_nghost-%COMP%]{display:inline-flex}.t-wrapper[_ngcontent-%COMP%]{border-radius:inherit;height:inherit;flex:1 1 auto;width:100%}"],changeDetection:0}),G([ee()],e.prototype,"content",void 0),G([ee()],e.prototype,"sided",void 0),G([ee()],e.prototype,"canOpen",void 0),G([ee()],e.prototype,"open",null),e})(),v6=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,ro,Nl,KG,th,c6]]}),e})(),y6=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=de({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(t,i){},styles:[".tui-autofill input,input.tui-autofill{transition:box-shadow .01s}\n"],encapsulation:2}),e})(),b6=(()=>{class e{constructor(t){this.autofilled=!1,this.tuiAutofilledChange=new dt,t.addComponent(y6)}transitionStartHandler({propertyName:t,target:i}){var o;t.includes("box-shadow")&&(null===(o=i)||void 0===o?void 0:o.matches("input"))&&(this.autofilled=!this.autofilled,this.tuiAutofilledChange.emit(this.autofilled))}}return e.\u0275fac=function(t){return new(t||e)(_(ez))},e.\u0275dir=V({type:e,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(t,i){1&t&&ce("transitionstart",function(r){return i.transitionStartHandler(r)}),2&t&&ut("_autofilled",i.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),e})(),C6=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function T6(e,n){if(1&e&&(rn(0),m(1),sn()),2&e){const t=n.polymorpheusOutlet;D(1),gt(" ",t," ")}}const w6={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconTooltipLarge"},hs=new E("[TUI_HINT_OPTIONS] Default parameters for hint directive",{factory:()=>w6});let qy=(()=>{class e extends No{constructor(t){super(),this.options=t,this.content="",this.direction=this.options.direction,this.appearance=this.options.appearance,this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.icon=this.options.icon}}return e.\u0275fac=function(t){return new(t||e)(_(hs,4))},e.\u0275dir=V({type:e,selectors:[["","tuiHintContent",""]],inputs:{content:["tuiHintContent","content"],direction:["tuiHintDirection","direction"],appearance:["tuiHintAppearance","appearance"],showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},features:[j([{provide:hs,useExisting:ke(()=>e)}]),le]}),G([ee()],e.prototype,"content",void 0),G([ee()],e.prototype,"direction",void 0),G([ee()],e.prototype,"appearance",void 0),G([ee()],e.prototype,"showDelay",void 0),G([ee()],e.prototype,"hideDelay",void 0),e})(),oh=(()=>{class e extends la{constructor(t,i){super(o=>this.stream$.subscribe(o)),this.hovered$=t,this.options=i,this.toggle$=new zt,this.stream$=Vt(this.toggle$,this.hovered$).pipe(Ot(o=>ne(o).pipe(Gf(o?this.showDelay:this.hideDelay)))),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay}toggle(t){this.toggle$.next(t)}}return e.\u0275fac=function(t){return new(t||e)(_(fs),_(hs))},e.\u0275dir=V({type:e,selectors:[["","tuiHint","",5,"ng-container"]],hostBindings:function(t,i){1&t&&ce("click",function(){return i.toggle(!0)})},inputs:{showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},features:[j([Hc(e),fs]),le]}),G([ee()],e.prototype,"showDelay",void 0),G([ee()],e.prototype,"hideDelay",void 0),e})(),M6=(()=>{class e extends oh{constructor(){super(...arguments),this.currentRect=dy}onMove({clientX:t,clientY:i}){this.currentRect=function M5(e=0,n=0){const t={x:e,y:n,left:e,right:e,top:n,bottom:n,width:0,height:0};return Object.assign(Object.assign({},t),{toJSON:()=>t})}(t,i)}getClientRect(){return this.currentRect}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(t,i){1&t&&ce("mousemove.silent",function(r){return i.onMove(r)})},features:[j([Qf(e),Hc(e)]),le]}),e})(),E6=(()=>{class e{constructor(t,i,o,r,s,a,l,u,c,d){var p;this.accessor=r,this.elementRef=s,this.options=a,this.polymorpheus=l,this.hover=u,this.pointer=c,this.mode=d,this.animation=Object.assign({value:""},this.options),this.appearance=this.polymorpheus.$implicit.appearance||(null===(p=this.mode)||void 0===p?void 0:p.mode),this.untouchable=!!this.pointer,i.pipe(Je(o)).subscribe(([h,v])=>{this.update(h,v)}),t.pipe(Je(o)).subscribe(h=>this.hover.toggle(h))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(t){this.elementRef.nativeElement.contains(t)||this.hover.toggle(!1)}update(t,i){const{nativeElement:o}=this.elementRef,{height:r,width:s}=o.getBoundingClientRect(),{style:a}=o,l=this.accessor.getClientRect(),u=Math.max(i,4),c=l.top+l.height/2-t,d=l.left+l.width/2-u;a.top=Pr(t),a.left=Pr(u),a.setProperty("--top",Pr(ls(c,.5,r-1))),a.setProperty("--left",Pr(ls(d,.5,s-1)))}}return e.\u0275fac=function(t){return new(t||e)(_(fs),_(Xf),_(_t,2),_(ua),_(fe),_(Uf),_(Vl),_(oh),_(M6,8),_(Bc,8))},e.\u0275cmp=de({type:e,selectors:[["tui-hint"]],hostVars:4,hostBindings:function(t,i){1&t&&ce("click",function(r){return i.onClick(r.target)},0,aT),2&t&&(vt("data-appearance",i.appearance),Cl("@tuiFadeIn",i.animation),ut("_untouchable",i.untouchable))},features:[j([_t,Xf,fs])],decls:1,vars:2,consts:[[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,i){1&t&&I(0,T6,2,1,"ng-container",0),2&t&&y("polymorpheusOutlet",i.content)("polymorpheusOutletContext",i.context)},dependencies:[oo],styles:['[_nghost-%COMP%]{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word}[_nghost-%COMP%]:before{content:"";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}[data-appearance=error][_nghost-%COMP%]{background:var(--tui-error-fill)}[data-appearance=onDark][_nghost-%COMP%]{background:var(--tui-elevation-01);color:var(--tui-text-01);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}._untouchable[_nghost-%COMP%]{pointer-events:none}'],data:{animation:[Zf]},changeDetection:0}),G([Ll],e.prototype,"update",null),e})();const S6=new E("[TUI_HINT_COMPONENT] A component to display a hint",{factory:()=>E6});let O6=(()=>{class e{constructor(t,i,o,r,s){this.elementRef=t,this.component=i,this.hintService=o,this.options=r,this.activeZone=s,this.content="",this.tuiHintAppearance=null}get appearance(){var t;return null!==(t=this.tuiHintAppearance)&&void 0!==t?t:this.options.appearance}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.elementRef.nativeElement.getBoundingClientRect()}toggle(t){t&&this.content?this.hintService.add(this):this.hintService.remove(this)}}return e.\u0275fac=function(t){return new(t||e)(_(fe),_(Ir),_(x1),_(hs),_(da,8))},e.\u0275dir=V({type:e,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{content:["tuiHint","content"],context:["tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[j([Qf(e),O1(e),{provide:Ir,deps:[S6,Gs],useClass:Ir}]),mn]}),G([ee()],e.prototype,"content",void 0),G([ee()],e.prototype,"tuiHintAppearance",void 0),e})(),A6=(()=>{class e extends la{constructor(t,i,o,r){super(s=>this.stream$.subscribe(s)),this.ngZone=t,this.hover$=i,this.documentRef=o,this.elementRef=r,this.focus$=Me(this.documentRef,"keydown",{capture:!0}).pipe(Ot(()=>this.focused?ne(!1):Vt(Me(this.documentRef,"keyup"),Me(this.element,"blur")).pipe(W(()=>this.focused))),function D6(e){return pt((n,t)=>{let i=!1,o=null,r=null;const s=()=>{if(null==r||r.unsubscribe(),r=null,i){i=!1;const a=o;o=null,t.next(a)}};n.subscribe(ze(t,a=>{null==r||r.unsubscribe(),i=!0,o=a,r=ze(t,s,or),en(e(a)).subscribe(r)},()=>{s(),t.complete()},void 0,()=>{o=r=null}))})}(s=>s?io(1e3):ne(null)),Cn(!1),bi(),eA(1),kl(this.ngZone)),this.stream$=Vt(this.hover$,this.focus$),this.tuiHintDescribe=""}get focused(){return Fl(this.element)}get element(){return this.documentRef.getElementById(this.tuiHintDescribe)||this.elementRef.nativeElement}}return e.\u0275fac=function(t){return new(t||e)(_(ct),_(oh),_(Ye),_(fe))},e.\u0275dir=V({type:e,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[j([Hc(e)]),le]}),G([Ll],e.prototype,"element",null),e})(),I6=(()=>{class e extends A1{}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiHint",""]],features:[j([_t]),le]}),e})(),P6=(()=>{class e{constructor(t,i,o){this.options=t,this.windowRef=i,this.accessor=o,this.points=zO.reduce((r,s)=>Object.assign(Object.assign({},r),{[s]:[0,0]}),{}),this.direction=this.options.direction}getPosition({width:t,height:i}){const o=this.accessor.getClientRect(),r=o.left+o.width/2,s=o.top+o.height/2;if(this.points["top-left"][0]=o.top-i-8,this.points["top-left"][1]=r-t+22,this.points.top[0]=this.points["top-left"][0],this.points.top[1]=r-t/2,this.points["top-right"][0]=this.points["top-left"][0],this.points["top-right"][1]=r-22,this.points["bottom-left"][0]=o.bottom+8,this.points["bottom-left"][1]=this.points["top-left"][1],this.points.bottom[0]=this.points["bottom-left"][0],this.points.bottom[1]=this.points.top[1],this.points["bottom-right"][0]=this.points["bottom-left"][0],this.points["bottom-right"][1]=this.points["top-right"][1],this.points["left-top"][0]=s-i+22,this.points["left-top"][1]=o.left-t-8,this.points.left[0]=s-i/2,this.points.left[1]=this.points["left-top"][1],this.points["left-bottom"][0]=s-22,this.points["left-bottom"][1]=this.points["left-top"][1],this.points["right-top"][0]=this.points["left-top"][0],this.points["right-top"][1]=o.right+8,this.points.right[0]=this.points.left[0],this.points.right[1]=this.points["right-top"][1],this.points["right-bottom"][0]=this.points["left-bottom"][0],this.points["right-bottom"][1]=this.points["right-top"][1],this.checkPosition(this.points[this.direction],t,i))return this.points[this.direction];const a=zO.find(l=>this.checkPosition(this.points[l],t,i));return this.points[a||this.fallback]}get fallback(){return this.points.top[0]>this.windowRef.innerHeight-this.points.bottom[0]?"top":"bottom"}checkPosition([t,i],o,r){const{innerHeight:s,innerWidth:a}=this.windowRef;return t>8&&i>8&&t+r{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,ro]]}),e})();const uA=new Ce(or);class N6{constructor(n,t,i,o,r,s,a,l,u,c,d){this.change$=n,this.options=t,this.cleanerDirective=i,this.customContentDirective=o,this.iconDirective=r,this.iconLeftDirective=s,this.labelOutsideDirective=a,this.sizeDirective=l,this.prefixDirective=u,this.postfixDirective=c,this.fillerDirective=d}get cleaner(){return this.cleanerDirective.cleaner}get customContent(){return this.customContentDirective.customContent||""}get icon(){return this.iconDirective.icon}get iconLeft(){return this.iconLeftDirective.iconLeft}get labelOutside(){return this.labelOutsideDirective.labelOutside}get size(){return this.sizeDirective.size}get prefix(){return this.prefixDirective.prefix}get postfix(){return this.postfixDirective.postfix}get filler(){return this.fillerDirective.filler}}const cA=new E("[TUI_TEXTFIELD_CLEANER]: tuiTextfieldCleaner",{factory:()=>new R6});let R6=(()=>{class e extends No{constructor(){super(...arguments),this.cleaner=!1}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:["tuiTextfieldCleaner","cleaner"]},features:[j([{provide:cA,useExisting:ke(()=>e)}]),le]}),e})();const dA=new E("[TUI_TEXTFIELD_CUSTOM_CONTENT]: tuiTextfieldCustomContent",{factory:()=>new F6});let F6=(()=>{class e extends No{constructor(){super(...arguments),this.customContent=""}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:["tuiTextfieldCustomContent","customContent"]},features:[j([{provide:dA,useExisting:ke(()=>e)}]),le]}),e})();const pA=new E("[TUI_TEXTFIELD_FILLER]: tuiTextfieldPrefix",{factory:()=>new k6});let k6=(()=>{class e extends No{constructor(){super(...arguments),this.filler=""}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:["tuiTextfieldFiller","filler"]},features:[j([{provide:pA,useExisting:ke(()=>e)}]),le]}),e})();const fA=new E("[TUI_TEXTFIELD_ICON]: tuiTextfieldIcon",{factory:function V6(){return new L6}});let L6=(()=>{class e extends No{constructor(){super(...arguments),this.icon=""}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:["tuiTextfieldIcon","icon"]},features:[j([{provide:fA,useExisting:ke(()=>e)}]),le]}),e})();const hA=new E("[TUI_TEXTFIELD_ICON_LEFT]: tuiTextfieldIconLeft",{factory:function B6(){return new H6}});let H6=(()=>{class e extends No{constructor(){super(...arguments),this.iconLeft=""}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:["tuiTextfieldIconLeft","iconLeft"]},features:[j([{provide:hA,useExisting:ke(()=>e)}]),le]}),e})();const gA=new E("[TUI_TEXTFIELD_LABEL_OUTSIDE]: tuiTextfieldLabelOutside",{factory:()=>new U6});let U6=(()=>{class e extends No{constructor(){super(...arguments),this.labelOutside=!1}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:["tuiTextfieldLabelOutside","labelOutside"]},features:[j([{provide:gA,useExisting:ke(()=>e)}]),le]}),e})();const mA=new E("[TUI_TEXTFIELD_POSTFIX]: tuiTextfieldPostfix",{factory:()=>new j6});let j6=(()=>{class e extends No{constructor(){super(...arguments),this.postfix=""}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:["tuiTextfieldPostfix","postfix"]},features:[j([{provide:mA,useExisting:ke(()=>e)}]),le]}),e})();const _A=new E("[TUI_TEXTFIELD_PREFIX]: tuiTextfieldPrefix",{factory:()=>new $6});let $6=(()=>{class e extends No{constructor(){super(...arguments),this.prefix=""}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:["tuiTextfieldPrefix","prefix"]},features:[j([{provide:_A,useExisting:ke(()=>e)}]),le]}),e})();const vA=new E("[TUI_TEXTFIELD_SIZE]: tuiTextfieldSize",{factory:()=>new z6});let z6=(()=>{class e extends No{constructor(){super(...arguments),this.size="l"}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["","tuiTextfieldSize",""]],inputs:{size:["tuiTextfieldSize","size"]},features:[j([{provide:vA,useExisting:ke(()=>e)}]),le]}),e})();const yA={iconCleaner:({$implicit:e})=>"s"===e?"tuiIconClose":"tuiIconCloseLarge"},Yy=new E("[TUI_TEXTFIELD_OPTIONS]: Default parameters for textfield",{factory:()=>yA}),Ky=new E("[TUI_TEXTFIELD_WATCHED_CONTROLLER]: watched textfield controller"),bA=[_t,{provide:Ky,deps:[Zn,_t,Yy,cA,dA,fA,hA,gA,vA,_A,mA,pA],useFactory:(e,n,t,...i)=>{const o=Vt(...i.map(({change$:r})=>r||uA)).pipe(s1(e),Je(n));return o.subscribe(),new N6(o,t,...i)}}];function G6(e,n){1&e&&F(0,"tui-svg",2),2&e&&y("src",n.polymorpheusOutlet)}let W6=(()=>{class e extends qy{constructor(t,i,o,r){super(o),this.isMobile=r,this.mode=null,this.driver$=xt,this.describeId="",i.pipe(Je(t)).subscribe(s=>{this.mode=s})}get computedAppearance(){return this.appearance||this.mode||""}stopOnMobile(t){this.isMobile&&(t.preventDefault(),t.stopPropagation())}}return e.\u0275fac=function(t){return new(t||e)(_(_t,2),_(aa),_(hs),_(Kf))},e.\u0275cmp=de({type:e,selectors:[["tui-tooltip"]],viewQuery:function(t,i){if(1&t&&Kn(la,5),2&t){let o;qt(o=Yt())&&(i.driver$=o.first)}},hostVars:1,hostBindings:function(t,i){1&t&&ce("mousedown",function(r){return i.stopOnMobile(r)})("click",function(r){return i.stopOnMobile(r)}),2&t&&vt("data-appearance",i.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId"},features:[j([_t,Hl]),le],decls:3,vars:11,consts:[["automation-id","tui-tooltip__icon",1,"t-tooltip-icon",3,"tuiHint","tuiHintDescribe","tuiHintDirection","tuiHintShowDelay","tuiHintHideDelay","tuiHintAppearance"],[3,"src",4,"polymorpheusOutlet"],[3,"src"]],template:function(t,i){1&t&&(g(0,"span",0),Rt(1,"async"),I(2,G6,1,1,"tui-svg",1),f()),2&t&&(ut("t-icon_hovered",Bt(1,9,i.driver$)),y("tuiHint",i.content)("tuiHintDescribe",i.describeId)("tuiHintDirection",i.direction)("tuiHintShowDelay",i.showDelay)("tuiHintHideDelay",i.hideDelay)("tuiHintAppearance",i.computedAppearance),D(2),y("polymorpheusOutlet",i.icon))},dependencies:[cs,O6,I6,oh,P6,A6,oo,Qn],styles:["[_nghost-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;width:1.5rem;height:1.5rem;vertical-align:middle;font-size:0;line-height:0;cursor:pointer;color:var(--tui-text-03)}[_nghost-%COMP%]:hover{color:var(--tui-text-02)}[data-appearance=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-appearance=onLight][_nghost-%COMP%]{color:var(--tui-text-01)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-error-fill)}.t-tooltip-icon[_ngcontent-%COMP%]{transition-property:opacity,color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:inline-block;width:100%;height:100%}[_nghost-%COMP%]:not([data-appearance]) .t-tooltip-icon_hovered[_ngcontent-%COMP%]{color:var(--tui-text-02)}[data-appearance=onLight][_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%], [data-appearance=onDark][_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}[data-appearance=onLight][_nghost-%COMP%] .t-tooltip-icon_hovered[_ngcontent-%COMP%], [data-appearance=onDark][_nghost-%COMP%] .t-tooltip-icon_hovered[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0}),G([ee()],e.prototype,"describeId",void 0),e})(),q6=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,ca,x6,ro]]}),e})(),Y6=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=V({type:e,selectors:[["input","tuiMaskAccessor",""]],features:[j([{provide:eo,deps:[[new gr,p1],wc],multi:!0,useFactory:(n,t)=>n?n[0]:t}])]}),e})(),K6=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();const Z6=["pre"],Q6=["focusableElement"];function X6(e,n){1&e&&zo(0)}function J6(e,n){1&e&&zo(0)}function e8(e,n){1&e&&(g(0,"div",16),Tt(1,2),f())}function t8(e,n){1&e&&F(0,"tui-svg",19),2&e&&y("src",n.polymorpheusOutlet)}const Zy=function(e){return{$implicit:e}};function n8(e,n){if(1&e&&(g(0,"div",17),I(1,t8,1,1,"tui-svg",18),f()),2&e){const t=q();D(1),y("polymorpheusOutlet",t.iconLeftContent)("polymorpheusOutletContext",Yn(2,Zy,t.size))}}function i8(e,n){if(1&e&&(g(0,"label",20),Tt(1,3),f()),2&e){const t=q();ut("t-placeholder_raised",t.placeholderRaised),y("for",t.computedId)}}function o8(e,n){1&e&&F(0,"tui-svg",23),2&e&&y("src",n.polymorpheusOutlet)}function r8(e,n){if(1&e&&(g(0,"div",21),I(1,o8,1,1,"tui-svg",22),f()),2&e){const t=q();D(1),y("polymorpheusOutlet",t.controller.customContent)}}function s8(e,n){1&e&&F(0,"tui-svg",19),2&e&&y("src",n.polymorpheusOutlet)}function a8(e,n){if(1&e){const t=Li();g(0,"span",24),ce("click.stop",function(){return zn(t),Gn(q().clear())}),I(1,s8,1,1,"tui-svg",18),f()}if(2&e){const t=q();D(1),y("polymorpheusOutlet",t.iconCleaner||t.controller.options.iconCleaner)("polymorpheusOutletContext",Yn(2,Zy,t.size))}}function l8(e,n){if(1&e&&F(0,"tui-tooltip",25),2&e){const t=q();y("describeId",t.computedId)("content",t.hintOptions.content)("direction",t.hintOptions.direction)("appearance",t.hintOptions.appearance)("showDelay",t.hintOptions.showDelay)("hideDelay",t.hintOptions.hideDelay)}}function u8(e,n){1&e&&F(0,"tui-svg",19),2&e&&y("src",n.polymorpheusOutlet)}function c8(e,n){if(1&e&&(g(0,"div",26),I(1,u8,1,1,"tui-svg",18),f()),2&e){const t=q();D(1),y("polymorpheusOutlet",t.iconContent)("polymorpheusOutletContext",Yn(2,Zy,t.size))}}const d8=[[["input"]],[["select"]],[["tuiContent"]],"*"],p8=["input","select","tuiContent","*"],f8=["tuiTextfield",""];let h8=(()=>{class e{constructor(t){this.textfield=t,this.prefix$=new cn(""),this.pre$=this.prefix$.pipe(Gf(0),At(()=>{var i;return!(null===(i=this.pre)||void 0===i||!i.nativeElement.isConnected)}),W(()=>{var i;return(null===(i=this.pre)||void 0===i?void 0:i.nativeElement.offsetWidth)||0}),bi())}get isContextTable(){return"table"===this.textfield.appearance}get value(){return this.textfield.value}get filler(){const{focused:t,placeholder:i,exampleText:o,value:r,textfield:s}=this;return i&&o?"":t?o||s.filler.slice(r.length):""}get prefix(){return this.decorationsVisible?this.textfield.prefix:""}get postfix(){return this.decorationsVisible?this.computedPostfix:""}ngDoCheck(){this.prefix$.next(this.prefix)}get placeholder(){var t;return(null===(t=this.textfield.nativeFocusableElement)||void 0===t?void 0:t.placeholder)||""}get exampleText(){return!this.value&&this.focused?this.placeholder:""}get decorationsVisible(){return!!this.value||this.focused}get focused(){return this.textfield.computedFocused&&!this.textfield.readOnly}get computedPostfix(){return this.textfield.postfix&&(this.filler||this.value)?` ${this.textfield.postfix}`:this.textfield.postfix}}return e.\u0275fac=function(t){return new(t||e)(_(T1))},e.\u0275cmp=de({type:e,selectors:[["tui-value-decoration"]],viewQuery:function(t,i){if(1&t&&Kn(Z6,7,fe),2&t){let o;qt(o=Yt())&&(i.pre=o.first)}},hostVars:2,hostBindings:function(t,i){1&t&&ce("animationstart",function(){return i.ngDoCheck()}),2&t&&ut("_table",i.isContextTable)},decls:5,vars:4,consts:[[1,"t-prefix","t-inline",3,"textContent"],["pre",""],[1,"t-ghost","t-inline",3,"textContent"],[1,"t-filler","t-inline",3,"textContent"],[1,"t-postfix","t-inline",3,"textContent"]],template:function(t,i){1&t&&F(0,"span",0,1)(2,"span",2)(3,"span",3)(4,"span",4),2&t&&(y("textContent",i.prefix),D(2),y("textContent",i.value),D(1),y("textContent",i.filler),D(1),y("textContent",i.postfix))},styles:['[_nghost-%COMP%]{position:absolute;display:block;height:1.25rem;line-height:1;width:100%;margin:-1.25rem 0;padding:.625rem 0;box-sizing:content-box;color:var(--tui-text-01);animation:tuiPresent 1s}._table[_nghost-%COMP%]{position:static}tui-textfield[data-mode="onDark"] [_nghost-%COMP%]{color:var(--tui-text-01-night)}[_nghost-%COMP%]:after{content:"";display:inline-block;vertical-align:middle;height:100%}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip}.t-prefix[_ngcontent-%COMP%], .t-postfix[_ngcontent-%COMP%]{white-space:pre}.t-filler[_ngcontent-%COMP%]{overflow:hidden;color:var(--tui-text-03);text-overflow:ellipsis;max-width:100%;white-space:nowrap}tui-textfield[data-mode="onDark"][_nghost-%COMP%] .t-filler[_ngcontent-%COMP%], tui-textfield[data-mode="onDark"] [_nghost-%COMP%] .t-filler[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}.t-inline[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}']}),e})(),Qy=(()=>{class e extends Ry{constructor(t,i,o,r,s,a){super(),this.mode$=t,this.appearance=i,this.controller=o,this.hintOptions=r,this.options=s,this.elementRef=a,this.editable=!0,this.textfieldFiller="",this.iconCleaner=this.options.iconCleaner,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.textfieldPrefix="",this.textfieldPostfix="",this.value="",this.valueChange=new dt,this.autofilled=!1}get prefix(){return this.textfieldPrefix||this.controller.prefix}get postfix(){return this.textfieldPostfix||this.controller.postfix}get filler(){return this.textfieldFiller||this.controller.filler}get nativeFocusableElement(){if(this.computedDisabled||!this.focusableElement)return null;const{nativeElement:t}=this.focusableElement;return t.previousElementSibling||t}get focused(){return Bf(this.elementRef.nativeElement)}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var t;return!(null===(t=this.content)||void 0===t||!t.length)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var t;return!(null===(t=this.hintOptions)||void 0===t||!t.content||this.computedDisabled)}get hasCustomContent(){return!!this.controller.customContent}get showOnlyPlaceholder(){return this.focused&&this.placeholderVisible&&("s"===this.size||"m"===this.size&&!this.placeholderRaisable)}get placeholderVisible(){var t;const o=((null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.placeholder)||this.prefix||this.postfix)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!o}get hasPlaceholder(){return!this.showOnlyPlaceholder&&(this.placeholderRaisable||this.placeholderVisible)}get placeholderRaised(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get borderStart(){return this.iconLeftContent?this.iconPaddingLeft:0}get borderEnd(){return function Q$(e,n=!1,t=!1,i=!1){let o=0;return e&&(o+=1.5),n&&(o+=1.5),t&&(o+=1.5),i&&(o+=2.5),o}(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconLeft}get name(){var t;return"cc-exp"===(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.autocomplete)?"ccexpiryyear":null}get computedId(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.id)||""}onFocused(t){this.updateFocused(t)}getIndent$(t){return Bi(t,"scroll").pipe(W(()=>-1*t.scrollLeft))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(t){const{nativeFocusableElement:i}=this;!i||t.target===i||(t.preventDefault(),i.focus())}onModelChange(t){this.updateValue(t)}onAutofilled(t){this.updateAutofilled(t)}get iconPaddingLeft(){return"s"===this.size?1.5:1.75}get placeholderRaisable(){return"s"!==this.size&&!this.controller.labelOutside}updateAutofilled(t){this.autofilled!==t&&(this.autofilled=t)}updateValue(t){this.value=t,this.valueChange.emit(t)}}return e.\u0275fac=function(t){return new(t||e)(_(aa),_(K5),_(Ky),_(qy,8),_(Yy),_(fe))},e.\u0275cmp=de({type:e,selectors:[["tui-primitive-textfield"]],contentQueries:function(t,i,o){if(1&t&&Xs(o,oo,5),2&t){let r;qt(r=Yt())&&(i.content=r)}},viewQuery:function(t,i){if(1&t&&Kn(Q6,5),2&t){let o;qt(o=Yt())&&(i.focusableElement=o.first)}},hostVars:15,hostBindings:function(t,i){1&t&&ce("$.data-mode.attr",function(){return i.mode$})("focusin",function(){return i.onFocused(!0)})("focusout",function(){return i.onFocused(!1)}),2&t&&(vt("data-size",i.size),br("--border-start",i.borderStart,"rem")("--border-end",i.borderEnd,"rem"),ut("_autofilled",i.autofilled)("_label-outside",i.controller.labelOutside)("_readonly",i.readOnly)("_invalid",i.computedInvalid)("_hidden",i.inputHidden))},inputs:{editable:"editable",textfieldFiller:["filler","textfieldFiller"],iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",textfieldPrefix:["prefix","textfieldPrefix"],textfieldPostfix:["postfix","textfieldPostfix"],value:"value"},outputs:{valueChange:"valueChange"},features:[j([Vc(e),bA,Hl]),le],ngContentSelectors:p8,decls:23,vars:37,consts:[[4,"ngIf"],["tuiWrapper","","automation-id","tui-primitive-textfield__wrapper",3,"appearance","readOnly","disabled","focus","hover","active","invalid","mousedown","click.prevent.silent","tuiAutofilledChange"],["tuiMaskAccessor","","automation-id","tui-primitive-textfield__native-input",1,"t-input",3,"id","readOnly","tuiFocusable","ngModel","ngModelChange"],["focusableElement",""],["automation-id","tui-primitive-textfield__value","class","t-input t-input_template",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_left",4,"ngIf"],[1,"t-wrapper"],["automation-id","tui-primitive-textfield__placeholder","class","t-placeholder",3,"t-placeholder_raised","for",4,"ngIf"],[1,"t-wrapper-value-decoration"],["automation-id","tui-primitive-textfield__value-decoration","aria-hidden","true",1,"t-value-decoration"],["decor",""],["automation-id","tui-primitive-textfield__custom-content","class","t-custom-content",4,"ngIf"],["automation-id","tui-primitive-textfield__cleaner","class","t-cleaner",3,"click.stop",4,"ngIf"],["automation-id","tui-primitive-textfield__tooltip",3,"describeId","content","direction","appearance","showDelay","hideDelay",4,"ngIf"],["class","t-icon",4,"ngIf"],["automation-id","tui-primitive-textfield__value",1,"t-input","t-input_template"],[1,"t-icon","t-icon_left"],[3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"src"],["automation-id","tui-primitive-textfield__placeholder",1,"t-placeholder",3,"for"],["automation-id","tui-primitive-textfield__custom-content",1,"t-custom-content"],["class","t-custom-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-custom-icon",3,"src"],["automation-id","tui-primitive-textfield__cleaner",1,"t-cleaner",3,"click.stop"],["automation-id","tui-primitive-textfield__tooltip",3,"describeId","content","direction","appearance","showDelay","hideDelay"],[1,"t-icon"]],template:function(t,i){if(1&t&&(Rn(d8),I(0,X6,1,0,"ng-container",0),Rt(1,"async"),I(2,J6,1,0,"ng-container",0),Rt(3,"async"),g(4,"div",1),ce("mousedown",function(r){return i.onMouseDown(r)})("click.prevent.silent",function(){return 0})("tuiAutofilledChange",function(r){return i.onAutofilled(r)}),Rt(5,"async"),Tt(6),Tt(7,1),g(8,"input",2,3),ce("ngModelChange",function(r){return i.onModelChange(r)}),f(),I(10,e8,2,0,"div",4),g(11,"div",5),I(12,n8,2,4,"div",6),g(13,"div",7),I(14,i8,2,3,"label",8),g(15,"div",9)(16,"tui-value-decoration",10,11),Rt(18,"async"),f()()(),I(19,r8,2,1,"div",12),I(20,a8,2,4,"span",13),I(21,l8,1,6,"tui-tooltip",14),I(22,c8,2,4,"div",15),f()()),2&t){const o=Nn(9),r=Nn(17);y("ngIf",Bt(1,29,null==i.content?null:i.content.changes)),D(2),y("ngIf",Bt(3,31,null==i.hintOptions?null:i.hintOptions.change$)),D(2),br("--text-indent",Bt(5,33,r.pre$),"px"),y("appearance",i.appearance)("readOnly",i.readOnly)("disabled",i.disabled)("focus",i.computedFocused)("hover",i.pseudoHover)("active",i.pseudoActive)("invalid",i.computedInvalid),D(4),y("id",i.id)("readOnly",i.readOnly||!i.editable)("tuiFocusable",i.computedFocusable)("ngModel",i.value),vt("disabled",i.computedDisabled||null)("name",i.name)("aria-invalid",i.computedInvalid),D(2),y("ngIf",i.inputHidden),D(2),y("ngIf",i.iconLeftContent),D(2),y("ngIf",i.hasPlaceholder),D(2),br("text-indent",Bt(18,35,i.getIndent$(o)),"px"),ut("t-has-value",i.value),D(3),y("ngIf",i.hasCustomContent),D(1),y("ngIf",i.hasCleaner),D(1),y("ngIf",i.hintOptions&&i.hintOptions.content&&!i.computedDisabled),D(1),y("ngIf",i.iconContent)}},dependencies:[cs,h8,W6,un,B1,b6,Y6,wc,VG,gv,Al,oo,Qn],styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;border-radius:var(--tui-radius-m);text-align:left}[data-size=s][_nghost-%COMP%]{height:var(--tui-height-s);min-height:var(--tui-height-s);max-height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{height:var(--tui-height-m);min-height:var(--tui-height-m);max-height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{height:var(--tui-height-l);min-height:var(--tui-height-l);max-height:var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end, 0) 0 var(--border-start, 0);border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}[data-mode=onDark][_nghost-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input tui-primitive-textfield[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, tui-primitive-textfield[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, .t-input tui-text-area[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, tui-text-area[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [data-mode=onDark][_nghost-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input tui-primitive-textfield[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, tui-primitive-textfield[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, .t-input tui-text-area[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, tui-text-area[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [data-mode=onDark][_nghost-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus, .t-input tui-primitive-textfield[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, tui-primitive-textfield[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus, .t-input tui-text-area[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, tui-text-area[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[data-size=s][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=l][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], .t-input tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.125rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input.t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;padding:0 var(--tui-padding-m);box-sizing:border-box;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-s)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-content[_ngcontent-%COMP%]:after{content:"";margin-right:-.25rem}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]:after{display:none}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;padding-right:.25rem;-webkit-padding-end:.25rem;padding-inline-end:.25rem;-webkit-padding-start:0;padding-inline-start:0}.t-placeholder[_ngcontent-%COMP%]{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0)}.t-placeholder_raised[_ngcontent-%COMP%]{transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);transform:translateY(-.5rem);letter-spacing:.025rem}._invalid[_nghost-%COMP%]:not(._focused) .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill)}[data-mode=onDark]._invalid[_nghost-%COMP%]:not(._focused) .t-placeholder_raised[_ngcontent-%COMP%], [data-mode=onDark]._invalid[_nghost-%COMP%]:not(._focused):hover .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._focused[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-size=l][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.9375rem}[data-size=l][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font-size:.8156rem}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01)}[data-mode=onDark][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-size=m][data-mode=onDark]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%], [data-size=l][data-mode=onDark]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._focused[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m][data-mode=onDark]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l][data-mode=onDark]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.t-cleaner[_ngcontent-%COMP%]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);position:relative;box-sizing:border-box;cursor:pointer;transition-property:color,transform}[data-mode=onDark][_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}.t-cleaner[_ngcontent-%COMP%]:hover{color:var(--tui-text-02)}._readonly[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%], ._disabled[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%]{pointer-events:none}[data-mode=onDark][_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%]:hover{color:var(--tui-text-01-night)}.t-icon[_ngcontent-%COMP%]{display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03)}[data-mode=onDark][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}.t-icon_left[_ngcontent-%COMP%]{margin:0 .5rem 0 -.25rem;-webkit-margin-start:-.25rem;margin-inline-start:-.25rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}[data-size=s][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{margin-right:.25rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}._autofilled[_nghost-%COMP%] .t-value-decoration[_ngcontent-%COMP%]:not(.t-has-value){visibility:hidden}._autofilled[data-size=s][_nghost-%COMP%]:not(._focused) .t-placeholder[_ngcontent-%COMP%], ._autofilled[data-size=m][_nghost-%COMP%]:not(._focused) .t-placeholder[_ngcontent-%COMP%]{visibility:hidden}.t-custom-content[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;margin-right:.25rem;pointer-events:none}.t-custom-icon[_ngcontent-%COMP%]{width:2rem;height:100%}.t-icon[_ngcontent-%COMP%]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;color:var(--tui-text-03);box-sizing:border-box;cursor:pointer;transition-property:color,transform;position:relative;pointer-events:none}[data-mode=onDark][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}.t-icon[_ngcontent-%COMP%]:hover{color:var(--tui-text-02)}._readonly[_nghost-%COMP%] .t-icon[_ngcontent-%COMP%], ._disabled[_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{pointer-events:none}[data-mode=onDark][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]:hover{color:var(--tui-text-01-night)}[_nghost-%COMP%]:hover:not(._readonly) .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-02)}[data-mode=onDark][_nghost-%COMP%]:hover:not(._readonly) .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onLight][_nghost-%COMP%]:hover:not(._readonly) .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-01)}input[_ngcontent-%COMP%]::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}input[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}tui-primitive-textfield[data-mode="onDark"][_nghost-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder, tui-primitive-textfield[data-mode="onDark"] [_nghost-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder, tui-text-area[data-mode="onDark"][_nghost-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder, tui-text-area[data-mode="onDark"] [_nghost-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder{color:var(--tui-text-03-night)}tui-primitive-textfield[data-mode="onDark"][_nghost-%COMP%] input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield[data-mode="onDark"] [_nghost-%COMP%] input[_ngcontent-%COMP%]::placeholder, tui-text-area[data-mode="onDark"][_nghost-%COMP%] input[_ngcontent-%COMP%]::placeholder, tui-text-area[data-mode="onDark"] [_nghost-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03-night)}tui-primitive-textfield._focused:not(._readonly)[_nghost-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder, tui-text-area._focused:not(._readonly)[_nghost-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder{opacity:1}tui-primitive-textfield._focused:not(._readonly)[_nghost-%COMP%] input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%] input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly)[_nghost-%COMP%] input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%] input[_ngcontent-%COMP%]::placeholder{opacity:1}.t-input[_ngcontent-%COMP%]:not(:first-child){display:none}[data-size][_nghost-%COMP%] .t-input_template[_ngcontent-%COMP%]{display:flex;width:calc(100% - 1rem);max-width:calc(100% - 1rem);align-items:center;pointer-events:none;-webkit-padding-end:0;padding-inline-end:0}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input[_ngcontent-%COMP%]::-webkit-caps-lock-indicator, .t-input[_ngcontent-%COMP%]::-webkit-contacts-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credit-card-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credentials-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-text-template[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-wrapper-value-decoration[_ngcontent-%COMP%]{position:relative;pointer-events:none}'],changeDetection:0}),G([ee()],e.prototype,"editable",void 0),G([ee()],e.prototype,"textfieldFiller",void 0),G([ee()],e.prototype,"iconCleaner",void 0),G([ee()],e.prototype,"readOnly",void 0),G([ee()],e.prototype,"invalid",void 0),G([ee()],e.prototype,"disabled",void 0),G([ee()],e.prototype,"textfieldPrefix",void 0),G([ee()],e.prototype,"textfieldPostfix",void 0),G([ee()],e.prototype,"value",void 0),G([Ll],e.prototype,"getIndent$",null),e})(),_8=(()=>{class e extends I1{constructor(t){super(t),this.textfield=t}get readOnly(){return this.textfield.readOnly||!this.textfield.editable}onValueChange(t){this.textfield.onModelChange(t)}}return e.\u0275fac=function(t){return new(t||e)(_(Qy))},e.\u0275dir=V({type:e,selectors:[["tui-primitive-textfield"]],features:[j([d1(e)]),le]}),e})(),v8=(()=>{class e{constructor(t,i,o,r){this.host=t,this.controller=i,this.elementRef=o,this.idService=r,this.host.process(this.elementRef.nativeElement)}get id(){return this.elementRef.nativeElement.id||this.idService.generate()}}return e.\u0275fac=function(t){return new(t||e)(_(c1),_(Ky),_(fe),_(Ny))},e.\u0275cmp=de({type:e,selectors:[["input","tuiTextfield",""],["textarea","tuiTextfield",""]],hostAttrs:["type","text"],hostVars:6,hostBindings:function(t,i){1&t&&ce("input",function(r){return i.host.onValueChange(r.target.value)}),2&t&&(sc("tabIndex",i.host.focusable?0:-1)("readOnly",i.host.readOnly)("value",i.host.value)("id",i.id),vt("aria-invalid",i.host.invalid)("disabled",i.host.disabled||null))},features:[j([bA])],attrs:f8,decls:0,vars:0,template:function(t,i){},styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;padding:0 var(--tui-padding-m);border:solid transparent;border-width:0 var(--border-end, 0) 0 var(--border-start, 0);border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}[data-mode=onDark][_nghost-%COMP%] [_ngcontent-%COMP%]:-webkit-autofill, [_nghost-%COMP%] tui-primitive-textfield[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, tui-primitive-textfield[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%] tui-text-area[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, tui-text-area[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [data-mode=onDark][_nghost-%COMP%] [_ngcontent-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%] tui-primitive-textfield[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, tui-primitive-textfield[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%] tui-text-area[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, tui-text-area[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [data-mode=onDark][_nghost-%COMP%] [_ngcontent-%COMP%]:-webkit-autofill:focus, [_nghost-%COMP%] tui-primitive-textfield[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, tui-primitive-textfield[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus, [_nghost-%COMP%] tui-text-area[data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, tui-text-area[data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[data-size=s][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=l][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.125rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}[_nghost-%COMP%]::-ms-input-placeholder{color:var(--tui-text-03);opacity:0}[_nghost-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}[_nghost-%COMP%] tui-primitive-textfield[data-mode="onDark"][_nghost-%COMP%]::-ms-input-placeholder, tui-primitive-textfield[data-mode="onDark"] [_nghost-%COMP%]::-ms-input-placeholder, [_nghost-%COMP%] tui-text-area[data-mode="onDark"][_nghost-%COMP%]::-ms-input-placeholder, tui-text-area[data-mode="onDark"] [_nghost-%COMP%]::-ms-input-placeholder{color:var(--tui-text-03-night)}[_nghost-%COMP%] tui-primitive-textfield[data-mode="onDark"][_nghost-%COMP%]::placeholder, tui-primitive-textfield[data-mode="onDark"] [_nghost-%COMP%]::placeholder, [_nghost-%COMP%] tui-text-area[data-mode="onDark"][_nghost-%COMP%]::placeholder, tui-text-area[data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[_nghost-%COMP%] tui-primitive-textfield._focused:not(._readonly)[_nghost-%COMP%]::-ms-input-placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%]::-ms-input-placeholder, [_nghost-%COMP%] tui-text-area._focused:not(._readonly)[_nghost-%COMP%]::-ms-input-placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%]::-ms-input-placeholder{opacity:1}[_nghost-%COMP%] tui-primitive-textfield._focused:not(._readonly)[_nghost-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%]::placeholder, [_nghost-%COMP%] tui-text-area._focused:not(._readonly)[_nghost-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%]::placeholder{opacity:1}[_nghost-%COMP%]::-webkit-caps-lock-indicator, [_nghost-%COMP%]::-webkit-contacts-auto-fill-button, [_nghost-%COMP%]::-webkit-credit-card-auto-fill-button, [_nghost-%COMP%]::-webkit-credentials-auto-fill-button, [_nghost-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}textarea[_nghost-%COMP%]{white-space:normal}textarea[_nghost-%COMP%] tui-text-area._ios[_nghost-%COMP%], tui-text-area._ios [_nghost-%COMP%]{padding-left:.8125rem}'],changeDetection:0}),e})(),y8=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,Nv,ro,K6,ih,jy,ca,q6,C6]]}),e})(),D8=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=V({type:e,selectors:[["ng-template","tuiDataList",""]]}),e})();new E("[TUI_DATE_FORMAT]: Active date format for Taiga UI",{factory:()=>"DMY"}),new E("[TUI_DATE_SEPARATOR]: Date separator for Taiga UI components",{factory:()=>"."});class Tn{constructor(n){this.year=n,Ke.assert(Tn.isValidYear(n))}static isValidYear(n){return Number.isInteger(n)&&Rf(n,0,1e4)}static isLeapYear(n){return Ke.assert(Tn.isValidYear(n)),n%400==0||n%4==0&&n%100!=0}static getAbsoluteLeapYears(n){return Ke.assert(Tn.isValidYear(n)),Math.ceil(n/400)+(Math.ceil(n/4)-Math.ceil(n/100))}static lengthBetween(n,t){return t.year-n.year}static normalizeYearPart(n){return by(n,0,9999)}get formattedYear(){return String(this.year).padStart(4,"0")}get isLeapYear(){return Tn.isLeapYear(this.year)}get absoluteLeapYears(){return Tn.getAbsoluteLeapYears(this.year)}yearBefore({year:n}){return this.year=n}yearAfter({year:n}){return this.year>n}append({year:n=0}){Ke.assert(Number.isInteger(n));const t=this.year+n;return Ke.assert(Tn.isValidYear(t)),new Tn(t)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](n){return Date.prototype[Symbol.toPrimitive].call(this,n)}toJSON(){return this.formattedYear}}class dn extends Tn{constructor(n,t){super(n),this.month=t,Ke.assert(dn.isValidMonth(n,t))}static isValidMonth(n,t){return Tn.isValidYear(n)&&dn.isValidMonthPart(t)}static getMonthDaysCount(n,t){switch(Ke.assert(dn.isValidMonthPart(n)),n){case 1:return t?29:28;case 3:case 5:case 8:case 10:return 30;default:return 31}}static currentLocal(){const n=new Date;return new dn(n.getFullYear(),n.getMonth())}static currentUtc(){const n=new Date;return new dn(n.getUTCFullYear(),n.getUTCMonth())}static lengthBetween(n,t){return t.month+12*t.year-(n.month+12*n.year)}static normalizeMonthPart(n){return by(n,0,11)}static isValidMonthPart(n){return Number.isInteger(n)&&Rf(n,0,12)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return dn.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(n){return this.yearBefore(n)||this.yearSame(n)&&this.month=n.month}monthAfter(n){return this.yearAfter(n)||this.yearSame(n)&&this.month>n.month}append({year:n=0,month:t=0}){const i=12*(this.year+n)+this.month+t;return new dn(Math.floor(i/12),i%12)}toString(){return`${this.formattedMonthPart}.${this.formattedYear}`}valueOf(){return this.toLocalNativeDate().valueOf()}toJSON(){return`${super.toJSON()}-${this.formattedMonthPart}`}toLocalNativeDate(){return new Date(this.year,this.month)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month))}}class hi extends dn{constructor(n,t,i){super(n,t),this.day=i,Ke.assert(hi.isValidDay(n,t,i))}static fromLocalNativeDate(n){return new hi(n.getFullYear(),n.getMonth(),n.getDate())}static fromUtcNativeDate(n){return new hi(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())}static isValidDay(n,t,i){return dn.isValidMonth(n,t)&&Number.isInteger(i)&&Rf(i,1,dn.getMonthDaysCount(t,Tn.isLeapYear(n))+1)}static currentLocal(){const n=new Date,t=n.getFullYear(),i=n.getMonth(),o=n.getDate();return new hi(t,i,o)}static currentUtc(){const n=new Date,t=n.getUTCFullYear(),i=n.getUTCMonth(),o=n.getUTCDate();return new hi(t,i,o)}static normalizeOf(n,t,i){const o=Tn.normalizeYearPart(n),r=dn.normalizeMonthPart(t),s=hi.normalizeDayPart(i,r,o);return new hi(o,r,s)}static lengthBetween(n,t){return Math.round((t.toLocalNativeDate().getTime()-n.toLocalNativeDate().getTime())/864e5)}static parseRawDateString(n,t="DMY"){switch(Ke.assert(10===n.length,"[parseRawDateString]: wrong date string length"),t){case"YMD":return{day:parseInt(n.slice(8,10),10),month:parseInt(n.slice(5,7),10)-1,year:parseInt(n.slice(0,4),10)};case"MDY":return{day:parseInt(n.slice(3,5),10),month:parseInt(n.slice(0,2),10)-1,year:parseInt(n.slice(6,10),10)};default:return{day:parseInt(n.slice(0,2),10),month:parseInt(n.slice(3,5),10)-1,year:parseInt(n.slice(6,10),10)}}}static normalizeParse(n,t="DMY"){const{day:i,month:o,year:r}=this.parseRawDateString(n,t);return hi.normalizeOf(r,o,i)}static jsonParse(n){const{day:t,month:i,year:o}=this.parseRawDateString(n,"YMD");if(!Tn.isValidYear(o))throw new a5(o);if(!dn.isValidMonth(o,i))throw new s5(i);if(!Number.isInteger(t)||!Rf(t,1,dn.getMonthDaysCount(i,Tn.isLeapYear(o))+1))throw new r5(t);return new hi(o,i,t)}static normalizeDayPart(n,t,i){return Ke.assert(dn.isValidMonth(i,t)),by(n,1,dn.getMonthDaysCount(t,Tn.isLeapYear(i)))}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){const n=this.dayOfWeek(!1);return 6===n||0===n}dayOfWeek(n=!0){const t=n?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return t<0?6:t}dayBefore(n){return this.monthBefore(n)||this.monthSame(n)&&this.day=n.day}dayAfter(n){return this.monthAfter(n)||this.monthSame(n)&&this.day>n.day}dayLimit(n,t){return null!==n&&this.dayBefore(n)?n:null!==t&&this.dayAfter(t)?t:this}append({year:n=0,month:t=0,day:i=0}){const o=12*(this.year+n)+this.month+t;let r=Math.floor(o/12),s=o%12,a=Math.min(this.day,dn.getMonthDaysCount(s,Tn.isLeapYear(r)))+i;for(;a>dn.getMonthDaysCount(s,Tn.isLeapYear(r));)a-=dn.getMonthDaysCount(s,Tn.isLeapYear(r)),11===s?(r++,s=0):s++;for(;a<1;)0===s?(r--,s=11):s--,a+=dn.getMonthDaysCount(s,Tn.isLeapYear(r));return new hi(r,s,a)}getFormattedDay(n,t){Ke.assert(1===t.length,"Separator should consist of only 1 symbol");const i=this.formattedDayPart,o=this.formattedMonthPart,r=this.formattedYear;switch(n){case"YMD":return`${r}${t}${o}${t}${i}`;case"MDY":return`${o}${t}${i}${t}${r}`;default:return`${i}${t}${o}${t}${r}`}}toString(n="DMY",t="."){return this.getFormattedDay(n,t)}toJSON(){return`${super.toJSON()}-${this.formattedDayPart}`}toLocalNativeDate(){return new Date(this.year,this.month,this.day)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month,this.day))}}const E8=new hi(0,0,1),S8=new hi(9999,11,31);Symbol,new E("[TUI_CALENDAR_DATE_STREAM]: Stream that emits calendar data change"),new E("[TUI_DATE_VALUE_TRANSFORMER]: Control value transformer of TuiDay to custom value format for InputDate* components"),new E("[TUI_DATE_RANGE_VALUE_TRANSFORMER]: Control value transformer for InputDateRange component"),new E("[TUI_DATE_TIME_VALUE_TRANSFORMER]: Control value transformer for InputDateTime component"),new E("[TUI_CANCEL_WORD]: i18n 'cancel' word",{factory:Mt("cancel")}),new E("[TUI_DONE_WORD]: i18n 'done' word",{factory:Mt("done")}),new E("[TUI_MORE_WORD]: i18n 'more' word",{factory:Mt("more")}),new E("[TUI_HIDE_TEXT]: i18n 'hide' word",{factory:Mt("hide")}),new E("[TUI_SHOW_ALL_TEXT]: i18n 'show all' word",{factory:Mt("showAll")}),new E("[TUI_OTHER_DATE_TEXT]: i18n 'Other date' text",{factory:Mt("otherDate")}),new E("[TUI_CHOOSE_DAY_OR_RANGE_TEXTS]: choose day or range i18n texts",{factory:Mt("mobileCalendarTexts")}),new E("[TUI_FROM_TO_TEXTS]: from and to i18n texts",{factory:Mt("range")}),new E("[TUI_PLUS_MINUS_TEXTS]: plus and minus i18n texts",{factory:Mt("countTexts")}),new E("[TUI_TIME_TEXTS]: time i18n texts",{factory:Mt("time")}),new E("[TUI_DATE_TEXTS]: date format i18n texts",{factory:Mt("dateTexts")}),new E("[TUI_DIGITAL_INFORMATION_UNITS]: short bytes, kilobytes and megabytes i18n texts",{factory:Mt("digitalInformationUnits")}),new E("[TUI_COPY_TEXTS]: copy i18n texts",{factory:Mt("copyTexts")}),new E("[TUI_PASSWORD_TEXTS]: password i18n texts",{factory:Mt("passwordTexts")}),new E("[TUI_CALENDAR_MONTHS]: short calendar months i18n",{factory:Mt("shortCalendarMonths")}),new E("[TUI_FILE_TEXTS]: file i18n texts",{factory:Mt("fileTexts")}),new E("[TUI_PAGINATION_TEXTS]: pagination i18n texts",{factory:Mt("pagination")}),new E("[TUI_INPUT_FILE_TEXTS]: tui-input-file i18n texts",{factory:Mt("inputFileTexts")}),new E("[TUI_MULTI_SELECT_TEXTS]: tui-multi-select i18n texts",{factory:Mt("multiSelectTexts")}),new E("[TUI_COUNTRIES]: Localized countries names",{factory:Mt("countries")});const wA={icon:({$implicit:e})=>"s"===e?"tuiIconCalendar":"tuiIconCalendarLarge",min:E8,max:S8},MA=(new E("[TUI_INPUT_DATE_OPTIONS]: Default parameters for date input component",{factory:()=>wA}),{stringify:e=>String(e),identityMatcher:(e,n)=>e===n||function $$(e,n){return Array.isArray(e)&&Array.isArray(n)&&!e.length&&!n.length}(e,n),disabledItemHandler:()=>!1}),x8=(new E("[TUI_ITEMS_HANDLERS]: Default items handlers for components",{factory:()=>MA}),new E("[TUI_MOBILE_CALENDAR]: A component for mobile data picker"),new E("[TUI_MONTH_FORMATTER]: A function to get localized formatted month"),new E("[TUI_TAB_MARGIN]: Margin between tabs",{factory:()=>24}),new E("[TUI_VALIDATION_ERRORS]: Validation errors",{factory:()=>({})}),e={limitWidth:"fixed",align:"right"},{provide:fa,deps:[[new gr,o6],[new Us,fa]],useFactory:function t5(e){return(n,t)=>{const i=n||Object.assign({},t);return Object.keys(e).forEach(o=>{i[o]=e[o]}),i}}(e)}),N8={provide:p1,deps:[[new gr,new qg,eo]],useFactory:Lt},R8=["*",[["input"]]],F8=["*","input"];var e;let k8=(()=>{class e extends Fy{constructor(t,i){super(t,i),this.datalist="",this.open=!1}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){return Fl(this.nativeFocusableElement)||!!this.hostedDropdown&&this.hostedDropdown.focused}get canOpen(){return this.interactive&&!!this.datalist}onValueChange(t){this.updateValue(t),this.open=!0}onActiveZone(t){this.updateFocused(t)}handleOption(t){this.setNativeValue(String(t)),this.focusInput(),this.updateValue(String(t)),this.open=!1}getFallbackValue(){return""}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}setNativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}}return e.\u0275fac=function(t){return new(t||e)(_(Er,10),_(Zn))},e.\u0275cmp=de({type:e,selectors:[["tui-input"]],contentQueries:function(t,i,o){if(1&t&&Xs(o,D8,5,Fn),2&t){let r;qt(r=Yt())&&(i.datalist=r.first)}},viewQuery:function(t,i){if(1&t&&(Kn(lA,5),Kn(Qy,5)),2&t){let o;qt(o=Yt())&&(i.hostedDropdown=o.first),qt(o=Yt())&&(i.textfield=o.first)}},features:[j([N8,Vc(e),L5(e),uz(e)],[x8]),le],ngContentSelectors:F8,decls:4,vars:11,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["automation-id","tui-input__textfield",1,"t-textfield",3,"pseudoFocus","pseudoHover","invalid","nativeId","readOnly","disabled","focusable","value","valueChange"]],template:function(t,i){1&t&&(Rn(R8),g(0,"tui-hosted-dropdown",0),ce("openChange",function(r){return i.open=r})("tuiActiveZoneChange",function(r){return i.onActiveZone(r)}),g(1,"tui-primitive-textfield",1),ce("valueChange",function(r){return i.onValueChange(r)}),Tt(2),Tt(3,1,["ngProjectAs","input",5,["input"]]),f()()),2&t&&(y("canOpen",i.canOpen)("content",i.datalist||"")("open",i.open),D(1),y("pseudoFocus",i.computedFocused)("pseudoHover",i.pseudoHover)("invalid",i.computedInvalid)("nativeId",i.nativeId)("readOnly",i.readOnly)("disabled",i.computedDisabled)("focusable",i.computedFocusable)("value",i.value))},dependencies:[lA,Qy,da,_8],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0}),e})(),L8=(()=>{class e extends I1{onValueChange(t){this.host.onValueChange(t)}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275dir=V({type:e,selectors:[["tui-input"]],features:[j([d1(e)]),le]}),e})(),V8=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,th,y8,v6]]}),e})(),H8=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();const EA={size:"m",appearances:{unchecked:"outline",checked:"primary"}};new E("[TUI_RADIO_OPTIONS]: Default parameters for radio component",{factory:()=>EA});let U8=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,H8,ih,Gy,oA,jy]]}),e})(),j8=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[[mt,Nv,ih,Gy,U8]]}),e})();var $8=It(735),z8=It.n($8);const G8=new E("Config for DOMPurify",{factory:()=>({}),providedIn:"root"}),W8=new E("Hooks for DOMPurify",{factory:()=>[],providedIn:"root"}),q8=new E("A function that sanitizes value for a CSS rule",{factory:()=>e=>e,providedIn:"root"}),Y8=z8();let SA=(()=>{class e{constructor(t,i,{defaultView:o},r){this.config=t,this.sanitizeStyle=i,this.domPurify=Y8(o),r.forEach(({name:s,hook:a})=>{this.domPurify.addHook(s,a)})}sanitize(t,i,o=this.config){if(t===st.SCRIPT)throw new Error("DOMPurify does not support SCRIPT context");return t===st.STYLE?this.sanitizeStyle(String(i)):this.domPurify.sanitize(String(i||""),o)}}return e.\u0275fac=function(t){return new(t||e)(L(G8),L(q8),L(Ye),L(W8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Qo(e,n){const t=Be(e)?e:()=>e,i=o=>o.error(t());return new Ce(n?o=>n.schedule(i,0,o):i)}const{isArray:K8}=Array;const jc={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=jc;i&&(n=i.requestAnimationFrame,t=i.cancelAnimationFrame);const o=n(r=>{t=void 0,e(r)});return new Bn(()=>null==t?void 0:t(o))},requestAnimationFrame(...e){const{delegate:n}=jc;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=jc;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame)(...e)},delegate:void 0},ib=new class J8 extends KO{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw o}}}(class X8 extends YO{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=jc.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:r}=n;null!=t&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==t&&(jc.cancelAnimationFrame(t),n._scheduled=void 0)}}),uh=new E("HIGHLIGHT_OPTIONS");let ob;let OA=(()=>{class e{constructor(t,i,o){var r;this.doc=t,this._options=o,this._ready=new cn(null),this.ready=this._ready.asObservable().pipe(At(s=>!!s),W(s=>s),Ui(1)),bE(i)&&(t.defaultView.hljs?this._ready.next(t.defaultView.hljs):this._loadLibrary().pipe(Ot(s=>this._options&&this._options.lineNumbersLoader?(t.defaultView.hljs=s,this.loadLineNumbers().pipe(Et(()=>this._ready.next(s)))):(this._ready.next(s),xt)),Ro(s=>(console.error("[HLJS] ",s),xt))).subscribe(),null!==(r=this._options)&&void 0!==r&&r.themePath&&this.loadTheme(this._options.themePath))}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return Qo(()=>"The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return Qo(()=>"The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return Qo(()=>"The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return Qo(()=>"The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe(Ot(t=>this._loadLanguages(t)))}return Qo(()=>"Highlight.js library was not imported!")}_loadLanguages(t){return function Q8(...e){const n=St(e),t=function Z8(e){return 1===e.length&&K8(e[0])?e[0]:e}(e);return t.length?new Ce(i=>{let o=t.map(()=>[]),r=t.map(()=>!1);i.add(()=>{o=r=null});for(let s=0;!i.closed&&s{if(o[s].push(a),o.every(l=>l.length)){const l=o.map(u=>u.shift());i.next(n?n(...l):l),o.some((u,c)=>!u.length&&r[c])&&i.complete()}},()=>{r[s]=!0,!o[s].length&&i.complete()}));return()=>{o=r=null}}):xt}(...Object.entries(this._options.languages).map(([o,r])=>ch(r()).pipe(Et(s=>t.registerLanguage(o,s))))).pipe(W(()=>t))}loadCoreLibrary(){return ch(this._options.coreLibraryLoader())}loadFullLibrary(){return ch(this._options.fullLibraryLoader())}loadLineNumbers(){return ch(this._options.lineNumbersLoader())}setTheme(t){this._themeLinkElement.href=t}loadTheme(t){this._themeLinkElement=this.doc.createElement("link"),this._themeLinkElement.href=t,this._themeLinkElement.type="text/css",this._themeLinkElement.rel="stylesheet",this._themeLinkElement.media="screen,print",this.doc.head.appendChild(this._themeLinkElement)}}return e.\u0275fac=function(t){return new(t||e)(L(Ye),L(es),L(uh,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const ch=e=>bt(e).pipe(At(n=>!!n&&!!n.default),W(n=>n.default));let nW=(()=>{class e{constructor(t,i){this._loader=t,this._hljs=null,t.ready.subscribe(o=>{this._hljs=o,i&&i.config&&(o.configure(i.config),o.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}get hljs(){return this._hljs}highlight(t,{language:i,ignoreIllegals:o}){return this._loader.ready.pipe(W(r=>r.highlight(t,{language:i,ignoreIllegals:o})))}highlightAuto(t,i){return this._loader.ready.pipe(W(o=>o.highlightAuto(t,i)))}highlightElement(t){return this._loader.ready.pipe(W(i=>i.highlightElement(t)))}highlightAll(){return this._loader.ready.pipe(W(t=>t.highlightAll()))}configure(t){return this._loader.ready.pipe(W(i=>i.configure(t)))}registerLanguage(t,i){return this._loader.ready.pipe(Et(o=>o.registerLanguage(t,i)))}unregisterLanguage(t){return this._loader.ready.pipe(Et(i=>i.unregisterLanguage(t)))}registerAliases(t,{languageName:i}){return this._loader.ready.pipe(Et(o=>o.registerAliases(t,{languageName:i})))}listLanguages(){return this._loader.ready.pipe(W(t=>t.listLanguages()))}getLanguage(t){return this._loader.ready.pipe(W(i=>i.getLanguage(t)))}safeMode(){return this._loader.ready.pipe(W(t=>t.safeMode()))}debugMode(){return this._loader.ready.pipe(W(t=>t.debugMode()))}lineNumbersBlock(t){return this._loader.ready.pipe(At(i=>!!i.lineNumbersBlock),Et(i=>i.lineNumbersBlock(t)))}}return e.\u0275fac=function(t){return new(t||e)(L(OA),L(uh,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),iW=(()=>{class e{constructor(t,i,o,r){this._hljs=i,this._sanitizer=o,this._options=r,this.highlighted=new dt,this._nativeElement=t.nativeElement}ngOnChanges(t){var i;null!==(null===(i=null==t?void 0:t.code)||void 0===i?void 0:i.currentValue)&&t.code.currentValue!==t.code.previousValue&&(this.code?this.highlightElement(this.code,this.languages):this.setTextContent(""))}highlightElement(t,i){this.setTextContent(t),this._hljs.highlightAuto(t,i).subscribe(o=>{this.setInnerHTML(null==o?void 0:o.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(o)})}addLineNumbers(){this.destroyLineNumbersObserver(),ib.schedule(()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver(()=>{this._nativeElement.firstElementChild&&"TABLE"===this._nativeElement.firstElementChild.tagName.toUpperCase()&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()}),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})})}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(t){ib.schedule(()=>this._nativeElement.textContent=t)}setInnerHTML(t){ib.schedule(()=>this._nativeElement.innerHTML=function tW(e){var n;return(null===(n=function eW(){var e;if(!ob)try{ob=null===(e=null==window?void 0:window.trustedTypes)||void 0===e?void 0:e.createPolicy("ngx-highlightjs",{createHTML:n=>n})}catch(n){}return ob}())||void 0===n?void 0:n.createHTML(e))||e}(this._sanitizer.sanitize(st.HTML,t)||""))}}return e.\u0275fac=function(t){return new(t||e)(_(fe),_(nW),_(sf),_(uh,8))},e.\u0275dir=V({type:e,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(t,i){2&t&&ut("hljs",!0)},inputs:{code:["highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},features:[mn]}),e})(),oW=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({}),e})();function so(e){if(null==e)return window;if("[object Window]"!==e.toString()){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function ha(e){return e instanceof so(e).Element||e instanceof Element}function ao(e){return e instanceof so(e).HTMLElement||e instanceof HTMLElement}function rb(e){return"undefined"!=typeof ShadowRoot&&(e instanceof so(e).ShadowRoot||e instanceof ShadowRoot)}var ga=Math.max,dh=Math.min,zl=Math.round;function sb(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function AA(){return!/^((?!chrome|android).)*safari/i.test(sb())}function Gl(e,n,t){void 0===n&&(n=!1),void 0===t&&(t=!1);var i=e.getBoundingClientRect(),o=1,r=1;n&&ao(e)&&(o=e.offsetWidth>0&&zl(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&zl(i.height)/e.offsetHeight||1);var a=(ha(e)?so(e):window).visualViewport,l=!AA()&&t,u=(i.left+(l&&a?a.offsetLeft:0))/o,c=(i.top+(l&&a?a.offsetTop:0))/r,d=i.width/o,p=i.height/r;return{width:d,height:p,top:c,right:u+d,bottom:c+p,left:u,x:u,y:c}}function ab(e){var n=so(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Xo(e){return e?(e.nodeName||"").toLowerCase():null}function _s(e){return((ha(e)?e.ownerDocument:e.document)||window.document).documentElement}function lb(e){return Gl(_s(e)).left+ab(e).scrollLeft}function xr(e){return so(e).getComputedStyle(e)}function ub(e){var n=xr(e);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function lW(e,n,t){void 0===t&&(t=!1);var i=ao(n),o=ao(n)&&function aW(e){var n=e.getBoundingClientRect(),t=zl(n.width)/e.offsetWidth||1,i=zl(n.height)/e.offsetHeight||1;return 1!==t||1!==i}(n),r=_s(n),s=Gl(e,o,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&(("body"!==Xo(n)||ub(r))&&(a=function sW(e){return e!==so(e)&&ao(e)?function rW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):ab(e)}(n)),ao(n)?((l=Gl(n,!0)).x+=n.clientLeft,l.y+=n.clientTop):r&&(l.x=lb(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function cb(e){var n=Gl(e),t=e.offsetWidth,i=e.offsetHeight;return Math.abs(n.width-t)<=1&&(t=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:i}}function ph(e){return"html"===Xo(e)?e:e.assignedSlot||e.parentNode||(rb(e)?e.host:null)||_s(e)}function IA(e){return["html","body","#document"].indexOf(Xo(e))>=0?e.ownerDocument.body:ao(e)&&ub(e)?e:IA(ph(e))}function $c(e,n){var t;void 0===n&&(n=[]);var i=IA(e),o=i===(null==(t=e.ownerDocument)?void 0:t.body),r=so(i),s=o?[r].concat(r.visualViewport||[],ub(i)?i:[]):i,a=n.concat(s);return o?a:a.concat($c(ph(s)))}function uW(e){return["table","td","th"].indexOf(Xo(e))>=0}function PA(e){return ao(e)&&"fixed"!==xr(e).position?e.offsetParent:null}function zc(e){for(var n=so(e),t=PA(e);t&&uW(t)&&"static"===xr(t).position;)t=PA(t);return t&&("html"===Xo(t)||"body"===Xo(t)&&"static"===xr(t).position)?n:t||function cW(e){var n=/firefox/i.test(sb());if(/Trident/i.test(sb())&&ao(e)&&"fixed"===xr(e).position)return null;var o=ph(e);for(rb(o)&&(o=o.host);ao(o)&&["html","body"].indexOf(Xo(o))<0;){var r=xr(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(e)||n}var Di="top",lo="bottom",uo="right",Ti="left",db="auto",Gc=[Di,lo,uo,Ti],Wl="start",Wc="end",xA="viewport",qc="popper",NA=Gc.reduce(function(e,n){return e.concat([n+"-"+Wl,n+"-"+Wc])},[]),RA=[].concat(Gc,[db]).reduce(function(e,n){return e.concat([n,n+"-"+Wl,n+"-"+Wc])},[]),DW=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function TW(e){var n=new Map,t=new Set,i=[];function o(r){t.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(a){if(!t.has(a)){var l=n.get(a);l&&o(l)}}),i.push(r)}return e.forEach(function(r){n.set(r.name,r)}),e.forEach(function(r){t.has(r.name)||o(r)}),i}function MW(e){var n;return function(){return n||(n=new Promise(function(t){Promise.resolve().then(function(){n=void 0,t(e())})})),n}}var FA={placement:"bottom",modifiers:[],strategy:"absolute"};function kA(){for(var e=arguments.length,n=new Array(e),t=0;t=0?"x":"y"}function LA(e){var l,n=e.reference,t=e.element,i=e.placement,o=i?Jo(i):null,r=i?ql(i):null,s=n.x+n.width/2-t.width/2,a=n.y+n.height/2-t.height/2;switch(o){case Di:l={x:s,y:n.y-t.height};break;case lo:l={x:s,y:n.y+n.height};break;case uo:l={x:n.x+n.width,y:a};break;case Ti:l={x:n.x-t.width,y:a};break;default:l={x:n.x,y:n.y}}var u=o?pb(o):null;if(null!=u){var c="y"===u?"height":"width";switch(r){case Wl:l[u]=l[u]-(n[c]/2-t[c]/2);break;case Wc:l[u]=l[u]+(n[c]/2-t[c]/2)}}return l}const PW={name:"popperOffsets",enabled:!0,phase:"read",fn:function IW(e){var n=e.state;n.modifiersData[e.name]=LA({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}};var xW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VA(e){var n,t=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=s.x,h=void 0===p?0:p,v=s.y,C=void 0===v?0:v,M="function"==typeof c?c({x:h,y:C}):{x:h,y:C};h=M.x,C=M.y;var T=s.hasOwnProperty("x"),A=s.hasOwnProperty("y"),S=Ti,b=Di,R=window;if(u){var x=zc(t),ae="clientHeight",me="clientWidth";x===so(t)&&"static"!==xr(x=_s(t)).position&&"absolute"===a&&(ae="scrollHeight",me="scrollWidth"),(o===Di||(o===Ti||o===uo)&&r===Wc)&&(b=lo,C-=(d&&x===R&&R.visualViewport?R.visualViewport.height:x[ae])-i.height,C*=l?1:-1),o!==Ti&&(o!==Di&&o!==lo||r!==Wc)||(S=uo,h-=(d&&x===R&&R.visualViewport?R.visualViewport.width:x[me])-i.width,h*=l?1:-1)}var qe,$e=Object.assign({position:a},u&&xW),Ze=!0===c?function NW(e){var t=e.y,o=window.devicePixelRatio||1;return{x:zl(e.x*o)/o||0,y:zl(t*o)/o||0}}({x:h,y:C}):{x:h,y:C};return h=Ze.x,C=Ze.y,Object.assign({},$e,l?((qe={})[b]=A?"0":"",qe[S]=T?"0":"",qe.transform=(R.devicePixelRatio||1)<=1?"translate("+h+"px, "+C+"px)":"translate3d("+h+"px, "+C+"px, 0)",qe):((n={})[b]=A?C+"px":"",n[S]=T?h+"px":"",n.transform="",n))}const FW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function RW(e){var n=e.state,t=e.options,i=t.gpuAcceleration,o=void 0===i||i,r=t.adaptive,s=void 0===r||r,a=t.roundOffsets,l=void 0===a||a,c={placement:Jo(n.placement),variation:ql(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,VA(Object.assign({},c,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:s,roundOffsets:l})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,VA(Object.assign({},c,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},HA={name:"applyStyles",enabled:!0,phase:"write",fn:function kW(e){var n=e.state;Object.keys(n.elements).forEach(function(t){var i=n.styles[t]||{},o=n.attributes[t]||{},r=n.elements[t];!ao(r)||!Xo(r)||(Object.assign(r.style,i),Object.keys(o).forEach(function(s){var a=o[s];!1===a?r.removeAttribute(s):r.setAttribute(s,!0===a?"":a)}))})},effect:function LW(e){var n=e.state,t={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,t.popper),n.styles=t,n.elements.arrow&&Object.assign(n.elements.arrow.style,t.arrow),function(){Object.keys(n.elements).forEach(function(i){var o=n.elements[i],r=n.attributes[i]||{},a=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:t[i]).reduce(function(l,u){return l[u]="",l},{});!ao(o)||!Xo(o)||(Object.assign(o.style,a),Object.keys(r).forEach(function(l){o.removeAttribute(l)}))})}},requires:["computeStyles"]},BW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function HW(e){var n=e.state,i=e.name,o=e.options.offset,r=void 0===o?[0,0]:o,s=RA.reduce(function(c,d){return c[d]=function VW(e,n,t){var i=Jo(e),o=[Ti,Di].indexOf(i)>=0?-1:1,r="function"==typeof t?t(Object.assign({},n,{placement:e})):t,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Ti,uo].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,n.rects,r),c},{}),a=s[n.placement],u=a.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=a.x,n.modifiersData.popperOffsets.y+=u),n.modifiersData[i]=s}};var UW={left:"right",right:"left",bottom:"top",top:"bottom"};function hh(e){return e.replace(/left|right|bottom|top/g,function(n){return UW[n]})}var jW={start:"end",end:"start"};function BA(e){return e.replace(/start|end/g,function(n){return jW[n]})}function UA(e,n){var t=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(t&&rb(t)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function fb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jA(e,n,t){return n===xA?fb(function $W(e,n){var t=so(e),i=_s(e),o=t.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var u=AA();(u||!u&&"fixed"===n)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+lb(e),y:l}}(e,t)):ha(n)?function GW(e,n){var t=Gl(e,!1,"fixed"===n);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(n,t):fb(function zW(e){var n,t=_s(e),i=ab(e),o=null==(n=e.ownerDocument)?void 0:n.body,r=ga(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ga(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+lb(e),l=-i.scrollTop;return"rtl"===xr(o||t).direction&&(a+=ga(t.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(_s(e)))}function zA(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function GA(e,n){return n.reduce(function(t,i){return t[i]=e,t},{})}function Yc(e,n){void 0===n&&(n={});var i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,s=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,u=n.rootBoundary,c=void 0===u?xA:u,d=n.elementContext,p=void 0===d?qc:d,h=n.altBoundary,v=void 0!==h&&h,C=n.padding,M=void 0===C?0:C,T=zA("number"!=typeof M?M:GA(M,Gc)),S=e.rects.popper,b=e.elements[v?p===qc?"reference":qc:p],R=function qW(e,n,t,i){var o="clippingParents"===n?function WW(e){var n=$c(ph(e)),i=["absolute","fixed"].indexOf(xr(e).position)>=0&&ao(e)?zc(e):e;return ha(i)?n.filter(function(o){return ha(o)&&UA(o,i)&&"body"!==Xo(o)}):[]}(e):[].concat(n),r=[].concat(o,[t]),a=r.reduce(function(l,u){var c=jA(e,u,i);return l.top=ga(c.top,l.top),l.right=dh(c.right,l.right),l.bottom=dh(c.bottom,l.bottom),l.left=ga(c.left,l.left),l},jA(e,r[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(ha(b)?b:b.contextElement||_s(e.elements.popper),l,c,s),x=Gl(e.elements.reference),ae=LA({reference:x,element:S,strategy:"absolute",placement:o}),me=fb(Object.assign({},S,ae)),je=p===qc?me:x,Pe={top:R.top-je.top+T.top,bottom:je.bottom-R.bottom+T.bottom,left:R.left-je.left+T.left,right:je.right-R.right+T.right},$e=e.modifiersData.offset;if(p===qc&&$e){var Ze=$e[o];Object.keys(Pe).forEach(function(qe){var yt=[uo,lo].indexOf(qe)>=0?1:-1,pn=[Di,lo].indexOf(qe)>=0?"y":"x";Pe[qe]+=Ze[pn]*yt})}return Pe}const QW={name:"flip",enabled:!0,phase:"main",fn:function ZW(e){var n=e.state,t=e.options,i=e.name;if(!n.modifiersData[i]._skip){for(var o=t.mainAxis,r=void 0===o||o,s=t.altAxis,a=void 0===s||s,l=t.fallbackPlacements,u=t.padding,c=t.boundary,d=t.rootBoundary,p=t.altBoundary,h=t.flipVariations,v=void 0===h||h,C=t.allowedAutoPlacements,M=n.options.placement,T=Jo(M),S=l||(T!==M&&v?function KW(e){if(Jo(e)===db)return[];var n=hh(e);return[BA(e),n,BA(n)]}(M):[hh(M)]),b=[M].concat(S).reduce(function(it,Mi){return it.concat(Jo(Mi)===db?function YW(e,n){void 0===n&&(n={});var o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?RA:l,c=ql(n.placement),d=c?a?NA:NA.filter(function(v){return ql(v)===c}):Gc,p=d.filter(function(v){return u.indexOf(v)>=0});0===p.length&&(p=d);var h=p.reduce(function(v,C){return v[C]=Yc(e,{placement:C,boundary:o,rootBoundary:r,padding:s})[Jo(C)],v},{});return Object.keys(h).sort(function(v,C){return h[v]-h[C]})}(n,{placement:Mi,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:C}):Mi)},[]),R=n.rects.reference,x=n.rects.popper,ae=new Map,me=!0,je=b[0],Pe=0;Pe=0,pn=yt?"width":"height",z=Yc(n,{placement:$e,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),X=yt?qe?uo:Ti:qe?lo:Di;R[pn]>x[pn]&&(X=hh(X));var te=hh(X),be=[];if(r&&be.push(z[Ze]<=0),a&&be.push(z[X]<=0,z[te]<=0),be.every(function(it){return it})){je=$e,me=!1;break}ae.set($e,be)}if(me)for(var On=function(Mi){var Fo=b.find(function($t){var Hn=ae.get($t);if(Hn)return Hn.slice(0,Mi).every(function(wn){return wn})});if(Fo)return je=Fo,"break"},kt=v?3:1;kt>0&&"break"!==On(kt);kt--);n.placement!==je&&(n.modifiersData[i]._skip=!0,n.placement=je,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Kc(e,n,t){return ga(e,dh(n,t))}const t7={name:"preventOverflow",enabled:!0,phase:"main",fn:function e7(e){var n=e.state,t=e.options,i=e.name,o=t.mainAxis,r=void 0===o||o,s=t.altAxis,a=void 0!==s&&s,p=t.tether,h=void 0===p||p,v=t.tetherOffset,C=void 0===v?0:v,M=Yc(n,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),T=Jo(n.placement),A=ql(n.placement),S=!A,b=pb(T),R=function XW(e){return"x"===e?"y":"x"}(b),x=n.modifiersData.popperOffsets,ae=n.rects.reference,me=n.rects.popper,je="function"==typeof C?C(Object.assign({},n.rects,{placement:n.placement})):C,Pe="number"==typeof je?{mainAxis:je,altAxis:je}:Object.assign({mainAxis:0,altAxis:0},je),$e=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,Ze={x:0,y:0};if(x){if(r){var qe,yt="y"===b?Di:Ti,pn="y"===b?lo:uo,z="y"===b?"height":"width",X=x[b],te=X+M[yt],be=X-M[pn],nt=h?-me[z]/2:0,On=A===Wl?ae[z]:me[z],kt=A===Wl?-me[z]:-ae[z],ni=n.elements.arrow,it=h&&ni?cb(ni):{width:0,height:0},Mi=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Fo=Mi[yt],$t=Mi[pn],Hn=Kc(0,ae[z],it[z]),wn=S?ae[z]/2-nt-Hn-Fo-Pe.mainAxis:On-Hn-Fo-Pe.mainAxis,$i=S?-ae[z]/2+nt+Hn+$t+Pe.mainAxis:kt+Hn+$t+Pe.mainAxis,nr=n.elements.arrow&&zc(n.elements.arrow),dd=null!=(qe=null==$e?void 0:$e[b])?qe:0,zh=X+$i-dd,pd=Kc(h?dh(te,X+wn-dd-(nr?"y"===b?nr.clientTop||0:nr.clientLeft||0:0)):te,X,h?ga(be,zh):be);x[b]=pd,Ze[b]=pd-X}if(a){var fd,Hr=x[R],Ms="y"===R?"height":"width",hd=Hr+M["x"===b?Di:Ti],Da=Hr-M["x"===b?lo:uo],gd=-1!==[Di,Ti].indexOf(T),qh=null!=(fd=null==$e?void 0:$e[R])?fd:0,Yh=gd?hd:Hr-ae[Ms]-me[Ms]-qh+Pe.altAxis,Kh=gd?Hr+ae[Ms]+me[Ms]-qh-Pe.altAxis:Da,Zh=h&&gd?function JW(e,n,t){var i=Kc(e,n,t);return i>t?t:i}(Yh,Hr,Kh):Kc(h?Yh:hd,Hr,h?Kh:Da);x[R]=Zh,Ze[R]=Zh-Hr}n.modifiersData[i]=Ze}},requiresIfExists:["offset"]},r7={name:"arrow",enabled:!0,phase:"main",fn:function i7(e){var n,t=e.state,i=e.name,o=e.options,r=t.elements.arrow,s=t.modifiersData.popperOffsets,a=Jo(t.placement),l=pb(a),c=[Ti,uo].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(n,t){return zA("number"!=typeof(n="function"==typeof n?n(Object.assign({},t.rects,{placement:t.placement})):n)?n:GA(n,Gc))}(o.padding,t),p=cb(r),h="y"===l?Di:Ti,v="y"===l?lo:uo,C=t.rects.reference[c]+t.rects.reference[l]-s[l]-t.rects.popper[c],M=s[l]-t.rects.reference[l],T=zc(r),A=T?"y"===l?T.clientHeight||0:T.clientWidth||0:0,x=A/2-p[c]/2+(C/2-M/2),ae=Kc(d[h],x,A-p[c]-d[v]);t.modifiersData[i]=((n={})[l]=ae,n.centerOffset=ae-x,n)}},effect:function o7(e){var n=e.state,i=e.options.element,o=void 0===i?"[data-popper-arrow]":i;null!=o&&("string"==typeof o&&!(o=n.elements.popper.querySelector(o))||!UA(n.elements.popper,o)||(n.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function WA(e,n,t){return void 0===t&&(t={x:0,y:0}),{top:e.top-n.height-t.y,right:e.right-n.width+t.x,bottom:e.bottom-n.height+t.y,left:e.left-n.width-t.x}}function qA(e){return[Di,uo,lo,Ti].some(function(n){return e[n]>=0})}var a7=[AW,PW,FW,HA,BW,QW,t7,r7,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function s7(e){var n=e.state,t=e.name,i=n.rects.reference,o=n.rects.popper,r=n.modifiersData.preventOverflow,s=Yc(n,{elementContext:"reference"}),a=Yc(n,{altBoundary:!0}),l=WA(s,i),u=WA(a,o,r),c=qA(l),d=qA(u);n.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}],l7=SW({defaultModifiers:a7}),YA="tippy-content",ZA="tippy-arrow",QA="tippy-svg-arrow",vs={passive:!0,capture:!0},XA=function(){return document.body};function hb(e,n,t){if(Array.isArray(e)){var i=e[n];return null==i?Array.isArray(t)?t[n]:t:i}return e}function gb(e,n){var t={}.toString.call(e);return 0===t.indexOf("[object")&&t.indexOf(n+"]")>-1}function JA(e,n){return"function"==typeof e?e.apply(void 0,n):e}function eI(e,n){return 0===n?e:function(i){clearTimeout(t),t=setTimeout(function(){e(i)},n)};var t}function ys(e){return[].concat(e)}function tI(e,n){-1===e.indexOf(n)&&e.push(n)}function Yl(e){return[].slice.call(e)}function iI(e){return Object.keys(e).reduce(function(n,t){return void 0!==e[t]&&(n[t]=e[t]),n},{})}function ma(){return document.createElement("div")}function gh(e){return["Element","Fragment"].some(function(n){return gb(e,n)})}function _b(e){return gb(e,"MouseEvent")}function oI(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function vb(e,n){e.forEach(function(t){t&&(t.style.transitionDuration=n+"ms")})}function Zc(e,n){e.forEach(function(t){t&&t.setAttribute("data-state",n)})}function rI(e){var n,i=ys(e)[0];return null!=i&&null!=(n=i.ownerDocument)&&n.body?i.ownerDocument:document}function yb(e,n,t){var i=n+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[i](o,t)})}function sI(e,n){for(var t=n;t;){var i;if(e.contains(t))return!0;t=null==t.getRootNode||null==(i=t.getRootNode())?void 0:i.host}return!1}var er={isTouch:!1},aI=0;function m7(){er.isTouch||(er.isTouch=!0,window.performance&&document.addEventListener("mousemove",lI))}function lI(){var e=performance.now();e-aI<20&&(er.isTouch=!1,document.removeEventListener("mousemove",lI)),aI=e}function _7(){var e=document.activeElement;oI(e)&&e.blur&&!e._tippy.state.isVisible&&e.blur()}var b7=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),wi=Object.assign({appendTo:XA,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),w7=Object.keys(wi);function fI(e){var t=(e.plugins||[]).reduce(function(i,o){var a,r=o.name;return r&&(i[r]=void 0!==e[r]?e[r]:null!=(a=wi[r])?a:o.defaultValue),i},{});return Object.assign({},e,t)}function hI(e,n){var t=Object.assign({},n,{content:JA(n.content,[e])},n.ignoreAttributes?{}:function E7(e,n){return(n?Object.keys(fI(Object.assign({},wi,{plugins:n}))):w7).reduce(function(o,r){var s=(e.getAttribute("data-tippy-"+r)||"").trim();if(!s)return o;if("content"===r)o[r]=s;else try{o[r]=JSON.parse(s)}catch(a){o[r]=s}return o},{})}(e,n.plugins));return t.aria=Object.assign({},wi.aria,t.aria),t.aria={expanded:"auto"===t.aria.expanded?n.interactive:t.aria.expanded,content:"auto"===t.aria.content?n.interactive?null:"describedby":t.aria.content},t}function bb(e,n){e.innerHTML=n}function gI(e){var n=ma();return!0===e?n.className=ZA:(n.className=QA,gh(e)?n.appendChild(e):bb(n,e)),n}function mI(e,n){gh(n.content)?(bb(e,""),e.appendChild(n.content)):"function"!=typeof n.content&&(n.allowHTML?bb(e,n.content):e.textContent=n.content)}function mh(e){var n=e.firstElementChild,t=Yl(n.children);return{box:n,content:t.find(function(i){return i.classList.contains(YA)}),arrow:t.find(function(i){return i.classList.contains(ZA)||i.classList.contains(QA)}),backdrop:t.find(function(i){return i.classList.contains("tippy-backdrop")})}}function _I(e){var n=ma(),t=ma();t.className="tippy-box",t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var i=ma();function o(r,s){var a=mh(n),l=a.box,u=a.content,c=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),"string"==typeof s.animation?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth="number"==typeof s.maxWidth?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(r.content!==s.content||r.allowHTML!==s.allowHTML)&&mI(u,e.props),s.arrow?c?r.arrow!==s.arrow&&(l.removeChild(c),l.appendChild(gI(s.arrow))):l.appendChild(gI(s.arrow)):c&&l.removeChild(c)}return i.className=YA,i.setAttribute("data-state","hidden"),mI(i,e.props),n.appendChild(t),t.appendChild(i),o(e.props,e.props),{popper:n,onUpdate:o}}_I.$$tippy=!0;var O7=1,_h=[],vh=[];function bs(e,n){void 0===n&&(n={});var t=wi.plugins.concat(n.plugins||[]);!function v7(){document.addEventListener("touchstart",m7,vs),window.addEventListener("blur",_7)}();var i=Object.assign({},n,{plugins:t}),a=function h7(e){return gh(e)?[e]:function f7(e){return gb(e,"NodeList")}(e)?Yl(e):Array.isArray(e)?e:Yl(document.querySelectorAll(e))}(e).reduce(function(l,u){var c=u&&function A7(e,n){var i,o,r,c,d,p,C,t=hI(e,Object.assign({},wi,fI(iI(n)))),s=!1,a=!1,l=!1,u=!1,h=[],v=eI($h,t.interactiveDebounce),M=O7++,A=function p7(e){return e.filter(function(n,t){return e.indexOf(n)===t})}(t.plugins),b={id:M,reference:e,popper:ma(),popperInstance:null,props:t,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:A,clearDelayTimeouts:function Yh(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function Kh(P){if(!b.state.isDestroyed){te("onBeforeUpdate",[b,P]),jh();var re=b.props,De=hI(e,Object.assign({},re,iI(P),{ignoreAttributes:!0}));b.props=De,nr(),re.interactiveDebounce!==De.interactiveDebounce&&(On(),v=eI($h,De.interactiveDebounce)),re.triggerTarget&&!De.triggerTarget?ys(re.triggerTarget).forEach(function(ht){ht.removeAttribute("aria-expanded")}):De.triggerTarget&&e.removeAttribute("aria-expanded"),nt(),X(),ae&&ae(re,De),b.popperInstance&&(Gh(),Ms().forEach(function(ht){requestAnimationFrame(ht._tippy.popperInstance.forceUpdate)})),te("onAfterUpdate",[b,P])}},setContent:function Zh(P){b.setProps({content:P})},show:function rQ(){var P=b.state.isVisible,re=b.state.isDestroyed,De=!b.state.isEnabled,ht=er.isTouch&&!b.props.touch,ot=hb(b.props.duration,0,wi.duration);if(!(P||re||De||ht||qe().hasAttribute("disabled")||(te("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,Ze()&&(x.style.visibility="visible"),X(),Mi(),b.state.isMounted||(x.style.transition="none"),Ze()){var gi=pn();vb([gi.box,gi.content],0)}p=function(){var Ta;if(b.state.isVisible&&!u){if(u=!0,x.style.transition=b.props.moveTransition,Ze()&&b.props.animation){var nC=pn(),Qh=nC.box,ru=nC.content;vb([Qh,ru],ot),Zc([Qh,ru],"visible")}be(),nt(),tI(vh,b),null==(Ta=b.popperInstance)||Ta.forceUpdate(),te("onMount",[b]),b.props.animation&&Ze()&&function Hn(P,re){wn(P,re)}(ot,function(){b.state.isShown=!0,te("onShown",[b])})}},function Hr(){var re,P=b.props.appendTo,De=qe();(re=b.props.interactive&&P===XA||"parent"===P?De.parentNode:JA(P,[De])).contains(x)||re.appendChild(x),b.state.isMounted=!0,Gh()}()}},hide:function sQ(){var P=!b.state.isVisible,re=b.state.isDestroyed,De=!b.state.isEnabled,ht=hb(b.props.duration,1,wi.duration);if(!(P||re||De)&&(te("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,u=!1,s=!1,Ze()&&(x.style.visibility="hidden"),On(),Fo(),X(!0),Ze()){var ot=pn(),gi=ot.box,po=ot.content;b.props.animation&&(vb([gi,po],ht),Zc([gi,po],"hidden"))}be(),nt(),b.props.animation?Ze()&&function $t(P,re){wn(P,function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&re()})}(ht,b.unmount):b.unmount()}},hideWithInteractivity:function aQ(P){yt().addEventListener("mousemove",v),tI(_h,v),v(P)},enable:function gd(){b.state.isEnabled=!0},disable:function qh(){b.hide(),b.state.isEnabled=!1},unmount:function lQ(){b.state.isVisible&&b.hide(),b.state.isMounted&&(Wh(),Ms().forEach(function(P){P._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),vh=vh.filter(function(P){return P!==b}),b.state.isMounted=!1,te("onHidden",[b]))},destroy:function uQ(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),jh(),delete e._tippy,b.state.isDestroyed=!0,te("onDestroy",[b]))}};if(!t.render)return b;var R=t.render(b),x=R.popper,ae=R.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var me=A.map(function(P){return P.fn(b)}),je=e.hasAttribute("aria-expanded");return nr(),nt(),X(),te("onCreate",[b]),t.showOnCreate&&hd(),x.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&yt().addEventListener("mousemove",v)}),b;function Pe(){var P=b.props.touch;return Array.isArray(P)?P:[P,0]}function $e(){return"hold"===Pe()[0]}function Ze(){var P;return!(null==(P=b.props.render)||!P.$$tippy)}function qe(){return C||e}function yt(){var P=qe().parentNode;return P?rI(P):document}function pn(){return mh(x)}function z(P){return b.state.isMounted&&!b.state.isVisible||er.isTouch||c&&"focus"===c.type?0:hb(b.props.delay,P?0:1,wi.delay)}function X(P){void 0===P&&(P=!1),x.style.pointerEvents=b.props.interactive&&!P?"":"none",x.style.zIndex=""+b.props.zIndex}function te(P,re,De){var ht;void 0===De&&(De=!0),me.forEach(function(ot){ot[P]&&ot[P].apply(ot,re)}),De&&(ht=b.props)[P].apply(ht,re)}function be(){var P=b.props.aria;if(P.content){var re="aria-"+P.content,De=x.id;ys(b.props.triggerTarget||e).forEach(function(ot){var gi=ot.getAttribute(re);if(b.state.isVisible)ot.setAttribute(re,gi?gi+" "+De:De);else{var po=gi&&gi.replace(De,"").trim();po?ot.setAttribute(re,po):ot.removeAttribute(re)}})}}function nt(){!je&&b.props.aria.expanded&&ys(b.props.triggerTarget||e).forEach(function(re){b.props.interactive?re.setAttribute("aria-expanded",b.state.isVisible&&re===qe()?"true":"false"):re.removeAttribute("aria-expanded")})}function On(){yt().removeEventListener("mousemove",v),_h=_h.filter(function(P){return P!==v})}function kt(P){if(!er.isTouch||!l&&"mousedown"!==P.type){var re=P.composedPath&&P.composedPath()[0]||P.target;if(!b.props.interactive||!sI(x,re)){if(ys(b.props.triggerTarget||e).some(function(De){return sI(De,re)})){if(er.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else te("onClickOutside",[b,P]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),a=!0,setTimeout(function(){a=!1}),b.state.isMounted||Fo())}}}function ni(){l=!0}function it(){l=!1}function Mi(){var P=yt();P.addEventListener("mousedown",kt,!0),P.addEventListener("touchend",kt,vs),P.addEventListener("touchstart",it,vs),P.addEventListener("touchmove",ni,vs)}function Fo(){var P=yt();P.removeEventListener("mousedown",kt,!0),P.removeEventListener("touchend",kt,vs),P.removeEventListener("touchstart",it,vs),P.removeEventListener("touchmove",ni,vs)}function wn(P,re){var De=pn().box;function ht(ot){ot.target===De&&(yb(De,"remove",ht),re())}if(0===P)return re();yb(De,"remove",d),yb(De,"add",ht),d=ht}function $i(P,re,De){void 0===De&&(De=!1),ys(b.props.triggerTarget||e).forEach(function(ot){ot.addEventListener(P,re,De),h.push({node:ot,eventType:P,handler:re,options:De})})}function nr(){$e()&&($i("touchstart",dd,{passive:!0}),$i("touchend",zh,{passive:!0})),function d7(e){return e.split(/\s+/).filter(Boolean)}(b.props.trigger).forEach(function(P){if("manual"!==P)switch($i(P,dd),P){case"mouseenter":$i("mouseleave",zh);break;case"focus":$i(b7?"focusout":"blur",pd);break;case"focusin":$i("focusout",pd)}})}function jh(){h.forEach(function(P){P.node.removeEventListener(P.eventType,P.handler,P.options)}),h=[]}function dd(P){var re,De=!1;if(b.state.isEnabled&&!fd(P)&&!a){var ht="focus"===(null==(re=c)?void 0:re.type);c=P,C=P.currentTarget,nt(),!b.state.isVisible&&_b(P)&&_h.forEach(function(ot){return ot(P)}),"click"===P.type&&(b.props.trigger.indexOf("mouseenter")<0||s)&&!1!==b.props.hideOnClick&&b.state.isVisible?De=!0:hd(P),"click"===P.type&&(s=!De),De&&!ht&&Da(P)}}function $h(P){var re=P.target,De=qe().contains(re)||x.contains(re);"mousemove"===P.type&&De||function g7(e,n){var t=n.clientX,i=n.clientY;return e.every(function(o){var r=o.popperRect,s=o.popperState,l=o.props.interactiveBorder,u=function nI(e){return e.split("-")[0]}(s.placement),c=s.modifiersData.offset;return!c||r.top-i+("bottom"===u?c.top.y:0)>l||i-r.bottom-("top"===u?c.bottom.y:0)>l||r.left-t+("right"===u?c.left.x:0)>l||t-r.right-("left"===u?c.right.x:0)>l})}(Ms().concat(x).map(function(ot){var gi,ou=null==(gi=ot._tippy.popperInstance)?void 0:gi.state;return ou?{popperRect:ot.getBoundingClientRect(),popperState:ou,props:t}:null}).filter(Boolean),P)&&(On(),Da(P))}function zh(P){if(!(fd(P)||b.props.trigger.indexOf("click")>=0&&s)){if(b.props.interactive)return void b.hideWithInteractivity(P);Da(P)}}function pd(P){b.props.trigger.indexOf("focusin")<0&&P.target!==qe()||b.props.interactive&&P.relatedTarget&&x.contains(P.relatedTarget)||Da(P)}function fd(P){return!!er.isTouch&&$e()!==P.type.indexOf("touch")>=0}function Gh(){Wh();var P=b.props,re=P.popperOptions,De=P.placement,ht=P.offset,ot=P.getReferenceClientRect,gi=P.moveTransition,po=Ze()?mh(x).arrow:null,ou=ot?{getBoundingClientRect:ot,contextElement:ot.contextElement||qe()}:e,Ta=[{name:"offset",options:{offset:ht}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!gi}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Qh){var ru=Qh.state;if(Ze()){var iC=pn().box;["placement","reference-hidden","escaped"].forEach(function(Xh){"placement"===Xh?iC.setAttribute("data-placement",ru.placement):ru.attributes.popper["data-popper-"+Xh]?iC.setAttribute("data-"+Xh,""):iC.removeAttribute("data-"+Xh)}),ru.attributes.popper={}}}}];Ze()&&po&&Ta.push({name:"arrow",options:{element:po,padding:3}}),Ta.push.apply(Ta,(null==re?void 0:re.modifiers)||[]),b.popperInstance=l7(ou,x,Object.assign({},re,{placement:De,onFirstUpdate:p,modifiers:Ta}))}function Wh(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Ms(){return Yl(x.querySelectorAll("[data-tippy-root]"))}function hd(P){b.clearDelayTimeouts(),P&&te("onTrigger",[b,P]),Mi();var re=z(!0),De=Pe(),ot=De[1];er.isTouch&&"hold"===De[0]&&ot&&(re=ot),re?i=setTimeout(function(){b.show()},re):b.show()}function Da(P){if(b.clearDelayTimeouts(),te("onUntrigger",[b,P]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(P.type)>=0&&s)){var re=z(!1);re?o=setTimeout(function(){b.state.isVisible&&b.hide()},re):r=requestAnimationFrame(function(){b.hide()})}}else Fo()}}(u,i);return c&&l.push(c),l},[]);return gh(e)?a[0]:a}bs.defaultProps=wi,bs.setDefaultProps=function(n){Object.keys(n).forEach(function(i){wi[i]=n[i]})},bs.currentInput=er;var P7=Object.assign({},HA,{effect:function(n){var t=n.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),Cb={clientX:0,clientY:0},yh=[];function vI(e){Cb={clientX:e.clientX,clientY:e.clientY}}var yI={name:"followCursor",defaultValue:!1,fn:function(n){var t=n.reference,i=rI(n.props.triggerTarget||t),o=!1,r=!1,s=!0,a=n.props;function l(){return"initial"===n.props.followCursor&&n.state.isVisible}function u(){i.addEventListener("mousemove",p)}function c(){i.removeEventListener("mousemove",p)}function d(){o=!0,n.setProps({getReferenceClientRect:null}),o=!1}function p(C){var M=!C.target||t.contains(C.target),T=n.props.followCursor,A=C.clientX,S=C.clientY,b=t.getBoundingClientRect(),R=A-b.left,x=S-b.top;(M||!n.props.interactive)&&n.setProps({getReferenceClientRect:function(){var me=t.getBoundingClientRect(),je=A,Pe=S;"initial"===T&&(je=me.left+R,Pe=me.top+x);var $e="horizontal"===T?me.top:Pe,Ze="vertical"===T?me.right:je,qe="horizontal"===T?me.bottom:Pe,yt="vertical"===T?me.left:je;return{width:Ze-yt,height:qe-$e,top:$e,right:Ze,bottom:qe,left:yt}}})}function h(){n.props.followCursor&&(yh.push({instance:n,doc:i}),function F7(e){e.addEventListener("mousemove",vI)}(i))}function v(){0===(yh=yh.filter(function(C){return C.instance!==n})).filter(function(C){return C.doc===i}).length&&function k7(e){e.removeEventListener("mousemove",vI)}(i)}return{onCreate:h,onDestroy:v,onBeforeUpdate:function(){a=n.props},onAfterUpdate:function(M,T){var A=T.followCursor;o||void 0!==A&&a.followCursor!==A&&(v(),A?(h(),n.state.isMounted&&!r&&!l()&&u()):(c(),d()))},onMount:function(){n.props.followCursor&&!r&&(s&&(p(Cb),s=!1),l()||u())},onTrigger:function(M,T){_b(T)&&(Cb={clientX:T.clientX,clientY:T.clientY}),r="focus"===T.type},onHidden:function(){n.props.followCursor&&(d(),c(),s=!0)}}}};bs.setDefaultProps({render:_I});const Db=bs,CI=["contentWrapper"],DI=["*"],H7={instanceAlreadyExist:"Instance with name #tippyName already exist, please pick unique [tippyName]",instanceNotExist:"Instance with name #tippyName does not exist",childrenInstancesNotFoundGrouped:"No children tippy instances found within 'ngx-tippy-group' component",childrenInstancesNotFoundSingleton:"No children tippy instances found within 'ngx-tippy-singleton' component",singletonInstanceAlreadyExist:"Singleton instance with name #singletonName already exist, please pick unique [singletonName]"},B7={clearDelayTimeouts:()=>{},destroy:()=>{},disable:()=>{},enable:()=>{},hide:()=>{},hideWithInteractivity:()=>{},id:0,plugins:[{name:"followCursor",defaultValue:!1}],popper:{state:{}},popperInstance:{},props:{},reference:{},setContent:()=>{},setProps:()=>{},show:()=>{},state:{isEnabled:!0,isVisible:!0,isDestroyed:!1,isMounted:!0,isShown:!1},unmount:()=>{}},Tb=new E("NGX_TIPPY_MESSAGES",{providedIn:"root",factory:()=>H7});new E("TIPPY_FAKE_INSTANCE",{providedIn:"root",factory:()=>B7});let U7=(()=>{class e{constructor(t,i){this.platform=t,this.messagesDict=i}ngAfterViewInit(){Qp(this.platform)||this.setTooltips()}setTooltips(){const i=Array.from(this.contentWrapper.nativeElement.querySelectorAll("[data-tippy-grouped]"));if(!i.length)throw new Error(this.messagesDict.childrenInstancesNotFoundGrouped);this.initTippy(i)}initTippy(t){Db(t,this.groupedProps)}}return e.\u0275fac=function(t){return new(t||e)(_(es),_(Tb))},e.\u0275cmp=de({type:e,selectors:[["ngx-tippy-group"]],viewQuery:function(t,i){if(1&t&&Kn(CI,5,fe),2&t){let o;qt(o=Yt())&&(i.contentWrapper=o.first)}},inputs:{groupedProps:"groupedProps"},ngContentSelectors:DI,decls:3,vars:0,consts:[["contentWrapper",""]],template:function(t,i){1&t&&(Rn(),g(0,"div",null,0),Tt(2),f())},encapsulation:2}),e})(),j7=(()=>{class e{isDevMode(){return HM()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var ji=(()=>(function(e){e.SetInstance="setInstance",e.Show="show",e.Hide="hide",e.HideWithInteractivity="hideWithInteractivity",e.Disable="disable",e.Enable="enable",e.SetProps="setProps",e.SetContent="setContent",e.Unmount="unmount",e.ClearDelayTimeouts="clearDelayTimeouts",e.Destroy="destroy"}(ji||(ji={})),ji))(),Kl=(()=>(function(e){e.TippyName="tippyName",e.SingletonName="singletonName"}(Kl||(Kl={})),Kl))();class $7{constructor(n){this.args=n,this.compRef=this.args.viewContainerRef.createComponent(this.args.component)}detectChanges(){var n;return null===(n=this.compRef)||void 0===n||n.changeDetectorRef.detectChanges(),this}getElement(){var n;return null===(n=this.compRef)||void 0===n?void 0:n.location.nativeElement}destroy(){var n;null===(n=this.compRef)||void 0===n||n.destroy(),this.compRef=null}}const TI=(e,n)=>{e&&e instanceof Element&&n.setStyle(e,"display","block")};class q7{constructor(n){this.args=n,this.viewRef=this.args.tpl.createEmbeddedView(this.args.context||{}),this.viewRef.detectChanges(),this.args.appRef.attachView(this.viewRef)}detectChanges(){var n;return null===(n=this.viewRef)||void 0===n||n.detectChanges(),this}getElement(){if(!this.viewRef)return null;const n=this.viewRef.rootNodes;return 1===n.length&&n[0].nodeType===Node.ELEMENT_NODE?this.element=n[0]:(this.element=document.createElement("div"),this.element.append(...n)),this.element}destroy(){var n,t;!this.viewRef||(1!==this.viewRef.rootNodes[0]&&(null===(t=null===(n=this.element)||void 0===n?void 0:n.parentNode)||void 0===t||t.removeChild(this.element),this.element=null),this.viewRef.destroy(),this.viewRef=null)}}let wI=(()=>{class e{constructor(t){this.appRef=t}getViewRefInstance(t,i,o={}){let r;return(e=>e instanceof Fn)(t)?(o.$implicit=i,r=this.createTemplate(t,o)):r=(e=>"function"==typeof e)(t)?this.createComponent(t):(e=>e instanceof HTMLTemplateElement)(t)?{getElement:()=>t.content}:{getElement:()=>t},r}createTemplate(t,i){return new q7({tpl:t,context:i,appRef:this.appRef})}createComponent(t){return new $7({component:t,viewContainerRef:this.viewContainerRef})}}return e.\u0275fac=function(t){return new(t||e)(L(El))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Nr=(()=>{class e{constructor(t,i,o,r){this.devModeService=i,this.ngxViewService=o,this.messagesDict=r,this.tippyInstances=new Map,this.tippySingletonEntryInstances=new Map,this.tippyInstances$=new zt,this.createRenderer(t)}setInstance(t,i){if(this.tippyInstances.get(t)){const r=this.getMessage({reason:"instanceAlreadyExist",messageFor:Kl.TippyName,name:t});this.throwError(r)}else this.tippyInstances.set(t,i),this.emitInstancesChange({name:t,reason:ji.SetInstance,instance:i})}getInstance(t){return this.tippyInstances.has(t)?this.tippyInstances.get(t):null}getInstances(){return this.tippyInstances.size?this.tippyInstances:null}setSingletonInstance(t,i){if(this.tippySingletonEntryInstances.has(t)){const o=this.getMessage({reason:"singletonInstanceAlreadyExist",messageFor:Kl.SingletonName,name:t});this.throwError(o)}else this.tippySingletonEntryInstances.set(t,i)}getSingletonInstance(t){return this.tippySingletonEntryInstances.has(t)?this.tippySingletonEntryInstances.get(t):null}getSingletonInstances(){return this.tippySingletonEntryInstances.size?this.tippySingletonEntryInstances:null}show(t){this.callNativeTippyMethod(t,ji.Show)}hide(t){this.callNativeTippyMethod(t,ji.Hide)}hideWithInteractivity(t,i){this.callNativeTippyMethod(t,ji.HideWithInteractivity,i)}disable(t){this.callNativeTippyMethod(t,ji.Disable)}enable(t){this.callNativeTippyMethod(t,ji.Enable)}setProps(t,i){this.callNativeTippyMethod(t,ji.SetProps,i)}setContent(t,i,o){const r=this.getInstance(t);if(r){if(i){const s=this.ngxViewService.getViewRefInstance(i,r.tippyName,o),a=s.getElement();a?(TI(a,this.renderer),r.setContent(a),r.viewRef=s,this.emitInstancesChange({name:t,reason:"setContent",instance:r})):this.throwError("message")}}else this.throwErrorInstanceNotExist(t)}unmount(t){this.callNativeTippyMethod(t,ji.Unmount)}clearDelayTimeouts(t){this.callNativeTippyMethod(t,ji.ClearDelayTimeouts)}destroy(t){this.callNativeTippyMethod(t,ji.Destroy),this.tippyInstances.delete(t)}setDefaultProps(t){Db.setDefaultProps(t)}showAll(){this.tippyInstances.forEach((t,i)=>{t.show(),this.emitInstancesChange({name:i,reason:"show",instance:t})})}hideAll(t){const i=this.getInstance((null==t?void 0:t.excludeName)||"");!function(n){var t=void 0===n?{}:n,i=t.exclude,o=t.duration;vh.forEach(function(r){var s=!1;if(i&&(s=oI(i)?r.reference===i:r.popper===i.popper),!s){var a=r.props.duration;r.setProps({duration:o}),r.hide(),r.state.isDestroyed||r.setProps({duration:a})}})}(Object.assign({duration:null==t?void 0:t.duration},i))}get instancesChanges(){return this.tippyInstances$.asObservable()}callNativeTippyMethod(t,i,o){const r=this.getInstance(t);r?(r[i](o),this.emitInstancesChange({name:t,reason:i,instance:r})):this.throwErrorInstanceNotExist(t)}emitInstancesChange({name:t,reason:i,instance:o}){this.tippyInstances$.next({name:t,reason:i,instance:o})}createRenderer(t){this.renderer=t.createRenderer(null,null)}throwErrorInstanceNotExist(t){const i=this.getMessage({reason:"instanceNotExist",messageFor:Kl.TippyName,name:t});this.throwError(i)}throwError(t,i=Error){if(this.devModeService.isDevMode())throw new i(t)}getMessage({reason:t,messageFor:i,name:o}){return this.messagesDict[t].replace(`#${i}`,`'${o}'`)}}return e.\u0275fac=function(t){return new(t||e)(L(qs),L(j7),L(wI),L(Tb))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Y7=(()=>{class e{constructor(t,i,o){this.platform=t,this.ngxTippyService=i,this.messagesDict=o}ngAfterViewInit(){Qp(this.platform)||this.setSingleton()}ngOnDestroy(){this.clearSingletonInstance()}setSingleton(){var t;const o=Array.from(this.contentWrapper.nativeElement.querySelectorAll("[data-tippy-singleton]")).map(a=>a._tippy.id),r=this.ngxTippyService.getInstances(),s=r&&[...r.values()];if(this.currentSingletonChildrenTippyInstances=s&&s.filter(a=>o.includes(a.id)),null===(t=this.currentSingletonChildrenTippyInstances)||void 0===t||!t.length)throw new Error(this.messagesDict.childrenInstancesNotFoundSingleton);this.initTippySingletonEntry(this.currentSingletonChildrenTippyInstances)}initTippySingletonEntry(t){this.singletonInstance=function(n,t){var i;void 0===t&&(t={});var a,o=n,r=[],s=[],l=t.overrides,u=[],c=!1;function d(){s=o.map(function(b){return ys(b.props.triggerTarget||b.reference)}).reduce(function(b,R){return b.concat(R)},[])}function p(){r=o.map(function(b){return b.reference})}function h(b){o.forEach(function(R){b?R.enable():R.disable()})}function v(b){return o.map(function(R){var x=R.setProps;return R.setProps=function(ae){x(ae),R.reference===a&&b.setProps(ae)},function(){R.setProps=x}})}function C(b,R){var x=s.indexOf(R);if(R!==a){a=R;var ae=(l||[]).concat("content").reduce(function(me,je){return me[je]=o[x].props[je],me},{});b.setProps(Object.assign({},ae,{getReferenceClientRect:"function"==typeof ae.getReferenceClientRect?ae.getReferenceClientRect:function(){var me;return null==(me=r[x])?void 0:me.getBoundingClientRect()}}))}}h(!1),p(),d();var M={fn:function(){return{onDestroy:function(){h(!0)},onHidden:function(){a=null},onClickOutside:function(x){x.props.showOnCreate&&!c&&(c=!0,a=null)},onShow:function(x){x.props.showOnCreate&&!c&&(c=!0,C(x,r[0]))},onTrigger:function(x,ae){C(x,ae.currentTarget)}}}},T=bs(ma(),Object.assign({},function mb(e,n){var t=Object.assign({},e);return n.forEach(function(i){delete t[i]}),t}(t,["overrides"]),{plugins:[M].concat(t.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(i=t.popperOptions)?void 0:i.modifiers)||[],[P7])})})),A=T.show;T.show=function(b){if(A(),!a&&null==b)return C(T,r[0]);if(!a||null!=b){if("number"==typeof b)return r[b]&&C(T,r[b]);if(o.indexOf(b)>=0)return C(T,b.reference);if(r.indexOf(b)>=0)return C(T,b)}},T.showNext=function(){var b=r[0];if(!a)return T.show(0);var R=r.indexOf(a);T.show(r[R+1]||b)},T.showPrevious=function(){var b=r[r.length-1];if(!a)return T.show(b);var R=r.indexOf(a);T.show(r[R-1]||b)};var S=T.setProps;return T.setProps=function(b){l=b.overrides||l,S(b)},T.setInstances=function(b){h(!0),u.forEach(function(R){return R()}),o=b,h(!1),p(),d(),u=v(T),T.setProps({triggerTarget:s})},u=v(T),T}(t,this.singletonProps),this.writeSingletonInstanceToStorage(this.singletonInstance)}writeSingletonInstanceToStorage(t){const i=this.extendShowFn(t);this.ngxTippyService.setSingletonInstance(this.singletonName||`singleton-${t.id}`,i)}extendShowFn(t){const i=t.show;return t.show=o=>{if("string"==typeof o){const r=this.ngxTippyService.getInstance(o);r&&i(r)}else i(o)},t}clearSingletonInstance(){const t=this.ngxTippyService.getSingletonInstances();t&&this.singletonInstance&&(this.destroySingletonInstance(),this.deleteEntryInStorage(t))}destroySingletonInstance(){this.singletonInstance.destroy()}deleteEntryInStorage(t){t.delete(this.singletonName||`singleton-${this.singletonInstance.id}`)}}return e.\u0275fac=function(t){return new(t||e)(_(es),_(Nr),_(Tb))},e.\u0275cmp=de({type:e,selectors:[["ngx-tippy-singleton"]],viewQuery:function(t,i){if(1&t&&Kn(CI,5,fe),2&t){let o;qt(o=Yt())&&(i.contentWrapper=o.first)}},inputs:{singletonProps:"singletonProps",singletonName:"singletonName"},ngContentSelectors:DI,decls:3,vars:0,consts:[["contentWrapper",""]],template:function(t,i){1&t&&(Rn(),g(0,"div",null,0),Tt(2),f())},encapsulation:2}),e})(),Rr=(()=>{class e{constructor(t,i,o,r,s,a){this.tippyEl=t,this.renderer=i,this.ngxTippyService=o,this.ngxViewService=r,this.viewContainerRef=s,this.platform=a,this.cachedInstances=new Map}ngOnInit(){Qp(this.platform)||(this.ngxViewService.viewContainerRef=this.viewContainerRef,this.initTippy())}ngOnChanges(t){this.handleChanges(t)}ngOnDestroy(){this.destroyTippy()}initTippy(){const t=this.tippyEl.nativeElement;if(null==this.ngxTippy)return;const i=this.ngxViewService.getViewRefInstance(this.ngxTippy,this.tippyName,this.tippyContext),o=i.getElement(),r=Db(t,Object.assign(Object.assign({},this.tippyProps||{}),o&&{content:o}));this.tippyName=this.tippyName||`tippy-${r.id}`,TI(o,this.renderer),this.setTippyInstance({tippyTarget:t,tippyName:this.tippyName,viewRef:i}),this.setClassName(this.tippyInstance,this.tippyClassName),this.writeInstancesToStorage(this.tippyInstance,this.tippyName)}setTippyInstance({tippyTarget:t,tippyName:i,viewRef:o}){this.tippyInstance=Object.assign(Object.assign({},t._tippy),{tippyName:i,viewRef:o})}setClassName(t,i){if(!i||!t)return;const o=i.split(" ");o.length&&o.forEach(r=>{this.renderer.addClass(t.popper.firstElementChild,r)})}removeClassName(t,i){if(!i||!t)return;const o=i.split(" ");o.length&&o.forEach(r=>{this.renderer.removeClass(t.popper.firstElementChild,r)})}writeInstancesToStorage(t,i){t&&this.ngxTippyService.setInstance(i,t)}handleChanges({tippyName:t,ngxTippy:i,tippyProps:o,tippyClassName:r,tippyContext:s}){t&&!t.firstChange&&this.handleNameChanges(t),i&&!i.firstChange&&this.handleContentChanges(i),o&&!o.firstChange&&this.handlePropsChanges(o),r&&!r.firstChange&&this.handleClassChanges(r),s&&!s.firstChange&&this.handleContextChanges(s)}handleNameChanges({previousValue:t,currentValue:i}){const o=this.cachedTippyInstances();!o||!this.tippyInstance||(this.deleteEntryInStorage(o,t),this.tippyInstance=Object.assign(Object.assign({},this.tippyInstance),{tippyName:i}),o.set(i,this.tippyInstance))}handleContentChanges({currentValue:t}){this.tippyInstance&&this.tippyName?(this.ngxTippyService.setContent(this.tippyName,t),null==t?this.ngxTippyService.disable(this.tippyName):this.ngxTippyService.enable(this.tippyName)):this.initTippy()}handlePropsChanges({currentValue:t}){this.tippyName&&this.ngxTippyService.setProps(this.tippyName,t)}handleClassChanges({previousValue:t,currentValue:i}){this.removeClassName(this.tippyInstance,t),this.setClassName(this.tippyInstance,i)}handleContextChanges({currentValue:t}){this.tippyInstance&&this.tippyName&&this.ngxTippy?this.ngxTippyService.setContent(this.tippyName,this.ngxTippy,t):this.initTippy()}cachedTippyInstances(){const t=this.ngxTippyService.getInstances();return this.cachedInstances.has(t)?this.cachedInstances.get(t):(this.cachedInstances.set(t,t),t)}destroyTippy(){const t=this.cachedTippyInstances(),i=this.tippyInstance;!i||!t||(this.clearInstance({tippyInstance:i,tippyInstances:t}),this.resetLocalInstance(),this.clearCachedInstances())}clearInstance({tippyInstance:t,tippyInstances:i}){const{tippyName:o}=t;this.clearViewRef(t),this.destroyTippyInstance(t),this.deleteEntryInStorage(i,o)}clearViewRef(t){var i;null!==(i=t.viewRef)&&void 0!==i&&i.destroy&&t.viewRef.destroy()}destroyTippyInstance(t){t.destroy()}deleteEntryInStorage(t,i){t.delete(i)}resetLocalInstance(){this.tippyInstance=void 0}clearCachedInstances(){this.cachedInstances.clear()}}return e.\u0275fac=function(t){return new(t||e)(_(fe),_(Yi),_(Nr),_(wI),_(di),_(es))},e.\u0275dir=V({type:e,selectors:[["","ngxTippy",""]],inputs:{ngxTippy:"ngxTippy",tippyProps:"tippyProps",tippyName:"tippyName",tippyClassName:"tippyClassName",tippyContext:"tippyContext"},features:[mn]}),e})(),K7=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[mt]}),e})();const bh=Br(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function wb(){return pt((e,n)=>{let t=null;e._refCount++;const i=ze(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const o=e._connection,r=t;t=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class MI extends Ce{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Cd(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Bn;const t=this.getSubject();n.add(this.source.subscribe(ze(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Bn.EMPTY)}return n}refCount(){return wb()(this)}}function Ch(e){return pt((n,t)=>{let i=!1;n.subscribe(ze(t,o=>{i=!0,t.next(o)},()=>{i||t.next(e),t.complete()}))})}function EI(e=Z7){return pt((n,t)=>{let i=!1;n.subscribe(ze(t,o=>{i=!0,t.next(o)},()=>i?t.complete():t.error(e())))})}function Z7(){return new bh}function Cs(e,n){const t=arguments.length>=2;return i=>i.pipe(e?At((o,r)=>e(o,r,i)):Lt,Ui(1),t?Ch(n):EI(()=>new bh))}function _a(e,n){return Be(n)?Zt(e,n,1):Zt(e,1)}function Q7(e,n,t,i,o){return(r,s)=>{let a=t,l=n,u=0;r.subscribe(ze(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),i&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}function SI(e,n){return pt(Q7(e,n,arguments.length>=2,!0))}function Mb(e){return e<=0?()=>xt:pt((n,t)=>{let i=[];n.subscribe(ze(t,o=>{i.push(o),e{for(const o of i)t.next(o);t.complete()},void 0,()=>{i=null}))})}function OI(e,n){const t=arguments.length>=2;return i=>i.pipe(e?At((o,r)=>e(o,r,i)):Lt,Mb(1),t?Ch(n):EI(()=>new bh))}function Eb(e){return pt((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}const Le="primary",Xc=Symbol("RouteTitle");class X7{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Zl(e){return new X7(e)}function J7(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.lengthi[r]===o)}return e===n}function II(e){return Array.prototype.concat.apply([],e)}function PI(e){return e.length>0?e[e.length-1]:null}function Ln(e,n){for(const t in e)e.hasOwnProperty(t)&&n(e[t],t)}function Ds(e){return r_(e)?e:ic(e)?bt(Promise.resolve(e)):ne(e)}const n9={exact:function RI(e,n,t){if(!ya(e.segments,n.segments)||!Dh(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!RI(e.children[i],n.children[i],t))return!1;return!0},subset:FI},xI={exact:function i9(e,n){return tr(e,n)},subset:function o9(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>AI(e[t],n[t]))},ignored:()=>!0};function NI(e,n,t){return n9[t.paths](e.root,n.root,t.matrixParams)&&xI[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function FI(e,n,t){return kI(e,n,n.segments,t)}function kI(e,n,t,i){if(e.segments.length>t.length){const o=e.segments.slice(0,t.length);return!(!ya(o,t)||n.hasChildren()||!Dh(o,t,i))}if(e.segments.length===t.length){if(!ya(e.segments,t)||!Dh(e.segments,t,i))return!1;for(const o in n.children)if(!e.children[o]||!FI(e.children[o],n.children[o],i))return!1;return!0}{const o=t.slice(0,e.segments.length),r=t.slice(e.segments.length);return!!(ya(e.segments,o)&&Dh(e.segments,o,i)&&e.children[Le])&&kI(e.children[Le],n,r,i)}}function Dh(e,n,t){return n.every((i,o)=>xI[t](e[o].parameters,i.parameters))}class va{constructor(n,t,i){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Zl(this.queryParams)),this._queryParamMap}toString(){return a9.serialize(this)}}class He{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Ln(t,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Th(this)}}class Jc{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Zl(this.parameters)),this._parameterMap}toString(){return BI(this)}}function ya(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let LI=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:function(){return new Ob},providedIn:"root"}),e})();class Ob{parse(n){const t=new m9(n);return new va(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${ed(n.root,!0)}`,i=function c9(e){const n=Object.keys(e).map(t=>{const i=e[t];return Array.isArray(i)?i.map(o=>`${wh(t)}=${wh(o)}`).join("&"):`${wh(t)}=${wh(i)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams),o="string"==typeof n.fragment?`#${function l9(e){return encodeURI(e)}(n.fragment)}`:"";return`${t}${i}${o}`}}const a9=new Ob;function Th(e){return e.segments.map(n=>BI(n)).join("/")}function ed(e,n){if(!e.hasChildren())return Th(e);if(n){const t=e.children[Le]?ed(e.children[Le],!1):"",i=[];return Ln(e.children,(o,r)=>{r!==Le&&i.push(`${r}:${ed(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function s9(e,n){let t=[];return Ln(e.children,(i,o)=>{o===Le&&(t=t.concat(n(i,o)))}),Ln(e.children,(i,o)=>{o!==Le&&(t=t.concat(n(i,o)))}),t}(e,(i,o)=>o===Le?[ed(e.children[Le],!1)]:[`${o}:${ed(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Le]?`${Th(e)}/${t[0]}`:`${Th(e)}/(${t.join("//")})`}}function VI(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wh(e){return VI(e).replace(/%3B/gi,";")}function Ab(e){return VI(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mh(e){return decodeURIComponent(e)}function HI(e){return Mh(e.replace(/\+/g,"%20"))}function BI(e){return`${Ab(e.path)}${function u9(e){return Object.keys(e).map(n=>`;${Ab(n)}=${Ab(e[n])}`).join("")}(e.parameters)}`}const d9=/^[^\/()?;=#]+/;function Eh(e){const n=e.match(d9);return n?n[0]:""}const p9=/^[^=?&#]+/,h9=/^[^&#]+/;class m9{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new He([],{}):new He([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[Le]=new He(n,t)),i}parseSegment(){const n=Eh(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new N(4009,!1);return this.capture(n),new Jc(Mh(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=Eh(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const o=Eh(this.remaining);o&&(i=o,this.capture(i))}n[Mh(t)]=Mh(i)}parseQueryParam(n){const t=function f9(e){const n=e.match(p9);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function g9(e){const n=e.match(h9);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const o=HI(t),r=HI(i);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(r)}else n[o]=r}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Eh(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new N(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Le);const s=this.parseChildren();t[r]=1===Object.keys(s).length?s[Le]:new He([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new N(4011,!1)}}function Ib(e){return e.segments.length>0?new He([],{[Le]:e}):e}function Sh(e){const n={};for(const i of Object.keys(e.children)){const r=Sh(e.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function _9(e){if(1===e.numberOfChildren&&e.children[Le]){const n=e.children[Le];return new He(e.segments.concat(n.segments),n.children)}return e}(new He(e.segments,n))}function ba(e){return e instanceof va}function b9(e,n,t,i,o){var r;if(0===t.length)return Ql(n.root,n.root,n.root,i,o);const a=function $I(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new jI(!0,0,e);let n=0,t=!1;const i=e.reduce((o,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const a={};return Ln(r.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===s?(r.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,r]},[]);return new jI(t,n,i)}(t);return a.toRoot()?Ql(n.root,n.root,new He([],{}),i,o):function l(c){var d;const p=function D9(e,n,t,i){if(e.isAbsolute)return new Xl(n.root,!0,0);if(-1===i)return new Xl(t,t===n.root,0);return function zI(e,n,t){let i=e,o=n,r=t;for(;r>o;){if(r-=o,i=i.parent,!i)throw new N(4005,!1);o=i.segments.length}return new Xl(i,!1,o-r)}(t,i+(td(e.commands[0])?0:1),e.numberOfDoubleDots)}(a,n,null===(d=e.snapshot)||void 0===d?void 0:d._urlSegment,c),h=p.processChildren?id(p.segmentGroup,p.index,a.commands):xb(p.segmentGroup,p.index,a.commands);return Ql(n.root,p.segmentGroup,h,i,o)}(null===(r=e.snapshot)||void 0===r?void 0:r._lastPathIndex)}function td(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function nd(e){return"object"==typeof e&&null!=e&&e.outlets}function Ql(e,n,t,i,o){let s,r={};i&&Ln(i,(l,u)=>{r[u]=Array.isArray(l)?l.map(c=>`${c}`):`${l}`}),s=e===n?t:UI(e,n,t);const a=Ib(Sh(s));return new va(a,r,o)}function UI(e,n,t){const i={};return Ln(e.children,(o,r)=>{i[r]=o===n?t:UI(o,n,t)}),new He(e.segments,i)}class jI{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&td(i[0]))throw new N(4003,!1);const o=i.find(nd);if(o&&o!==PI(i))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Xl{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function xb(e,n,t){if(e||(e=new He([],{})),0===e.segments.length&&e.hasChildren())return id(e,n,t);const i=function w9(e,n,t){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=t.length)return r;const s=e.segments[o],a=t[i];if(nd(a))break;const l=`${a}`,u=i0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!WI(l,u,s))return r;i+=2}else{if(!WI(l,{},s))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(e,n,t),o=t.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=xb(e.children[s],n,r))}),Ln(e.children,(r,s)=>{void 0===i[s]&&(o[s]=r)}),new He(e.segments,o)}}function Nb(e,n,t){const i=e.segments.slice(0,n);let o=0;for(;o{"string"==typeof t&&(t=[t]),null!==t&&(n[i]=Nb(new He([],{}),0,t))}),n}function GI(e){const n={};return Ln(e,(t,i)=>n[i]=`${t}`),n}function WI(e,n,t){return e==t.path&&tr(n,t.parameters)}class Fr{constructor(n,t){this.id=n,this.url=t}}class Rb extends Fr{constructor(n,t,i="imperative",o=null){super(n,t),this.type=0,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ca extends Fr{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Oh extends Fr{constructor(n,t,i,o){super(n,t),this.reason=i,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class qI extends Fr{constructor(n,t,i,o){super(n,t),this.error=i,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class E9 extends Fr{constructor(n,t,i,o){super(n,t),this.urlAfterRedirects=i,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class S9 extends Fr{constructor(n,t,i,o){super(n,t),this.urlAfterRedirects=i,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class O9 extends Fr{constructor(n,t,i,o,r){super(n,t),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class A9 extends Fr{constructor(n,t,i,o){super(n,t),this.urlAfterRedirects=i,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class I9 extends Fr{constructor(n,t,i,o){super(n,t),this.urlAfterRedirects=i,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class P9{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class x9{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class N9{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class R9{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class F9{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class k9{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YI{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class KI{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Fb(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=Fb(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=kb(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return kb(n,this._root).map(t=>t.value)}}function Fb(e,n){if(e===n.value)return n;for(const t of n.children){const i=Fb(e,t);if(i)return i}return null}function kb(e,n){if(e===n.value)return[n];for(const t of n.children){const i=kb(e,t);if(i.length)return i.unshift(n),i}return[]}class kr{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function Jl(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class ZI extends KI{constructor(n,t){super(n),this.snapshot=t,Lb(this,n)}toString(){return this.snapshot.toString()}}function QI(e,n){const t=function V9(e,n){const s=new Ah([],{},{},"",{},Le,n,null,e.root,-1,{});return new JI("",new kr(s,[]))}(e,n),i=new cn([new Jc("",{})]),o=new cn({}),r=new cn({}),s=new cn({}),a=new cn(""),l=new Lr(i,o,s,a,r,Le,n,t.root);return l.snapshot=t.root,new ZI(new kr(l,[]),t)}class Lr{constructor(n,t,i,o,r,s,a,l){var u,c;this.url=n,this.params=t,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.title=null!==(c=null===(u=this.data)||void 0===u?void 0:u.pipe(W(d=>d[Xc])))&&void 0!==c?c:ne(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(W(n=>Zl(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(W(n=>Zl(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function XI(e,n="emptyOnly"){const t=e.pathFromRoot;let i=0;if("always"!==n)for(i=t.length-1;i>=1;){const o=t[i],r=t[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function H9(e){return e.reduce((n,t)=>{var i;return{params:Object.assign(Object.assign({},n.params),t.params),data:Object.assign(Object.assign({},n.data),t.data),resolve:Object.assign(Object.assign(Object.assign(Object.assign({},t.data),n.resolve),null===(i=t.routeConfig)||void 0===i?void 0:i.data),t._resolvedData)}},{params:{},data:{},resolve:{}})}(t.slice(i))}class Ah{constructor(n,t,i,o,r,s,a,l,u,c,d,p){var h;this.url=n,this.params=t,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.title=null===(h=this.data)||void 0===h?void 0:h[Xc],this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._correctedLastPathIndex=null!=p?p:c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Zl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Zl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class JI extends KI{constructor(n,t){super(t),this.url=n,Lb(this,t)}toString(){return eP(this._root)}}function Lb(e,n){n.value._routerState=e,n.children.forEach(t=>Lb(e,t))}function eP(e){const n=e.children.length>0?` { ${e.children.map(eP).join(", ")} } `:"";return`${e.value}${n}`}function Vb(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,tr(n.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),n.fragment!==t.fragment&&e.fragment.next(t.fragment),tr(n.params,t.params)||e.params.next(t.params),function e9(e,n){if(e.length!==n.length)return!1;for(let t=0;ttr(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Hb(e.parent,n.parent))}function od(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const o=function U9(e,n,t){return n.children.map(i=>{for(const o of t.children)if(e.shouldReuseRoute(i.value,o.value.snapshot))return od(e,i,o);return od(e,i)})}(e,n,t);return new kr(i,o)}{if(e.shouldAttach(n.value)){const r=e.retrieve(n.value);if(null!==r){const s=r.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>od(e,a)),s}}const i=function j9(e){return new Lr(new cn(e.url),new cn(e.params),new cn(e.queryParams),new cn(e.fragment),new cn(e.data),e.outlet,e.component,e)}(n.value),o=n.children.map(r=>od(e,r));return new kr(i,o)}}const Bb="ngNavigationCancelingError";function tP(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=ba(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=nP(!1,0,n);return o.url=t,o.navigationBehaviorOptions=i,o}function nP(e,n,t){const i=new Error("NavigationCancelingError: "+(e||""));return i[Bb]=!0,i.cancellationCode=n,t&&(i.url=t),i}function iP(e){return oP(e)&&ba(e.url)}function oP(e){return e&&e[Bb]}class $9{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new rd,this.attachRef=null}}let rd=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,i){const o=this.getOrCreateContext(t);o.outlet=i,this.contexts.set(t,o)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new $9,this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ih=!1;let Ub=(()=>{class e{constructor(t,i,o,r,s){this.parentContexts=t,this.location=i,this.changeDetector=r,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new dt,this.deactivateEvents=new dt,this.attachEvents=new dt,this.detachEvents=new dt,this.name=o||Le,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){var t;(null===(t=this.parentContexts.getContext(this.name))||void 0===t?void 0:t.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new N(4012,Ih);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,Ih);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,Ih);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new N(4013,Ih);this._activatedRoute=t;const o=this.location,s=t._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new z9(t,a,o.injector);if(i&&function G9(e){return!!e.resolveComponentFactory}(i)){const u=i.resolveComponentFactory(s);this.activated=o.createComponent(u,o.length,l)}else this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:null!=i?i:this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(_(rd),_(di),qa("name"),_(Zn),_(Zr))},e.\u0275dir=V({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),e})();class z9{constructor(n,t,i){this.route=n,this.childContexts=t,this.parent=i}get(n,t){return n===Lr?this.route:n===rd?this.childContexts:this.parent.get(n,t)}}let jb=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=de({type:e,selectors:[["ng-component"]],standalone:!0,features:[P0],decls:1,vars:0,template:function(t,i){1&t&&F(0,"router-outlet")},dependencies:[Ub],encapsulation:2}),e})();function rP(e,n){var t;return e.providers&&!e._injector&&(e._injector=Ip(e.providers,n,`Route: ${e.path}`)),null!==(t=e._injector)&&void 0!==t?t:n}function zb(e){const n=e.children&&e.children.map(zb),t=n?Object.assign(Object.assign({},e),{children:n}):Object.assign({},e);return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Le&&(t.component=jb),t}function co(e){return e.outlet||Le}function sP(e,n){const t=e.filter(i=>co(i)===n);return t.push(...e.filter(i=>co(i)!==n)),t}function sd(e){var n;if(!e)return null;if(null!==(n=e.routeConfig)&&void 0!==n&&n._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const i=t.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}class Z9{constructor(n,t,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=o}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),Vb(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const o=Jl(t);n.children.forEach(r=>{const s=r.value.outlet;this.deactivateRoutes(r,o[s],i),delete o[s]}),Ln(o,(r,s)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,t,i){const o=n.value,r=t?t.value:null;if(o===r)if(o.component){const s=i.getContext(o.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,i);else r&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),o=i&&n.value.component?i.children:t,r=Jl(n);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),o=i&&n.value.component?i.children:t,r=Jl(n);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,t,i){const o=Jl(t);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new k9(r.value.snapshot))}),n.children.length&&this.forwardEvent(new R9(n.value.snapshot))}activateRoutes(n,t,i){var o;const r=n.value,s=t?t.value:null;if(Vb(r),r===s)if(r.component){const a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,a.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const l=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(l.contexts),a.attachRef=l.componentRef,a.route=l.route.value,a.outlet&&a.outlet.attach(l.componentRef,l.route.value),Vb(l.route.value),this.activateChildRoutes(n,null,a.children)}else{const l=sd(r.snapshot),u=null!==(o=null==l?void 0:l.get(Qr))&&void 0!==o?o:null;a.attachRef=null,a.route=r,a.resolver=u,a.injector=l,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class aP{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Ph{constructor(n,t){this.component=n,this.route=t}}function Q9(e,n,t){const i=e._root;return ad(i,n?n._root:null,t,[i.value])}function eu(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function hg(e){return null!==Fs(e)}(e)?n.get(e):e:i}function ad(e,n,t,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=Jl(n);return e.children.forEach(s=>{(function J9(e,n,t,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){const l=function eq(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!ya(e.url,n.url);case"pathParamsOrQueryParamsChange":return!ya(e.url,n.url)||!tr(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hb(e,n)||!tr(e.queryParams,n.queryParams);default:return!Hb(e,n)}}(s,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new aP(i)):(r.data=s.data,r._resolvedData=s._resolvedData),ad(e,n,r.component?a?a.children:null:t,i,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ph(a.outlet.component,s))}else s&&ld(n,a,o),o.canActivateChecks.push(new aP(i)),ad(e,null,r.component?a?a.children:null:t,i,o)})(s,r[s.value.outlet],t,i.concat([s.value]),o),delete r[s.value.outlet]}),Ln(r,(s,a)=>ld(s,t.getContext(a),o)),o}function ld(e,n,t){const i=Jl(e),o=e.value;Ln(i,(r,s)=>{ld(r,o.component?n?n.children.getContext(s):null:n,t)}),t.canDeactivateChecks.push(new Ph(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function ud(e){return"function"==typeof e}function Gb(e){return e instanceof bh||"EmptyError"===(null==e?void 0:e.name)}const xh=Symbol("INITIAL_VALUE");function tu(){return Ot(e=>Jf(e.map(n=>n.pipe(Ui(1),Cn(xh)))).pipe(W(n=>{for(const t of n)if(!0!==t){if(t===xh)return xh;if(!1===t||t instanceof va)return t}return!0}),At(n=>n!==xh),Ui(1)))}function lP(e){return du(Et(n=>{if(ba(n))throw tP(0,n)}),W(n=>!0===n))}const Wb={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function uP(e,n,t,i,o){const r=qb(e,n,t);return r.matched?function _q(e,n,t,i){const o=n.canMatch;return o&&0!==o.length?ne(o.map(s=>{const a=eu(s,e);return Ds(function sq(e){return e&&ud(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(tu(),lP()):ne(!0)}(i=rP(n,i),n,t).pipe(W(s=>!0===s?r:Object.assign({},Wb))):ne(r)}function qb(e,n,t){var i;if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?Object.assign({},Wb):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||J7)(t,e,n);if(!r)return Object.assign({},Wb);const s={};Ln(r.posParams,(l,u)=>{s[u]=l.path});const a=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Nh(e,n,t,i,o="corrected"){if(t.length>0&&function bq(e,n,t){return t.some(i=>Rh(e,n,i)&&co(i)!==Le)}(e,t,i)){const s=new He(n,function yq(e,n,t,i){const o={};o[Le]=i,i._sourceSegment=e,i._segmentIndexShift=n.length;for(const r of t)if(""===r.path&&co(r)!==Le){const s=new He([],{});s._sourceSegment=e,s._segmentIndexShift=n.length,o[co(r)]=s}return o}(e,n,i,new He(t,e.children)));return s._sourceSegment=e,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===t.length&&function Cq(e,n,t){return t.some(i=>Rh(e,n,i))}(e,t,i)){const s=new He(e.segments,function vq(e,n,t,i,o,r){const s={};for(const a of i)if(Rh(e,t,a)&&!o[co(a)]){const l=new He([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===r?e.segments.length:n.length,s[co(a)]=l}return Object.assign(Object.assign({},o),s)}(e,n,t,i,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:t}}const r=new He(e.segments,e.children);return r._sourceSegment=e,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:t}}function Rh(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}function cP(e,n,t,i){return!!(co(e)===i||i!==Le&&Rh(n,t,e))&&("**"===e.path||qb(n,e,t).matched)}function dP(e,n,t){return 0===n.length&&!e.children[t]}const Fh=!1;class kh{constructor(n){this.segmentGroup=n||null}}class pP{constructor(n){this.urlTree=n}}function cd(e){return Qo(new kh(e))}function fP(e){return Qo(new pP(e))}class Mq{constructor(n,t,i,o,r){this.injector=n,this.configLoader=t,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0}apply(){const n=Nh(this.urlTree.root,[],[],this.config).segmentGroup,t=new He(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,t,Le).pipe(W(r=>this.createUrlTree(Sh(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ro(r=>{if(r instanceof pP)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof kh?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Le).pipe(W(o=>this.createUrlTree(Sh(o),n.queryParams,n.fragment))).pipe(Ro(o=>{throw o instanceof kh?this.noMatchError(o):o}))}noMatchError(n){return new N(4002,Fh)}createUrlTree(n,t,i){const o=Ib(n);return new va(o,t,i)}expandSegmentGroup(n,t,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,t,i).pipe(W(r=>new He([],r))):this.expandSegment(n,i,t,i.segments,o,!0)}expandChildren(n,t,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return bt(o).pipe(_a(r=>{const s=i.children[r],a=sP(t,r);return this.expandSegmentGroup(n,a,s,r).pipe(W(l=>({segment:l,outlet:r})))}),SI((r,s)=>(r[s.outlet]=s.segment,r),{}),OI())}expandSegment(n,t,i,o,r,s){return bt(i).pipe(_a(a=>this.expandSegmentAgainstRoute(n,t,i,a,o,r,s).pipe(Ro(u=>{if(u instanceof kh)return ne(null);throw u}))),Cs(a=>!!a),Ro((a,l)=>{if(Gb(a))return dP(t,o,r)?ne(new He([],{})):cd(t);throw a}))}expandSegmentAgainstRoute(n,t,i,o,r,s,a){return cP(o,t,r,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(n,t,o,r,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,t,i,o,r,s):cd(t):cd(t)}expandSegmentAgainstRouteUsingRedirect(n,t,i,o,r,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,o,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,i,o){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?fP(r):this.lineralizeSegments(i,r).pipe(Zt(s=>{const a=new He(s,{});return this.expandSegment(n,a,t,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,o,r,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=qb(t,o,r);if(!a)return cd(t);const d=this.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?fP(d):this.lineralizeSegments(o,d).pipe(Zt(p=>this.expandSegment(n,t,i,p.concat(u),s,!1)))}matchSegmentAgainstRoute(n,t,i,o,r){return"**"===i.path?(n=rP(i,n),i.loadChildren?(i._loadedRoutes?ne({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(W(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new He(o,{})))):ne(new He(o,{}))):uP(t,i,o,n).pipe(Ot(({matched:s,consumedSegments:a,remainingSegments:l})=>{var u;return s?(n=null!==(u=i._injector)&&void 0!==u?u:n,this.getChildConfig(n,i,o).pipe(Zt(d=>{var p;const h=null!==(p=d.injector)&&void 0!==p?p:n,v=d.routes,{segmentGroup:C,slicedSegments:M}=Nh(t,a,l,v),T=new He(C.segments,C.children);if(0===M.length&&T.hasChildren())return this.expandChildren(h,v,T).pipe(W(R=>new He(a,R)));if(0===v.length&&0===M.length)return ne(new He(a,{}));const A=co(i)===r;return this.expandSegment(h,T,v,M,A?Le:r,!0).pipe(W(b=>new He(a.concat(b.segments),b.children)))}))):cd(t)}))}getChildConfig(n,t,i){return t.children?ne({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?ne({routes:t._loadedRoutes,injector:t._loadedInjector}):function mq(e,n,t,i){const o=n.canLoad;return void 0===o||0===o.length?ne(!0):ne(o.map(s=>{const a=eu(s,e);return Ds(function nq(e){return e&&ud(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(tu(),lP())}(n,t,i).pipe(Zt(o=>o?this.configLoader.loadChildren(n,t).pipe(Et(r=>{t._loadedRoutes=r.routes,t._loadedInjector=r.injector})):function Tq(e){return Qo(nP(Fh,3))}())):ne({routes:[],injector:n})}lineralizeSegments(n,t){let i=[],o=t.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return ne(i);if(o.numberOfChildren>1||!o.children[Le])return Qo(new N(4e3,Fh));o=o.children[Le]}}applyRedirectCommands(n,t,i){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i)}applyRedirectCreateUrlTree(n,t,i,o){const r=this.createSegmentGroup(n,t.root,i,o);return new va(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return Ln(n,(o,r)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=t[a]}else i[r]=o}),i}createSegmentGroup(n,t,i,o){const r=this.createSegments(n,t.segments,i,o);let s={};return Ln(t.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,o)}),new He(r,s)}createSegments(n,t,i,o){return t.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,t,i){const o=i[t.path.substring(1)];if(!o)throw new N(4001,Fh);return o}findOrReturn(n,t){let i=0;for(const o of t){if(o.path===n.path)return t.splice(i),o;i++}return n}}class Sq{}class Iq{constructor(n,t,i,o,r,s,a,l){this.injector=n,this.rootComponentType=t,this.config=i,this.urlTree=o,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const n=Nh(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Le).pipe(W(t=>{if(null===t)return null;const i=new Ah([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Le,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new kr(i,t),r=new JI(this.url,o);return this.inheritParamsAndData(r._root),r}))}inheritParamsAndData(n){const t=n.value,i=XI(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,t,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,t,i):this.processSegment(n,t,i,i.segments,o)}processChildren(n,t,i){return bt(Object.keys(i.children)).pipe(_a(o=>{const r=i.children[o],s=sP(t,o);return this.processSegmentGroup(n,s,r,o)}),SI((o,r)=>o&&r?(o.push(...r),o):null),tA(o=>null!==o),Ch(null),OI(),W(o=>{if(null===o)return null;const r=hP(o);return function Pq(e){e.sort((n,t)=>n.value.outlet===Le?-1:t.value.outlet===Le?1:n.value.outlet.localeCompare(t.value.outlet))}(r),r}))}processSegment(n,t,i,o,r){return bt(t).pipe(_a(s=>{var a;return this.processSegmentAgainstRoute(null!==(a=s._injector)&&void 0!==a?a:n,s,i,o,r)}),Cs(s=>!!s),Ro(s=>{if(Gb(s))return dP(i,o,r)?ne([]):ne(null);throw s}))}processSegmentAgainstRoute(n,t,i,o,r){var s,a;if(t.redirectTo||!cP(t,i,o,r))return ne(null);let l;if("**"===t.path){const u=o.length>0?PI(o).parameters:{},c=mP(i)+o.length;l=ne({snapshot:new Ah(o,u,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,vP(t),co(t),null!==(a=null!==(s=t.component)&&void 0!==s?s:t._loadedComponent)&&void 0!==a?a:null,t,gP(i),c,yP(t),c),consumedSegments:[],remainingSegments:[]})}else l=uP(i,t,o,n).pipe(W(({matched:u,consumedSegments:c,remainingSegments:d,parameters:p})=>{var h,v;if(!u)return null;const C=mP(i)+c.length;return{snapshot:new Ah(c,p,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,vP(t),co(t),null!==(v=null!==(h=t.component)&&void 0!==h?h:t._loadedComponent)&&void 0!==v?v:null,t,gP(i),C,yP(t),C),consumedSegments:c,remainingSegments:d}}));return l.pipe(Ot(u=>{var c,d;if(null===u)return ne(null);const{snapshot:p,consumedSegments:h,remainingSegments:v}=u;n=null!==(c=t._injector)&&void 0!==c?c:n;const C=null!==(d=t._loadedInjector)&&void 0!==d?d:n,M=function xq(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(t),{segmentGroup:T,slicedSegments:A}=Nh(i,h,v,M.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===A.length&&T.hasChildren())return this.processChildren(C,M,T).pipe(W(b=>null===b?null:[new kr(p,b)]));if(0===M.length&&0===A.length)return ne([new kr(p,[])]);const S=co(t)===r;return this.processSegment(C,M,T,A,S?Le:r).pipe(W(b=>null===b?null:[new kr(p,b)]))}))}}function Nq(e){const n=e.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function hP(e){const n=[],t=new Set;for(const i of e){if(!Nq(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),t.add(o)):n.push(i)}for(const i of t){const o=hP(i.children);n.push(new kr(i.value,o))}return n.filter(i=>!t.has(i))}function gP(e){let n=e;for(;n._sourceSegment;)n=n._sourceSegment;return n}function mP(e){var n,t;let i=e,o=null!==(n=i._segmentIndexShift)&&void 0!==n?n:0;for(;i._sourceSegment;)i=i._sourceSegment,o+=null!==(t=i._segmentIndexShift)&&void 0!==t?t:0;return o-1}function vP(e){return e.data||{}}function yP(e){return e.resolve||{}}function bP(e){return"string"==typeof e.title||null===e.title}function Yb(e){return Ot(n=>{const t=e(n);return t?bt(t).pipe(W(()=>n)):ne(n)})}let CP=(()=>{class e{buildTitle(t){var i;let o,r=t.root;for(;void 0!==r;)o=null!==(i=this.getResolvedTitleForRoute(r))&&void 0!==i?i:o,r=r.children.find(s=>s.outlet===Le);return o}getResolvedTitleForRoute(t){return t.data[Xc]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:function(){return U(DP)},providedIn:"root"}),e})(),DP=(()=>{class e extends CP{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}}return e.\u0275fac=function(t){return new(t||e)(L(uv))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Uq{}class $q extends class jq{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}{}const Vh=new E("",{providedIn:"root",factory:()=>({})}),Kb=new E("ROUTES");let Zb=(()=>{class e{constructor(t,i){this.injector=t,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return ne(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=Ds(t.loadComponent()).pipe(Et(r=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=r}),Eb(()=>{this.componentLoaders.delete(t)})),o=new MI(i,()=>new zt).pipe(wb());return this.componentLoaders.set(t,o),o}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ne({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(W(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,u,c=!1;Array.isArray(a)?u=a:(l=a.create(t).injector,u=II(l.get(Kb,[],ue.Self|ue.Optional)));return{routes:u.map(zb),injector:l}}),Eb(()=>{this.childrenLoaders.delete(i)})),s=new MI(r,()=>new zt).pipe(wb());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(t){return Ds(t()).pipe(Zt(i=>i instanceof A0||Array.isArray(i)?ne(i):bt(this.compiler.compileModuleAsync(i))))}}return e.\u0275fac=function(t){return new(t||e)(L(xn),L(O_))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Gq{}class Wq{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,t){return n}}function qq(e){throw e}function Yq(e,n,t){return n.parse("/")}const Kq={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Zq={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function wP(){var e,n;const t=U(LI),i=U(rd),o=U(j_),r=U(xn),s=U(O_),a=null!==(e=U(Kb,{optional:!0}))&&void 0!==e?e:[],l=null!==(n=U(Vh,{optional:!0}))&&void 0!==n?n:{},u=U(DP),c=U(CP,{optional:!0}),d=U(Gq,{optional:!0}),p=U(Uq,{optional:!0}),h=new Vn(null,t,i,o,r,s,II(a));return d&&(h.urlHandlingStrategy=d),p&&(h.routeReuseStrategy=p),h.titleStrategy=null!=c?c:u,function Qq(e,n){e.errorHandler&&(n.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(n.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(n.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(n.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(n.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(n.canceledNavigationResolution=e.canceledNavigationResolution)}(l,h),h}let Vn=(()=>{class e{constructor(t,i,o,r,s,a,l){this.rootComponentType=t,this.urlSerializer=i,this.rootContexts=o,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new zt,this.errorHandler=qq,this.malformedUriErrorHandler=Yq,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>ne(void 0),this.urlHandlingStrategy=new Wq,this.routeReuseStrategy=new $q,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(Zb),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new x9(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new P9(p)),this.ngModule=s.get(Qs),this.console=s.get(aV);const d=s.get(ct);this.isNgZoneEnabled=d instanceof ct&&ct.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function t9(){return new va(new He([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=QI(this.currentUrlTree,this.rootComponentType),this.transitions=new cn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const i=this.events;return t.pipe(At(o=>0!==o.id),W(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Ot(o=>{let r=!1,s=!1;return ne(o).pipe(Et(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ot(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return MP(a.source)&&(this.browserUrlTree=a.extractedUrl),ne(a).pipe(Ot(d=>{const p=this.transitions.getValue();return i.next(new Rb(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),p!==this.transitions.getValue()?xt:Promise.resolve(d)}),function Eq(e,n,t,i){return Ot(o=>function wq(e,n,t,i,o){return new Mq(e,n,t,i,o).apply()}(e,n,t,o.extractedUrl,i).pipe(W(r=>Object.assign(Object.assign({},o),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Et(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects}),o.urlAfterRedirects=d.urlAfterRedirects}),function Fq(e,n,t,i,o,r){return Zt(s=>function Aq(e,n,t,i,o,r,s="emptyOnly",a="legacy"){return new Iq(e,n,t,i,o,s,a,r).recognize().pipe(Ot(l=>null===l?function Oq(e){return new Ce(n=>n.error(e))}(new Sq):ne(l)))}(e,n,t,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,o,r).pipe(W(a=>Object.assign(Object.assign({},s),{targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Et(d=>{if(o.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const p=new E9(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(p)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:h,source:v,restoredState:C,extras:M}=a,T=new Rb(p,this.serializeUrl(h),v,C);i.next(T);const A=QI(h,this.rootComponentType).snapshot;return ne(o=Object.assign(Object.assign({},a),{targetSnapshot:A,urlAfterRedirects:h,extras:Object.assign(Object.assign({},M),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),xt}),Et(a=>{const l=new S9(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),W(a=>o=Object.assign(Object.assign({},a),{guards:Q9(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function lq(e,n){return Zt(t=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:s}}=t;return 0===s.length&&0===r.length?ne(Object.assign(Object.assign({},t),{guardsResult:!0})):function uq(e,n,t,i){return bt(e).pipe(Zt(o=>function gq(e,n,t,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?ne(r.map(a=>{var l;const u=null!==(l=sd(n))&&void 0!==l?l:o,c=eu(a,u);return Ds(function rq(e){return e&&ud(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,i):u.runInContext(()=>c(e,n,t,i))).pipe(Cs())})).pipe(tu()):ne(!0)}(o.component,o.route,t,n,i)),Cs(o=>!0!==o,!0))}(s,i,o,e).pipe(Zt(a=>a&&function tq(e){return"boolean"==typeof e}(a)?function cq(e,n,t,i){return bt(n).pipe(_a(o=>Pl(function pq(e,n){return null!==e&&n&&n(new N9(e)),ne(!0)}(o.route.parent,i),function dq(e,n){return null!==e&&n&&n(new F9(e)),ne(!0)}(o.route,i),function hq(e,n,t){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(s=>function X9(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>zf(()=>ne(s.guards.map(l=>{var u;const c=null!==(u=sd(s.node))&&void 0!==u?u:t,d=eu(l,c);return Ds(function oq(e){return e&&ud(e.canActivateChild)}(d)?d.canActivateChild(i,e):c.runInContext(()=>d(i,e))).pipe(Cs())})).pipe(tu())));return ne(r).pipe(tu())}(e,o.path,t),function fq(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return ne(!0);const o=i.map(r=>zf(()=>{var s;const a=null!==(s=sd(n))&&void 0!==s?s:t,l=eu(r,a);return Ds(function iq(e){return e&&ud(e.canActivate)}(l)?l.canActivate(n,e):a.runInContext(()=>l(n,e))).pipe(Cs())}));return ne(o).pipe(tu())}(e,o.route,t))),Cs(o=>!0!==o,!0))}(i,r,e,n):ne(a)),W(a=>Object.assign(Object.assign({},t),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Et(a=>{if(o.guardsResult=a.guardsResult,ba(a.guardsResult))throw tP(0,a.guardsResult);const l=new O9(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),At(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),Yb(a=>{if(a.guards.canActivateChecks.length)return ne(a).pipe(Et(l=>{const u=new A9(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),Ot(l=>{let u=!1;return ne(l).pipe(function kq(e,n){return Zt(t=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=t;if(!o.length)return ne(t);let r=0;return bt(o).pipe(_a(s=>function Lq(e,n,t,i){const o=e.routeConfig,r=e._resolve;return void 0!==(null==o?void 0:o.title)&&!bP(o)&&(r[Xc]=o.title),function Vq(e,n,t,i){const o=function Hq(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return ne({});const r={};return bt(o).pipe(Zt(s=>function Bq(e,n,t,i){var o;const r=null!==(o=sd(n))&&void 0!==o?o:i,s=eu(e,r);return Ds(s.resolve?s.resolve(n,t):r.runInContext(()=>s(n,t)))}(e[s],n,t,i).pipe(Cs(),Et(a=>{r[s]=a}))),Mb(1),xo(r),Ro(s=>Gb(s)?xt:Qo(s)))}(r,e,n,i).pipe(W(s=>(e._resolvedData=s,e.data=XI(e,t).resolve,o&&bP(o)&&(e.data[Xc]=o.title),null)))}(s.route,i,e,n)),Et(()=>r++),Mb(1),Zt(s=>r===o.length?ne(t):xt))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Et({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Et(l=>{const u=new I9(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),Yb(a=>{const l=u=>{var c;const d=[];(null===(c=u.routeConfig)||void 0===c?void 0:c.loadComponent)&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Et(p=>{u.component=p}),W(()=>{})));for(const p of u.children)d.push(...l(p));return d};return Jf(l(a.targetSnapshot.root)).pipe(Ch(),Ui(1))}),Yb(()=>this.afterPreactivation()),W(a=>{const l=function B9(e,n,t){const i=od(e,n._root,t?t._root:void 0);return new ZI(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return o=Object.assign(Object.assign({},a),{targetRouterState:l})}),Et(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((e,n,t)=>W(i=>(new Z9(n,i.targetRouterState,i.currentRouterState,t).activate(e),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Et({next(){r=!0},complete(){r=!0}}),Eb(()=>{var a;r||s||this.cancelNavigationTransition(o,"",1),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===o.id&&(this.currentNavigation=null)}),Ro(a=>{var l;if(s=!0,oP(a)){iP(a)||(this.navigated=!0,this.restoreHistory(o,!0));const u=new Oh(o.id,this.serializeUrl(o.extractedUrl),a.message,a.cancellationCode);if(i.next(u),iP(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||MP(o.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const u=new qI(o.id,this.serializeUrl(o.extractedUrl),a,null!==(l=o.targetSnapshot)&&void 0!==l?l:void 0);i.next(u);try{o.resolve(this.errorHandler(a))}catch(c){o.reject(c)}}return xt}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var o;const r={replaceUrl:!0},s=null!==(o=t.state)&&void 0!==o&&o.navigationId?t.state:null;if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const a=this.parseUrl(t.url);this.scheduleNavigation(a,i,s,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){this.config=t.map(zb),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:o,queryParams:r,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,u=o||this.routerState.root,c=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}return null!==d&&(d=this.removeEmptyProps(d)),b9(u,this.currentUrlTree,t,d,null!=c?c:null)}navigateByUrl(t,i={skipLocationChange:!1}){const o=ba(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(t,i={skipLocationChange:!1}){return function Xq(e){for(let n=0;n{const r=t[o];return null!=r&&(i[o]=r),i},{})}processNavigations(){this.navigations.subscribe(t=>{var i;this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Ca(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(i=this.titleStrategy)||void 0===i||i.updateTitle(this.routerState.snapshot),t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,i,o,r,s){var a,l;if(this.disposed)return Promise.resolve(!1);let u,c,d;s?(u=s.resolve,c=s.reject,d=s.promise):d=new Promise((v,C)=>{u=v,c=C});const p=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),h=o&&o.\u0275routerPageId?o.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):h=0,this.setTransition({id:p,targetPageId:h,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:u,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(v=>Promise.reject(v))}setBrowserUrl(t,i){const o=this.urlSerializer.serialize(t),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",r):this.location.go(o,"",r)}restoreHistory(t,i=!1){var o,r;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===s&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,i,o){const r=new Oh(t.id,this.serializeUrl(t.extractedUrl),i,o);this.triggerEvent(r),t.resolve(!1)}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return e.\u0275fac=function(t){pp()},e.\u0275prov=$({token:e,factory:function(){return wP()},providedIn:"root"}),e})();function MP(e){return"imperative"!==e}let Qb=(()=>{class e{constructor(t,i,o,r,s){this.router=t,this.route=i,this.tabIndexAttribute=o,this.renderer=r,this.el=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new zt,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(t){this._preserveFragment=Tr(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=Tr(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=Tr(t)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(t){if(null!=this.tabIndexAttribute)return;const i=this.renderer,o=this.el.nativeElement;null!==t?i.setAttribute(o,"tabindex",t):i.removeAttribute(o,"tabindex")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(t){return new(t||e)(_(Vn),_(Lr),qa("tabindex"),_(Yi),_(fe))},e.\u0275dir=V({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,i){1&t&&ce("click",function(){return i.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[mn]}),e})(),nu=(()=>{class e{constructor(t,i,o){this.router=t,this.route=i,this.locationStrategy=o,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new zt,this.subscription=t.events.subscribe(r=>{r instanceof Ca&&this.updateTargetUrlAndHref()})}set preserveFragment(t){this._preserveFragment=Tr(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=Tr(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=Tr(t)}get replaceUrl(){return this._replaceUrl}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:null}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,i,o,r,s){return!!(0!==t||i||o||r||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(t){return new(t||e)(_(Vn),_(Lr),_(ea))},e.\u0275dir=V({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,i){1&t&&ce("click",function(r){return i.onClick(r.button,r.ctrlKey,r.shiftKey,r.altKey,r.metaKey)}),2&t&&vt("target",i.target)("href",i.href,lp)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[mn]}),e})(),EP=(()=>{class e{constructor(t,i,o,r,s,a){this.router=t,this.element=i,this.renderer=o,this.cdr=r,this.link=s,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new dt,this.routerEventsSubscription=t.events.subscribe(l=>{l instanceof Ca&&this.update()})}ngAfterContentInit(){ne(this.links.changes,this.linksWithHrefs.changes,ne(null)).pipe(ar()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const i=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=bt(i).pipe(ar()).subscribe(o=>{this.isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(t){const i=Array.isArray(t)?t:t.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(i=>{t?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const i=function Jq(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&t.isActive(o.urlTree,i)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return e.\u0275fac=function(t){return new(t||e)(_(Vn),_(fe),_(Yi),_(Zn),_(Qb,8),_(nu,8))},e.\u0275dir=V({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(t,i,o){if(1&t&&(Xs(o,Qb,5),Xs(o,nu,5)),2&t){let r;qt(r=Yt())&&(i.links=r),qt(r=Yt())&&(i.linksWithHrefs=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[mn]}),e})();class SP{}let eY=(()=>{class e{preload(t,i){return i().pipe(Ro(()=>ne(null)))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),tY=(()=>{class e{constructor(t,i,o,r,s){this.router=t,this.injector=o,this.preloadingStrategy=r,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(At(t=>t instanceof Ca),_a(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){var o,r,s;const a=[];for(const l of i){l.providers&&!l._injector&&(l._injector=Ip(l.providers,t,`Route: ${l.path}`));const u=null!==(o=l._injector)&&void 0!==o?o:t,c=null!==(r=l._loadedInjector)&&void 0!==r?r:u;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(u,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(c,null!==(s=l.children)&&void 0!==s?s:l._loadedRoutes))}return bt(a).pipe(ar())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):ne(null);const r=o.pipe(Zt(s=>{var a;return null===s?ne(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(null!==(a=s.injector)&&void 0!==a?a:t,s.routes))}));return i.loadComponent&&!i._loadedComponent?bt([r,this.loader.loadComponent(i)]).pipe(ar()):r})}}return e.\u0275fac=function(t){return new(t||e)(L(Vn),L(O_),L(Zr),L(SP),L(Zb))},e.\u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Xb=new E("");let OP=(()=>{class e{constructor(t,i,o={}){this.router=t,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Rb?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ca&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof YI&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.router.triggerEvent(new YI(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){pp()},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function iu(e,n){return{\u0275kind:e,\u0275providers:n}}function Jb(e){return[{provide:Kb,multi:!0,useValue:e}]}function IP(){const e=U(xn);return n=>{var t,i;const o=e.get(El);if(n!==o.components[0])return;const r=e.get(Vn),s=e.get(PP);1===e.get(eC)&&r.initialNavigation(),null===(t=e.get(xP,null,ue.Optional))||void 0===t||t.setUpPreloading(),null===(i=e.get(Xb,null,ue.Optional))||void 0===i||i.init(),r.resetRootComponentType(o.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}const PP=new E("",{factory:()=>new zt}),eC=new E("",{providedIn:"root",factory:()=>1});const xP=new E("");function rY(e){return iu(0,[{provide:xP,useExisting:tY},{provide:SP,useExisting:e}])}const NP=new E("ROUTER_FORROOT_GUARD"),sY=[j_,{provide:LI,useClass:Ob},{provide:Vn,useFactory:wP},rd,{provide:Lr,useFactory:function AP(e){return e.routerState.root},deps:[Vn]},Zb];function aY(){return new SM("Router",Vn)}let RP=(()=>{class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[sY,[],Jb(t),{provide:NP,useFactory:dY,deps:[[Vn,new gr,new Us]]},{provide:Vh,useValue:i||{}},null!=i&&i.useHash?{provide:ea,useClass:KV}:{provide:ea,useClass:JM},{provide:Xb,useFactory:()=>{const e=U(Vn),n=U(Xp),t=U(Vh);return t.scrollOffset&&n.setOffset(t.scrollOffset),new OP(e,n,t)}},null!=i&&i.preloadingStrategy?rY(i.preloadingStrategy).\u0275providers:[],{provide:SM,multi:!0,useFactory:aY},null!=i&&i.initialNavigation?pY(i):[],[{provide:FP,useFactory:IP},{provide:yM,multi:!0,useExisting:FP}]]}}static forChild(t){return{ngModule:e,providers:[Jb(t)]}}}return e.\u0275fac=function(t){return new(t||e)(L(NP,8))},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[jb]}),e})();function dY(e){return"guarded"}function pY(e){return["disabled"===e.initialNavigation?iu(3,[{provide:gc,multi:!0,useFactory:()=>{const n=U(Vn);return()=>{n.setUpLocationChangeListener()}}},{provide:eC,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?iu(2,[{provide:eC,useValue:0},{provide:gc,multi:!0,deps:[xn],useFactory:n=>{const t=n.get(qV,Promise.resolve());let i=!1;return()=>t.then(()=>new Promise(r=>{const s=n.get(Vn),a=n.get(PP);(function o(r){n.get(Vn).events.pipe(At(a=>a instanceof Ca||a instanceof Oh||a instanceof qI),W(a=>a instanceof Ca||a instanceof Oh&&(0===a.code||1===a.code)&&null),At(a=>null!==a),Ui(1)).subscribe(()=>{r()})})(()=>{r(!0),i=!0}),s.afterPreactivation=()=>(r(!0),i||a.closed?ne(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const FP=new E(""),hY=["content"],gY=["*"];let Ts=(()=>{class e{constructor(t,i,o){this.tippyService=t,this.schemeService=i,this.destroy$=o}ngOnInit(){}ngAfterViewInit(){const t=this.tippyService.getInstances();!t||this.listenForSchemeChange(t)}listenForSchemeChange(t){this.schemeService.scheme$.pipe(Je(this.destroy$)).subscribe(i=>{const o=i===jt.Dark?"light":"dark";null==t||t.forEach(r=>r.props.content.toString().includes("theme")?r:r.setProps({theme:o}))})}}return e.\u0275fac=function(t){return new(t||e)(_(Nr),_(as),_(Sn))},e.\u0275cmp=de({type:e,selectors:[["t-demo"]],viewQuery:function(t,i){if(1&t&&Kn(hY,5,fe),2&t){let o;qt(o=Yt())&&(i.projectedContent=o.first)}},inputs:{customClass:"customClass"},features:[j([Sn])],ngContentSelectors:gY,decls:3,vars:3,consts:[["content",""]],template:function(t,i){1&t&&(Rn(),g(0,"div",null,0),Tt(2),f()),2&t&&bl("demo ",i.customClass,"")},styles:["[_nghost-%COMP%] .on-condition-input{width:70%}[_nghost-%COMP%] .demo[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-m);padding:1rem 2rem;background:var(--tui-clear);border-radius:.75rem;transition:color .4s ease,background-color .1s cubic-bezier(.61,1,.88,1)}[_nghost-%COMP%] .demo.service[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0}),e})();const mY=(e,n)=>e;let _Y=(()=>{class e extends _E{transform(t,...i){return super.transform(t,mY)}}return e.\u0275fac=function(){let n;return function(i){return(n||(n=Ee(e)))(i||e)}}(),e.\u0275pipe=Pn({name:"defaultOrderKeyvalue",type:e,pure:!0}),e})();const kP=function(){return[4,4]},vY=function(){return[250,200]},yY=function(e,n,t){return{placement:e,arrow:!1,offset:n,animation:"shift-toward",duration:t}};function bY(e,n){if(1&e&&(g(0,"div",19),m(1),f()),2&e){const t=n.$implicit;y("ngxTippy",t.value.content)("tippyProps",V0(5,yY,t.value.item,Re(3,kP),Re(4,vY))),D(1),gt(" ",t.value.item," ")}}const CY=function(e,n){return{arrow:!1,offset:e,animation:n}};function DY(e,n){if(1&e&&(g(0,"div",20),m(1),f()),2&e){const t=n.$implicit;y("ngxTippy",t.value.content)("tippyProps",g_(4,CY,Re(3,kP),t.value.item)),D(1),gt(" ",t.value.item," ")}}function TY(e,n){1&e&&F(0,"img",21)}function wY(e,n){1&e&&F(0,"img",21)}const MY=function(e){return{arrow:!1,theme:e,animation:"shift-toward"}};function EY(e,n){if(1&e&&(g(0,"div",22),m(1),f()),2&e){const t=n.$implicit;y("ngxTippy",t+" theme")("tippyProps",Yn(3,MY,t)),D(1),gt(" ",t," ")}}function SY(e,n){1&e&&F(0,"img",21)}const OY=function(){return{placement:"right"}},LP=function(){return[42,4]},AY=function(e){return{arrow:!1,offset:e,animation:"custom-shift"}},IY=function(e){return{arrow:!1,offset:e,animation:"custom-shift",inertia:!0}},PY=function(){return["light","light-border","material","transcluded"]},xY=function(){return{placement:"right",theme:"pastel",arrow:!1}},NY=function(){return{placement:"bottom",trigger:"mouseenter focus"}},RY=function(){return{placement:"bottom",trigger:"focus",hideOnClick:!1}},FY=function(){return{placement:"bottom",trigger:"focusin",hideOnClick:!1}},kY=function(){return{placement:"bottom",trigger:"click"}},LY=function(){return{placement:"bottom",trigger:"manual"}},ye=["\u{1f604}","\u{1f603}","\u{1f600}","\u{1f60a}","\u{1f609}","\u{1f60d}","\u{1f618}","\u{1f61a}","\u{1f617}","\u{1f619}","\u{1f61c}","\u{1f61d}","\u{1f61b}","\u{1f633}","\u{1f601}","\u{1f614}","\u{1f60c}","\u{1f612}","\u{1f61e}","\u{1f623}","\u{1f622}","\u{1f602}","\u{1f62d}","\u{1f62a}","\u{1f625}","\u{1f630}","\u{1f605}","\u{1f613}","\u{1f629}","\u{1f62b}","\u{1f628}","\u{1f631}","\u{1f620}","\u{1f621}","\u{1f624}","\u{1f616}","\u{1f606}","\u{1f60b}","\u{1f637}","\u{1f60e}","\u{1f634}","\u{1f635}","\u{1f632}","\u{1f61f}","\u{1f626}","\u{1f627}","\u{1f608}","\u{1f47f}","\u{1f62e}","\u{1f62c}","\u{1f610}","\u{1f615}","\u{1f62f}","\u{1f636}","\u{1f607}","\u{1f60f}"];let VY=(()=>{class e{constructor(t){this.tippyService=t,this.tooltips={top:{item:"top",content:ye[Math.floor(Math.random()*ye.length)]},"top-start":{item:"top-start",content:ye[Math.floor(Math.random()*ye.length)]},"top-end":{item:"top-end",content:ye[Math.floor(Math.random()*ye.length)]},right:{item:"right",content:ye[Math.floor(Math.random()*ye.length)]},"right-start":{item:"right-start",content:ye[Math.floor(Math.random()*ye.length)]},"right-end":{item:"right-end",content:ye[Math.floor(Math.random()*ye.length)]},bottom:{item:"bottom",content:ye[Math.floor(Math.random()*ye.length)]},"bottom-start":{item:"bottom-start",content:ye[Math.floor(Math.random()*ye.length)]},"bottom-end":{item:"bottom-end",content:ye[Math.floor(Math.random()*ye.length)]},left:{item:"left",content:ye[Math.floor(Math.random()*ye.length)]},"left-start":{item:"left-start",content:ye[Math.floor(Math.random()*ye.length)]},"left-end":{item:"left-end",content:ye[Math.floor(Math.random()*ye.length)]}},this.animations={"shift-away":{item:"shift-away",content:ye[Math.floor(Math.random()*ye.length)]},"shift-away-subtle":{item:"shift-away-subtle",content:ye[Math.floor(Math.random()*ye.length)]},"shift-away-extreme":{item:"shift-away-extreme",content:ye[Math.floor(Math.random()*ye.length)]},"shift-toward":{item:"shift-toward",content:ye[Math.floor(Math.random()*ye.length)]},"shift-toward-subtle":{item:"shift-toward-subtle",content:ye[Math.floor(Math.random()*ye.length)]},"shift-toward-extreme":{item:"shift-toward-extreme",content:ye[Math.floor(Math.random()*ye.length)]},scale:{item:"scale",content:ye[Math.floor(Math.random()*ye.length)]},"scale-subtle":{item:"scale-subtle",content:ye[Math.floor(Math.random()*ye.length)]},"scale-extreme":{item:"scale-extreme",content:ye[Math.floor(Math.random()*ye.length)]},perspective:{item:"perspective",content:ye[Math.floor(Math.random()*ye.length)]},"perspective-subtle":{item:"perspective-subtle",content:ye[Math.floor(Math.random()*ye.length)]},"perspective-extreme":{item:"perspective-extreme",content:ye[Math.floor(Math.random()*ye.length)]}}}ngOnInit(){}showManualTooltip(){this.tippyService.show("feistyFawn")}}return e.\u0275fac=function(t){return new(t||e)(_(Nr))},e.\u0275cmp=de({type:e,selectors:[["app-demo-page"]],decls:70,vars:32,consts:[[1,"demo-page"],[1,"tui-text_h3","tui-space_top-0"],[1,"tui-text_h6"],["size","m","tuiButton","","ngxTippy","Tooltip content","type","button","appearance","primary",1,"tui-button",3,"tippyProps"],[1,"demo-page__grid"],["class","demo-page__child demo-page__child--placements","tippyClassName","demo-page__emojii",3,"ngxTippy","tippyProps",4,"ngFor","ngForOf"],["class","demo-page__child","tippyClassName","demo-page__emojii",3,"ngxTippy","tippyProps",4,"ngFor","ngForOf"],[1,"demo-page__grid--long"],["tippyClassName","demo-page__custom-anim",1,"demo-page__child",3,"ngxTippy","tippyProps"],["train",""],["href","https://atomiks.github.io/tippyjs/v6/animations/#inertia","target","_blank","rel","noopener noreferrer","tuiLink",""],[1,"demo-page__themes"],["class","demo-page__child demo-page__child--theme","tippyClassName","custom-theme",3,"ngxTippy","tippyProps",4,"ngFor","ngForOf"],["size","m","tuiButton","","ngxTippy","Custom theme content","type","button","appearance","primary",1,"tui-button",3,"tippyProps"],["status","info",1,"service-demo","tui-space_vertical-4"],[1,"tui-text_body-m-2","tui-space_vertical-0"],["size","m","tuiButton","","ngxTippy","Tooltip content","type","button","appearance","primary",1,"tui-button","demo-page__trigger",3,"tippyProps"],["size","m","tuiButton","","ngxTippy","Tooltip content","type","button","appearance","primary","tippyName","feistyFawn",1,"tui-button","demo-page__trigger",3,"tippyProps"],[1,"demo-page__manual",3,"click"],["tippyClassName","demo-page__emojii",1,"demo-page__child","demo-page__child--placements",3,"ngxTippy","tippyProps"],["tippyClassName","demo-page__emojii",1,"demo-page__child",3,"ngxTippy","tippyProps"],["src","assets/img/train.png","alt","train",1,"demo-page__train"],["tippyClassName","custom-theme",1,"demo-page__child","demo-page__child--theme",3,"ngxTippy","tippyProps"]],template:function(t,i){if(1&t&&(g(0,"div",0)(1,"h1",1),m(2,"Demo page"),f(),g(3,"h6",2),m(4," Simple tooltip: "),f(),g(5,"t-demo")(6,"button",3),m(7," Button "),f()(),g(8,"h6",2),m(9," Placements: "),f(),g(10,"t-demo")(11,"div",4),I(12,bY,2,9,"div",5),Rt(13,"defaultOrderKeyvalue"),f()(),g(14,"h6",2),m(15," Animations: "),f(),g(16,"t-demo")(17,"div",4),I(18,DY,2,7,"div",6),Rt(19,"defaultOrderKeyvalue"),f()(),g(20,"h6",2),m(21," Custom animation: "),f(),g(22,"t-demo")(23,"div",7)(24,"div",8),m(25," custom-shift "),f(),I(26,TY,1,0,"ng-template",null,9,Zi),f()(),g(28,"h6",2),m(29," Custom animation with "),g(30,"a",10),m(31,"inertia"),f(),m(32,": "),f(),g(33,"t-demo")(34,"div",7)(35,"div",8),m(36," custom-shift + inertia "),f(),I(37,wY,1,0,"ng-template",null,9,Zi),f()(),g(39,"h6",2),m(40," Themes: "),f(),g(41,"t-demo")(42,"div",11),I(43,EY,2,5,"div",12),I(44,SY,1,0,"ng-template",null,9,Zi),f()(),g(46,"h6",2),m(47," Custom theme: "),f(),g(48,"t-demo")(49,"button",13),m(50," Custom theme "),f()(),g(51,"h6",2),m(52," Triggers: "),f(),g(53,"tui-notification",14)(54,"p",15),m(55,"mouseenter | focus | click | focusin | manual"),f()(),g(56,"t-demo")(57,"button",3),m(58," mouseenter/focus "),f(),g(59,"button",16),m(60," focus "),f(),g(61,"button",16),m(62," focusin "),f(),g(63,"button",16),m(64," click "),f(),g(65,"button",17),m(66," manual "),f()(),g(67,"t-demo")(68,"span",18),ce("click",function(){return i.showManualTooltip()}),m(69,"Click to show tooltip with 'manual' trigger"),f()()()),2&t){const o=Nn(27);D(6),y("tippyProps",Re(18,OY)),D(6),y("ngForOf",Bt(13,14,i.tooltips)),D(6),y("ngForOf",Bt(19,16,i.animations)),D(6),y("ngxTippy",o)("tippyProps",Yn(20,AY,Re(19,LP))),D(11),y("ngxTippy",o)("tippyProps",Yn(23,IY,Re(22,LP))),D(8),y("ngForOf",Re(25,PY)),D(6),y("tippyProps",Re(26,xY)),D(8),y("tippyProps",Re(27,NY)),D(2),y("tippyProps",Re(28,RY)),D(2),y("tippyProps",Re(29,FY)),D(2),y("tippyProps",Re(30,kY)),D(2),y("tippyProps",Re(31,LY))}},dependencies:[Ji,Rr,Zo,ps,ds,Ts,_Y],styles:[".demo-page__emojii, .demo-page__custom-anim{display:flex;align-items:center;justify-content:center;background-color:#fff;border:2px solid var(--tui-primary);font-size:1.2rem;border-radius:50%;width:30px;height:30px} .demo-page__custom-anim{border-radius:1rem;width:200px} .tippy-box[data-animation=custom-shift][data-state=hidden]{opacity:0;transform:translate(-150px);transition-timing-function:cubic-bezier(.895,.03,.685,.22)}t-demo[_ngcontent-%COMP%]{margin-top:1.2rem}.demo-page__grid[_ngcontent-%COMP%]{display:grid;width:100%;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);grid-column-gap:10px;grid-row-gap:10px}.demo-page__child[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:2.75rem;background:var(--tui-primary);color:var(--tui-primary-text);font-weight:600;font-size:1rem;border-radius:12px;cursor:pointer}.demo-page__child--placements[_ngcontent-%COMP%]{height:4rem}.demo-page__grid--long[_ngcontent-%COMP%]{width:33%}.demo-page__train[_ngcontent-%COMP%]{width:100%}.demo-page__themes[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between}.demo-page__child--theme[_ngcontent-%COMP%]{width:22%}.demo-page__trigger[_ngcontent-%COMP%]{margin-left:1rem}.demo-page__manual[_ngcontent-%COMP%]{margin-left:1.5rem;cursor:pointer}"],changeDetection:0}),e})();const HY={grouped_template:{snippet:'\n \n Button\n \n\n',languages:["html"]},grouped_component:{snippet:"import { NgxTippyProps } from 'ngx-tippy-wrapper';\n\n@Component({ ... })\nexport class DemoComponent implements OnInit {\n groupedProps: NgxTippyProps = {\n arrow: false,\n placement: 'top',\n };\n ...\n}",languages:["typescript"]},grouped_custom_template:{snippet:'\n \n Button\n \n\n \n Button\n \n\n \n Button\n \n',languages:["html"]}};function BY(e,n){if(1&e){const t=Li();g(0,"div",8)(1,"tui-svg",9),ce("click",function(){return zn(t),Gn(q(2).copyContent())}),f()()}2&e&&y("@inOutAnimation",void 0)}function UY(e,n){1&e&&(g(0,"div",10),F(1,"tui-svg",11),f()),2&e&&y("@inOutAnimation",void 0)}function jY(e,n){1&e&&(g(0,"div",12),F(1,"tui-svg",13),f()),2&e&&y("@inOutAnimation",void 0)}function $Y(e,n){if(1&e&&(g(0,"div",4),I(1,BY,2,1,"div",5),I(2,UY,2,1,"div",6),I(3,jY,2,1,"div",7),f()),2&e){const t=q();D(1),y("ngIf",!t.isCopied),D(1),y("ngIf",t.isCopied&&!t.isErrCopied),D(1),y("ngIf",t.isCopied&&t.isErrCopied)}}let ws=(()=>{class e{constructor(t,i,o,r,s){this.hljsLoader=t,this.schemeService=i,this.destroy$=o,this.navigator=r,this.cdr=s,this.isCopyVisible=!0}ngOnInit(){this.listenSchemeChanges()}listenSchemeChanges(){this.schemeService.scheme$.pipe(Je(this.destroy$)).subscribe(t=>{this.hljsLoader.setTheme(t===jt.Dark?"assets/themes/github-dark.css":"assets/themes/github.css")})}copyContent(){!this.snippet||this.navigator.clipboard.writeText(this.snippet).then(()=>{console.log(`\u{1f33b} Content copied to clipboard ${this.snippet}`),this.isCopied=!0,this.cdr.markForCheck()}).catch(t=>{console.error(t),this.isErrCopied=!0}).finally(()=>{io(3e3).pipe(Je(this.destroy$)).subscribe(()=>{this.isCopied=!1,this.cdr.markForCheck()})})}}return e.\u0275fac=function(t){return new(t||e)(_(OA),_(as),_(Sn),_(Pf),_(Zn))},e.\u0275cmp=de({type:e,selectors:[["t-demo-code"]],inputs:{snippet:"snippet",languages:"languages",isCopyVisible:"isCopyVisible"},features:[j([Sn])],decls:4,vars:3,consts:[[1,"code"],[1,"code__pre"],[1,"code__code",3,"highlight","languages"],["class","code__action",4,"ngIf"],[1,"code__action"],["class","code__copy",4,"ngIf"],["class","code__success",4,"ngIf"],["class","code__error",4,"ngIf"],[1,"code__copy"],["src","assets/icons/copy.svg",1,"icon",3,"click"],[1,"code__success"],["src","assets/icons/check.svg",1,"icon"],[1,"code__error"],["src","assets/icons/x-circle.svg",1,"icon"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"pre",1),F(2,"code",2),f(),I(3,$Y,4,3,"div",3),f()),2&t&&(D(2),y("highlight",i.snippet)("languages",i.languages),D(1),y("ngIf",i.isCopyVisible))},dependencies:[un,iW,cs],styles:[".code[_ngcontent-%COMP%]{position:relative}.hljs[_ngcontent-%COMP%]{font:var(--tui-font-text-m);padding:1rem 2rem;font-family:monospace;background:var(--tui-clear);word-wrap:break-word;white-space:pre-wrap;border-radius:.75rem;transition:color .4s ease,background-color .1s cubic-bezier(.61,1,.88,1)}.code__action[_ngcontent-%COMP%]{position:absolute;right:1rem;top:1rem;color:var(--tui-text-02)}.code__copy[_ngcontent-%COMP%]{cursor:pointer;opacity:.8;transition:opacity .2s cubic-bezier(.57,1.15,0,1.04)}.code__copy[_ngcontent-%COMP%]:hover{opacity:1}.code__success[_ngcontent-%COMP%]{color:var(--tui-positive);cursor:default}.code__error[_ngcontent-%COMP%]{color:var(--tui-negative);cursor:default}"],data:{animation:[Kt("inOutAnimation",[Ve(":enter",[B({opacity:0}),we("0.275s cubic-bezier(0.61, 1, 0.88, 1)",B({opacity:.8}))])])]},changeDetection:0}),e})();function WY(e,n){if(1&e&&F(0,"t-demo-code",8),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function qY(e,n){if(1&e&&F(0,"t-demo-code",8),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function YY(e,n){1&e&&(g(0,"button",11),m(1," Button "),f()),2&e&&bl("tui-button tui-button-",n.$implicit,"")}const KY=function(){return[0,1,2,3,4]};function ZY(e,n){if(1&e&&(g(0,"t-demo")(1,"ngx-tippy-group",9),I(2,YY,2,3,"button",10),f()()),2&e){const t=q();D(1),y("groupedProps",t.groupedProps),D(1),y("ngForOf",Re(2,KY))}}function QY(e,n){if(1&e&&F(0,"t-demo-code",8),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function XY(e,n){if(1&e&&(g(0,"t-demo")(1,"ngx-tippy-group",9)(2,"button",12),m(3," Button "),f(),g(4,"button",13),m(5," Button "),f(),g(6,"button",14),m(7," Button "),f()()()),2&e){const t=q();D(1),y("groupedProps",t.groupedProps)}}let JY=(()=>{class e{constructor(t,i,o){this.schemeService=t,this.destroy$=i,this.cdr=o,this.snippets=HY,this.isShowDemo=!1,this.groupedProps={arrow:!1,placement:"top"}}ngAfterViewInit(){this.listenForSchemeChange()}listenForSchemeChange(){this.schemeService.scheme$.pipe(Je(this.destroy$)).subscribe(t=>{const i=t===jt.Dark?"light":"dark";this.groupedProps=Object.assign(Object.assign({},this.groupedProps),{theme:i}),this.isShowDemo=!1,this.cdr.markForCheck(),setTimeout(()=>{this.isShowDemo=!0,this.cdr.markForCheck()},0)})}}return e.\u0275fac=function(t){return new(t||e)(_(as),_(Sn),_(Zn))},e.\u0275cmp=de({type:e,selectors:[["app-grouped-tooltips"]],features:[j([Sn])],decls:23,vars:5,consts:[[1,"grouped"],[1,"tui-text_h3","tui-space_top-0"],[1,"tui-text_body-m-2"],["status","info",1,"service-demo","tui-space_vertical-4"],[1,"tui-text_body-m-2","tui-space_vertical-0"],[3,"snippet","languages",4,"tuiLet"],[4,"ngIf"],["tuiLink","","href","https://atomiks.github.io/tippyjs/v6/customization/","target","_blank","rel","noopener noreferrer"],[3,"snippet","languages"],[3,"groupedProps"],["data-tippy-grouped","","data-tippy-content","Tooltip content","size","m","tuiButton","","type","button","appearance","primary",3,"class",4,"ngFor","ngForOf"],["data-tippy-grouped","","data-tippy-content","Tooltip content","size","m","tuiButton","","type","button","appearance","primary"],["data-tippy-grouped","","data-tippy-content","Tooltip content","size","m","tuiButton","","type","button","appearance","primary",1,"tui-button"],["data-tippy-grouped","","data-tippy-arrow","true","data-tippy-content","New tooltip content","size","m","tuiButton","","type","button","appearance","primary",1,"tui-button"],["data-tippy-grouped","","data-tippy-placement","right","data-tippy-content","Another tooltip content","size","m","tuiButton","","type","button","appearance","primary",1,"tui-button"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"h1",1),m(2,"Grouped tooltips"),f(),g(3,"p",2),m(4," If you need to provide unique tooltip content to multiple elements but only initialize once, use the ngx-tippy-group component. "),f(),g(5,"tui-notification",3)(6,"p",4),m(7,"For each tooltip within "),g(8,"em"),m(9,"ngx-tippy-group"),f(),m(10," component you should pass "),g(11,"em"),m(12,"data-tippy-grouped"),f(),m(13," attribute"),f()(),I(14,WY,1,2,"t-demo-code",5),I(15,qY,1,2,"t-demo-code",5),I(16,ZY,3,3,"t-demo",6),g(17,"p",2),m(18," Also you can pass new content and props through attribute for every tooltip element, see "),g(19,"a",7),m(20," customization "),f()(),I(21,QY,1,2,"t-demo-code",5),I(22,XY,8,1,"t-demo",6),f()),2&t&&(D(14),y("tuiLet",i.snippets.grouped_template),D(1),y("tuiLet",i.snippets.grouped_component),D(1),y("ngIf",i.isShowDemo),D(5),y("tuiLet",i.snippets.grouped_custom_template),D(1),y("ngIf",i.isShowDemo))},dependencies:[Ji,un,U7,Zo,Ci,ps,ds,ws,Ts],styles:[".tui-button[_ngcontent-%COMP%]:not(:first-child){margin-left:1rem}"]}),e})();const eK={multiple:{snippet:"\n\n \n \n Button\n \n \n\n",languages:["html"]}};function tK(e,n){if(1&e&&F(0,"t-demo-code",7),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}const nK=function(){return[50,100]},iK=function(e){return{placement:"left",delay:e,animation:"shift-toward"}},oK=function(){return[100,150]},rK=function(e){return{placement:"right",delay:e,animation:"shift-toward"}},sK=function(){return[200,250]},aK=function(e){return{placement:"top",delay:e,animation:"shift-toward"}};let lK=(()=>{class e{constructor(){this.snippets=eK}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=de({type:e,selectors:[["app-multiple-tooltips"]],decls:14,vars:13,consts:[[1,"multiple"],[1,"tui-text_h3","tui-space_top-0"],[1,"tui-text_body-m-2"],[3,"snippet","languages",4,"tuiLet"],["ngxTippy","Left tooltip content",3,"tippyProps"],["ngxTippy","Right tooltip content",3,"tippyProps"],["ngxTippy","Top tooltip content","size","m","tuiButton","","type","button","appearance","primary",1,"tui-button",3,"tippyProps"],[3,"snippet","languages"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"h1",1),m(2,"Multiple tooltips on a single element"),f(),g(3,"p",2),m(4," For multiple tooltips on a single element - use nest elements with "),g(5,"em"),m(6,"ngxTippy"),f(),m(7," directive: "),f(),I(8,tK,1,2,"t-demo-code",3),g(9,"t-demo")(10,"div",4)(11,"div",5)(12,"button",6),m(13," Button "),f()()()()()),2&t&&(D(8),y("tuiLet",i.snippets.multiple),D(2),y("tippyProps",Yn(5,iK,Re(4,nK))),D(1),y("tippyProps",Yn(8,rK,Re(7,oK))),D(1),y("tippyProps",Yn(11,aK,Re(10,sK))))},dependencies:[Rr,Zo,Ci,ws,Ts],changeDetection:0}),e})(),uK=(()=>{class e{constructor(t){this.tippyService=t}ngOnInit(){}ngAfterViewInit(){}}return e.\u0275fac=function(t){return new(t||e)(_(Nr))},e.\u0275cmp=de({type:e,selectors:[["t-demo-playground"]],decls:3,vars:0,consts:[[1,"pg"],[1,"tui-text_h3","tui-space_top-0"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"h1",1),m(2,"Playground"),f()())},changeDetection:0}),e})();const cK={import:{snippet:"import { NgxTippyService } from 'ngx-tippy-wrapper';\n\n@Component({ ... })\nexport class DemoComponent implements OnInit {\n constructor(private readonly tippyService: NgxTippyService) {}\n ...\n}",languages:["typescript"]},changes:{snippet:"import { Subscription } from 'rxjs';\nimport { NgxTippyService } from 'ngx-tippy-wrapper';\n\n@Component({ ... })\nexport class DemoComponent implements OnInit, OnDestroy {\n private instancesChanges$: Subscription;\n\n constructor(private tippyService: NgxTippyService) {}\n\n ngOnInit() {\n this.subToInstancesChanges();\n }\n\n ngOnDestroy() {\n this.instancesChanges$ && this.instancesChanges$.unsubscribe();\n }\n\n subToInstancesChanges() {\n this.instancesChanges$ =\n this.ngxTippyService.instancesChanges.subscribe((changes: InstancesChanges) => { ... });\n }\n}",languages:["typescript"]},changes_interface:{snippet:'interface InstancesChanges {\n name: string;\n reason: InstanceChangeReason;\n instance: NgxTippyInstance;\n}\n\n type InstanceChangeReason =\n "clearDelayTimeouts"\n | "destroy"\n | "disable"\n | "enable"\n | "hide"\n | "hideWithInteractivity"\n | "setContent"\n | "setProps"\n | "show"\n | "unmount"\n | "setInstance"\n}',languages:["typescript"]}};function dK(e,n){if(1&e&&F(0,"t-demo-code",36),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function pK(e,n){if(1&e&&F(0,"t-demo-code",36),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function fK(e,n){if(1&e&&F(0,"t-demo-code",36),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}const hK=function(){return{placement:"left",trigger:"manual"}},gK=function(){return{placement:"top",trigger:"manual"}},mK=function(){return{placement:"right",trigger:"manual"}};let _K=(()=>{class e{constructor(t,i,o){this.tippyService=t,this.destroy$=i,this.cdr=o,this.snippets=cK,this.discoDingo="disco_dingo",this.cosmicCuttlefish="cosmi_cuttlefish",this.yakketyYak="yakkety_yak"}ngOnInit(){this.subToInstancesChanges()}ngAfterViewInit(){this.startShowdiscoDingo(),this.startShowCosmicCuttlefish(),this.startShowYakketyYak()}ngOnDestroy(){var t,i,o;null===(t=this.tippyService.getInstance(this.discoDingo))||void 0===t||t.destroy(),null===(i=this.tippyService.getInstance(this.cosmicCuttlefish))||void 0===i||i.destroy(),null===(o=this.tippyService.getInstance(this.yakketyYak))||void 0===o||o.destroy()}startShowdiscoDingo(){io(1e3,16e3).pipe(Je(this.destroy$)).subscribe(()=>{this.tippyService.show(this.discoDingo),setTimeout(()=>{this.tippyService.getInstance(this.discoDingo)&&this.tippyService.setProps(this.discoDingo,{arrow:!1})},3e3),setTimeout(()=>{this.tippyService.getInstance(this.discoDingo)&&this.tippyService.setProps(this.discoDingo,{placement:"right",offset:[-20,-80]})},6e3),setTimeout(()=>{this.tippyService.getInstance(this.discoDingo)&&this.tippyService.setProps(this.discoDingo,{content:"Something new",animation:"scale"})},9e3),setTimeout(()=>{this.tippyService.getInstance(this.discoDingo)&&this.tippyService.hide(this.discoDingo)},12e3),setTimeout(()=>{this.tippyService.getInstance(this.discoDingo)&&this.tippyService.setProps(this.discoDingo,{placement:"left",offset:[0,20],arrow:!0})},13e3)})}startShowCosmicCuttlefish(){io(3e3,2e4).pipe(Je(this.destroy$)).subscribe(()=>{this.tippyService.show(this.cosmicCuttlefish),setTimeout(()=>{this.tippyService.getInstance(this.cosmicCuttlefish)&&this.tippyService.setProps(this.cosmicCuttlefish,{content:"\u{1f604}"})},9e3),setTimeout(()=>{this.tippyService.getInstance(this.cosmicCuttlefish)&&this.tippyService.hide(this.cosmicCuttlefish)},15e3)})}startShowYakketyYak(){io(5e3,15e3).pipe(Je(this.destroy$)).subscribe(()=>{this.tippyService.show(this.yakketyYak),setTimeout(()=>{this.tippyService.getInstance(this.yakketyYak)&&this.tippyService.disable(this.yakketyYak)},5e3),setTimeout(()=>{this.tippyService.getInstance(this.yakketyYak)&&this.tippyService.enable(this.yakketyYak)},8e3)})}subToInstancesChanges(){this.tippyService.instancesChanges.pipe(Je(this.destroy$)).subscribe(t=>{console.log("\u2b50 Changes:",t),t.name===this.discoDingo&&(this.changesdiscoDingo=t),t.name===this.cosmicCuttlefish&&(this.changesCosmicCuttlefish=t),t.name===this.yakketyYak&&(this.changesYakketyYak=t),this.cdr.markForCheck()})}}return e.\u0275fac=function(t){return new(t||e)(_(Nr),_(Sn),_(Zn))},e.\u0275cmp=de({type:e,selectors:[["t-demo-service"]],features:[j([Sn])],decls:151,vars:18,consts:[[1,"usage"],[1,"tui-text_h3","tui-space_top-0"],[1,"tui-text_body-m-2"],[3,"snippet","languages",4,"tuiLet"],[1,"tui-text_body-m-2","tui-space_vertical-0"],["tuiLink","","href","https://atomiks.github.io/tippyjs/v6/methods/","target","_blank","rel","noopener noreferrer"],["id","additional_methods",1,"tui-text_body-m-2"],[1,"tui-table-wrapper"],[1,"tui-table"],[1,"tui-table__tr","tui-table__tr_border_none","tui-table__tr_bg"],[1,"tui-table__th","tui-table__th_first"],[1,"tui-table__th"],[1,"tui-table__th","tui-table__th_last"],[1,"tui-table__tr","tui-table__tr_border_none"],[1,"tui-table__td","tui-table__td_first"],[1,"tui-table__td"],[1,"tui-table__td","tui-table__td_last"],["id","static_methods",1,"tui-text_body-m-2"],["id","subscription_instances_changes",1,"tui-text_h6"],[1,"container"],[1,"tui-row"],[1,"tui-col_md-4"],["ngxTippy","Awesome title",1,"tui-island__category",3,"tippyName","tippyProps"],[1,"tui-island__title"],[1,"tui-island__paragraph"],[1,"tui-island__paragraph","tui-island__paragraph_link"],["tuiLink",""],["appearance","flat","size","m","tuiButton","","type","button","ngxTippy","Click me",1,"tui-island__footer-button",3,"tippyName","tippyProps"],[1,"tui-island__content"],[1,"tui-island__figure"],[1,"some-figure"],["tuiLink","","ngxTippy","Lorem ipsum dolor sit amet",3,"tippyName","tippyProps"],["customClass","service"],["status","success",1,"service-demo","tui-space_vertical-4"],[1,"service-demo","tui-space_vertical-4"],["status","warning",1,"service-demo","tui-space_vertical-4"],[3,"snippet","languages"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"h1",1),m(2,"Working with service"),f(),g(3,"p",2)(4,"em"),m(5,"NgxTippyService"),f(),m(6," provides functionality to control the tippy programmatically. "),f(),g(7,"p",2),m(8,"Import and provide service:"),f(),I(9,dK,1,2,"t-demo-code",3),g(10,"tui-notification")(11,"p",4)(12,"a",5),m(13," View all available methods "),f()()(),g(14,"p",6),m(15," Additional methods: "),f(),g(16,"div",7)(17,"table",8)(18,"tbody")(19,"tr",9)(20,"th",10),m(21,"Name"),f(),g(22,"th",11),m(23,"Parameter/parameters"),f(),g(24,"th",12),m(25,"Description"),f()(),g(26,"tr",13)(27,"td",14)(28,"strong"),m(29,"getInstance"),f()(),g(30,"td",15),m(31,"name: string"),f(),g(32,"td",16),m(33,"Get specific instance"),f()(),g(34,"tr",13)(35,"td",14)(36,"strong"),m(37,"getInstances"),f()(),g(38,"td",15),m(39,"\u2014"),f(),g(40,"td",16),m(41,"Get all tippy instances"),f()()()()(),g(42,"p",17),m(43," Static methods: "),f(),g(44,"div",7)(45,"table",8)(46,"tbody")(47,"tr",9)(48,"th",10),m(49,"Name"),f(),g(50,"th",11),m(51,"Parameter/parameters"),f(),g(52,"th",12),m(53,"Description"),f()(),g(54,"tr",13)(55,"td",14)(56,"strong"),m(57,"setDefaultProps"),f()(),g(58,"td",15)(59,"em"),m(60,"tippyProps"),f(),m(61,": NgxTippyProps"),f(),g(62,"td",16),m(63,"Set the default props for each new tippy instance "),f()(),g(64,"tr",13)(65,"td",14)(66,"strong"),m(67,"showAll"),f()(),g(68,"td",15),m(69,"\u2014"),f(),g(70,"td",16),m(71,"Show all tooltips"),f()(),g(72,"tr",13)(73,"td",14)(74,"strong"),m(75,"hideAll"),f()(),g(76,"td",15)(77,"em"),m(78,"options?"),f(),m(79,": NgxTippyHideAllOptions"),f(),g(80,"td",16),m(81,"Hide all tooltips or hide all except a particular one, additional hide them with duration"),f()()()()(),g(82,"h6",18),m(83," Subscription to instances changes "),f(),g(84,"p",2),m(85,"Subscription provides logging for tippy instance state changes:"),f(),I(86,pK,1,2,"t-demo-code",3),g(87,"p",2),m(88,"It provides data in format:"),f(),I(89,fK,1,2,"t-demo-code",3),g(90,"t-demo")(91,"div",19)(92,"div",20)(93,"div",21)(94,"tui-island")(95,"p",22),m(96,"category"),f(),g(97,"h3",23),m(98,"Some heading"),f(),g(99,"p",24),m(100," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "),f(),g(101,"p",25)(102,"a",26),m(103," Link "),f()()()(),g(104,"div",21)(105,"tui-island")(106,"h3",23),m(107,"Title"),f(),g(108,"p",24),m(109," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "),f(),g(110,"button",27),m(111," Button "),f()()(),g(112,"div",21)(113,"tui-island")(114,"div",28)(115,"figure",29),F(116,"div",30),f(),g(117,"div")(118,"p",24),m(119," Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. "),f(),g(120,"p",25)(121,"a",31),m(122," Fill some papers "),f()()()()()()()()(),g(123,"t-demo",32)(124,"tui-notification",33)(125,"div")(126,"strong"),m(127,"Name: "),f(),m(128),f(),g(129,"div")(130,"strong"),m(131,"Reason: "),f(),m(132),f()(),g(133,"tui-notification",34)(134,"div")(135,"strong"),m(136,"Name: "),f(),m(137),f(),g(138,"div")(139,"strong"),m(140,"Reason: "),f(),m(141),f()(),g(142,"tui-notification",35)(143,"div")(144,"strong"),m(145,"Name: "),f(),m(146),f(),g(147,"div")(148,"strong"),m(149,"Reason: "),f(),m(150),f()()()()),2&t&&(D(9),y("tuiLet",i.snippets.import),D(77),y("tuiLet",i.snippets.changes),D(3),y("tuiLet",i.snippets.changes_interface),D(6),y("tippyName",i.discoDingo)("tippyProps",Re(15,hK)),D(15),y("tippyName",i.cosmicCuttlefish)("tippyProps",Re(16,gK)),D(11),y("tippyName",i.yakketyYak)("tippyProps",Re(17,mK)),D(7),gt(" ",i.changesdiscoDingo.name,""),D(4),rc(i.changesdiscoDingo.reason),D(5),gt(" ",i.changesCosmicCuttlefish.name,""),D(4),rc(i.changesCosmicCuttlefish.reason),D(5),gt(" ",i.changesYakketyYak.name,""),D(4),rc(i.changesYakketyYak.reason))},dependencies:[Rr,Zo,WG,Ci,ps,ds,ws,Ts],styles:[".service-demo[_ngcontent-%COMP%]{font-size:.9rem;width:30%}.service-demo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(:first-child){margin-left:1rem}"],changeDetection:0}),e})();const vK={singleton_template_sn:{snippet:'\n \n Singleton\n \n',languages:["html"]},singleton_component_sn:{snippet:"import { NgxSingletonProps } from 'ngx-tippy-wrapper';\nimport { followCursor } from 'tippy.js';\n\n@Component({\n ...\n})\nclass SingletonComponent {\n public readonly singletonProps: NgxSingletonProps = {\n arrow: false,\n placement: 'right',\n followCursor: true,\n plugins: [followCursor],\n offset: [-20, 20],\n };\n}",languages:["typescript"]},singleton_over_template_sn:{snippet:'\n \n Singleton\n \n\n \n Singleton\n \n\n \n Singleton\n \n',languages:["html"]},singleton_over_component_sn:{snippet:"import { NgxSingletonProps } from 'ngx-tippy-wrapper';\n\n@Component({\n ...\n})\nexport class SingletonComponent {\n public readonly singletonOverriddenProps: NgxSingletonProps = {\n overrides: ['arrow', 'placement'],\n };\n}",languages:["typescript"]},singleton_smooth_component_sn:{snippet:"import { NgxSingletonProps } from 'ngx-tippy-wrapper';\n\n@Component({\n ...\n})\nexport class SingletonComponent {\n public readonly smoothTransitions: NgxSingletonProps = {\n arrow: false,\n placement: 'top',\n moveTransition: 'transform 0.4s cubic-bezier(.22,.68,0,1.71)',\n };\n}",languages:["typescript"]},singleton_prog_template_sn:{snippet:'\n \n Singleton\n \n\n \n Singleton\n \n\n \n Singleton\n \n\n\n// Show first child\n\n\n// Show child instance at given index\n\n\n// Show child with tippyName\n\n',languages:["html"]},singleton_prog_component_sn:{snippet:"import { NgxTippyService } from 'ngx-tippy-wrapper';\n\n@Component({\n ...\n})\nexport class SingletonComponent {\n\n constructor(private readonly tippyService: NgxTippyService) {}\n\n public showTooltip(id?: string | number) {\n this.tippyService.getSingletonInstance('groovy_gorilla')?.show(id);\n }\n}",languages:["typescript"]}};function yK(e,n){if(1&e&&F(0,"t-demo-code",26),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function bK(e,n){if(1&e&&F(0,"t-demo-code",26),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function CK(e,n){1&e&&(g(0,"button",29),m(1," Singleton "),f())}const VP=function(){return[0,1,2,3,4]};function DK(e,n){if(1&e&&(g(0,"t-demo")(1,"ngx-tippy-singleton",27),I(2,CK,2,0,"button",28),f()()),2&e){const t=q();D(1),y("singletonProps",t.singletonProps),D(1),y("ngForOf",Re(2,VP))}}function TK(e,n){if(1&e&&F(0,"t-demo-code",26),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function wK(e,n){if(1&e&&F(0,"t-demo-code",26),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function MK(e,n){if(1&e&&(g(0,"t-demo")(1,"ngx-tippy-singleton",30)(2,"button",29),m(3," Singleton "),f(),g(4,"button",31),m(5," Singleton "),f(),g(6,"button",32),m(7," Singleton "),f()()()),2&e){const t=q();D(1),y("singletonProps",t.singletonOverriddenProps)}}function EK(e,n){if(1&e&&F(0,"t-demo-code",26),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function SK(e,n){1&e&&(g(0,"button",29),m(1," Singleton "),f())}function OK(e,n){if(1&e&&(g(0,"t-demo")(1,"ngx-tippy-singleton",30),I(2,SK,2,0,"button",28),f()()),2&e){const t=q();D(1),y("singletonProps",t.smoothTransitions),D(1),y("ngForOf",Re(2,VP))}}function AK(e,n){if(1&e&&F(0,"t-demo-code",26),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function IK(e,n){if(1&e&&F(0,"t-demo-code",26),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function PK(e,n){if(1&e&&(g(0,"t-demo")(1,"ngx-tippy-singleton",33)(2,"button",34),m(3," Singleton "),f(),g(4,"button",35),m(5," Singleton "),f(),g(6,"button",36),m(7," Singleton "),f()()()),2&e){const t=q();D(1),y("singletonProps",t.smoothTransitions)}}let xK=(()=>{class e{constructor(t,i,o,r){this.schemeService=t,this.destroy$=i,this.cdr=o,this.tippyService=r,this.snippets=vK,this.isShowDemo=!0,this.singletonProps={arrow:!1,placement:"right",followCursor:!0,plugins:[yI],offset:[-20,20]},this.smoothTransitions={arrow:!1,placement:"top",moveTransition:"transform 0.4s cubic-bezier(.22,.68,0,1.71)"},this.singletonOverriddenProps={overrides:["arrow","placement"]}}ngAfterViewInit(){this.listenForSchemeChange()}showTooltip(t){var i;null===(i=this.tippyService.getSingletonInstance("groovy_gorilla"))||void 0===i||i.show(t)}listenForSchemeChange(){this.schemeService.scheme$.pipe(Je(this.destroy$)).subscribe(t=>{const i=t===jt.Dark?"light":"dark";this.singletonProps=Object.assign(Object.assign({},this.singletonProps),{theme:i}),this.singletonOverriddenProps=Object.assign(Object.assign({},this.singletonOverriddenProps),{theme:i}),this.smoothTransitions=Object.assign(Object.assign({},this.smoothTransitions),{theme:i}),this.isShowDemo=!1,this.cdr.markForCheck(),setTimeout(()=>{this.isShowDemo=!0,this.cdr.markForCheck()},0)})}}return e.\u0275fac=function(t){return new(t||e)(_(as),_(Sn),_(Zn),_(Nr))},e.\u0275cmp=de({type:e,selectors:[["app-singleton"]],features:[j([Sn])],decls:115,vars:11,consts:[[1,"singleton"],[1,"tui-text_h3","tui-space_top-0"],["status","info",1,"service-demo","tui-space_vertical-4"],[1,"tui-text_body-m-2","tui-space_vertical-0"],[1,"tui-text_body-m-2","tui-space_top-2","tui-space_bottom-0"],[1,"tui-list"],[1,"tui-list__item"],[1,"tui-text_body-m-2"],["tuiLink","","href","https://atomiks.github.io/tippyjs/v6/addons/#singleton","target","_blank","rel","noopener noreferrer"],[3,"snippet","languages",4,"tuiLet"],[4,"ngIf"],["id","overridden_props",1,"tui-text_h6"],["id","smooth_transitions",1,"tui-text_h6"],["id","control_singleton_instance",1,"tui-text_h6"],[1,"tui-text_body-m"],[1,"tui-table-wrapper"],[1,"tui-table"],[1,"tui-table__tr","tui-table__tr_border_none","tui-table__tr_bg"],[1,"tui-table__th","tui-table__th_first"],[1,"tui-table__th","tui-table__th_last"],[1,"tui-table__tr","tui-table__tr_border_none"],[1,"tui-table__td","tui-table__td_first"],[1,"tui-table__td"],[1,"tui-table__td","tui-table__td_last"],["status","success",1,"service-demo","tui-space_vertical-4"],["tuiLink","",1,"singleton__link",3,"click"],[3,"snippet","languages"],["singletonName","eoan_ermine",3,"singletonProps"],["class","tui-button singleton__btn","size","m","tuiButton","","ngxTippy","Tooltip content","type","button","appearance","primary","data-tippy-singleton","",4,"ngFor","ngForOf"],["size","m","tuiButton","","ngxTippy","Tooltip content","type","button","appearance","primary","data-tippy-singleton","",1,"tui-button","singleton__btn"],[3,"singletonProps"],["size","m","tuiButton","","ngxTippy","","type","button","appearance","primary","data-tippy-singleton","","data-tippy-arrow","false","data-tippy-content","New tooltip content",1,"tui-button","singleton__btn"],["size","m","tuiButton","","ngxTippy","","type","button","appearance","primary","data-tippy-singleton","","data-tippy-placement","right","data-tippy-content","Another tooltip content",1,"tui-button","singleton__btn"],["singletonName","groovy_gorilla",3,"singletonProps"],["size","m","tuiButton","","ngxTippy","Tooltip content \u{1f325}\ufe0f","type","button","appearance","primary","data-tippy-singleton","",1,"tui-button","singleton__btn"],["size","m","tuiButton","","ngxTippy","Tooltip content \u{1f314}","type","button","appearance","primary","data-tippy-singleton","",1,"tui-button","singleton__btn"],["size","m","tuiButton","","ngxTippy","Tooltip content \u{1f315}","tippyName","edgy_eft","type","button","appearance","primary","data-tippy-singleton","",1,"tui-button","singleton__btn"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"h1",1),m(2,"Singleton"),f(),g(3,"tui-notification",2)(4,"p",3),m(5," A singleton is a single tippy element that takes the place of an array of regular tippy instances. "),f(),g(6,"p",4),m(7,"This allows two things:"),f(),g(8,"ul",5)(9,"li",6),m(10," Smooth transitions of the tippy between many different reference element targets "),f(),g(11,"li",6),m(12,'Elements with tooltips next to each other that have a delay can be "grouped" so they appear to share a timeout, which greatly improves UX'),f()()(),g(13,"p",7),m(14,"To use "),g(15,"a",8),m(16," Singleton feature "),f(),m(17," - provide tooltip elements within "),g(18,"em"),m(19,"ngx-tippy-singleton"),f(),m(20," component: "),f(),I(21,yK,1,2,"t-demo-code",9),I(22,bK,1,2,"t-demo-code",9),g(23,"tui-notification",2)(24,"p",3),m(25,"For each tooltip within component you should pass "),g(26,"em"),m(27,"data-tippy-singleton"),f(),m(28," attribute. "),f(),g(29,"ul",5)(30,"li",6),m(31,"Use "),g(32,"em"),m(33,"singletonProps"),f(),m(34," (optional) to pass tooltip properties"),f(),g(35,"li",6),m(36,"Use "),g(37,"em"),m(38,"singletonName"),f(),m(39," (optional) to pass unique singleton name which need for controlling a specific singleton instance programmatically "),f()()(),I(40,DK,3,3,"t-demo",10),g(41,"h6",11),m(42," Overridden properties "),f(),g(43,"p",7),m(44,"To override "),g(45,"em"),m(46,"singletonProps"),f(),m(47," by the individual tippy props use "),g(48,"em"),m(49,"data-tippy attributes"),f(),m(50,": "),f(),I(51,TK,1,2,"t-demo-code",9),I(52,wK,1,2,"t-demo-code",9),I(53,MK,8,1,"t-demo",10),g(54,"h6",12),m(55," Smooth transitions "),f(),g(56,"p",7),m(57,"Use the "),g(58,"em"),m(59,"moveTransition"),f(),m(60," property which is the transition between moves:"),f(),I(61,EK,1,2,"t-demo-code",9),I(62,OK,3,3,"t-demo",10),g(63,"h6",13),m(64," Programmatically control singleton instance "),f(),g(65,"p",14)(66,"strong"),m(67,"Get singleton instance(s):"),f()(),g(68,"div",15)(69,"table",16)(70,"tbody")(71,"tr",17)(72,"th",18),m(73,"Method name"),f(),g(74,"th",18),m(75,"Method parameter"),f(),g(76,"th",19),m(77,"Short description"),f()(),g(78,"tr",20)(79,"td",21)(80,"strong"),m(81,"getSingletonInstance"),f()(),g(82,"td",22)(83,"em"),m(84,"name"),f(),m(85,": string"),f(),g(86,"td",23),m(87,"Get specific singleton instance"),f()(),g(88,"tr",20)(89,"td",21)(90,"strong"),m(91,"getSingletonInstances"),f()(),g(92,"td",22),m(93,"\u2014"),f(),g(94,"td",23),m(95,"Get all tippy singleton instances"),f()()()(),g(96,"tui-notification",24)(97,"p",3)(98,"a",8),m(99," Available methods described here "),f()()()(),g(100,"p",7),m(101," Its possible to control each "),g(102,"em"),m(103,"singleton"),f(),m(104," instance separately: "),f(),I(105,AK,1,2,"t-demo-code",9),I(106,IK,1,2,"t-demo-code",9),I(107,PK,8,1,"t-demo",10),g(108,"t-demo")(109,"a",25),ce("click",function(){return i.showTooltip(0)}),m(110," Show first tooltip "),f(),g(111,"a",25),ce("click",function(){return i.showTooltip(1)}),m(112," Show second tooltip "),f(),g(113,"a",25),ce("click",function(){return i.showTooltip("edgy_eft")}),m(114," Show third tooltip "),f()()()),2&t&&(D(21),y("tuiLet",i.snippets.singleton_template_sn),D(1),y("tuiLet",i.snippets.singleton_component_sn),D(18),y("ngIf",i.isShowDemo),D(11),y("tuiLet",i.snippets.singleton_over_template_sn),D(1),y("tuiLet",i.snippets.singleton_over_component_sn),D(1),y("ngIf",i.isShowDemo),D(8),y("tuiLet",i.snippets.singleton_smooth_component_sn),D(1),y("ngIf",i.isShowDemo),D(43),y("tuiLet",i.snippets.singleton_prog_template_sn),D(1),y("tuiLet",i.snippets.singleton_prog_component_sn),D(1),y("ngIf",i.isShowDemo))},dependencies:[Ji,un,Rr,Y7,Zo,Ci,ps,ds,ws,Ts],styles:[".singleton__btn[_ngcontent-%COMP%]:not(:first-child){margin-left:1rem}.singleton__link[_ngcontent-%COMP%]:not(:first-child){display:block;margin-left:1rem}"],changeDetection:0}),e})();const NK={data_attribute:{snippet:'\n Button\n\n',languages:["html"]},data_content_prop:{snippet:"Tooltip HTML content

'\n }\"\n>\n Button\n",languages:["html"]},data_directive_tmpl:{snippet:'\n Button\n',languages:["html"]},data_directive_component_1:{snippet:'\n Button\n',languages:["html"]},data_directive_component_2:{snippet:"@Component({\n ...\n})\nexport class DemoComponent {\n public readonly content = 'Tooltip content';\n ...\n}\n",languages:["typescript"]},data_set_content_template:{snippet:'\n Button\n\n',languages:["html"]},data_set_content_component:{snippet:"import { NgxTippyService } from 'ngx-tippy-wrapper';\n\n@Component({\n ...\n})\n\nexport class DemoComponent implements AfterViewInit {\n constructor(private readonly tippyService: NgxTippyService) {}\n\n ngAfterViewInit() {\n this.setContentForTooltip();\n }\n\n setContentForTooltip() {\n this.tippyService.setContent('bionic_beaver', 'Tooltip content via service');\n }\n}\n",languages:["typescript"]},data_tippy_props_template:{snippet:'\n Button\n\n',languages:["html"]},data_tippy_props_component:{snippet:"import { NgxTippyProps } from 'ngx-tippy-wrapper';\n\n@Component({\n ...\n})\nexport class AppContentComponent implements AfterViewInit {\n public tippyPropsContent: NgxTippyProps = {\n placement: 'right',\n };\n\n ngAfterViewInit() {\n this.setPropsForTooltip();\n }\n\n setPropsForTooltip() {\n this.tippyPropsContent = {\n ...this.tippyPropsContent,\n content: 'Tooltip content via property',\n };\n }\n}\n",languages:["typescript"]},data_ng_template:{snippet:'\n Button\n\n\n\n
Content via ng-template
\n
name: {{ name }}
\n
data: {{ data.foo }}
\n',languages:["html"]},data_html_template:{snippet:'\n Button\n\n\n\n',languages:["html"]},data_component_template:{snippet:'\n Button\n\n',languages:["html"]},data_component_component:{snippet:"@Component({\n ...\n})\nexport class AppContentComponent {\n public readonly componentContent = DemoComponent;\n}\n\n@Component({\n template: 'Content as component',\n})\nclass DemoComponent {}\n",languages:["typescript"]},data_el_ref_template:{snippet:'\n Button\n\n\n
\n
Caption
\n

Tooltip content

\n
\n',languages:["html"]},data_el_ref_service_tmpl:{snippet:'\n Button\n',languages:["html"]},data_el_ref_service_component:{snippet:"@Component({\n ...\n})\nexport class AppContentComponent implements AfterViewInit {\n @ViewChild('templateRefService', { read: ElementRef, static: true })\n templateRefService!: ElementRef;\n\n constructor(private readonly tippyService: NgxTippyService) {}\n\n ngAfterViewInit() {\n this.setContentElFef();\n }\n\n setContentElFef() {\n const { nativeElement } = this.templateRefService;\n this.tippyService.setContent('hirsute_hippo', nativeElement);\n }\n}\n",languages:["typescript"]}},RK=["templateRefService"];function FK(e,n){if(1&e&&(g(0,"li",24)(1,"a",31),m(2),f()()),2&e){const t=n.$implicit;D(1),wp("fragment",t.value),D(1),gt(" ",t.view," ")}}function kK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function LK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function VK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function HK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function BK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function UK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function jK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function $K(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function zK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function GK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function WK(e,n){if(1&e&&(g(0,"div"),m(1,"Content via "),g(2,"b"),m(3,"ng-template"),f()(),g(4,"div")(5,"b"),m(6,"name:"),f(),m(7),f(),g(8,"div")(9,"b"),m(10,"data:"),f(),m(11),f()),2&e){const t=n.$implicit,i=n.data;D(7),gt(" ",t,""),D(4),gt(" ",i.foo,"")}}function qK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function YK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function KK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function ZK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function QK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function XK(e,n){if(1&e&&F(0,"t-demo-code",32),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}const Vr=function(){return{placement:"right"}},JK=function(){return{allowHTML:!0,placement:"right",content:"

Tooltip HTML content

"}},eZ=function(){return{foo:"bar"}},tZ=function(e){return{data:e}};let nZ=(()=>{class e{constructor(t,i){this.destroy$=t,this.tippyService=i,this.snippets=NK,this.contentMethods=BO,this.content="Tooltip content",this.componentContent=iZ,this.tippyPropsContent={placement:"right"}}ngOnInit(){}ngAfterViewInit(){this.setContentForTooltip(),this.setPropsForTooltip(),this.setContentElFef()}setContentForTooltip(){this.tippyService.setContent("bionic_beaver","Tooltip content via service")}setPropsForTooltip(){this.tippyPropsContent=Object.assign(Object.assign({},this.tippyPropsContent),{content:"Tooltip content via property"})}setContentElFef(){const{nativeElement:t}=this.templateRefService;this.tippyService.setContent("hirsute_hippo",t)}}return e.\u0275fac=function(t){return new(t||e)(_(Sn),_(Nr))},e.\u0275cmp=de({type:e,selectors:[["t-demo-app-content"]],viewQuery:function(t,i){if(1&t&&Kn(RK,7,fe),2&t){let o;qt(o=Yt())&&(i.templateRefService=o.first)}},features:[j([Sn])],decls:150,vars:47,consts:[[1,"app-content"],[1,"tui-text_h3","tui-space_top-0"],[1,"tui-text_body-m-2"],[1,"tui-list"],["class","tui-list__item",4,"ngFor","ngForOf"],["id","data_attribute",1,"tui-text_h6"],[3,"snippet","languages",4,"tuiLet"],["size","m","tuiButton","","ngxTippy","","data-tippy-content","Tooltip content","type","button","appearance","primary",1,"tui-button",3,"tippyProps"],["id","content_property",1,"tui-text_h6"],["size","m","tuiButton","","ngxTippy","","type","button","appearance","primary",1,"tui-button",3,"tippyProps"],["id","ngxTippy_directive",1,"tui-text_h6"],["size","m","tuiButton","","ngxTippy","Tooltip content","type","button","appearance","primary",1,"tui-button",3,"tippyProps"],["size","m","tuiButton","","type","button","appearance","primary",1,"tui-button",3,"ngxTippy","tippyProps"],["id","setContent_method",1,"tui-text_h6"],[1,"tui-text_body-m-2","tui-space_vertical-0"],["size","m","tuiButton","","ngxTippy","","tippyName","bionic_beaver","type","button","appearance","primary",1,"tui-button",3,"tippyProps"],["id","tippyProps",1,"tui-text_h6"],["id","ng_template",1,"tui-text_h6"],["size","m","tuiButton","","tippyName","trusty_tahr","type","button","appearance","primary",1,"tui-button",3,"ngxTippy","tippyContext","tippyProps"],["tooltipTemplate",""],["id","html_template",1,"tui-text_h6"],["tooltipHTMLTemplate",""],[1,"tui-text_h6"],[1,"tui-list","tui-list_small"],[1,"tui-list__item"],["id","component",1,"tui-text_h6"],["id","element_reference",1,"tui-text_h6"],[1,"tui-text_body-m-2","tui-list__item"],["tippyTemplateRef",""],["size","m","tuiButton","","ngxTippy","","tippyName","hirsute_hippo","type","button","appearance","primary",1,"tui-button",3,"tippyProps"],["templateRefService",""],["tuiLink","","routerLink","/applying-content",3,"fragment"],[3,"snippet","languages"]],template:function(t,i){if(1&t&&(g(0,"div",0)(1,"h1",1),m(2,"Applying content"),f(),g(3,"p",2),m(4,"You can pass content for tooltip through:"),f(),g(5,"ul",3),I(6,FK,3,2,"li",4),f(),g(7,"h6",5),m(8," Data attribute "),f(),I(9,kK,1,2,"t-demo-code",6),g(10,"t-demo")(11,"button",7),m(12," Button "),f()(),g(13,"h6",8),m(14," Content property "),f(),I(15,LK,1,2,"t-demo-code",6),g(16,"t-demo")(17,"button",9),m(18," Button "),f()(),g(19,"h6",10),m(20," ngxTippy directive "),f(),g(21,"p",2),m(22,"Template driven approach:"),f(),I(23,VK,1,2,"t-demo-code",6),g(24,"t-demo")(25,"button",11),m(26," Button "),f()(),g(27,"p",2),m(28,"Component driven approach:"),f(),I(29,HK,1,2,"t-demo-code",6),I(30,BK,1,2,"t-demo-code",6),g(31,"t-demo")(32,"button",12),m(33," Button "),f()(),g(34,"h6",13),m(35," setContent() method "),f(),g(36,"p",2),m(37,"Use "),g(38,"em"),m(39,"setContent()"),f(),m(40," method exposed by "),g(41,"em"),m(42,"NgxTippyService"),f()(),g(43,"tui-notification")(44,"p",14)(45,"em"),m(46,"tippyName"),f(),m(47," is mandatory for this approach"),f()(),I(48,UK,1,2,"t-demo-code",6),I(49,jK,1,2,"t-demo-code",6),g(50,"t-demo")(51,"button",15),m(52," Button "),f()(),g(53,"h6",16),m(54," tippyProps "),f(),I(55,$K,1,2,"t-demo-code",6),I(56,zK,1,2,"t-demo-code",6),g(57,"t-demo")(58,"button",9),m(59," Button "),f()(),g(60,"h6",17),m(61," ng-template "),f(),I(62,GK,1,2,"t-demo-code",6),g(63,"t-demo")(64,"button",18),m(65," Button "),f()(),I(66,WK,12,2,"ng-template",null,19,Zi),g(68,"h6",20),m(69," HTML template "),f(),I(70,qK,1,2,"t-demo-code",6),g(71,"t-demo")(72,"button",12),m(73," Button "),f()(),g(74,"template",null,21),m(76,"\n "),g(77,"h6",22),m(78,"Management of releases"),f(),m(79,"\n "),g(80,"p",2),m(81,"Support length"),f(),m(82,"\n\n "),g(83,"ul",23),m(84,"\n "),g(85,"li",24),m(86,"\n Regular releases are supported for 9 months.\n "),f(),m(87,"\n "),g(88,"li",24),m(89,"\n Packages in main and restricted are supported for 5 years in long term support (LTS) releases.\n "),f(),m(90,"\n "),f(),m(91,"\n "),f(),g(92,"h6",25),m(93," component "),f(),I(94,YK,1,2,"t-demo-code",6),I(95,KK,1,2,"t-demo-code",6),g(96,"t-demo")(97,"button",12),m(98," Button "),f()(),g(99,"template",null,21),m(101,"\n "),g(102,"h6",22),m(103,"Management of releases"),f(),m(104,"\n "),g(105,"p",2),m(106,"Support length"),f(),m(107,"\n\n "),g(108,"ul",23),m(109,"\n "),g(110,"li",24),m(111,"\n Regular releases are supported for 9 months.\n "),f(),m(112,"\n "),g(113,"li",24),m(114,"\n Packages in main and restricted are supported for 5 years in long term support (LTS) releases.\n "),f(),m(115,"\n "),f(),m(116,"\n "),f(),g(117,"h6",26),m(118," element reference "),f(),g(119,"p",27),m(120,"Pass "),g(121,"em"),m(122,"element reference"),f(),m(123," via directive:"),f(),I(124,ZK,1,2,"t-demo-code",6),g(125,"t-demo")(126,"button",12),m(127," Button "),f()(),g(128,"div",null,28)(130,"h6",22),m(131,"Caption"),f(),g(132,"p",2),m(133,"Tooltip content"),f()(),g(134,"p",27),m(135,"Pass "),g(136,"em"),m(137,"element"),f(),m(138," using service:"),f(),I(139,QK,1,2,"t-demo-code",6),I(140,XK,1,2,"t-demo-code",6),g(141,"t-demo")(142,"button",29),m(143," Button "),f()(),g(144,"div",null,30)(146,"h6",22),m(147,"Caption"),f(),g(148,"p",2),m(149,"Tooltip content"),f()()()),2&t){const o=Nn(67),r=Nn(75),s=Nn(129);D(6),y("ngForOf",i.contentMethods),D(3),y("tuiLet",i.snippets.data_attribute),D(2),y("tippyProps",Re(34,Vr)),D(4),y("tuiLet",i.snippets.data_content_prop),D(2),y("tippyProps",Re(35,JK)),D(6),y("tuiLet",i.snippets.data_directive_tmpl),D(2),y("tippyProps",Re(36,Vr)),D(4),y("tuiLet",i.snippets.data_directive_component_1),D(1),y("tuiLet",i.snippets.data_directive_component_2),D(2),y("ngxTippy",i.content)("tippyProps",Re(37,Vr)),D(16),y("tuiLet",i.snippets.data_set_content_template),D(1),y("tuiLet",i.snippets.data_set_content_component),D(2),y("tippyProps",Re(38,Vr)),D(4),y("tuiLet",i.snippets.data_tippy_props_template),D(1),y("tuiLet",i.snippets.data_tippy_props_component),D(2),y("tippyProps",i.tippyPropsContent),D(4),y("tuiLet",i.snippets.data_ng_template),D(2),y("ngxTippy",o)("tippyContext",Yn(40,tZ,Re(39,eZ)))("tippyProps",Re(42,Vr)),D(6),y("tuiLet",i.snippets.data_html_template),D(2),y("ngxTippy",r)("tippyProps",Re(43,Vr)),D(22),y("tuiLet",i.snippets.data_component_template),D(1),y("tuiLet",i.snippets.data_component_component),D(2),y("ngxTippy",i.componentContent)("tippyProps",Re(44,Vr)),D(27),y("tuiLet",i.snippets.data_el_ref_template),D(2),y("ngxTippy",s)("tippyProps",Re(45,Vr)),D(13),y("tuiLet",i.snippets.data_el_ref_service_tmpl),D(1),y("tuiLet",i.snippets.data_el_ref_service_component),D(2),y("tippyProps",Re(46,Vr))}},dependencies:[nu,Ji,Rr,Zo,Ci,ps,ds,ws,Ts],changeDetection:0}),e})(),iZ=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=de({type:e,selectors:[["t-template-component"]],decls:2,vars:0,template:function(t,i){1&t&&(g(0,"span"),m(1,"Content as component"),f())},encapsulation:2}),e})();const oZ={installation:{snippet:"npm i ngx-tippy-wrapper --save",languages:[]},importing_1:{snippet:"import { NgxTippyModule } from 'ngx-tippy-wrapper';",languages:["typescript"]},importing_2:{snippet:"@NgModule({\n imports: [\n ...,\n NgxTippyModule\n ],\n ...\n})",languages:["typescript"]},css:{snippet:"@import 'tippy.js/dist/tippy.css';",languages:["css"]},themes:{snippet:"/** Themes */\n@import 'tippy.js/themes/light-border.css';\n@import 'tippy.js/themes/light.css';\n@import 'tippy.js/themes/material.css';\n@import 'tippy.js/themes/translucent.css';",languages:["css"]},anim:{snippet:"/** Animations */\n@import 'tippy.js/dist/backdrop.css';\n@import 'tippy.js/animations/perspective.css';\n@import 'tippy.js/animations/perspective-extreme.css';\n@import 'tippy.js/animations/perspective-subtle.css';\n@import 'tippy.js/animations/scale.css';\n@import 'tippy.js/animations/scale-extreme.css';\n@import 'tippy.js/animations/scale-subtle.css';\n@import 'tippy.js/animations/shift-away.css';\n@import 'tippy.js/animations/shift-away-extreme.css';\n@import 'tippy.js/animations/shift-away-subtle.css';\n@import 'tippy.js/animations/shift-toward.css';\n@import 'tippy.js/animations/shift-toward-extreme.css';\n@import 'tippy.js/animations/shift-toward-subtle.css';",languages:["css"]},arrow:{snippet:"/** Arrow */\n@import 'tippy.js/dist/svg-arrow.css';",languages:["css"]},css_ng:{snippet:'"architect": {\n "build": {\n ...,\n "options": {\n ...,\n "styles": [..., "./node_modules/tippy.js/dist/tippy.css"]\n };',languages:["json"]}};function rZ(e,n){if(1&e&&F(0,"t-demo-code",13),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function sZ(e,n){if(1&e&&F(0,"t-demo-code",13),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function aZ(e,n){if(1&e&&F(0,"t-demo-code",13),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function lZ(e,n){if(1&e&&F(0,"t-demo-code",13),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function uZ(e,n){if(1&e&&F(0,"t-demo-code",13),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function cZ(e,n){if(1&e&&F(0,"t-demo-code",13),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function dZ(e,n){if(1&e&&F(0,"t-demo-code",13),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}let pZ=(()=>{class e{constructor(){this.snippets=oZ}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=de({type:e,selectors:[["t-demo-getting-started"]],decls:76,vars:8,consts:[[1,"getting-started"],[1,"tui-text_h3","tui-space_top-0"],[1,"tui-text_h6"],[1,"tui-list"],[1,"tui-list__item"],["status","custom","value","6.x.x",1,"tui-list__badge"],["status","custom","value","5.x.x",1,"tui-list__badge"],["status","custom","value","4.x.x",1,"tui-list__badge"],["status","custom","value","3.x.x",1,"tui-list__badge"],["status","custom","value","2.x.x",1,"tui-list__badge"],[3,"snippet"],[1,"tui-text_body-m-2"],[3,"snippet","languages",4,"tuiLet"],[3,"snippet","languages"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"h1",1),m(2,"Getting started"),f(),g(3,"h6",2),m(4,"Recommended versions to use"),f(),g(5,"ul",3)(6,"li",4)(7,"span"),m(8,"Angular "),g(9,"b"),m(10,"14, 15, 16"),f()(),F(11,"tui-badge",5),f(),g(12,"li",4)(13,"span"),m(14,"Angular "),g(15,"b"),m(16,"13"),f()(),F(17,"tui-badge",6),f(),g(18,"li",4)(19,"span"),m(20,"Angular "),g(21,"b"),m(22,"12"),f()(),F(23,"tui-badge",7),f(),g(24,"li",4)(25,"span"),m(26,"Angular "),g(27,"b"),m(28," 9, 10, 11"),f()(),F(29,"tui-badge",8),f(),g(30,"li",4)(31,"span"),m(32,"Angular "),g(33,"b"),m(34," 8"),f()(),F(35,"tui-badge",9),f()(),g(36,"h6",2),m(37,"Installation"),f(),F(38,"t-demo-code",10),g(39,"h6",2),m(40,"Importing"),f(),g(41,"p",11),m(42,"Import "),g(43,"em"),m(44,"NgxTippyModule"),f(),m(45,":"),f(),I(46,rZ,1,2,"t-demo-code",12),g(47,"p",11),m(48,"Then in your "),g(49,"em"),m(50,"main"),f(),m(51," or "),g(52,"em"),m(53,"feature"),f(),m(54," module:"),f(),I(55,sZ,1,2,"t-demo-code",12),g(56,"p",11),m(57,"Import "),g(58,"em"),m(59,"tippy.css"),f(),m(60," style to your main style file:"),f(),I(61,aZ,1,2,"t-demo-code",12),g(62,"p"),m(63,"or "),g(64,"em"),m(65,"angular.json"),f(),m(66,":"),f(),I(67,lZ,1,2,"t-demo-code",12),g(68,"p",11),m(69,"Import "),g(70,"em"),m(71,"optional"),f(),m(72," tippy styles:"),f(),I(73,uZ,1,2,"t-demo-code",12),I(74,cZ,1,2,"t-demo-code",12),I(75,dZ,1,2,"t-demo-code",12),f()),2&t&&(D(38),y("snippet",i.snippets.installation.snippet),D(8),y("tuiLet",i.snippets.importing_1),D(9),y("tuiLet",i.snippets.importing_2),D(6),y("tuiLet",i.snippets.css),D(6),y("tuiLet",i.snippets.css_ng),D(6),y("tuiLet",i.snippets.themes),D(1),y("tuiLet",i.snippets.anim),D(1),y("tuiLet",i.snippets.arrow))},dependencies:[rA,Ci,ws],styles:[".tui-list__item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:12rem}.tui-list__badge[_ngcontent-%COMP%]{background-color:var(--tui-link);margin-left:.5rem}"],changeDetection:0}),e})();const fZ={props_template:{snippet:'\n Button\n',languages:["html"]},props_component:{snippet:'\n Button\n',languages:["html"]},props_component_2:{snippet:"import { NgxTippyProps } from 'ngx-tippy-wrapper';\n\n@Component({\n ...\n})\nexport class PropsComponent {\n public readonly tippyProps: NgxTippyProps = {\n arrow: false,\n placement: 'right',\n followCursor: true,\n plugins: [followCursor],\n offset: [-20, 20],\n };\n}",languages:["typescript"]}};function hZ(e,n){if(1&e&&F(0,"t-demo-code",19),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function gZ(e,n){if(1&e&&F(0,"t-demo-code",19),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function mZ(e,n){if(1&e&&F(0,"t-demo-code",19),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}const _Z=function(){return{arrow:!1,placement:"right"}};let vZ=(()=>{class e{constructor(){this.snippets=fZ,this.tippyProps={arrow:!1,placement:"right",followCursor:!0,plugins:[yI],offset:[-20,20]}}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=de({type:e,selectors:[["t-demo-props"]],decls:79,vars:6,consts:[[1,"props"],[1,"tui-text_h3","tui-space_top-0"],[1,"tui-text_body-m-2"],[3,"snippet","languages",4,"tuiLet"],["size","m","tuiButton","","ngxTippy","Tooltip content","type","button","appearance","primary",1,"tui-button",3,"tippyProps"],[1,"tui-text_body-m-2","tui-space_vertical-0"],["tuiLink","","href","https://atomiks.github.io/tippyjs/v6/all-props/","target","_blank","rel","noopener noreferrer"],["id","implemented_props",1,"tui-text_h6"],[1,"tui-table-wrapper"],[1,"tui-table"],[1,"tui-table__tr","tui-table__tr_border_none","tui-table__tr_bg"],[1,"tui-table__th","tui-table__th_first"],[1,"tui-table__th"],[1,"tui-table__th","tui-table__th_last"],[1,"tui-table__tr","tui-table__tr_border_none"],[1,"tui-table__td","tui-table__td_first"],[1,"tui-table__td"],["tuiLink","","href","https://atomiks.github.io/tippyjs/v6/all-props/"],[1,"tui-table__td","tui-table__td_last"],[3,"snippet","languages"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"h1",1),m(2,"Applying properties"),f(),g(3,"p",2),m(4,"Use the "),g(5,"em"),m(6,"tippyProps"),f(),m(7," directive to apply props:"),f(),I(8,hZ,1,2,"t-demo-code",3),g(9,"t-demo")(10,"button",4),m(11," Button "),f()(),g(12,"p",2),m(13,"Or pass props from component:"),f(),I(14,gZ,1,2,"t-demo-code",3),I(15,mZ,1,2,"t-demo-code",3),g(16,"t-demo")(17,"button",4),m(18," Button "),f()(),g(19,"tui-notification")(20,"p",5)(21,"a",6),m(22," View all available properties "),f()()(),g(23,"h6",7),m(24," NgxTippy props "),f(),g(25,"div",8)(26,"table",9)(27,"tbody")(28,"tr",10)(29,"th",11),m(30,"Name"),f(),g(31,"th",11),m(32,"Description"),f(),g(33,"th",12),m(34,"Type/Interface"),f(),g(35,"th",13),m(36,"Example"),f()(),g(37,"tr",14)(38,"td",15)(39,"strong"),m(40,"tippyProps"),f()(),g(41,"td",16),m(42,"To pass and apply "),g(43,"a",17),m(44," properties "),f()(),g(45,"td",16),m(46,"NgxTippyProps"),f(),g(47,"td",18),m(48,"[tippyProps]=\"{ arrow: false, placement: 'bottom' }\" "),f()(),g(49,"tr",14)(50,"td",15)(51,"strong"),m(52,"tippyName"),f()(),g(53,"td",16),m(54,"ID for tippy instance, required for accessing and control specific instance"),f(),g(55,"td",16),m(56,"string"),f(),g(57,"td",18),m(58,'tippyClassName="new-class another-class"'),f()(),g(59,"tr",14)(60,"td",15)(61,"strong"),m(62,"tippyClassName"),f()(),g(63,"td",16),m(64,"To add a custom class to the tippy-box element"),f(),g(65,"td",16),m(66,"string"),f(),g(67,"td",18),m(68,'tippyClassName="new-class another-class"'),f()(),g(69,"tr",14)(70,"td",15)(71,"strong"),m(72,"tippyContext"),f()(),g(73,"td",16),m(74,"A way to bind context to the template when using ng-template"),f(),g(75,"td",16),m(76,"NgxTippyContext"),f(),g(77,"td",18),m(78,"[tippyContext]=\"{ focal: 'fossa' }\""),f()()()()()()),2&t&&(D(8),y("tuiLet",i.snippets.props_template),D(2),y("tippyProps",Re(5,_Z)),D(4),y("tuiLet",i.snippets.props_component),D(1),y("tuiLet",i.snippets.props_component_2),D(2),y("tippyProps",i.tippyProps))},dependencies:[Rr,Zo,Ci,ps,ds,ws,Ts],changeDetection:0}),e})();const yZ={basic_usage:{snippet:'',languages:["html"]},t_name:{snippet:'\n Button\n',languages:["html"]},t_props:{snippet:'\n Button\n',languages:["html"]},t_class_html:{snippet:'\n Button\n',languages:["html"]},t_class_css:{snippet:"\n.tippy-box[data-theme~=light].custom-class {\n color: #44c596;\n}\n\n.tippy-box[data-theme~=dark].custom-class {\n background-color: #44c596;\n color: #222;\n\n .tippy-arrow {\n color: #44c596;\n }\n}",languages:["css"]},t_context:{snippet:'\n Button\n\n\n\n
Content via ng-template
\n
name: {{ name }}
\n
data: {{ data.foo }}
\n',languages:["html"]},t_condition:{snippet:"",languages:["html"]}};function bZ(e,n){if(1&e&&F(0,"t-demo-code",16),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function CZ(e,n){if(1&e&&F(0,"t-demo-code",16),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function DZ(e,n){if(1&e&&F(0,"t-demo-code",16),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function TZ(e,n){if(1&e&&F(0,"t-demo-code",16),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function wZ(e,n){if(1&e&&F(0,"t-demo-code",16),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function MZ(e,n){if(1&e&&F(0,"t-demo-code",16),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}function EZ(e,n){if(1&e&&(g(0,"div"),m(1,"Content via "),g(2,"b"),m(3,"ng-template"),f()(),g(4,"div")(5,"b"),m(6,"name:"),f(),m(7),f(),g(8,"div")(9,"b"),m(10,"data:"),f(),m(11),f()),2&e){const t=n.$implicit,i=n.data;D(7),gt(" ",t,""),D(4),gt(" ",i.foo,"")}}function SZ(e,n){if(1&e&&F(0,"t-demo-code",16),2&e){const t=n.tuiLet;y("snippet",t.snippet)("languages",t.languages)}}const tC=function(){return{placement:"right"}},OZ=function(){return{foo:"bar"}},AZ=function(e){return{data:e}},IZ=function(){return{placement:"right",trigger:"mouseenter click",hideOnClick:!1}},PZ=[{path:"",redirectTo:"getting-started",pathMatch:"full"},{path:"getting-started",component:pZ},{path:"usage",component:(()=>{class e{constructor(t){this.tippyService=t,this.snippets=yZ,this.userEmailTippy="jammy_jellyfish"}ngOnInit(){}ngAfterViewInit(){this.showValidationTooltip()}showValidationTooltip(){this.tippyService.show(this.userEmailTippy)}}return e.\u0275fac=function(t){return new(t||e)(_(Nr))},e.\u0275cmp=de({type:e,selectors:[["t-demo-usage"]],decls:84,vars:23,consts:[[1,"usage"],[1,"tui-text_h3","tui-space_top-0"],["id","basic_usage",1,"tui-text_h6"],[1,"tui-text_body-m-2"],[3,"snippet","languages",4,"tuiLet"],["size","m","tuiButton","","ngxTippy","Tooltip content","type","button","appearance","primary",1,"tui-button"],["size","m","tuiButton","","ngxTippy","Tooltip content","type","button","appearance","primary",1,"tui-button",3,"tippyProps"],[1,"tui-text_body-m-2","tui-space_vertical-0"],["tuiLink","","href","https://atomiks.github.io/tippyjs/v6/all-props/"],["size","m","tuiButton","","ngxTippy","Tooltip content","tippyClassName","custom-class","type","button","appearance","primary",1,"tui-button",3,"tippyProps"],["size","m","tuiButton","","tippyName","kinetic_kudu","type","button","appearance","primary",1,"tui-button",3,"ngxTippy","tippyContext","tippyProps"],["tooltipTemplate",""],["id","initializing_on_condition",1,"tui-text_h6"],[1,"on-condition-input",3,"ngModel","ngxTippy","tippyName","tippyProps","ngModelChange"],[1,"tui-required"],["tuiTextfield","","placeholder","mail@mail.com","type","email"],[3,"snippet","languages"]],template:function(t,i){if(1&t&&(g(0,"div",0)(1,"h1",1),m(2,"Usage"),f(),g(3,"h6",2),m(4," Basic usage "),f(),g(5,"p",3),m(6,"Apply "),g(7,"em"),m(8,"ngxTippy"),f(),m(9," directive for the element and pass content through it:"),f(),I(10,bZ,1,2,"t-demo-code",4),g(11,"t-demo")(12,"button",5),m(13," Button "),f()(),g(14,"p",3),m(15,"Apply "),g(16,"em"),m(17,"tippyName"),f(),m(18," directive to set a name for tooltip instance, "),g(19,"em"),m(20,"required for accessing and controlling specific instance:"),f()(),I(21,CZ,1,2,"t-demo-code",4),g(22,"p",3),m(23,"Apply "),g(24,"em"),m(25,"tippyProps"),f(),m(26," directive to pass tooltip properties:"),f(),I(27,DZ,1,2,"t-demo-code",4),g(28,"t-demo")(29,"button",6),m(30," Button "),f()(),g(31,"tui-notification")(32,"p",7)(33,"a",8),m(34," View all available properties "),f()()(),g(35,"p",3),m(36,"To add a custom class to the "),g(37,"em"),m(38,"tippy-box"),f(),m(39," element, use the "),g(40,"em"),m(41,"tippyClassName"),f(),m(42," directive. If you want to include multiple classes, simply separate them with a space:"),f(),I(43,TZ,1,2,"t-demo-code",4),I(44,wZ,1,2,"t-demo-code",4),g(45,"t-demo")(46,"button",9),m(47," Button "),f()(),g(48,"p",3),m(49,"Apply "),g(50,"em"),m(51,"tippyContext"),f(),m(52," to bind context when using "),g(53,"em"),m(54,"ng-template"),f(),m(55,": "),f(),I(56,MZ,1,2,"t-demo-code",4),g(57,"t-demo")(58,"button",10),m(59," Button "),f(),I(60,EZ,12,2,"ng-template",null,11,Zi),f(),g(62,"h6",12),m(63,"Initializing on condition"),f(),g(64,"p",3),m(65,"In certain situations, it may be necessary to "),g(66,"em"),m(67,"conditionally"),f(),m(68," initialize a tooltip. If the tooltip needs to be disabled under certain conditions, you can explicitly pass "),g(69,"em"),m(70,"null"),f(),m(71," or "),g(72,"em"),m(73,"undefined"),f(),m(74," using the "),g(75,"em"),m(76,"ngxTippy"),f(),m(77," directive: "),f(),I(78,SZ,1,2,"t-demo-code",4),g(79,"t-demo")(80,"tui-input",13),ce("ngModelChange",function(r){return i.userEmail=r}),m(81," Type an email "),F(82,"span",14)(83,"input",15),f()()()),2&t){const o=Nn(61);D(10),y("tuiLet",i.snippets.basic_usage),D(11),y("tuiLet",i.snippets.t_name),D(6),y("tuiLet",i.snippets.t_props),D(2),y("tippyProps",Re(16,tC)),D(14),y("tuiLet",i.snippets.t_class_html),D(1),y("tuiLet",i.snippets.t_class_css),D(2),y("tippyProps",Re(17,tC)),D(10),y("tuiLet",i.snippets.t_context),D(2),y("ngxTippy",o)("tippyContext",Yn(19,AZ,Re(18,OZ)))("tippyProps",Re(21,tC)),D(20),y("tuiLet",i.snippets.t_condition),D(2),y("ngModel",i.userEmail)("ngxTippy",i.userEmail?null:"Email is required")("tippyName",i.userEmailTippy)("tippyProps",Re(22,IZ))}},dependencies:[gv,Al,Rr,Zo,k8,L8,v8,Ci,ps,ds,ws,Ts],styles:[".tippy-box[data-theme=light].custom-class{color:var(--tui-positive)} .tippy-box[data-theme=dark].custom-class{background-color:var(--tui-positive);color:var(--tui-base-01)} .tippy-box[data-theme=dark].custom-class .tippy-arrow{color:var(--tui-positive)}"],changeDetection:0}),e})()},{path:"applying-props",component:vZ},{path:"applying-content",component:nZ},{path:"working-with-service",component:_K},{path:"demo",component:VY},{path:"grouped-tooltips",component:JY},{path:"multiple-tooltips",component:lK},{path:"singleton",component:xK},{path:"playground",component:uK}];let xZ=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e}),e.\u0275inj=ie({imports:[RP.forRoot(PZ,{useHash:!0,preloadingStrategy:eY,anchorScrolling:"enabled",scrollOffset:[0,100]}),RP]}),e})();const HP=function(e){return{"scheme-switcher__icon--active":e}};function NZ(e,n){if(1&e){const t=Li();g(0,"div",7)(1,"tui-svg",8),ce("click",function(){const r=zn(t).tuiLet,s=q().$implicit,a=q(3);return Gn(!r&&a.onSchemeSelect(s))}),f()()}if(2&e){const t=n.tuiLet,i=q().$implicit,o=q(3);bl("scheme-switcher__icon scheme-switcher__icon--",i,""),y("ngClass",Yn(7,HP,t))("ngxTippy",t?null:"Switch to "+(i===o.Schemes.Dark?"dark":"light")+" scheme")("tippyProps",o.tSchemes),D(1),vl("src","assets/icons/",i===o.Schemes.Dark?"moon":"sun",".svg")}}function RZ(e,n){if(1&e&&(rn(0),I(1,NZ,2,9,"div",6),sn()),2&e){const t=n.$implicit,i=q().tuiLet,o=q().tuiLet;D(1),y("tuiLet",!o&&i===t)}}function FZ(e,n){if(1&e&&(rn(0),I(1,RZ,2,1,"ng-container",5),sn()),2&e){const t=q(2);D(1),y("ngForOf",t.schemesList)}}function kZ(e,n){if(1&e){const t=Li();g(0,"div",1),I(1,FZ,2,1,"ng-container",2),Rt(2,"async"),g(3,"div",3)(4,"tui-svg",4),ce("click",function(){const r=zn(t).tuiLet,s=q();return Gn(!r&&s.onSystemSchemeToggle())}),f()()()}if(2&e){const t=n.tuiLet,i=q();D(1),y("tuiLet",Bt(2,4,i.schemeService.scheme$)),D(2),y("ngClass",Yn(6,HP,t))("ngxTippy",t?null:"Switch to system scheme")("tippyProps",i.tSchemes)}}let LZ=(()=>{class e{constructor(t,i){this.schemeService=t,this.destroy$=i,this.Schemes=jt,this.schemesList=Object.values(jt).map(o=>o.toLowerCase()),this.tSchemes={arrow:!1,theme:"light",animation:"shift-toward",offset:[0,20]}}ngOnInit(){this.listenForSchemeChanges()}onSchemeSelect(t){this.schemeService.toggleScheme(t)}onSystemSchemeToggle(){this.schemeService.toggleSystemScheme()}listenForSchemeChanges(){this.schemeService.scheme$.pipe(Je(this.destroy$)).subscribe(t=>{this.updateTippyTheme(t)})}updateTippyTheme(t){this.tSchemes=Object.assign(Object.assign({},this.tSchemes),{theme:t===jt.Dark?"light":"dark"})}}return e.\u0275fac=function(t){return new(t||e)(_(as),_(Sn))},e.\u0275cmp=de({type:e,selectors:[["t-demo-scheme-switcher"]],features:[j([Sn])],decls:2,vars:3,consts:[["class","scheme-switcher",4,"tuiLet"],[1,"scheme-switcher"],[4,"tuiLet"],[1,"scheme-switcher__icon","scheme-switcher__icon--system",3,"ngClass","ngxTippy","tippyProps"],["tabindex","0","src","assets/icons/settings.svg",1,"icon",3,"click"],[4,"ngFor","ngForOf"],[3,"ngClass","class","ngxTippy","tippyProps",4,"tuiLet"],[3,"ngClass","ngxTippy","tippyProps"],["tabindex","0",1,"icon",3,"src","click"]],template:function(t,i){1&t&&(I(0,kZ,5,8,"div",0),Rt(1,"async")),2&t&&y("tuiLet",Bt(1,1,i.schemeService.isSystemScheme$))},dependencies:[uE,Ji,Rr,Ci,cs,Qn],styles:[".scheme-switcher[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;color:var(--tui-text-02);background-color:var(--tui-base-03);border-radius:1.5rem;padding:.5rem 1.5rem}.scheme-switcher__icon[_ngcontent-%COMP%]{cursor:pointer;border-radius:100%;padding:.2rem;transition:background-color .1s ease-in,color .1s ease-in}.scheme-switcher__icon[_ngcontent-%COMP%]:hover{color:var(--tui-base-03);background-color:var(--tui-base-07)}.scheme-switcher__icon--active[_ngcontent-%COMP%]{cursor:default;color:var(--tui-base-03);background-color:var(--tui-base-07)}.scheme-switcher__icon--system[_ngcontent-%COMP%], .scheme-switcher__icon--dark-scheme[_ngcontent-%COMP%]{margin-left:1rem}"],changeDetection:0}),e})();const VZ=function(){return{arrow:!1,interactive:!0}};function HZ(e,n){if(1&e&&(g(0,"a",5),F(1,"tui-svg",6),f()),2&e){const t=q().$implicit;q();const i=Nn(3);bl("social__icon social__icon--",t.key,""),y("routerLink",t.routerLink)("ngxTippy",i)("tippyProps",Re(8,VZ)),vt("aria-label","navigate to "+t.key),D(1),vl("src","assets/icons/",t.key,".svg")}}function BZ(e,n){if(1&e&&(g(0,"a",7),F(1,"tui-svg",6),f()),2&e){const t=q().$implicit;bl("social__icon social__icon--",t.key,""),y("href",t.link,lp),vt("aria-label","navigate to "+t.key),D(1),vl("src","assets/icons/",t.key,".svg")}}function UZ(e,n){if(1&e&&(rn(0),I(1,HZ,2,9,"a",3),I(2,BZ,2,6,"a",4),sn()),2&e){const t=n.$implicit;D(1),y("ngIf",t.routerLink),D(1),y("ngIf",t.link)}}function jZ(e,n){1&e&&(g(0,"div",8)(1,"a",9),F(2,"img",10),f(),g(3,"a",11),F(4,"img",12),f()())}let $Z=(()=>{class e{constructor(){this.socials=[{key:"heart",link:null,routerLink:"/sponsor"},{key:"linkedin",link:"https://www.linkedin.com/in/alexander-kislov",routerLink:null},{key:"github",link:"https://github.com/farengeyt451",routerLink:null}]}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=de({type:e,selectors:[["t-demo-social"]],decls:4,vars:1,consts:[[1,"social"],[4,"ngFor","ngForOf"],["sponsor",""],["tabindex","0","tippyClassName","tippy-support",3,"routerLink","class","ngxTippy","tippyProps",4,"ngIf"],["tabindex","0",3,"href","class",4,"ngIf"],["tabindex","0","tippyClassName","tippy-support",3,"routerLink","ngxTippy","tippyProps"],[1,"icon",3,"src"],["tabindex","0",3,"href"],[1,"social__support"],["href","https://www.buymeacoffee.com/alexanderkislov","target","_blank","rel","noopener noreferrer",1,"social__support-link"],["height","36","src","https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png","alt","Buy Me A Coffee",1,"social__support-icon--standard"],["href","https://ko-fi.com/C0C6P4GB6","target","_blank",1,"social__support-link","social__support-link--kofi"],["height","36","src","https://storage.ko-fi.com/cdn/kofi4.png?v=3","border","0","alt","Buy Me a Coffee at ko-fi.com",1,"social__support-img"]],template:function(t,i){1&t&&(g(0,"div",0),I(1,UZ,3,2,"ng-container",1),I(2,jZ,5,0,"ng-template",null,2,Zi),f()),2&t&&(D(1),y("ngForOf",i.socials))},dependencies:[nu,Ji,un,Rr,cs],styles:[".social__support{display:flex!important;flex-direction:column} .social__support-link img{width:100%;height:40px;border:2px solid #ffdd00;border-radius:15px} .social__support-link--kofi{margin-top:.5rem} .tippy-support{padding:.75rem 1rem;background-color:#40d3a5} .dark-scheme .tippy-support{background-color:#24b185}.social[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.social__icon[_ngcontent-%COMP%]{color:var(--tui-text-02);opacity:.8;transition:opacity .2s cubic-bezier(.57,1.15,0,1.04)}.social__icon[_ngcontent-%COMP%]:hover{opacity:1}.social__icon--github[_ngcontent-%COMP%], .social__icon--linkedin[_ngcontent-%COMP%]{margin-left:.5rem}"],changeDetection:0}),e})(),zZ=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=de({type:e,selectors:[["t-demo-header"]],decls:13,vars:0,consts:[[1,"header"],["tabindex","0",1,"header__hero"],[1,"header__logo"],["src","assets/icons/angular.svg","alt","angular logo",1,"header__img","header__img--ng"],["src","assets/icons/tippy.svg","alt","tippy.js logo",1,"header__img","header__img--tippy"],[1,"header__title"],["status","custom","value","v6.2.2",1,"header__badge"],[1,"header__actions"],[1,"header__social"],[1,"header__scheme-switcher"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"div",2),F(3,"img",3)(4,"img",4),f(),g(5,"h2",5),m(6,"ngx-tippy-wrapper"),f(),F(7,"tui-badge",6),f(),g(8,"div",7)(9,"div",8),F(10,"t-demo-social"),f(),g(11,"div",9),F(12,"t-demo-scheme-switcher"),f()()())},dependencies:[rA,LZ,$Z],styles:[".header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.header__left[_ngcontent-%COMP%]{display:flex}.header__hero[_ngcontent-%COMP%]{display:flex;align-items:center}.header__title[_ngcontent-%COMP%]{font-size:1.2rem}.header__badge[_ngcontent-%COMP%]{background-color:var(--tui-support-04);margin-left:.5rem}.header__actions[_ngcontent-%COMP%]{display:flex;align-items:center}.header__scheme-switcher[_ngcontent-%COMP%]{margin-left:2rem}.header__img[_ngcontent-%COMP%]{width:100%;max-width:60px;height:auto;max-height:84px;animation:animation-bounce 3s ease infinite alternate}.header__img--tippy[_ngcontent-%COMP%]{position:relative;left:-25px;z-index:-1;animation-name:animation-bounce-reversed}.header__social[_ngcontent-%COMP%]{margin-left:2rem}.header__support-link[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center}.header__support-icon--standard[_ngcontent-%COMP%]{height:46px;width:162px;border-radius:1.5rem}@media screen and (max-width: 991px){.header__support-icon--standard[_ngcontent-%COMP%]{display:none}}@keyframes animation-bounce-reversed{0%{transform:translate3d(0,10px,0) rotate(.01deg)}to{transform:translateZ(0) rotate(0)}}@keyframes animation-bounce{0%{transform:translateZ(0) rotate(0)}to{transform:translate3d(0,10px,0) rotate(.01deg)}}"],changeDetection:0}),e})(),GZ=(()=>{class e{constructor(t,i){this.activatedRoute=t,this.scroller=i}scrollToAnchorOnInit(){this.activatedRoute.fragment.subscribe(t=>{t&&setTimeout(()=>{console.log("\u{1f680} Scrolling to:",t),this.scroller.scrollToAnchor(t)},100)})}}return e.\u0275fac=function(t){return new(t||e)(_(Lr),_(Xp))},e.\u0275dir=V({type:e}),e})();function WZ(e,n){if(1&e&&(g(0,"li",9)(1,"a",25),m(2),f()()),2&e){const t=n.$implicit,i=q();D(1),wp("fragment",t.value),y("routerLinkActiveOptions",i.linkActiveOptions),D(1),gt(" ",t.view," ")}}let qZ=(()=>{class e extends GZ{constructor(t,i,o){super(t,i),this.activatedRoute=t,this.scroller=i,this.destroy$=o,this.isSubListExpanded=!0,this.contentMethods=BO,this.linkActiveOptions={matrixParams:"exact",queryParams:"exact",paths:"exact",fragment:"exact"}}ngOnInit(){}ngAfterViewInit(){super.scrollToAnchorOnInit()}}return e.\u0275fac=function(t){return new(t||e)(_(Lr),_(Xp),_(Sn))},e.\u0275cmp=de({type:e,selectors:[["t-demo-nav"]],features:[j([Sn]),le],decls:63,vars:13,consts:[[1,"nav-box"],[1,"nav"],[1,"nav__list"],[1,"nav__item"],["tuiLink","","routerLink","/getting-started","routerLinkActive","nav__link--active",1,"nav__link"],["tuiLink","","routerLink","/demo","routerLinkActive","nav__link--active",1,"nav__link"],["tuiLink","","routerLink","/usage","routerLinkActive","nav__link--active",1,"nav__link"],[3,"expanded"],[1,"nav__sub-list"],[1,"nav__sub-item"],["tuiLink","","routerLink","/usage","fragment","basic_usage","routerLinkActive","nav__link--active",1,"nav__link",3,"routerLinkActiveOptions"],["tuiLink","","routerLink","/usage","fragment","initializing_on_condition","routerLinkActive","nav__link--active",1,"nav__link",3,"routerLinkActiveOptions"],["tuiLink","","routerLink","/applying-props","routerLinkActive","nav__link--active",1,"nav__link"],["tuiLink","","routerLink","/applying-content","routerLinkActive","nav__link--active",1,"nav__link"],["class","nav__sub-item",4,"ngFor","ngForOf"],["tuiLink","","routerLink","/working-with-service","routerLinkActive","nav__link--active",1,"nav__link"],["tuiLink","","routerLink","/working-with-service","fragment","additional_methods","routerLinkActive","nav__link--active",1,"nav__link",3,"routerLinkActiveOptions"],["tuiLink","","routerLink","/working-with-service","fragment","static_methods","routerLinkActive","nav__link--active",1,"nav__link",3,"routerLinkActiveOptions"],["tuiLink","","routerLink","/working-with-service","fragment","subscription_instances_changes","routerLinkActive","nav__link--active",1,"nav__link",3,"routerLinkActiveOptions"],["tuiLink","","routerLink","/grouped-tooltips","routerLinkActive","nav__link--active",1,"nav__link"],["tuiLink","","routerLink","/multiple-tooltips","routerLinkActive","nav__link--active",1,"nav__link"],["tuiLink","","routerLink","/singleton","routerLinkActive","nav__link--active",1,"nav__link"],["tuiLink","","routerLink","/singleton","fragment","overridden_props","routerLinkActive","nav__link--active",1,"nav__link",3,"routerLinkActiveOptions"],["tuiLink","","routerLink","/singleton","fragment","smooth_transitions","routerLinkActive","nav__link--active",1,"nav__link",3,"routerLinkActiveOptions"],["tuiLink","","routerLink","/singleton","fragment","control_singleton_instance","routerLinkActive","nav__link--active",1,"nav__link",3,"routerLinkActiveOptions"],["tuiLink","","routerLink","/applying-content","routerLinkActive","nav__link--active",1,"nav__link",3,"fragment","routerLinkActiveOptions"]],template:function(t,i){1&t&&(g(0,"tui-scrollbar",0)(1,"div",1)(2,"ul",2)(3,"li",3)(4,"a",4),m(5," Getting started "),f()(),g(6,"li",3)(7,"a",5),m(8," Demo "),f()(),g(9,"li",3)(10,"a",6),m(11," Usage "),f(),g(12,"tui-expand",7)(13,"ul",8)(14,"li",9)(15,"a",10),m(16," Basic usage "),f()(),g(17,"li",9)(18,"a",11),m(19," Initializing on condition "),f()()()()(),g(20,"li",3)(21,"a",12),m(22," Applying props "),f()(),g(23,"li",3)(24,"a",13),m(25," Applying content "),f(),g(26,"tui-expand",7)(27,"ul",8),I(28,WZ,3,3,"li",14),f()()(),g(29,"li",3)(30,"a",15),m(31," Working with service "),f(),g(32,"tui-expand",7)(33,"ul",8)(34,"li",9)(35,"a",16),m(36," Additional methods "),f()(),g(37,"li",9)(38,"a",17),m(39," Static methods "),f()(),g(40,"li",9)(41,"a",18),m(42," Subscription to instances changes "),f()()()()(),g(43,"li",3)(44,"a",19),m(45," Grouped tooltips "),f()(),g(46,"li",3)(47,"a",20),m(48," Multiple tooltips on a single element "),f()(),g(49,"li",3)(50,"a",21),m(51," Singleton "),f(),g(52,"tui-expand",7)(53,"ul",8)(54,"li",9)(55,"a",22),m(56," Overridden properties "),f()(),g(57,"li",9)(58,"a",23),m(59," Smooth transitions "),f()(),g(60,"li",9)(61,"a",24),m(62," Programmatically control singleton instance "),f()()()()()()()()),2&t&&(D(12),y("expanded",i.isSubListExpanded),D(3),y("routerLinkActiveOptions",i.linkActiveOptions),D(3),y("routerLinkActiveOptions",i.linkActiveOptions),D(8),y("expanded",i.isSubListExpanded),D(2),y("ngForOf",i.contentMethods),D(4),y("expanded",i.isSubListExpanded),D(3),y("routerLinkActiveOptions",i.linkActiveOptions),D(3),y("routerLinkActiveOptions",i.linkActiveOptions),D(3),y("routerLinkActiveOptions",i.linkActiveOptions),D(11),y("expanded",i.isSubListExpanded),D(3),y("routerLinkActiveOptions",i.linkActiveOptions),D(3),y("routerLinkActiveOptions",i.linkActiveOptions),D(3),y("routerLinkActiveOptions",i.linkActiveOptions))},dependencies:[nu,EP,Ji,I4,ps,nA],styles:[".nav-box[_ngcontent-%COMP%]{height:100%}.nav__list[_ngcontent-%COMP%]{font-size:1rem}.nav__item[_ngcontent-%COMP%]:not(:first-child){margin-top:1rem}.nav__sub-list[_ngcontent-%COMP%]{border-left:.15rem solid var(--tui-base-04);margin:.5rem;padding:.25rem .5rem}.nav__sub-item[_ngcontent-%COMP%]:not(:first-child){margin-top:.75rem}"],changeDetection:0}),e})(),YZ=(()=>{class e{constructor(){}ngOnInit(){}get year(){return(new Date).getFullYear()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=de({type:e,selectors:[["t-demo-footer"]],decls:3,vars:1,consts:[[1,"footer"],[1,"footer__copyright","tui-text_body-m-1"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"p",1),m(2),f()()),2&t&&(D(2),gt("\xa9 ",i.year," \u2014 MIT License"))},styles:[".footer[_ngcontent-%COMP%]{padding:1rem 5rem 1rem 0;text-align:right}.footer__copyright[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),e})(),KZ=(()=>{class e{constructor(){}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=de({type:e,selectors:[["t-demo-content"]],decls:1,vars:0,template:function(t,i){1&t&&F(0,"router-outlet")},dependencies:[Ub],changeDetection:0}),e})();function ZZ(e,n){1&e&&F(0,"div",5),2&e&&br("background-image",n.tuiLet===q().Schemes.Dark?"url(assets/img/submarine-d.png)":"url(assets/img/submarine-l.png)")}let QZ=(()=>{class e{constructor(t){this.schemeService=t,this.Schemes=jt}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)(_(as))},e.\u0275cmp=de({type:e,selectors:[["t-demo-not-supported"]],decls:10,vars:3,consts:[[1,"not-supported"],[1,"not-supported__info"],[1,"tui-text_h2"],[1,"tui-text_body-l-2"],["class","not-supported__hero",3,"background-image",4,"tuiLet"],[1,"not-supported__hero"]],template:function(t,i){1&t&&(g(0,"div",0)(1,"div",1)(2,"h1",2),m(3,"Switch Device or "),F(4,"br"),m(5," Resize Your Browser"),f(),g(6,"p",3),m(7,"Please switch to a desktop device or widen your browser. Application is not available in smaller resolutions."),f()(),I(8,ZZ,1,2,"div",4),Rt(9,"async"),f()),2&t&&(D(8),y("tuiLet",Bt(9,1,i.schemeService.scheme$)))},dependencies:[Ci,Qn],styles:[".not-supported[_ngcontent-%COMP%]{position:relative;height:100vh;overflow:hidden}.not-supported__info[_ngcontent-%COMP%]{padding:1rem 2rem;position:relative;z-index:1}.not-supported__hero[_ngcontent-%COMP%]{position:absolute;right:0;width:40rem;height:40rem;flex-shrink:0;background-size:cover;background-repeat:no-repeat}@media screen and (max-width: 479px){.not-supported__hero[_ngcontent-%COMP%]{right:-6rem}}@media screen and (max-width: 479px){.tui-text_h2[_ngcontent-%COMP%]{font:var(--tui-font-heading-3)}}"],changeDetection:0}),e})();function XZ(e,n){1&e&&F(0,"tui-theme-night")}function JZ(e,n){1&e&&(g(0,"div",5)(1,"header",6),F(2,"t-demo-header"),f(),g(3,"main",7)(4,"nav",8),F(5,"t-demo-nav"),f(),g(6,"div",9)(7,"div",10),F(8,"t-demo-content"),f()()(),g(9,"footer",11),F(10,"t-demo-footer"),f()())}function eQ(e,n){1&e&&(g(0,"div",12),F(1,"t-demo-not-supported"),f())}function tQ(e,n){if(1&e&&(g(0,"tui-root",1),I(1,XZ,1,0,"tui-theme-night",2),I(2,JZ,11,0,"div",3),I(3,eQ,2,0,"ng-template",null,4,Zi),f()),2&e){const t=n.tuiLet,i=Nn(4),o=q();y("tuiMode",t===o.Schemes.Dark?"onDark":null),D(1),y("ngIf",t===o.Schemes.Dark),D(1),y("ngIf",!o.isMobile)("ngIfElse",i)}}let nQ=(()=>{class e{constructor(t,i,o,r,s){this.window=t,this.schemeService=i,this.breakpointService=o,this.destroy$=r,this.cdr=s,this.Schemes=jt,this.bodyClassList=this.window.document.body.classList}ngOnInit(){this.initResizeSub(),this.listenForSchemeChange(),this.checkIsMobile()}listenForSchemeChange(){this.schemeService.scheme$.pipe(Je(this.destroy$)).subscribe(t=>{this.toggleBodyClass(t)})}toggleBodyClass(t){this.bodyClassList.remove(t===jt.Dark?jt.Light:jt.Dark),this.bodyClassList.add(t)}checkIsMobile(){this.isMobile=this.breakpointService.isMatches("(max-width: 767px)"),this.cdr.markForCheck()}initResizeSub(){Bi(window,"resize").pipe(Je(this.destroy$),Wf(100)).subscribe(()=>{this.checkIsMobile()})}}return e.\u0275fac=function(t){return new(t||e)(_(Ft),_(as),_(S$),_(Sn),_(Zn))},e.\u0275cmp=de({type:e,selectors:[["app-root"]],features:[j([Sn])],decls:2,vars:3,consts:[[3,"tuiMode",4,"tuiLet"],[3,"tuiMode"],[4,"ngIf"],["class","t-demo",4,"ngIf","ngIfElse"],["notSupported",""],[1,"t-demo"],[1,"t-demo__header"],[1,"t-demo__main"],[1,"t-demo__nav"],[1,"t-demo__wrapper"],[1,"t-demo__content"],[1,"t-demo__footer"],[1,"t-not-supported"]],template:function(t,i){1&t&&(I(0,tQ,5,4,"tui-root",0),Rt(1,"async")),2&t&&y("tuiLet",Bt(1,1,i.schemeService.scheme$))},dependencies:[un,Ci,Bc,xG,RG,zZ,qZ,YZ,KZ,QZ,Qn],styles:['.t-demo[_ngcontent-%COMP%]{min-height:100vh;display:grid;grid-template-rows:1fr auto auto;grid-template-columns:100%}.t-demo__header[_ngcontent-%COMP%]{position:fixed;box-sizing:border-box;top:0;left:0;right:0;height:84px;box-shadow:0 .125rem 1rem #00000014;padding:.5rem 1.25rem;background:var(--tui-base-01);border-bottom:.1rem solid var(--tui-base-03);z-index:1}.t-demo__main[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:84px}.t-demo__nav[_ngcontent-%COMP%]{position:fixed;top:84px;width:16rem;padding:2rem 1.5rem 1.5rem;bottom:70px}@media screen and (max-width: 991px){.t-demo__nav[_ngcontent-%COMP%]{width:10rem}}.t-demo__nav[_ngcontent-%COMP%]:after{content:"";width:100%;height:3.75rem;position:absolute;left:0;bottom:-1rem;background:linear-gradient(transparent -10px,var(--tui-base-01))}.t-demo__wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:2rem 5rem;margin-left:16rem;width:100%}@media screen and (max-width: 991px){.t-demo__wrapper[_ngcontent-%COMP%]{margin-left:10rem;padding:1rem 2.5rem}}.t-demo__content[_ngcontent-%COMP%]{width:100%;max-width:62.5rem}.t-demo__footer[_ngcontent-%COMP%]{box-shadow:0 .125rem 1rem #00000014;background-color:var(--tui-base-01);border-top:.1rem solid var(--tui-base-03);z-index:1}'],changeDetection:0}),e})();function iQ(e){return()=>e.getPreferredScheme()}let oQ=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=oe({type:e,bootstrap:[nQ]}),e.\u0275inj=ie({providers:[{provide:uh,useValue:{coreLibraryLoader:()=>It.e(112).then(It.bind(It,112)),languages:{typescript:()=>It.e(535).then(It.bind(It,535)),css:()=>It.e(403).then(It.bind(It,403)),xml:()=>It.e(142).then(It.bind(It,142)),json:()=>It.e(39).then(It.bind(It,39))},themePath:"assets/themes/default.css"}},{provide:$f,useClass:SA},{provide:$f,useClass:SA},{provide:gc,useFactory:iQ,deps:[as],multi:!0}],imports:[xZ,g$,BE,Nv,oW,K7,f3,jG,u4,zG,$y,T4,q1,qG,V8,Nl,F4,R1,$1,NG,ca,FG,iA,j8]}),e})();(function EV(){if(VM)throw new Error("Cannot enable prod mode after platform setup.");LM=!1})(),QB().bootstrapModule(oQ).catch(e=>console.error(e))},735:function(su){su.exports=function(){"use strict";function zi(Y){return(zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(J){return typeof J}:function(J){return J&&"function"==typeof Symbol&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J})(Y)}function It(Y,J){return(It=Object.setPrototypeOf||function(Ae,Pt){return Ae.__proto__=Pt,Ae})(Y,J)}function Be(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Y){return!1}}function Br(Y,J,_e){return(Br=Be()?Reflect.construct:function(Pt,fo,ho){var go=[null];go.push.apply(go,fo);var Oa=new(Function.bind.apply(Pt,go));return ho&&It(Oa,ho.prototype),Oa}).apply(null,arguments)}function ii(Y){return function wa(Y){if(Array.isArray(Y))return Ma(Y)}(Y)||function Bn(Y){if("undefined"!=typeof Symbol&&null!=Y[Symbol.iterator]||null!=Y["@@iterator"])return Array.from(Y)}(Y)||function md(Y,J){if(Y){if("string"==typeof Y)return Ma(Y,J);var _e=Object.prototype.toString.call(Y).slice(8,-1);if("Object"===_e&&Y.constructor&&(_e=Y.constructor.name),"Map"===_e||"Set"===_e)return Array.from(Y);if("Arguments"===_e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e))return Ma(Y,J)}}(Y)||function _d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ma(Y,J){(null==J||J>Y.length)&&(J=Y.length);for(var _e=0,Ae=new Array(J);_e1?_e-1:0),Pt=1;Pt<_e;Pt++)Ae[Pt-1]=arguments[Pt];return rr(Y,J,Ae)}}function xe(Y,J,_e){_e=_e||Ea,Es&&Es(Y,null);for(var Ae=J.length;Ae--;){var Pt=J[Ae];if("string"==typeof Pt){var fo=_e(Pt);fo!==Pt&&(vd(J)||(J[Ae]=fo),Pt=fo)}Y[Pt]=!0}return Y}function Ce(Y){var _e,J=au(null);for(_e in Y)rr(ir,Y,[_e])&&(J[_e]=Y[_e]);return J}function As(Y,J){for(;null!==Y;){var _e=Jh(Y,J);if(_e){if(_e.get)return Lt(_e.get);if("function"==typeof _e.value)return Lt(_e.value)}Y=or(Y)}return function Ae(Pt){return console.warn("fallback value for",Pt),null}}var bd=An(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pu=An(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fu=An(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),zt=An(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sa=An(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Cd=An(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pt=An(["#text"]),ze=An(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),hu=An(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),W=An(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ur=An(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),oC=Gi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Dd=Gi(/<%[\w\W]*|[\w\W]*%>/gm),rC=Gi(/^data-[\-\w.\u00B7-\uFFFF]/),G=Gi(/^aria-[\-\w]+$/),sC=Gi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aC=Gi(/^(?:\w+script|data):/i),tg=Gi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),lC=Gi(/^html$/i),Td=function(){return"undefined"==typeof window?null:window},uC=function(J,_e){if("object"!==zi(J)||"function"!=typeof J.createPolicy)return null;var Ae=null,Pt="data-tt-policy-suffix";_e.currentScript&&_e.currentScript.hasAttribute(Pt)&&(Ae=_e.currentScript.getAttribute(Pt));var fo="dompurify"+(Ae?"#"+Ae:"");try{return J.createPolicy(fo,{createHTML:function(go){return go},createScriptURL:function(go){return go}})}catch(ho){return console.warn("TrustedTypes policy "+fo+" could not be created."),null}};return function gu(){var Y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Td(),J=function(O){return gu(O)};if(J.version="2.4.0",J.removed=[],!Y||!Y.document||9!==Y.document.nodeType)return J.isSupported=!1,J;var _e=Y.document,Ae=Y.document,Pt=Y.DocumentFragment,fo=Y.HTMLTemplateElement,ho=Y.Node,go=Y.Element,Is=Y.NodeFilter,Oa=Y.NamedNodeMap,cC=void 0===Oa?Y.NamedNodeMap||Y.MozNamedAttrMap:Oa,dC=Y.HTMLFormElement,pC=Y.DOMParser,mu=Y.trustedTypes,jr=go.prototype,wd=As(jr,"cloneNode"),Md=As(jr,"nextSibling"),Ed=As(jr,"childNodes"),Aa=As(jr,"parentNode");if("function"==typeof fo){var _u=Ae.createElement("template");_u.content&&_u.content.ownerDocument&&(Ae=_u.content.ownerDocument)}var mi=uC(mu,_e),vu=mi?mi.createHTML(""):"",Ia=Ae.implementation,en=Ae.createNodeIterator,ig=Ae.createDocumentFragment,og=Ae.getElementsByTagName,rg=_e.importNode,Sd={};try{Sd=Ce(Ae).documentMode?Ae.documentMode:{}}catch(se){}var Si={};J.isSupported="function"==typeof Aa&&Ia&&void 0!==Ia.createHTMLDocument&&9!==Sd;var Ns,rt,yu=oC,bu=Dd,mo=rC,sg=G,Zt=aC,ar=tg,xt=sC,fn=null,Od=xe({},[].concat(ii(bd),ii(pu),ii(fu),ii(Sa),ii(pt))),tn=null,Pa=xe({},[].concat(ii(ze),ii(hu),ii(W),ii(Ur))),St=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_o=null,Cu=null,Du=!0,xa=!0,Ad=!1,$r=!1,lr=!1,Tu=!1,Na=!1,zr=!1,Ra=!1,bt=!1,Vt=!0,vo=!1,wu="user-content-",at=!0,ur=!1,Qe={},Lo=null,Id=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ke=null,he=xe({},["audio","video","img","source","image","track"]),xs=null,ag=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),N="http://www.w3.org/1998/Math/MathML",Gr="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml",Ge=pe,Mu=!1,lg=["application/xhtml+xml","text/html"],Fa="text/html",Rs=null,ug=Ae.createElement("form"),cg=function(O){return O instanceof RegExp||O instanceof Function},Oi=function(O){Rs&&Rs===O||((!O||"object"!==zi(O))&&(O={}),O=Ce(O),Ns=Ns=-1===lg.indexOf(O.PARSER_MEDIA_TYPE)?Fa:O.PARSER_MEDIA_TYPE,rt="application/xhtml+xml"===Ns?function(H){return H}:Ea,fn="ALLOWED_TAGS"in O?xe({},O.ALLOWED_TAGS,rt):Od,tn="ALLOWED_ATTR"in O?xe({},O.ALLOWED_ATTR,rt):Pa,xs="ADD_URI_SAFE_ATTR"in O?xe(Ce(ag),O.ADD_URI_SAFE_ATTR,rt):ag,ke="ADD_DATA_URI_TAGS"in O?xe(Ce(he),O.ADD_DATA_URI_TAGS,rt):he,Lo="FORBID_CONTENTS"in O?xe({},O.FORBID_CONTENTS,rt):Id,_o="FORBID_TAGS"in O?xe({},O.FORBID_TAGS,rt):{},Cu="FORBID_ATTR"in O?xe({},O.FORBID_ATTR,rt):{},Qe="USE_PROFILES"in O&&O.USE_PROFILES,Du=!1!==O.ALLOW_ARIA_ATTR,xa=!1!==O.ALLOW_DATA_ATTR,Ad=O.ALLOW_UNKNOWN_PROTOCOLS||!1,$r=O.SAFE_FOR_TEMPLATES||!1,lr=O.WHOLE_DOCUMENT||!1,zr=O.RETURN_DOM||!1,Ra=O.RETURN_DOM_FRAGMENT||!1,bt=O.RETURN_TRUSTED_TYPE||!1,Na=O.FORCE_BODY||!1,Vt=!1!==O.SANITIZE_DOM,vo=O.SANITIZE_NAMED_PROPS||!1,at=!1!==O.KEEP_CONTENT,ur=O.IN_PLACE||!1,xt=O.ALLOWED_URI_REGEXP||xt,Ge=O.NAMESPACE||pe,O.CUSTOM_ELEMENT_HANDLING&&cg(O.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(St.tagNameCheck=O.CUSTOM_ELEMENT_HANDLING.tagNameCheck),O.CUSTOM_ELEMENT_HANDLING&&cg(O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(St.attributeNameCheck=O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),O.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(St.allowCustomizedBuiltInElements=O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$r&&(xa=!1),Ra&&(zr=!0),Qe&&(fn=xe({},ii(pt)),tn=[],!0===Qe.html&&(xe(fn,bd),xe(tn,ze)),!0===Qe.svg&&(xe(fn,pu),xe(tn,hu),xe(tn,Ur)),!0===Qe.svgFilters&&(xe(fn,fu),xe(tn,hu),xe(tn,Ur)),!0===Qe.mathMl&&(xe(fn,Sa),xe(tn,W),xe(tn,Ur))),O.ADD_TAGS&&(fn===Od&&(fn=Ce(fn)),xe(fn,O.ADD_TAGS,rt)),O.ADD_ATTR&&(tn===Pa&&(tn=Ce(tn)),xe(tn,O.ADD_ATTR,rt)),O.ADD_URI_SAFE_ATTR&&xe(xs,O.ADD_URI_SAFE_ATTR,rt),O.FORBID_CONTENTS&&(Lo===Id&&(Lo=Ce(Lo)),xe(Lo,O.FORBID_CONTENTS,rt)),at&&(fn["#text"]=!0),lr&&xe(fn,["html","head","body"]),fn.table&&(xe(fn,["tbody"]),delete _o.tbody),An&&An(O),Rs=O)},dg=xe({},["mi","mo","mn","ms","mtext"]),pg=xe({},["foreignobject","desc","title","annotation-xml"]),fC=xe({},["title","style","font","a","script"]),Eu=xe({},pu);xe(Eu,fu),xe(Eu,zt);var Su=xe({},Sa);xe(Su,Cd);var hC=function(O){var H=Aa(O);(!H||!H.tagName)&&(H={namespaceURI:pe,tagName:"template"});var K=Ea(O.tagName),We=Ea(H.tagName);return O.namespaceURI===Gr?H.namespaceURI===pe?"svg"===K:H.namespaceURI===N?"svg"===K&&("annotation-xml"===We||dg[We]):Boolean(Eu[K]):O.namespaceURI===N?H.namespaceURI===pe?"math"===K:H.namespaceURI===Gr?"math"===K&&pg[We]:Boolean(Su[K]):O.namespaceURI===pe&&!(H.namespaceURI===Gr&&!pg[We]||H.namespaceURI===N&&!dg[We])&&!Su[K]&&(fC[K]||!Eu[K])},yo=function(O){sr(J.removed,{element:O});try{O.parentNode.removeChild(O)}catch(H){try{O.outerHTML=vu}catch(K){O.remove()}}},Pd=function(O,H){try{sr(J.removed,{attribute:H.getAttributeNode(O),from:H})}catch(K){sr(J.removed,{attribute:null,from:H})}if(H.removeAttribute(O),"is"===O&&!tn[O])if(zr||Ra)try{yo(H)}catch(K){}else try{H.setAttribute(O,"")}catch(K){}},Un=function(O){var H,K;if(Na)O=""+O;else{var We=Ss(O,/^[\r\n\t ]+/);K=We&&We[0]}"application/xhtml+xml"===Ns&&(O=''+O+"");var Mn=mi?mi.createHTML(O):O;if(Ge===pe)try{H=(new pC).parseFromString(Mn,Ns)}catch(gn){}if(!H||!H.documentElement){H=Ia.createDocument(Ge,"template",null);try{H.documentElement.innerHTML=Mu?"":Mn}catch(gn){}}var hn=H.body||H.documentElement;return O&&K&&hn.insertBefore(Ae.createTextNode(K),hn.childNodes[0]||null),Ge===pe?og.call(H,lr?"html":"body")[0]:lr?H.documentElement:hn},tt=function(O){return en.call(O.ownerDocument||O,O,Is.SHOW_ELEMENT|Is.SHOW_COMMENT|Is.SHOW_TEXT,null,!1)},gC=function(O){return O instanceof dC&&("string"!=typeof O.nodeName||"string"!=typeof O.textContent||"function"!=typeof O.removeChild||!(O.attributes instanceof cC)||"function"!=typeof O.removeAttribute||"function"!=typeof O.setAttribute||"string"!=typeof O.namespaceURI||"function"!=typeof O.insertBefore)},ka=function(O){return"object"===zi(ho)?O instanceof ho:O&&"object"===zi(O)&&"number"==typeof O.nodeType&&"string"==typeof O.nodeName},Vo=function(O,H,K){!Si[O]||uu(Si[O],function(We){We.call(J,H,K,Rs)})},$=function(O){var H;if(Vo("beforeSanitizeElements",O,null),gC(O)||In(/[\u0080-\uFFFF]/,O.nodeName))return yo(O),!0;var K=rt(O.nodeName);if(Vo("uponSanitizeElement",O,{tagName:K,allowedTags:fn}),O.hasChildNodes()&&!ka(O.firstElementChild)&&(!ka(O.content)||!ka(O.content.firstElementChild))&&In(/<[/\w]/g,O.innerHTML)&&In(/<[/\w]/g,O.textContent)||"select"===K&&In(/