From 4843e3703dd4dc48be1bc5694fd400d5350a45f6 Mon Sep 17 00:00:00 2001 From: taiga-family-bot <140712314+taiga-family-bot@users.noreply.github.com> Date: Wed, 15 May 2024 16:20:45 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20taiga-fa?= =?UTF-8?q?mily/preview-landing-components@b7552f78abda7b4f1f4d8ab430dad50?= =?UTF-8?q?823ccea8d=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chunk-TCVSCQDS.js => chunk-B6556NEC.js | 4 ++-- chunk-TCVSCQDS.js.map => chunk-B6556NEC.js.map | 0 chunk-ZMRV6PSF.js => chunk-GH5PDYR7.js | 16 ++++++++-------- chunk-GH5PDYR7.js.map | 1 + chunk-ZMRV6PSF.js.map | 1 - index.html | 8 ++++---- main-CMUARRQG.js => main-KUPR62DY.js | 6 +++--- main-CMUARRQG.js.map => main-KUPR62DY.js.map | 2 +- polyfills-SX7FSEZT.js | 3 --- polyfills-SX7FSEZT.js.map | 1 - polyfills-ULQNQL4M.js | 3 +++ polyfills-ULQNQL4M.js.map | 1 + 12 files changed, 23 insertions(+), 23 deletions(-) rename chunk-TCVSCQDS.js => chunk-B6556NEC.js (99%) rename chunk-TCVSCQDS.js.map => chunk-B6556NEC.js.map (100%) rename chunk-ZMRV6PSF.js => chunk-GH5PDYR7.js (62%) create mode 100644 chunk-GH5PDYR7.js.map delete mode 100644 chunk-ZMRV6PSF.js.map rename main-CMUARRQG.js => main-KUPR62DY.js (98%) rename main-CMUARRQG.js.map => main-KUPR62DY.js.map (99%) delete mode 100644 polyfills-SX7FSEZT.js delete mode 100644 polyfills-SX7FSEZT.js.map create mode 100644 polyfills-ULQNQL4M.js create mode 100644 polyfills-ULQNQL4M.js.map diff --git a/chunk-TCVSCQDS.js b/chunk-B6556NEC.js similarity index 99% rename from chunk-TCVSCQDS.js rename to chunk-B6556NEC.js index 8a4bf976..61d64ba6 100644 --- a/chunk-TCVSCQDS.js +++ b/chunk-B6556NEC.js @@ -1,4 +1,4 @@ -import{$,$a as Qo,$b as Bi,$c as ro,A as vt,Aa as Rt,Ac as ie,Ad as en,Ae as ot,B as ee,Ba as H,Bc as se,Bd as tn,Be as Zr,C as gi,Ca as dt,Cc as Tr,Cd as nn,D as Uo,Da as Ri,Db as ge,Dc as Mr,Dd as on,De as $e,E as pe,Ea as v,Eb as Kt,Ed as mt,Ee as We,F as $o,Fa as h,Fb as Jo,Fc as Ki,Fd as rn,Fe as hn,G as M,Ga as re,Gb as er,Gd as Hr,Ge as gn,H as Ke,Ha as X,Hb as Lt,Hd as ei,He as fn,I as qn,Ia as Ct,Ib as tr,Id as an,Ie as _n,J as Si,Ja as K,Jb as ir,Jd as sn,Je as ri,K as xe,Ka as j,Kd as Ci,Ke as ai,L as Yt,La as B,Lb as zi,Ld as Rr,Le as vn,M as fi,Ma as te,Mb as nr,Md as Lr,N as Fi,Na as W,Nb as or,Nd as s,Ne as qr,O as E,Oa as Li,Ob as rr,Od as ne,Oe as Jr,P as S,Pa as me,Pb as Tt,Pc as br,Pd as Nr,Pe as ea,Q as b,Qa as Fe,Qb as Nt,Qc as Ee,Qd as ti,Qe as ta,R as y,Ra as Ae,Rb as Vi,Rc as yr,Rd as zr,Re as ia,S as Ht,Sa as He,Sb as ar,Sc as no,Sd as so,Se as na,Ta as O,Tb as sr,Tc as Qi,Td as Vr,U as ct,Ua as Yo,Ub as Z,Ud as jr,V as f,Va as ce,Vb as L,Vc as Dr,Vd as lo,W as _,Wa as Go,Wb as lr,Wc as Or,Wd as uo,Xa as Ko,Xb as Qt,Xc as U,Xd as Br,Y as ue,Ya as Y,Yc as Pr,Yd as ht,Z as Ai,Za as J,Zb as Mt,Zc as oo,Zd as Pt,_ as F,_a as eo,_b as ji,_c as wr,_d as Ue,ab as Xo,ac as ur,ad as xr,b as Ho,bb as _e,bc as cr,bd as Xi,be as ln,c as Ro,ca as Wo,cb as he,cc as Ui,cd as Zi,ce as un,d as Ft,da as Hi,db as to,dc as io,dd as tt,de as Ur,e as At,ec as $i,ed as Le,ee as $r,f as Lo,fa as _i,fb as Gt,fd as Ir,fe as cn,g as No,ga as p,gb as ae,gd as qt,ge as Wr,h as ye,ha as l,hb as ve,hc as dr,hd as qi,he as Yr,i as zo,ia as vi,ib as z,ic as Xt,id as Ji,ie as Gr,j as je,jc as Be,jd as kr,je as nt,k as V,kc as pt,l as Xn,lc as Qe,ld as Er,le as Kr,m as Ii,mc as pr,md as Ne,me as Qr,n as $t,na as Ze,nc as mr,nd as ze,ne as co,o as De,oa as Jn,oc as hr,od as Jt,oe as dn,p as Vo,pa as x,pc as gr,pd as yt,q as lt,qa as T,qb as Ni,qc as ke,qd as Dt,qe as pn,r as jo,ra as N,rb as qe,rc as Wi,rd as Sr,re as ii,sa as u,sb as we,sc as fr,sd as Fr,t as Bo,ta as Ie,tb as Je,tc as _r,td as Ar,te as Xr,u as ut,ua as A,ub as Re,uc as Yi,ue as ni,v as Ge,va as m,vb as Zo,vc as vr,w as Zn,wa as g,wb as qo,wc as Zt,wd as ao,we as mn,x as ki,xa as I,xb as et,xc as Cr,xd as it,xe as Ce,y as Wt,ya as Oe,yc as bt,yd as Ot,ye as Te,z as Ei,za as Pe,zc as Gi,zd as zt,ze as oi}from"./chunk-ZMRV6PSF.js";var qs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-autofilled-styles"],decls:0,vars:0,template:function(e,i){},styles:[`.tui-autofill input,input.tui-autofill{transition:box-shadow .01s} +import{$,$a as Qo,$b as Bi,$c as ro,A as vt,Aa as Rt,Ac as ie,Ad as en,Ae as ot,B as ee,Ba as H,Bc as se,Bd as tn,Be as Zr,C as gi,Ca as dt,Cc as Tr,Cd as nn,D as Uo,Da as Ri,Db as ge,Dc as Mr,Dd as on,De as $e,E as pe,Ea as v,Eb as Kt,Ed as mt,Ee as We,F as $o,Fa as h,Fb as Jo,Fc as Ki,Fd as rn,Fe as hn,G as M,Ga as re,Gb as er,Gd as Hr,Ge as gn,H as Ke,Ha as X,Hb as Lt,Hd as ei,He as fn,I as qn,Ia as Ct,Ib as tr,Id as an,Ie as _n,J as Si,Ja as K,Jb as ir,Jd as sn,Je as ri,K as xe,Ka as j,Kd as Ci,Ke as ai,L as Yt,La as B,Lb as zi,Ld as Rr,Le as vn,M as fi,Ma as te,Mb as nr,Md as Lr,N as Fi,Na as W,Nb as or,Nd as s,Ne as qr,O as E,Oa as Li,Ob as rr,Od as ne,Oe as Jr,P as S,Pa as me,Pb as Tt,Pc as br,Pd as Nr,Pe as ea,Q as b,Qa as Fe,Qb as Nt,Qc as Ee,Qd as ti,Qe as ta,R as y,Ra as Ae,Rb as Vi,Rc as yr,Rd as zr,Re as ia,S as Ht,Sa as He,Sb as ar,Sc as no,Sd as so,Se as na,Ta as O,Tb as sr,Tc as Qi,Td as Vr,U as ct,Ua as Yo,Ub as Z,Ud as jr,V as f,Va as ce,Vb as L,Vc as Dr,Vd as lo,W as _,Wa as Go,Wb as lr,Wc as Or,Wd as uo,Xa as Ko,Xb as Qt,Xc as U,Xd as Br,Y as ue,Ya as Y,Yc as Pr,Yd as ht,Z as Ai,Za as J,Zb as Mt,Zc as oo,Zd as Pt,_ as F,_a as eo,_b as ji,_c as wr,_d as Ue,ab as Xo,ac as ur,ad as xr,b as Ho,bb as _e,bc as cr,bd as Xi,be as ln,c as Ro,ca as Wo,cb as he,cc as Ui,cd as Zi,ce as un,d as Ft,da as Hi,db as to,dc as io,dd as tt,de as Ur,e as At,ec as $i,ed as Le,ee as $r,f as Lo,fa as _i,fb as Gt,fd as Ir,fe as cn,g as No,ga as p,gb as ae,gd as qt,ge as Wr,h as ye,ha as l,hb as ve,hc as dr,hd as qi,he as Yr,i as zo,ia as vi,ib as z,ic as Xt,id as Ji,ie as Gr,j as je,jc as Be,jd as kr,je as nt,k as V,kc as pt,l as Xn,lc as Qe,ld as Er,le as Kr,m as Ii,mc as pr,md as Ne,me as Qr,n as $t,na as Ze,nc as mr,nd as ze,ne as co,o as De,oa as Jn,oc as hr,od as Jt,oe as dn,p as Vo,pa as x,pc as gr,pd as yt,q as lt,qa as T,qb as Ni,qc as ke,qd as Dt,qe as pn,r as jo,ra as N,rb as qe,rc as Wi,rd as Sr,re as ii,sa as u,sb as we,sc as fr,sd as Fr,t as Bo,ta as Ie,tb as Je,tc as _r,td as Ar,te as Xr,u as ut,ua as A,ub as Re,uc as Yi,ue as ni,v as Ge,va as m,vb as Zo,vc as vr,w as Zn,wa as g,wb as qo,wc as Zt,wd as ao,we as mn,x as ki,xa as I,xb as et,xc as Cr,xd as it,xe as Ce,y as Wt,ya as Oe,yc as bt,yd as Ot,ye as Te,z as Ei,za as Pe,zc as Gi,zd as zt,ze as oi}from"./chunk-GH5PDYR7.js";var qs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({type:t,selectors:[["ng-component"]],hostAttrs:[1,"tui-autofilled-styles"],decls:0,vars:0,template:function(e,i){},styles:[`.tui-autofill input,input.tui-autofill{transition:box-shadow .01s} `],encapsulation:2,changeDetection:0}),t})(),oa=(()=>{class t{constructor(e){this.autofilled=!1,this.tuiAutofilledChange=new $,e.addComponent(qs)}transitionStartHandler({propertyName:e,target:i}){var o;e.includes("box-shadow")&&((o=i)===null||o===void 0?void 0:o.matches("input"))&&(this.autofilled=!this.autofilled,this.tuiAutofilledChange.emit(this.autofilled))}}return t.\u0275fac=function(e){return new(e||t)(l(Pr))},t.\u0275dir=y({type:t,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(e,i){e&1&&v("transitionstart",function(r){return i.transitionStartHandler(r)}),e&2&&A("_autofilled",i.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),t})(),ra=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();var Cn=(()=>{class t{constructor(){this.indeterminate=!1,this.checked=!1,this.tuiCheckedChange=new $}get isChecked(){return this.checked}get isIndeterminate(){return this.indeterminate}set tuiChecked(e){this.checked=e||!1,this.indeterminate=e===null}onChange({checked:e}){this.checked=e,this.indeterminate=!1,this.tuiCheckedChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["input","tuiChecked",""],["input","tuiCheckedChange",""]],hostVars:2,hostBindings:function(e,i){e&1&&v("change",function(r){return i.onChange(r.target)}),e&2&&dt("checked",i.isChecked)("indeterminate",i.isIndeterminate)},inputs:{tuiChecked:"tuiChecked"},outputs:{tuiCheckedChange:"tuiCheckedChange"}}),t})(),Tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();var Mn=(()=>{class t{constructor(e){this.tuiFocusVisibleChange=e}}return t.\u0275fac=function(e){return new(e||t)(l(oo))},t.\u0275dir=y({type:t,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[O([U,oo])]}),t})(),bn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();var rt=(()=>{class t{constructor(){this.focusable=!0}get tabIndex(){return this.focusable?0:-1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiFocusable",""]],hostVars:1,hostBindings:function(e,i){e&2&&dt("tabIndex",i.tabIndex)},inputs:{focusable:[E.None,"tuiFocusable","focusable"]}}),t})(),at=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();var yn=(()=>{class t{constructor({nativeElement:e},i){this.tuiFocusedChange=De(ke(e,"focusin"),ke(e,"focusout")).pipe(V(()=>Be(e)),Ei(!1),Ge(),Wt(1),Zt(i))}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(Ze))},t.\u0275dir=y({type:t,selectors:[["","tuiFocusedChange",""]],outputs:{tuiFocusedChange:"tuiFocusedChange"}}),t})(),Dn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();function Js({currentTarget:t,relatedTarget:n}){return!Mt(n)||!Mt(t)||!t.contains(n)}var st=(()=>{class t extends Ro{constructor(e,i){super(o=>this.stream$.subscribe(o)),this.el=e,this.zone=i,this.stream$=De(ke(this.el.nativeElement,"mouseenter").pipe(V(Kt)),ke(this.el.nativeElement,"mouseleave").pipe(V(ge)),ke(this.el.nativeElement,"mouseout").pipe(lt(Js),V(ge))).pipe(Ge(),Zt(this.zone))}}return t.\u0275fac=function(e){return new(e||t)(qn(F),qn(Ze))},t.\u0275prov=$o({token:t,factory:t.\u0275fac}),t})(),si=(()=>{class t{constructor(e){this.tuiHoveredChange=e}}return t.\u0275fac=function(e){return new(e||t)(l(st))},t.\u0275dir=y({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[O([st])]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();var aa=(()=>{class t{constructor(e,i){this.enabled$=new Ft;let o=i.pipe(V(r=>!!r&&(!e||!r.length||r.every(a=>!e.contains(a)))));this.tuiObscured=this.enabled$.pipe(Wi(()=>o))}set tuiObscuredEnabled(e){this.enabled$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(l(ze,8),l(ro,2))},t.\u0275dir=y({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[O([ro,wr,U])]}),t})(),sa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();var On=(()=>{class t{constructor(e,i){this.el=e,this.takeOnlyTrustedEvents=i,this.tuiPressedChange=fr(this.el.nativeElement,{onlyTrusted:this.takeOnlyTrustedEvents})}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(Or))},t.\u0275dir=y({type:t,selectors:[["","tuiPressedChange",""]],outputs:{tuiPressedChange:"tuiPressedChange"}}),t})(),li=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();var la=(()=>{class t{constructor(e,i,o){this.el=e,this.zone=i,this.destroy$=o,this.eventName=""}ngOnInit(){Ii(this.el.nativeElement,this.eventName,{passive:!1}).pipe(vr(this.zone),_r(),ee(this.destroy$)).subscribe()}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(Ze),l(U,2))},t.\u0275dir=y({type:t,selectors:[["","tuiPreventDefault",""]],inputs:{eventName:[E.None,"tuiPreventDefault","eventName"]},features:[O([U])]}),t})(),ua=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();var el=65536,po=class{constructor(n){this.$implicit=n}},Pn=(()=>{class t{constructor(e,i){this.viewContainer=e,this.templateRef=i}set tuiRepeatTimesOf(e){let i=Math.floor(Tt(e,0,el)),{length:o}=this.viewContainer;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();function ca(t,n,e){return e&&et?n:t}var kn=7;var ui=12,xn=1,mo=0,ho=11,go=0,fo=9999,In=`${zi}${nr}${zi}`,tl=1e3,il=60,nl=60,da=24,ol=tl*il,rl=ol*nl,cm=rl*da,ci=10,al=2*ci+In.length,_o=Z("DMY"),pa=Z("."),ma=(t,n)=>t.replace(/[^0-9A-Za-zА-Яа-я]/gi,n),Me=class t{constructor(n){this.year=n}static isValidYear(n){return Number.isInteger(n)&&Nt(n,go,fo+1)}static isLeapYear(n){return n%400===0||n%4===0&&n%100!==0}static getAbsoluteLeapYears(n){return Math.ceil(n/400)+(Math.ceil(n/4)-Math.ceil(n/100))}static lengthBetween(n,e){return e.year-n.year}static normalizeYearPart(n){return Vi(n,go,fo)}get formattedYear(){return String(this.year).padStart(4,"0")}get isLeapYear(){return t.isLeapYear(this.year)}get absoluteLeapYears(){return t.getAbsoluteLeapYears(this.year)}yearBefore({year:n}){return this.year=n}yearAfter({year:n}){return this.year>n}append({year:n=0}){let e=this.year+n;return new t(e)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](n){return Date.prototype[Symbol.toPrimitive].call(this,n)}toJSON(){return this.formattedYear}},q=class t extends Me{constructor(n,e){super(n),this.month=e}static isValidMonth(n,e){return Me.isValidYear(n)&&t.isValidMonthPart(e)}static getMonthDaysCount(n,e){switch(n){case it.February:return e?29:28;case it.April:case it.June:case it.September:case it.November:return 30;default:return 31}}static currentLocal(){let n=new Date;return new t(n.getFullYear(),n.getMonth())}static currentUtc(){let n=new Date;return new t(n.getUTCFullYear(),n.getUTCMonth())}static lengthBetween(n,e){let i=n.month+n.year*12;return e.month+e.year*12-i}static normalizeMonthPart(n){return Vi(n,mo,ho)}static isValidMonthPart(n){return Number.isInteger(n)&&Nt(n,mo,ho+1)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return t.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:e=0}){let i=(this.year+n)*ui+this.month+e;return new t(Math.floor(i/ui),i%ui)}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))}},de=class t extends q{constructor(n,e,i){super(n,e),this.day=i}static fromLocalNativeDate(n){return new t(n.getFullYear(),n.getMonth(),n.getDate())}static fromUtcNativeDate(n){return new t(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())}static isValidDay(n,e,i){return q.isValidMonth(n,e)&&Number.isInteger(i)&&Nt(i,xn,q.getMonthDaysCount(e,Me.isLeapYear(n))+1)}static currentLocal(){let n=new Date,e=n.getFullYear(),i=n.getMonth(),o=n.getDate();return new t(e,i,o)}static currentUtc(){let n=new Date,e=n.getUTCFullYear(),i=n.getUTCMonth(),o=n.getUTCDate();return new t(e,i,o)}static normalizeOf(n,e,i){let o=Me.normalizeYearPart(n),r=q.normalizeMonthPart(e),a=t.normalizeDayPart(i,r,o);return new t(o,r,a)}static lengthBetween(n,e){return Math.round((e.toLocalNativeDate().getTime()-n.toLocalNativeDate().getTime())/(1e3*60*60*24))}static parseRawDateString(n,e="DMY"){switch(e){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)};case"DMY":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,e="DMY"){let{day:i,month:o,year:r}=this.parseRawDateString(n,e);return t.normalizeOf(r,o,i)}static jsonParse(n){let{day:e,month:i,year:o}=this.parseRawDateString(n,"YMD");if(!Me.isValidYear(o))throw new hr(o);if(!q.isValidMonth(o,i))throw new mr(i);if(!Number.isInteger(e)||!Nt(e,xn,q.getMonthDaysCount(i,Me.isLeapYear(o))+1))throw new pr(e);return new t(o,i,e)}static normalizeDayPart(n,e,i){let o=q.getMonthDaysCount(e,Me.isLeapYear(i));return Vi(n,1,o)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){let n=this.dayOfWeek(!1);return n===ao.Saturday||n===ao.Sunday}dayOfWeek(n=!0){let e=n?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return e<0?6:e}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,e){return n!==null&&this.dayBefore(n)?n:e!==null&&this.dayAfter(e)?e:this}append({year:n=0,month:e=0,day:i=0}){let o=(this.year+n)*ui+this.month+e,r=Math.floor(o/ui),a=o%ui,c=Math.min(this.day,q.getMonthDaysCount(a,Me.isLeapYear(r)))+i;for(;c>q.getMonthDaysCount(a,Me.isLeapYear(r));)c-=q.getMonthDaysCount(a,Me.isLeapYear(r)),a===it.December?(r++,a=it.January):a++;for(;c{class t{constructor(e,i,o,r){this.cssRef=e,this.el=i,this.userAgent=o,this.isIos=r,this.isLegacy=!this.cssRef.supports("position","sticky")||rr(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new F(this.el.nativeElement)}get delegated(){return this.browserScrollRef.nativeElement!==this.el.nativeElement}get showScrollbars(){return!this.hidden&&!this.isIos&&(!this.isLegacy||this.delegated)}get showNative(){return this.isLegacy&&!this.hidden&&!this.delegated}onScrollable(e){this.browserScrollRef.nativeElement=e}scrollIntoView(e){var i;if(this.delegated)return;let{nativeElement:o}=this.browserScrollRef,{offsetTop:r,offsetLeft:a}=cr(o,e),{clientHeight:c,clientWidth:d}=o,{offsetHeight:C,offsetWidth:D}=e,P=r+C/2-c/2,k=a+D/2-d/2;(i=o.scrollTo)===null||i===void 0||i.call(o,k,P)}}return t.\u0275fac=function(e){return new(e||t)(l(Mr),l(F),l(Ki),l(no))},t.\u0275cmp=S({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(e,i){e&1&&v("tui-scrollable.stop",function(r){return i.onScrollable(r.detail)})("tui-scroll-into-view.stop",function(r){return i.scrollIntoView(r.detail)}),e&2&&A("_legacy",i.showNative)},inputs:{hidden:"hidden"},features:[O([{provide:Dr,deps:[t],useFactory:({browserScrollRef:n})=>n}])],ngContentSelectors:sl,decls:3,vars:3,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(e,i){e&1&&(re(),T(0,ll,1,0,"tui-scroll-controls",0),m(1,"div",1),X(2),g()),e&2&&(u("ngIf",i.showScrollbars),p(),A("t-content_delegated",i.delegated))},dependencies:[kr,ae],styles:["[_nghost-%COMP%]{position:relative;display:flex;isolation:isolate;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:.375rem 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%]{isolation:isolate;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:max-content}.t-content_delegated[_ngcontent-%COMP%]{height:100%}.t-bars[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),t})(),pi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[z,Er]]}),t})();var ul=t=>({$implicit:t});function cl(t,n){if(t&1&&(m(0,"div",4),W(1),g()),t&2){let e=n.polymorpheusOutlet;p(),me(" ",e," ")}}var dl=L(()=>gl),Mi=(()=>{class t{constructor(){this.tuiDropdownOpen=!1,this.tuiDropdownOpenChange=new $}update(e){this.tuiDropdownOpen=e,this.tuiDropdownOpenChange.emit(e)}ngOnChanges(){var e;(e=this.dropdown)===null||e===void 0||e.toggle(this.tuiDropdownOpen)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownOpen",""],["","tuiDropdownOpenChange",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"},features:[ct]}),t})(),gt=(()=>{class t{constructor(e,i,o,r,a,c){this.el=i,this.dropdown=o,this.injector=r,this.dropdownService=a,this.open=c,this.refresh$=new Ft,this.dropdownBoxRef=null,this.type="dropdown",this.component=new bt(this.dropdown,this.injector),this.open&&!this.open.dropdown?this.open.dropdown=this:this.open=null,this.refresh$.pipe(Uo(0),ee(e)).subscribe(()=>{var d,C;(d=this.dropdownBoxRef)===null||d===void 0||d.changeDetectorRef.detectChanges(),(C=this.dropdownBoxRef)===null||C===void 0||C.changeDetectorRef.markForCheck()})}get position(){return Nr(this.el.nativeElement)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngAfterViewInit(){this.open&&this.toggle(this.open.tuiDropdownOpen)}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1),this.open&&(this.open.dropdown=void 0)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(e){var i,o;e&&this.content&&!this.dropdownBoxRef?(this.dropdownBoxRef=this.dropdownService.add(this.component),(i=this.open)===null||i===void 0||i.update(!0)):!e&&this.dropdownBoxRef&&(this.dropdownService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null,(o=this.open)===null||o===void 0||o.update(!1))}}return t.\u0275fac=function(e){return new(e||t)(l(U,2),l(F),l(dl),l(Fi),l(Ar),l(Mi,8))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:[E.None,"tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[O([U,Ci(t),tn(t)]),ct]}),ye([Ne],t.prototype,"position",null),t})(),pl={showDelay:200,hideDelay:500},ml=Z(pl);var vo=(()=>{class t extends Ot{constructor(e,i,o){super(r=>this.stream$.subscribe(r)),this.hovered$=e,this.options=i,this.parentHover=o,this.toggle$=new Ft,this.stream$=De(this.toggle$,this.hovered$).pipe(vt(r=>je(r).pipe(ut(r?this.showDelay:this.hideDelay))),gi(r=>{this.hovered=r}),ki()),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.hovered=!1,this.type="dropdown"}toggle(e){var i;(i=this.parentHover)===null||i===void 0||i.toggle(e),this.toggle$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(l(st),l(ml),l(t,12))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:[E.None,"tuiDropdownShowDelay","showDelay"],hideDelay:[E.None,"tuiDropdownHideDelay","hideDelay"]},features:[O([zt(t),st]),x]}),t})(),ga={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},Vt=Z(ga),fa=t=>({provide:Vt,deps:[[new xe,hl],[new xe,new fi,Vt]],useFactory:uo(t,ga)}),hl=(()=>{class t{constructor(e){this.options=e,this.align=this.options.align,this.appearance=this.options.appearance,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 t.\u0275fac=function(e){return new(e||t)(l(Vt,4))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:[E.None,"tuiDropdownAlign","align"],appearance:[E.None,"tuiDropdownAppearance","appearance"],direction:[E.None,"tuiDropdownDirection","direction"],limitWidth:[E.None,"tuiDropdownLimitWidth","limitWidth"],minHeight:[E.None,"tuiDropdownMinHeight","minHeight"],maxHeight:[E.None,"tuiDropdownMaxHeight","maxHeight"],offset:[E.None,"tuiDropdownOffset","offset"]},features:[O([{provide:Vt,useExisting:pe(()=>t)}])]}),t})(),Ti=(()=>{class t extends mt{constructor(e,i,o,r){super(),this.options=e,this.viewport=i,this.accessors=o,this.directive=r,this.type="dropdown"}getPosition({width:e,height:i}){var o,r;!e&&!i&&(this.previous=void 0);let a=(r=(o=this.accessor)===null||o===void 0?void 0:o.getClientRect())!==null&&r!==void 0?r:Lt,c=this.viewport.getClientRect(),{minHeight:d,align:C,direction:D,offset:P,limitWidth:k}=this.options,w={top:c.top-P,bottom:c.bottom+P,right:c.right-P,left:c.left+P},G=this.previous||D||"bottom",Q={top:a.top-2*P-w.top,bottom:w.bottom-a.bottom-2*P},fe=k==="fixed"?a.width:e,be=Math.max(a.right-fe,P),St=a.left+eQ.bottom?"top":"bottom";return Q[G]>d&&D||Q[G]>i?[Ut[G],Ut[C]]:(this.previous=Ao,[Ut[Ao],Ut[C]])}get accessor(){return sn("dropdown")(this.accessors,this.directive)}}return t.\u0275fac=function(e){return new(e||t)(l(Vt),l(ii),l(ei),l(gt))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdown",""]],features:[x]}),ye([Ne],t.prototype,"accessor",null),t})(),gl=(()=>{class t{constructor(e,i,o,r,a,c,d,C,D,P,k){this.directive=r,this.animation=a,this.el=c,this.accessor=d,this.win=C,this.mode$=D,this.options=P,this.hoverDirective=k,i.pipe(V(w=>this.directive.position==="fixed"?e.correct(w):w),ee(o)).subscribe(([w,G])=>{this.update(w,G)}),this.updateWidth(this.accessor.getClientRect().width)}onHoveredChange(e){var i;(i=this.hoverDirective)===null||i===void 0||i.toggle(e)}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}update(e,i){var o;let{style:r}=this.el.nativeElement,{right:a}=this.el.nativeElement.getBoundingClientRect(),{maxHeight:c,minHeight:d,offset:C}=this.options,{innerHeight:D}=this.win,P=(o=this.el.nativeElement.offsetParent)===null||o===void 0?void 0:o.getBoundingClientRect(),{position:k}=this.directive,w=this.accessor.getClientRect(),G=k==="fixed"?0:-((P==null?void 0:P.left)||0),Q=k==="fixed"?0:-((P==null?void 0:P.top)||0);e+=Q,i+=G;let be=iw.left&&e=w.right;r.position=k,r.top=Qe(Math.max(e,Q+C)),r.left=Qe(i),r.maxHeight=St?`${c}px`:Qe(Math.min(c,Math.max(be,d))),r.width="",r.minWidth="",this.updateWidth(w.width)}updateWidth(e){let{style:i}=this.el.nativeElement;switch(this.options.limitWidth){case"min":i.minWidth=Qe(e);break;case"fixed":i.width=Qe(e);break;case"auto":break}}moveFocusOutside(e){let{nativeElement:i}=this.directive.el,{ownerDocument:o}=i,r=o?o.body:i,a=Xt({initial:i,root:r,previous:e});for(;a!==null&&i.contains(a);)a=Xt({initial:a,root:r,previous:e});a==null||a.focus()}}return t.\u0275fac=function(e){return new(e||t)(l(mn),l(ni),l(U,2),l(gt),l(ln),l(F),l(ei),l(Tr),l(nt),l(Vt),l(vo,8))},t.\u0275cmp=S({type:t,selectors:[["tui-dropdown"]],hostVars:2,hostBindings:function(e,i){e&1&&v("$.data-mode.attr",function(){return i.mode$}),e&2&&(Ri("@tuiDropdownAnimation",i.animation),N("data-appearance",i.options.appearance))},features:[O([U,ni,rn("dropdown",Ti),an("dropdown",gt),ot])],decls:5,vars:4,consts:[["activeZone","tuiActiveZone"],["tuiActiveZone","","tuiOverscroll","all",1,"t-scroll",3,"tuiHoveredChange"],["tabindex","0",3,"focus"],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"]],template:function(e,i){if(e&1){let o=H();m(0,"tui-scrollbar",1,0),v("tuiHoveredChange",function(a){return f(o),_(i.onHoveredChange(a))}),m(2,"div",2),v("focus",function(){return f(o),_(i.onTopFocus())}),g(),T(3,cl,2,1,"div",3),m(4,"div",2),v("focus",function(){return f(o),_(i.onBottomFocus())}),g()()}if(e&2){let o=te(1);p(3),u("polymorpheusOutlet",i.directive.content)("polymorpheusOutletContext",ce(2,ul,o))}},dependencies:[It,ze,Sr,si,ie],styles:['[_nghost-%COMP%]{position:absolute;display:flex;box-shadow:var(--tui-shadow-dropdown);background:var(--tui-elevation-02);border-radius:var(--tui-radius-m);overflow:hidden;border:1px solid var(--tui-base-04);box-sizing:border-box;max-width:calc(100% - 8px);isolation:isolate;pointer-events:auto}.ng-animating[_nghost-%COMP%]{pointer-events:none}[_nghost-%COMP%]:not([style*="top"]){visibility:hidden}[data-mode=onDark][_nghost-%COMP%]{--tui-text-01: var(--tui-text-01-night);--tui-clear: var(--tui-clear-inverse);background:#222;border:1px solid #808080}.t-scroll[_ngcontent-%COMP%]{flex-grow:1;max-width:100%}.t-primitive[_ngcontent-%COMP%]{padding:1rem}'],data:{animation:[Lr]}}),t})();var _a=(()=>{class t extends nn{constructor(e,i,o){super(e,i,o),this.type="dropdown"}}return t.\u0275fac=function(e){return new(e||t)(l(U,2),l(Ot),l(en))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdown",""]],features:[O([U]),x]}),t})();var va=(()=>{class t extends Ot{constructor(){super(e=>this.stream$.subscribe(e)),this.stream$=new At(!1),this.tuiDropdownManual=!1,this.type="dropdown"}ngOnChanges(){this.stream$.next(this.tuiDropdownManual)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[O([zt(t)]),x,ct]}),t})(),Ca=(()=>{class t extends mt{constructor(e,i,o){super(),this.options=e,this.viewport=i,this.vertical=o,this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(e){var i,o;if(this.tuiDropdownSided===!1)return this.vertical.getPosition(e);let{height:r,width:a}=e,c=(o=(i=this.vertical.accessor)===null||i===void 0?void 0:i.getClientRect())!==null&&o!==void 0?o:Lt,d=this.viewport.getClientRect(),{direction:C,minHeight:D,offset:P}=this.options,k=this.options.align==="center"?"left":this.options.align,w={top:c.bottom-d.top,left:c.left-P-d.left,right:d.right-c.right-P,bottom:d.bottom-c.top},G={top:c.bottom-r+this.tuiDropdownSidedOffset+1,left:c.left-a-P,right:c.right+P,bottom:c.top-this.tuiDropdownSidedOffset-1},Q=w.top>w.bottom?"top":"bottom",fe=w.left>w.right?G.left:G.right,be=w[k]>a?G[k]:fe;return w[this.previous]>D&&C||this.previous===Q?[G[this.previous],be]:(this.previous=Q,[G[Q],be])}}return t.\u0275fac=function(e){return new(e||t)(l(Vt),l(ii),l(Ti))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[O([Ti,Hr(t)]),x]}),t})();var En=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[se,Jt,Fr,pi,wt]]}),t})();var _l=["*"];function vl(t,n){if(t&1&&I(0,"span",1),t&2){let e=n.polymorpheusOutlet;u("innerHTML",e,Hi)}}var Cl=L(()=>bl),Tl={direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconHelpCircle"},Bt=Z(Tl);var Et=(()=>{class t extends Le{constructor(e){super(),this.options=e,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 t.\u0275fac=function(e){return new(e||t)(l(Bt,4))},t.\u0275dir=y({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:[E.None,"tuiHintContent","content"],direction:[E.None,"tuiHintDirection","direction"],appearance:[E.None,"tuiHintAppearance","appearance"],showDelay:[E.None,"tuiHintShowDelay","showDelay"],hideDelay:[E.None,"tuiHintHideDelay","hideDelay"]},features:[O([{provide:Bt,useExisting:pe(()=>t)}]),x]}),t})(),Fn=(()=>{class t{constructor(e,i,o,r,a){this.el=e,this.component=i,this.hintService=o,this.options=r,this.activeZone=a,this.tuiHintAppearance=null,this.type="hint"}get appearance(){var e;return(e=this.tuiHintAppearance)!==null&&e!==void 0?e:this.options.appearance}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(e){e&&this.content?this.hintService.add(this):this.hintService.remove(this)}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(bt),l(Xr),l(Bt),l(ze,8))},t.\u0275dir=y({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{content:[E.None,"tuiHint","content"],context:[E.None,"tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[O([Ci(t),tn(t),{provide:bt,deps:[Cl,Fi],useClass:bt}]),ct]}),t})(),mi=(()=>{class t extends Ot{constructor(e,i,o){super(r=>this.stream$.subscribe(r)),this.hovered$=e,this.options=i,this.el=o,this.visible=!1,this.toggle$=new Ft,this.stream$=De(this.toggle$.pipe(vt(r=>je(r).pipe(ut(r?0:this.hideDelay))),ee(this.hovered$),Zn()),this.hovered$.pipe(vt(r=>je(r).pipe(ut(r?this.showDelay:this.hideDelay))),ee(this.toggle$),Zn())).pipe(lt(()=>this.enabled),V(r=>r&&(this.el.nativeElement.hasAttribute("tuiHintPointer")||!lo(this.el.nativeElement))),gi(r=>{this.visible=r})),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.type="hint",this.enabled=!0}toggle(e=!this.visible){this.toggle$.next(e)}}return t.\u0275fac=function(e){return new(e||t)(l(st),l(Bt),l(F))},t.\u0275dir=y({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],inputs:{showDelay:[E.None,"tuiHintShowDelay","showDelay"],hideDelay:[E.None,"tuiHintHideDelay","hideDelay"]},exportAs:["tuiHintHover"],features:[O([zt(t),st]),x]}),t})(),Ml=(()=>{class t extends mi{constructor(){super(...arguments),this.currentRect=Lt}onMove({clientX:e,clientY:i}){this.currentRect=io(e,i)}getClientRect(){return this.currentRect}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(e,i){e&1&&v("mousemove.silent",function(r){return i.onMove(r)})},features:[O([Ci(t),zt(t)]),x]}),t})(),kt=8,Sn=22,oe=0,le=1,Co=(()=>{class t extends mt{constructor(e,i,o,r){super(),this.options=e,this.viewport=i,this.directive=o,this.accessors=r,this.points=so.reduce((a,c)=>Object.assign(Object.assign({},a),{[c]:[0,0]}),{}),this.direction=this.options.direction,this.type="hint"}getPosition({width:e,height:i}){var o,r;let a=(r=(o=this.accessor)===null||o===void 0?void 0:o.getClientRect())!==null&&r!==void 0?r:Lt,c=a.left+a.width/2,d=a.top+a.height/2;if(this.points["top-left"][oe]=a.top-i-kt,this.points["top-left"][le]=c-e+Sn,this.points.top[oe]=this.points["top-left"][oe],this.points.top[le]=c-e/2,this.points["top-right"][oe]=this.points["top-left"][oe],this.points["top-right"][le]=c-Sn,this.points["bottom-left"][oe]=a.bottom+kt,this.points["bottom-left"][le]=this.points["top-left"][le],this.points.bottom[oe]=this.points["bottom-left"][oe],this.points.bottom[le]=this.points.top[le],this.points["bottom-right"][oe]=this.points["bottom-left"][oe],this.points["bottom-right"][le]=this.points["top-right"][le],this.points["left-top"][oe]=d-i+Sn,this.points["left-top"][le]=a.left-e-kt,this.points.left[oe]=d-i/2,this.points.left[le]=this.points["left-top"][le],this.points["left-bottom"][oe]=d-Sn,this.points["left-bottom"][le]=this.points["left-top"][le],this.points["right-top"][oe]=this.points["left-top"][oe],this.points["right-top"][le]=a.right+kt,this.points.right[oe]=this.points.left[oe],this.points.right[le]=this.points["right-top"][le],this.points["right-bottom"][oe]=this.points["left-bottom"][oe],this.points["right-bottom"][le]=this.points["right-top"][le],this.checkPosition(this.points[this.direction],e,i))return this.points[this.direction];let C=so.find(D=>this.checkPosition(this.points[D],e,i));return this.points[C||this.fallback]}get accessor(){return sn("hint")(this.accessors,this.directive)}get fallback(){return this.points.top[oe]>this.viewport.getClientRect().bottom-this.points.bottom[oe]?"top":"bottom"}checkPosition([e,i],o,r){let a=this.viewport.getClientRect();return e>kt&&i>kt&&e+r{class t{constructor(e,i,o,r,a,c,d,C,D,P,k,w){var G;this.animation=r,this.pointer=a,this.accessor=c,this.el=d,this.polymorpheus=C,this.hover=D,this.mode=P,this.visualViewportService=k,this.viewport=w,this.appearance=this.polymorpheus.$implicit.appearance||((G=this.mode)===null||G===void 0?void 0:G.mode),i.pipe(V(Q=>this.visualViewportService.correct(Q)),ee(o)).subscribe(([Q,fe])=>{this.update(Q,fe)}),e.pipe(ee(o)).subscribe(Q=>this.hover.toggle(Q))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(e){(!this.el.nativeElement.contains(e)&&!this.hover.el.nativeElement.contains(e)||lo(this.hover.el.nativeElement))&&this.hover.toggle(!1)}update(e,i){let{height:o,width:r}=this.el.nativeElement.getBoundingClientRect(),{style:a}=this.el.nativeElement,c=this.accessor.getClientRect(),d=this.viewport.getClientRect();if(c===Lt)return;let C=Tt(i,Ta,d.width-r-Ta),[D,P]=this.visualViewportService.correct([c.top+c.height/2-e,c.left+c.width/2-C]);a.top=Qe(e),a.left=Qe(C),a.setProperty("--top",Qe(Tt(D,.5,o-1))),a.setProperty("--left",Qe(Tt(P,.5,r-1)))}}return t.\u0275fac=function(e){return new(e||t)(l(st),l(ni),l(U,2),l(ln),l(Ml,8),l(ei),l(F),l(Cr),l(mi),l(oi,8),l(mn),l(ii))},t.\u0275cmp=S({type:t,selectors:[["tui-hint"]],hostVars:4,hostBindings:function(e,i){e&1&&v("click",function(r){return i.onClick(r.target)},!1,_i),e&2&&(Ri("@tuiFadeIn",i.animation),N("data-appearance",i.appearance),A("_untouchable",i.pointer))},features:[O([U,ni,st,rn("hint",Co),an("hint",Fn)])],ngContentSelectors:_l,decls:2,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(e,i){e&1&&(re(),X(0),T(1,vl,1,1,"span",0)),e&2&&(p(),u("polymorpheusOutlet",i.content)("polymorpheusOutletContext",i.context))},dependencies:[ie],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-02);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))}[_nghost-%COMP%]:not([style*="top"]){visibility:hidden}._untouchable[_nghost-%COMP%]{pointer-events:none}'],data:{animation:[Rr]},changeDetection:0}),ye([Ne],t.prototype,"update",null),t})(),Ma=(()=>{class t extends Ot{constructor(e,i,o){super(r=>this.stream$.subscribe(r)),this.zone=e,this.doc=i,this.el=o,this.id$=new Lo(1),this.stream$=this.id$.pipe(Wi(()=>ke(this.doc,"keydown",{capture:!0}),lr),vt(()=>this.focused?je(!1):De(ke(this.doc,"keyup"),ke(this.element,"blur")).pipe(V(()=>this.focused))),jo(r=>r?$t(1e3):je(null)),Ei(!1),Ge(),Wt(1),Zt(this.zone)),this.tuiHintDescribe="",this.type="hint"}ngOnChanges(){this.id$.next(this.tuiHintDescribe)}get focused(){return Be(this.element)}get element(){return this.doc.getElementById(this.tuiHintDescribe||"")||this.el.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(l(Ze),l(to),l(F))},t.\u0275dir=y({type:t,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[O([zt(t)]),x,ct]}),ye([Ne],t.prototype,"element",null),t})(),ba=(()=>{class t extends nn{constructor(e,i,o){super(e,i,o),this.type="hint"}}return t.\u0275fac=function(e){return new(e||t)(l(U,2),l(Ot),l(en))},t.\u0275dir=y({type:t,selectors:[["","tuiHint","",5,"ng-container",5,"ng-template"]],features:[O([U]),x]}),t})();var An=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[z,se]]}),t})();var ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["input","tuiMaskAccessor",""]],features:[O([{provide:Ni,deps:[[new xe,pn],qe],multi:!0,useFactory:(n,e)=>n?n[0]:e}])]}),t})(),Da=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();var Oa=(()=>{class t{constructor(e,i){this.el=e,this.destroy$=i}set tuiScrollIntoView(e){e&&$t(0).pipe(ee(this.destroy$)).subscribe(()=>{this.el.nativeElement.dispatchEvent(new CustomEvent(zr,{bubbles:!0,detail:this.el.nativeElement}))})}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(U,2))},t.\u0275dir=y({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[O([U])]}),t})(),Pa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();var To=class{constructor(n,e,i,o,r,a,c,d,C,D,P,k,w){this.change$=n,this.options=e,this.legacyAppearance=i,this.appearanceDirective=o,this.cleanerDirective=r,this.customContentDirective=a,this.iconDirective=c,this.iconLeftDirective=d,this.labelOutsideDirective=C,this.sizeDirective=D,this.prefixDirective=P,this.postfixDirective=k,this.fillerDirective=w}get appearance(){return this.appearanceDirective.appearance||this.legacyAppearance}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}},Pl={iconCleaner:"tuiIconClose",hintOnDisabled:!1},Mo=Z(Pl);var wa=L(()=>new wl),wl=(()=>{class t extends Le{constructor(){super(...arguments),this.appearance=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:[E.None,"tuiTextfieldAppearance","appearance"]},features:[O([{provide:wa,useExisting:pe(()=>t)}]),x]}),t})(),xa=L(()=>new xl),xl=(()=>{class t extends Le{constructor(){super(...arguments),this.cleaner=!1}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:[E.None,"tuiTextfieldCleaner","cleaner"]},features:[O([{provide:xa,useExisting:pe(()=>t)}]),x]}),t})(),Ia=L(()=>new Il),Il=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:[E.None,"tuiTextfieldCustomContent","customContent"]},features:[O([{provide:Ia,useExisting:pe(()=>t)}]),x]}),t})(),ka=L(()=>new bo),bo=(()=>{class t extends Le{constructor(){super(...arguments),this.filler=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:[E.None,"tuiTextfieldFiller","filler"]},features:[O([{provide:ka,useExisting:pe(()=>t)}]),x]}),t})(),Ea=L(()=>new yo),yo=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:[E.None,"tuiTextfieldIcon","icon"]},features:[O([{provide:Ea,useExisting:pe(()=>t)}]),x]}),t})(),Sa=L(()=>new kl),kl=(()=>{class t extends Le{}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:[E.None,"tuiTextfieldIconLeft","iconLeft"]},features:[O([{provide:Sa,useExisting:pe(()=>t)}]),x]}),t})(),Fa=L(()=>new Do),Do=(()=>{class t extends Le{constructor(){super(...arguments),this.labelOutside=!1}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:[E.None,"tuiTextfieldLabelOutside","labelOutside"]},features:[O([{provide:Fa,useExisting:pe(()=>t)}]),x]}),t})(),Aa=L(()=>new El),El=(()=>{class t extends Le{constructor(){super(...arguments),this.postfix=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:[E.None,"tuiTextfieldPostfix","postfix"]},features:[O([{provide:Aa,useExisting:pe(()=>t)}]),x]}),t})(),Ha=L(()=>new Sl),Sl=(()=>{class t extends Le{constructor(){super(...arguments),this.prefix=""}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:[E.None,"tuiTextfieldPrefix","prefix"]},features:[O([{provide:Ha,useExisting:pe(()=>t)}]),x]}),t})(),Hn=L(()=>new Fl),Fl=(()=>{class t extends Le{constructor(){super(...arguments),this.size="l"}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:[E.None,"tuiTextfieldSize","size"]},features:[O([{provide:Hn,useExisting:pe(()=>t)}]),x]}),t})(),Rn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})(),bi=new Ke("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),Ln=[U,{provide:bi,deps:[he,U,Mo,Qr,wa,xa,Ia,Ea,Sa,Fa,Hn,Ha,Aa,ka],useFactory:(t,n,e,i,...o)=>{let r=De(...o.map(({change$:a})=>a||Vo)).pipe(Yi(t),ee(n));return r.subscribe(),new To(r,e,i,...o)}}];function Al(t,n){if(t&1){let e=H();m(0,"div",4),v("click",function(){let o=f(e).tuiLet,r=h(3);return _(r.onItemClick(o))})("tuiHoveredChange",function(o){let r=f(e).tuiLet,a=h(3);return _(a.onItemHovered(o,r))})("tuiPressedChange",function(o){let r=f(e).tuiLet,a=h(3);return _(a.onItemPressed(o,r))}),m(1,"div",5),W(2),g()()}if(t&2){let e=n.tuiLet,i=h(3);A("t-cell_interval",i.itemIsInterval(e))("t-cell_today",i.itemIsToday(e)),u("tuiScrollIntoView",i.scrollItemIntoView(e)),N("data-range",i.getItemRange(e))("data-state",i.getItemState(e)),p(2),Li(e)}}function Hl(t,n){if(t&1&&(Oe(0),T(1,Al,3,8,"div",3),Pe()),t&2){let e=n.$implicit,i=h().$implicit,o=h();p(),u("tuiLet",o.getItem(i,e))}}function Rl(t,n){t&1&&(m(0,"div",1),T(1,Hl,2,1,"ng-container",2),g()),t&2&&(p(),u("tuiRepeatTimesOf",4))}var Ra=100,La=4,Na=(()=>{class t{constructor(){this.hoveredItem=null,this.pressedItem=null,this.currentYear=q.currentLocal().year,this.value=null,this.initialItem=q.currentLocal(),this.min=Se,this.max=Ve,this.disabledItemHandler=ge,this.yearClick=new $}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Se}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ve}get isSingle(){return this.isRange(this.value)&&this.value.from.yearSame(this.value.to)}get rows(){return Math.ceil((this.calculatedMax-this.calculatedMin)/La)}get calculatedMin(){let e=this.initialItem.year-Ra,i=this.computedMin;return i.year>e?i.year:e}get calculatedMax(){let e=this.initialItem.year+Ra,i=this.computedMax;return i.yeari.from.year&&i.from.year===e&&i.from.yearSame(i.to)||o!==null&&o===e&&oi.from.year&&i.from.yearSame(i.to)?Ue.End:i.from.yearSame(i.to)&&i.from.year===e?Ue.Single:null:i.find(r=>r.year===e)?Ue.Single:null}itemIsToday(e){return this.currentYear===e}itemIsInterval(e){let{value:i,hoveredItem:o}=this;return i===null||!this.isRange(i)?!1:i.from.yearSame(i.to)?o===null||i.from.year===o?!1:Nt(e,Math.min(i.from.year,o),Math.max(i.from.year,o)):i.from.year<=e&&i.to.year>e}onItemHovered(e,i){this.updateHoveredItem(e,i)}onItemPressed(e,i){this.updatePressedItem(e,i)}onItemClick(e){this.yearClick.emit(new Me(e))}updateHoveredItem(e,i){this.hoveredItem=e?i:null}updatePressedItem(e,i){this.pressedItem=e?i:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-year-picker"]],hostVars:2,hostBindings:function(e,i){e&2&&A("_single",i.isSingle)},inputs:{value:"value",initialItem:"initialItem",min:"min",max:"max",disabledItemHandler:"disabledItemHandler"},outputs:{yearClick:"yearClick"},decls:1,vars:1,consts:[["automation-id","tui-primitive-year-picker__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-year-picker__cell","class","t-cell",3,"t-cell_interval","t-cell_today","tuiScrollIntoView","click","tuiHoveredChange","tuiPressedChange",4,"tuiLet"],["automation-id","tui-primitive-year-picker__cell",1,"t-cell",3,"click","tuiHoveredChange","tuiPressedChange","tuiScrollIntoView"],[1,"t-item"]],template:function(e,i){e&1&&T(0,Rl,2,1,"div",0),e&2&&u("tuiRepeatTimesOf",i.rows)},dependencies:[Pn,yt,Oa,si,On],styles:['[_nghost-%COMP%]{display:block;font:var(--tui-font-text-m)}.t-row[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;height:2.25rem;isolation:isolate}.t-item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:before, .t-item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:after{border-radius:.5rem}.t-cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:3.9375rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:.125rem solid transparent}.t-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%);content:"";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell_interval[_ngcontent-%COMP%]:not([data-range="start"]):not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.t-cell_interval[_ngcontent-%COMP%]:first-child > .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_nghost-%COMP%]{width:15.75rem}.t-row[_ngcontent-%COMP%]{margin:.875rem 0}.t-row[_ngcontent-%COMP%]:first-child{margin-top:0}.t-row[_ngcontent-%COMP%]:last-child{margin-bottom:0}'],changeDetection:0}),t})(),za=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[wt,li,wn,Dt,Pa]]}),t})();var Nl=["*"];function zl(t,n){if(t&1){let e=H();Oe(0),m(1,"button",1),v("click",function(){f(e);let o=h();return _(o.onLeftClick())}),g(),m(2,"span",2),X(3),g(),m(4,"button",3),v("click",function(){f(e);let o=h();return _(o.onRightClick())}),g(),Pe()}if(t&2){let e=n.ngIf,i=h();p(),A("t-hidden",i.leftComputedDisabled),u("focusable",i.computedFocusable)("icon",i.icons.decrement)("title",e[0]),p(3),A("t-hidden",i.rightComputedDisabled),u("focusable",i.computedFocusable)("icon",i.icons.increment)("title",e[1])}}var Va=(()=>{class t extends Xi{constructor(e,i,o){super(),this.el=e,this.icons=i,this.spinTexts$=o,this.disabled=!1,this.leftDisabled=!1,this.rightDisabled=!1,this.leftClick=new $,this.rightClick=new $}get focused(){return pt(this.el.nativeElement)}get leftComputedDisabled(){return this.computedDisabled||this.leftDisabled}get rightComputedDisabled(){return this.computedDisabled||this.rightDisabled}onLeftClick(){this.leftComputedDisabled||this.leftClick.emit()}onRightClick(){this.rightComputedDisabled||this.rightClick.emit()}onFocused(e){this.updateFocused(e)}onFocusVisible(e){this.updateFocusVisible(e)}}return t.\u0275fac=function(e){return new(e||t)(l(F),l(Kr),l(Yr))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-spin-button"]],hostBindings:function(e,i){e&1&&v("mousedown.silent.prevent",function(){return 0})("keydown.arrowLeft.prevent",function(){return i.onLeftClick()})("keydown.arrowRight.prevent",function(){return i.onRightClick()})("focusin",function(){return i.onFocused(!0)})("focusout",function(){return i.onFocused(!1)})},inputs:{disabled:"disabled",leftDisabled:"leftDisabled",rightDisabled:"rightDisabled"},outputs:{leftClick:"leftClick",rightClick:"rightClick"},features:[x],ngContentSelectors:Nl,decls:2,vars:3,consts:[[4,"ngIf"],["appearance","flat","automation-id","tui-primitive-spin-button__left","size","xs","tuiIconButton","","type","button",3,"click","focusable","icon","title"],[1,"t-content","t-calendar-title"],["appearance","flat","automation-id","tui-primitive-spin-button__right","size","xs","tuiIconButton","","type","button",3,"click","focusable","icon","title"]],template:function(e,i){e&1&&(re(),T(0,zl,5,10,"ng-container",0),Y(1,"async")),e&2&&u("ngIf",J(1,1,i.spinTexts$))},dependencies:[fn,ae,ve],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--tui-font-text-l);text-align:center;font-weight:bold}.t-hidden[_ngcontent-%COMP%]{visibility:hidden}.t-content[_ngcontent-%COMP%]{padding:0 .5rem}"],changeDetection:0}),t})(),ja=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[z,_n]]}),t})();var jl=(t,n)=>{let e=new Date(t.year,t.month,1).getDay();return e>=n?e-n:kn-(n-e)},Bl=({month:t,rowIndex:n,colIndex:e,firstDayOfWeek:i})=>{let o=n*kn+e-jl(t,i)+1;return o>t.daysCount&&(o-=t.daysCount,t=t.append({month:1})),o<=0&&(t=t.append({month:-1}),o=t.daysCount+o),new de(t.year,t.month,o)},Ul=6,Ba=(()=>{class t{constructor(e){this.firstDayOfWeek=e,this.currentMonth=null,this.currentSheet=[]}transform(e,i=!1){var o;if(!((o=this.currentMonth)===null||o===void 0)&&o.monthSame(e))return this.currentSheet;let r=[];for(let a=0;ak.yeark.year>w.year||k.month>w.month;if(!(D(C)&&!i)){if(P(C)&&!i)break;c.push(C)}}r.push(c)}return this.currentSheet=r.filter(a=>a.length),this.currentMonth=e,this.currentSheet}}return t.\u0275fac=function(e){return new(e||t)(l(cn,16))},t.\u0275pipe=Ht({name:"tuiCalendarSheet",type:t,pure:!0}),t})(),Ua=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();var Oo=(()=>{class t{constructor(e){this.months$=e}transform({month:e}){return this.months$.pipe(V(i=>i[e]))}}return t.\u0275fac=function(e){return new(e||t)(l(Wr,16))},t.\u0275pipe=Ht({name:"tuiMonth",type:t,pure:!0}),t})(),$a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();function $l(t){let n=t.length-1;return[t[n],...t.slice(0,n)]}var Wa=(()=>{class t{constructor(e){this.firstDayOfWeekIndex=e}transform(e){return e.pipe(V($l),V(i=>[...i.slice(this.firstDayOfWeekIndex),...i.slice(0,this.firstDayOfWeekIndex)]))}}return t.\u0275fac=function(e){return new(e||t)(l(cn,16))},t.\u0275pipe=Ht({name:"tuiOrderWeekDays",type:t,pure:!0}),t})(),Ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({}),t})();function Yl(t,n){if(t&1&&(Oe(0),W(1),Pe()),t&2){let e=h();p(),me(" ",e.value.formattedYear," ")}}function Gl(t,n){if(t&1){let e=H();m(0,"button",3),v("click",function(){f(e);let o=h();return _(o.onYearClick())}),W(1),g()}if(t&2){let e=h();u("tuiFocusable",!1),p(),me(" ",e.value.formattedYear," ")}}var Ga=(()=>{class t{constructor(){this.value=q.currentLocal(),this.min=Se,this.max=Ve,this.valueChange=new $,this.yearClick=new $}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Se}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ve}get prevMonthDisabled(){return this.value.monthSameOrBefore(this.computedMin)}get nextMonthDisabled(){return this.value.monthSameOrAfter(this.computedMax)}get oneYear(){let{computedMin:e,computedMax:i}=this;return e.year===i.year}onYearClick(){this.yearClick.next(this.value)}onPrevMonthClick(){this.appendValueWithLimit({month:-1})}onNextMonthClick(){this.appendValueWithLimit({month:1})}appendValueWithLimit(e){let i=this.value.append(e),{computedMin:o,computedMax:r}=this;if(o.monthSameOrAfter(i)){this.updateValue(o);return}this.updateValue(r.monthSameOrBefore(i)?r:i)}updateValue(e){this.value.monthSame(e)||(this.value=e,this.valueChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-year-month-pagination"]],inputs:{value:"value",min:"min",max:"max"},outputs:{valueChange:"valueChange",yearClick:"yearClick"},decls:7,vars:10,consts:[["button",""],[3,"leftClick","rightClick","focusable","leftDisabled","rightDisabled"],[4,"ngIf","ngIfElse"],["id","year-btn","automation-id","tui-primitive-year-month-pagination__year-button","tuiLink","","type","button",3,"click","tuiFocusable"]],template:function(e,i){if(e&1){let o=H();m(0,"tui-primitive-spin-button",1),v("leftClick",function(){return f(o),_(i.onPrevMonthClick())})("rightClick",function(){return f(o),_(i.onNextMonthClick())}),W(1),Y(2,"tuiMonth"),Y(3,"async"),T(4,Yl,2,1,"ng-container",2)(5,Gl,2,2,"ng-template",null,0,_e),g()}if(e&2){let o=te(6);u("focusable",!1)("leftDisabled",i.prevMonthDisabled)("rightDisabled",i.nextMonthDisabled),p(),me(" ",J(3,8,J(2,6,i.value))," "),p(3),u("ngIf",i.oneYear)("ngIfElse",o)}},dependencies:[Va,ri,ae,rt,ve,Oo],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0}),t})(),Ka=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[z,at,ja,ai,$a]]}),t})();var Ql=(t,n,e,i,o)=>[t,n,e,i,o];function Xl(t,n){if(t&1&&I(0,"div",3),t&2){let e=n.$implicit;u("textContent",e)}}function Zl(t,n){if(t&1&&I(0,"div",14),t&2){let e=h().ngIf;Ie("background-color",(e==null?null:e[1])||"")}}function ql(t,n){if(t&1&&(m(0,"div",13),I(1,"div",14),T(2,Zl,1,2,"div",15),g()),t&2){let e=n.ngIf;p(),Ie("background-color",e==null?null:e[0]),p(),u("ngIf",e.length>1)}}function Jl(t,n){if(t&1){let e=H();m(0,"div",10),v("click",function(){f(e);let o=h().tuiLet,r=h(4);return _(r.onItemClick(o))})("tuiHoveredChange",function(o){f(e);let r=h().tuiLet,a=h(4);return _(a.onItemHovered(o&&r))})("tuiPressedChange",function(o){f(e);let r=h().tuiLet,a=h(4);return _(a.onItemPressed(o&&r))}),m(1,"div",11),Y(2,"tuiMapper"),W(3),T(4,ql,3,3,"div",12),Y(5,"tuiMapper"),g()()}if(t&2){let e=h().tuiLet,i=h(4);A("t-cell_interval",i.itemIsInterval(e))("t-cell_today",i.itemIsToday(e))("t-cell_unavailable",i.itemIsUnavailable(e)),N("data-range",i.getItemRange(e))("data-state",i.getItemState(e)),p(),A("t-item_unavailable",i.itemIsUnavailable(e)),N("data-type",eo(2,13,e,i.dayTypeHandler)),p(2),me(" ",e.day," "),p(),u("ngIf",Xo(5,16,Ko(22,Ql,e,i.toMarkers,i.itemIsToday(e),!!i.getItemRange(e),i.markerHandler)))}}function eu(t,n){if(t&1&&(Oe(0),T(1,Jl,6,28,"div",9),Pe()),t&2){let e=n.tuiLet,i=h(4);p(),u("ngIf",!i.itemIsUnavailable(e)||i.showAdjacent)}}function tu(t,n){if(t&1&&(Oe(0),T(1,eu,2,1,"ng-container",8),Pe()),t&2){let e=n.$implicit,i=h().$implicit,o=h().tuiLet;p(),u("tuiLet",o[i][e])}}function iu(t,n){if(t&1&&(m(0,"div",6),T(1,tu,2,1,"ng-container",7),g()),t&2){let e=n.$implicit,i=h().tuiLet;p(),u("tuiRepeatTimesOf",i[e].length)}}function nu(t,n){if(t&1&&(m(0,"div",4),T(1,iu,2,1,"div",5),g()),t&2){let e=n.tuiLet;p(),u("tuiRepeatTimesOf",e.length)}}var Qa=(()=>{class t{constructor(e,i){this.unorderedWeekDays$=e,this.dayTypeHandler=i,this.pressedItem=null,this.today=de.currentLocal(),this.month=q.currentLocal(),this.disabledItemHandler=ge,this.markerHandler=ti,this.value=null,this.hoveredItem=null,this.showAdjacent=!0,this.hoveredItemChange=new $,this.dayClick=new $,this.toMarkers=(o,r,a,c)=>{if(r||a)return null;let d=c(o);return d.length===0?null:d}}get isSingleDayRange(){return this.value instanceof xt&&this.value.isSingleDay}get isSingle(){return this.isSingleDayRange}getItemState(e){let{disabledItemHandler:i,pressedItem:o,hoveredItem:r}=this;return i(e)?Pt.Disabled:o!=null&&o.daySame(e)?Pt.Active:r!=null&&r.daySame(e)?Pt.Hover:null}getItemRange(e){let{value:i,hoveredItem:o}=this;return i?i instanceof de?i.daySame(e)?Ue.Single:null:i instanceof xt?i.from.daySame(e)&&!i.isSingleDay||o!=null&&o.dayAfter(i.from)&&i.from.daySame(e)&&i.isSingleDay||o!=null&&o.daySame(e)&&o.dayBefore(i.from)&&i.isSingleDay?Ue.Start:i.to.daySame(e)&&!i.isSingleDay||o!=null&&o.dayBefore(i.from)&&i.from.daySame(e)&&i.isSingleDay||o!=null&&o.daySame(e)&&o.dayAfter(i.from)&&i.isSingleDay?Ue.End:i.isSingleDay&&i.from.daySame(e)?Ue.Single:null:i.find(r=>r.daySame(e))?Ue.Single:null:null}itemIsToday(e){return this.today.daySame(e)}itemIsUnavailable(e){return!this.month.monthSame(e)}itemIsInterval(e){let{value:i,hoveredItem:o}=this;if(!(i instanceof xt))return!1;if(!i.isSingleDay)return i.from.daySameOrBefore(e)&&i.to.dayAfter(e);if(o===null)return!1;let r=xt.sort(i.from,o);return r.from.daySameOrBefore(e)&&r.to.dayAfter(e)}onItemHovered(e){this.updateHoveredItem(e||null)}onItemPressed(e){this.pressedItem=e||null}onItemClick(e){this.dayClick.emit(e)}updateHoveredItem(e){Qt(this.hoveredItem,e,(i,o)=>i.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(l(Gr),l($r))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-calendar"]],hostVars:2,hostBindings:function(e,i){e&2&&A("_single",i.isSingleDayRange)},inputs:{month:"month",disabledItemHandler:"disabledItemHandler",markerHandler:"markerHandler",value:"value",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent"},outputs:{hoveredItemChange:"hoveredItemChange",dayClick:"dayClick"},decls:6,vars:9,consts:[[1,"t-row","t-row_weekday"],["class","t-cell",3,"textContent",4,"ngFor","ngForOf"],["id","date-rows",4,"tuiLet"],[1,"t-cell",3,"textContent"],["id","date-rows"],["automation-id","tui-primitive-calendar__row","class","t-row",4,"tuiRepeatTimes","tuiRepeatTimesOf"],["automation-id","tui-primitive-calendar__row",1,"t-row"],[4,"tuiRepeatTimes","tuiRepeatTimesOf"],[4,"tuiLet"],["automation-id","tui-primitive-calendar__cell","class","t-cell",3,"t-cell_interval","t-cell_today","t-cell_unavailable","click","tuiHoveredChange","tuiPressedChange",4,"ngIf"],["automation-id","tui-primitive-calendar__cell",1,"t-cell",3,"click","tuiHoveredChange","tuiPressedChange"],["automation-id","tui-primitive-calendar__item",1,"t-item"],["class","t-dots",4,"ngIf"],[1,"t-dots"],[1,"t-dot"],["class","t-dot",3,"backgroundColor",4,"ngIf"]],template:function(e,i){e&1&&(m(0,"div",0),T(1,Xl,1,1,"div",1),Y(2,"tuiOrderWeekDays"),Y(3,"async"),g(),T(4,nu,2,1,"div",2),Y(5,"tuiCalendarSheet")),e&2&&(p(),u("ngForOf",J(3,4,J(2,2,i.unorderedWeekDays$))),p(3),u("tuiLet",eo(5,6,i.month,!0)))},dependencies:[Gt,yt,Pn,ae,si,On,ve,Wa,Ba,qi],styles:['[_nghost-%COMP%]{display:block;font:var(--tui-font-text-m)}.t-row[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;height:2.25rem;isolation:isolate}.t-item[_ngcontent-%COMP%]{position:relative;flex:1;line-height:2rem;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:before, .t-item[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-item[_ngcontent-%COMP%]:after{border-radius:.5rem}.t-cell[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:2.25rem;text-align:center;outline:none;cursor:pointer;background-clip:content-box;box-sizing:border-box;border:.125rem solid transparent}.t-cell[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;border-radius:var(--tui-radius-m)}.t-cell_today[_ngcontent-%COMP%]:after{position:absolute;left:50%;transform:translate(-50%);content:"";bottom:.3125rem;height:.125rem;width:.75rem;border-radius:.375rem;background-color:var(--tui-text-01)}.t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell_interval[_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell_interval[_ngcontent-%COMP%]:not(:last-child):before{right:-.25rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell_interval[_ngcontent-%COMP%]:not([data-range="start"]):not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell_interval[_ngcontent-%COMP%]:last-child:first-child:before{right:0}.t-cell_interval[_ngcontent-%COMP%]:first-child > .t-item[_ngcontent-%COMP%]{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%]:last-child > .t-item[_ngcontent-%COMP%]{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.t-cell_interval[_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{border-radius:0}.t-cell[data-range][_ngcontent-%COMP%]:after{background-color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{color:var(--tui-primary-text)}.t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary)}.t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=hover][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-hover)}.t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before, .t-cell[data-range][data-state=active][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{background-color:var(--tui-primary-active)}.t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-base-02)}._single[_nghost-%COMP%] .t-cell[data-range=end][_ngcontent-%COMP%]:before{background:var(--tui-secondary-hover)}.t-cell[data-range=end][_ngcontent-%COMP%]:not(:first-child):before{border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{left:.625rem;border-top-left-radius:0;border-bottom-left-radius:0}.t-cell[data-range=end][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:-2rem;right:100%;transform:translate(1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:before{right:.625rem;border-top-right-radius:0;border-bottom-right-radius:0}.t-cell[data-range=start][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{left:100%;right:-2rem;transform:translate(-1.6rem) scaleY(.83) scaleX(.5) rotate(45deg)}.t-cell[data-range=single][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]:after{display:none}.t-cell[data-state=disabled][_ngcontent-%COMP%]{pointer-events:none}.t-cell[data-state=disabled][_ngcontent-%COMP%] > .t-item[_ngcontent-%COMP%]{opacity:.36}.t-cell[data-state=hover][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-hover)}.t-cell[data-state=active][_ngcontent-%COMP%]:hover:not([data-range]) > .t-item[_ngcontent-%COMP%]{background-color:var(--tui-secondary-active)}[_nghost-%COMP%]{width:15.75rem}.t-row[_ngcontent-%COMP%]{justify-content:flex-start}.t-row[_ngcontent-%COMP%]:first-child{justify-content:flex-end}.t-row_weekday[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none}.t-item[_ngcontent-%COMP%]{display:flex;flex-direction:column}.t-item_unavailable[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}.t-dots[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:-.5rem;padding-bottom:.25rem}.t-dot[_ngcontent-%COMP%]{display:inline-block;width:.25rem;height:.25rem;border-radius:100%;margin:0 .0625rem}'],changeDetection:0}),t})(),Xa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[z,Dt,Ji,wn,wt,li,Ua,Ya]]}),t})();function ru(t,n){if(t&1){let e=H();m(0,"tui-scrollbar",2)(1,"tui-primitive-year-picker",3),v("yearClick",function(o){f(e);let r=h();return _(r.onPickerYearClick(o))}),g()()}if(t&2){let e=h();p(),u("initialItem",e.month)("max",e.computedMax)("min",e.computedMin)("value",e.value)}}function au(t,n){if(t&1){let e=H();m(0,"tui-primitive-year-month-pagination",4),v("valueChange",function(o){f(e);let r=h();return _(r.onPaginationValueChange(o))})("yearClick",function(){f(e);let o=h();return _(o.onPaginationYearClick())}),g(),m(1,"tui-primitive-calendar",5),Y(2,"tuiMapper"),v("dayClick",function(o){f(e);let r=h();return _(r.onDayClick(o))})("hoveredItemChange",function(o){f(e);let r=h();return _(r.onHoveredItemChange(o))}),g()}if(t&2){let e=h();u("max",e.computedMaxViewedMonth)("min",e.computedMinViewedMonth)("value",e.month),p(),u("disabledItemHandler",Qo(2,9,e.disabledItemHandler,e.disabledItemHandlerMapper,e.computedMin,e.computedMax))("hoveredItem",e.hoveredItem)("markerHandler",e.markerHandler)("month",e.month)("showAdjacent",e.showAdjacent)("value",e.value)}}var Nn=(()=>{class t{constructor(){this.day=null,this.view="month",this.month=q.currentLocal(),this.disabledItemHandler=ge,this.min=Se,this.max=Ve,this.minViewedMonth=Se,this.maxViewedMonth=Ve,this.hoveredItem=null,this.showAdjacent=!0,this.markerHandler=ti,this.dayClick=new $,this.monthChange=new $,this.hoveredItemChange=new $,this.disabledItemHandlerMapper=(e,i,o)=>r=>r.dayBefore(i)||r.dayAfter(o)||e(r)}set initialView(e){this.view=e}set value(e){this.day=e,this.showAdjacent&&e instanceof de&&(this.month=e)}get value(){return this.day}get isInYearView(){return this.view==="year"}get computedMin(){var e;return(e=this.min)!==null&&e!==void 0?e:Se}get computedMax(){var e;return(e=this.max)!==null&&e!==void 0?e:Ve}get computedMinViewedMonth(){var e;let i=this.computedMin,o=(e=this.minViewedMonth)!==null&&e!==void 0?e:Se;return o.monthSameOrAfter(i)?o:i}get computedMaxViewedMonth(){var e;let i=this.computedMax,o=(e=this.maxViewedMonth)!==null&&e!==void 0?e:Ve;return o.monthSameOrBefore(i)?o:i}onPaginationYearClick(){this.view="year"}onPickerYearClick({year:e}){this.view="month",this.updateViewedMonth(new q(e,this.month.month))}onPaginationValueChange(e){this.updateViewedMonth(e)}onDayClick(e){this.dayClick.emit(e)}onHoveredItemChange(e){this.updateHoveredDay(e)}updateViewedMonth(e){this.month.monthSame(e)||(this.month=e,this.monthChange.emit(e))}updateHoveredDay(e){Qt(this.hoveredItem,e,(i,o)=>i.daySame(o))||(this.hoveredItem=e,this.hoveredItemChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=S({type:t,selectors:[["tui-calendar"]],inputs:{initialView:"initialView",month:"month",disabledItemHandler:"disabledItemHandler",min:"min",max:"max",minViewedMonth:"minViewedMonth",maxViewedMonth:"maxViewedMonth",hoveredItem:"hoveredItem",showAdjacent:"showAdjacent",markerHandler:"markerHandler",value:"value"},outputs:{dayClick:"dayClick",monthChange:"monthChange",hoveredItemChange:"hoveredItemChange"},decls:3,vars:2,consts:[["calendar",""],["automation-id","tui-calendar__scrollbar","class","t-scrollbar",4,"ngIf","ngIfElse"],["automation-id","tui-calendar__scrollbar",1,"t-scrollbar"],["automation-id","tui-calendar__year",3,"yearClick","initialItem","max","min","value"],["automation-id","tui-calendar__pagination",1,"t-pagination",3,"valueChange","yearClick","max","min","value"],["automation-id","tui-calendar__calendar",3,"dayClick","hoveredItemChange","disabledItemHandler","hoveredItem","markerHandler","month","showAdjacent","value"]],template:function(e,i){if(e&1&&T(0,ru,2,4,"tui-scrollbar",1)(1,au,3,14,"ng-template",null,0,_e),e&2){let o=te(2);u("ngIf",i.isInYearView)("ngIfElse",o)}},dependencies:[It,Na,Ga,Qa,ae,qi],styles:["[_nghost-%COMP%]{display:block;height:18.25rem;width:15.75rem;padding:1rem 1.125rem;box-sizing:content-box}.t-scrollbar[_ngcontent-%COMP%]{height:18.25rem;width:16.875rem}.t-pagination[_ngcontent-%COMP%]{margin-bottom:1rem}"],changeDetection:0}),t})(),zn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[z,Ka,Xa,za,pi,Ji]]}),t})();var Za=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["ng-template","tuiDataList",""]]}),t})();var su=["wrapper"],lu=["*"],uu=(t,n)=>({$implicit:t,close:n});function cu(t,n){if(t&1&&(m(0,"div",8),W(1),g()),t&2){let e=n.polymorpheusOutlet;p(),me(" ",e," ")}}function du(t,n){if(t&1){let e=H();m(0,"div",6,2),v("keydown",function(o){f(e);let r=h(2);return _(r.onKeydown(o))}),T(2,cu,2,1,"div",7),g(),I(3,"div")}if(t&2){h();let e=te(1),i=h();p(2),u("polymorpheusOutlet",i.content)("polymorpheusOutletContext",Go(2,uu,e,i.close))}}function pu(t,n){if(t&1){let e=H();m(0,"div",4,0),v("tuiActiveZoneChange",function(o){f(e);let r=h();return _(r.onActiveZone(o))})("tuiObscured",function(o){f(e);let r=h();return _(r.onHostObscured(o))}),X(2),T(3,du,4,5,"ng-template",5,1,_e),g()}if(t&2){let e=n.tuiLet,i=te(4),o=h();u("tuiDropdown",i)("tuiDropdownManual",e&&o.canOpen)("tuiDropdownSided",o.sided)("tuiObscuredEnabled",e),p(3),u("polymorpheus",o.context)}}var qa=(()=>{class t extends mt{constructor(){super(...arguments),this.type="dummy"}getPosition(){return[0,0]}}return t.\u0275fac=(()=>{let n;return function(i){return(n||(n=ue(t)))(i||t)}})(),t.\u0275dir=y({type:t,selectors:[["","tuiAccessorProxy",""]],features:[O([{provide:mt,multi:!0,deps:[[new xe,new fi,t],t],useFactory:(n,e)=>n||e}]),x]}),t})(),Ja=new Ke("[TUI_HOSTED_DROPDOWN_COMPONENT]"),mu=(()=>{class t{constructor(e,i,o,r){r==null||r.tuiDropdownOpenChange.pipe(lt(a=>a&&r.dropdown===o&&!i.focused),ee(e)).subscribe(()=>{var a;(a=i.nativeFocusableElement)===null||a===void 0||a.focus(),i.updateOpen(!0)})}}return t.\u0275fac=function(e){return new(e||t)(l(U,2),l(Ja),l(gt,2),l(Mi,8))},t.\u0275dir=y({type:t,selectors:[["","tuiDropdownOpenMonitor",""]],features:[O([U])]}),t})(),hu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=y({type:t,selectors:[["","tuiHostedDropdownHost",""]]}),t})();function gu(t){var n;return"key"in t&&t.key.toLowerCase()==="escape"&&this.canOpen&&this.open&&!(!((n=this.dropdown)===null||n===void 0)&&n.nextElementSibling)}var hi=(()=>{class t{constructor(e,i){this.hover$=e,this.el=i,this.openChange$=new At(!1),this.hostHover$=Xn([ke(this.el.nativeElement,"mouseover").pipe(V(o=>this.computedHost.contains(Bi(o))),vt(o=>{var r,a;return je(o).pipe(ut((o?(r=this.hover$)===null||r===void 0?void 0:r.showDelay:(a=this.hover$)===null||a===void 0?void 0:a.hideDelay)||0))})),this.hover$||No]).pipe(V(([o,r])=>o&&r)),this.sided=!1,this.canOpen=!0,this.open$=De(this.openChange$,this.hostHover$).pipe(Wt(1),Ge(),ki()),this.focusedChange=new $,this.openChange=this.openChange$,this.close=()=>this.updateOpen(!1)}set open(e){this.openChange.next(e)}get open(){return this.openChange.value}get host(){var e;return((e=this.dropdownHost)===null||e===void 0?void 0:e.nativeElement)||this.el.nativeElement}get computedHost(){var e;return((e=this.dropdownHost)===null||e===void 0?void 0:e.nativeElement)||this.nativeFocusableElement||this.el.nativeElement}get dropdown(){var e,i;return(i=(e=this.dropdownDirective)===null||e===void 0?void 0:e.dropdownBoxRef)===null||i===void 0?void 0:i.location.nativeElement}get nativeFocusableElement(){return dr(this.host)?this.host:Xt({initial:this.host,root:this.el.nativeElement})}get focused(){return pt(this.host)||this.open&&!!this.wrapper&&pt(this.wrapper.nativeElement)}onFocusInOut(){this.el.nativeElement.classList.toggle("_hosted_dropdown_focused",this.focused)}onFocusIn(e){this.computedHost.contains(e)||this.updateOpen(!1)}onClick(e){var i;!this.hostEditable&&this.computedHost.contains(e)&&!(!((i=this.hover$)===null||i===void 0)&&i.hovered)&&this.updateOpen(!this.open)}onKeyDownEsc(e){e.preventDefault(),this.closeDropdown()}onArrow(e,i){this.focusDropdown(e,i)}onKeydown({key:e,target:i,defaultPrevented:o}){!o&&jr(e)&&this.hostEditable&&ji(i)&&!Ui(i)&&this.focusHost()}onActiveZone(e){this.updateFocused(e),e||this.updateOpen(!1)}onHostObscured(e){e&&this.closeDropdown()}updateOpen(e){(!e||this.canOpen)&&(this.open=e)}get hostEditable(){return Ui(this.computedHost)}focusDropdown(e,i){let o=this.nativeFocusableElement;if(!o||!ji(o)||!Mt(e.target)||!o.contains(e.target))return;if(!this.wrapper||!this.open||!this.dropdown||!ji(this.wrapper.nativeElement.nextElementSibling)){this.updateOpen(!0),Ui(o)||e.preventDefault();return}let r=i?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,a=Xt({initial:r,root:this.wrapper.nativeElement,previous:!i});a&&(a.focus(),e.preventDefault())}closeDropdown(){this.focused&&this.focusHost(),this.updateOpen(!1)}focusHost(){let e=this.nativeFocusableElement;e&&e.focus({preventScroll:!0})}updateFocused(e){this.focusedChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(l(vo,10),l(F))},t.\u0275cmp=S({type:t,selectors:[["tui-hosted-dropdown"]],contentQueries:function(e,i,o){if(e&1&&Ct(o,hu,5,F),e&2){let r;j(r=B())&&(i.dropdownHost=r.first)}},viewQuery:function(e,i){if(e&1&&(K(su,5,F),K(gt,5),K(ze,5)),e&2){let o;j(o=B())&&(i.wrapper=o.first),j(o=B())&&(i.dropdownDirective=o.first),j(o=B())&&(i.activeZone=o.first)}},hostBindings:function(e,i){e&1&&v("focusin.capture.silent",function(){return i.onFocusInOut()})("focusout.capture.silent",function(){return i.onFocusInOut()})("focusin",function(r){return i.onFocusIn(r.target)})("click",function(r){return i.onClick(r.target)})("keydown.silent.capture",function(r){return i.onKeyDownEsc(r)},!1,_i)("keydown.arrowDown",function(r){return i.onArrow(r,!0)})("keydown.arrowUp",function(r){return i.onArrow(r,!1)})},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{open$:"openChange",focusedChange:"focusedChange"},features:[O([Ee(t),{provide:qa,deps:[[new xe,new Yt,mt]],useFactory:n=>n==null?void 0:n[0]},{provide:Ja,useExisting:t}])],ngContentSelectors:lu,decls:2,vars:3,consts:[["activeZone","tuiActiveZone"],["dropdown","polymorpheus"],["wrapper",""],["tuiAccessorProxy","","tuiDropdownOpenMonitor","","class","t-wrapper",3,"tuiDropdown","tuiDropdownManual","tuiDropdownSided","tuiObscuredEnabled","tuiActiveZoneChange","tuiObscured",4,"tuiLet"],["tuiAccessorProxy","","tuiDropdownOpenMonitor","",1,"t-wrapper",3,"tuiActiveZoneChange","tuiObscured","tuiDropdown","tuiDropdownManual","tuiDropdownSided","tuiObscuredEnabled"],[3,"polymorpheus"],[1,"t-dropdown",3,"keydown"],["class","t-primitive",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive"]],template:function(e,i){if(e&1&&(re(),T(0,pu,5,5,"div",3),Y(1,"async")),e&2){let o;u("tuiLet",(o=J(1,1,i.open$))!==null&&o!==void 0?o:i.openChange.value)}},dependencies:[yt,qa,mu,gt,_a,Ti,va,Ca,ze,aa,Gi,ie,ve],styles:["[_nghost-%COMP%]{display:inline-flex}.t-wrapper[_ngcontent-%COMP%]{border-radius:inherit;height:inherit;flex:1 1 auto;width:100%}.t-dropdown[_ngcontent-%COMP%]{height:100%}.t-primitive[_ngcontent-%COMP%]{padding:1rem}"],changeDetection:0}),ye([Zr(gu)],t.prototype,"onKeyDownEsc",null),t})(),Vn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[z,se,Dt,sa,Jt,En]]}),t})();var fu=["*"],_u=t=>({$implicit:t});function vu(t,n){if(t&1&&I(0,"tui-svg",2),t&2){let e=n.polymorpheusOutlet,i=h();A("t-mark_on",!i.empty),u("src",e)}}var Cu={size:"m",appearances:{unchecked:ht.Outline,checked:ht.Primary,indeterminate:ht.Primary},icons:{checked:({$implicit:t})=>t==="m"?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:t})=>t==="m"?"tuiIconMinus":"tuiIconMinusLarge"}},yi=Z(Cu);var is=(()=>{class t{constructor(e){this.options=e,this.size=this.options.size,this.disabled=!1,this.focused=!1,this.hovered=!1,this.pressed=!1,this.invalid=!1,this.icon=this.options.icons.checked,this.value=!1}set valueSetter(e){e!==!1&&this.setCurrentIcon(e),this.value=e}get appearance(){switch(this.value){case!1:return this.options.appearances.unchecked;case!0:return this.options.appearances.checked;default:return this.options.appearances.indeterminate}}get empty(){return this.value===!1}setCurrentIcon(e){this.icon=e===null?this.options.icons.indeterminate:this.options.icons.checked}}return t.\u0275fac=function(e){return new(e||t)(l(yi))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(e,i){e&2&&N("data-size",i.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invalid:"invalid",valueSetter:[E.None,"value","valueSetter"]},ngContentSelectors:fu,decls:3,vars:10,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid"],["class","t-mark",3,"t-mark_on","src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-mark",3,"src"]],template:function(e,i){e&1&&(re(),m(0,"div",0),T(1,vu,1,3,"tui-svg",1),X(2),g()),e&2&&(u("active",i.pressed)("appearance",i.appearance)("disabled",i.disabled)("focus",i.focused)("hover",i.hovered)("invalid",i.invalid),p(),u("polymorpheusOutlet",i.icon)("polymorpheusOutletContext",ce(8,_u,i.size)))},dependencies:[Ce,$e,ie],styles:["[_nghost-%COMP%]{display:block;font-size:0;flex-shrink:0}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem;border-radius:var(--tui-radius-xs)}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem;border-radius:var(--tui-radius-s)}.t-mark[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;width:100%;height:100%;transform:scale(0)}.t-mark_on[_ngcontent-%COMP%]{transform:scale(1)}"],changeDetection:0}),t})(),ns=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[Te,We,se]]}),t})();function Tu(t,n){if(t&1&&I(0,"tui-svg",3),t&2){let e=n.polymorpheusOutlet;u("src",e)}}var jn=(()=>{class t extends Et{constructor(e,i,o,r){super(o),this.isMobile=r,this.mode=null,this.describeId="",i.pipe(ee(e)).subscribe(a=>{this.mode=a})}get computedAppearance(){return this.appearance||this.mode||""}stopOnMobile(e){var i;this.isMobile&&(e.preventDefault(),e.stopPropagation()),(i=this.driver$)===null||i===void 0||i.toggle()}}return t.\u0275fac=function(e){return new(e||t)(l(U,2),l(nt),l(Bt),l(Qi))},t.\u0275cmp=S({type:t,selectors:[["tui-tooltip"]],viewQuery:function(e,i){if(e&1&&K(mi,5),e&2){let o;j(o=B())&&(i.driver$=o.first)}},hostVars:1,hostBindings:function(e,i){e&1&&v("mousedown",function(r){return i.stopOnMobile(r)}),e&2&&N("data-appearance",i.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[O([U,ot]),x],decls:4,vars:11,consts:[["driver","tuiHintHover"],["appearance","icon","automation-id","tui-tooltip__icon","tuiWrapper","",1,"t-tooltip-icon",3,"hover","tuiHint","tuiHintAppearance","tuiHintContext","tuiHintDescribe","tuiHintDirection","tuiHintHideDelay","tuiHintShowDelay"],[3,"src",4,"polymorpheusOutlet"],[3,"src"]],template:function(e,i){if(e&1&&(m(0,"span",1,0),Y(2,"async"),T(3,Tu,1,1,"tui-svg",2),g()),e&2){let o=te(1);u("hover",J(2,9,o)||null)("tuiHint",i.content)("tuiHintAppearance",i.computedAppearance)("tuiHintContext",i.context)("tuiHintDescribe",i.describeId)("tuiHintDirection",i.direction)("tuiHintHideDelay",i.hideDelay)("tuiHintShowDelay",i.showDelay),p(3),u("polymorpheusOutlet",i.icon)}},dependencies:[Ce,$e,Fn,ba,mi,Co,Ma,ie,ve],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;pointer-events:auto;cursor:pointer;color:var(--tui-text-01)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-error-fill)}.t-tooltip-icon[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%;color:inherit}[tuiWrapper][data-appearance="textfield"][data-state="disabled"][_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%], [tuiWrapper][data-appearance="textfield"][data-state="disabled"] [_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),t})(),Bn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[z,We,Te,An,se]]}),t})();var bu=["pre"],yu=["focusableElement"],Du=[[["input"]],[["select"]],[["tuiContent"]],"*"],Ou=["input","select","tuiContent","*"],Po=t=>({$implicit:t});function Pu(t,n){t&1&&Rt(0)}function wu(t,n){t&1&&Rt(0)}function xu(t,n){t&1&&(m(0,"div",17),X(1,2),g())}function Iu(t,n){if(t&1&&I(0,"tui-svg",20),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function ku(t,n){if(t&1&&(m(0,"div",18),T(1,Iu,1,1,"tui-svg",19),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconLeftContent)("polymorpheusOutletContext",ce(2,Po,e.size))}}function Eu(t,n){if(t&1&&(m(0,"label",21),X(1,3),g()),t&2){let e=h();A("t-placeholder_raised",e.placeholderRaised),u("for",e.computedId)}}function Su(t,n){if(t&1&&I(0,"tui-svg",24),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function Fu(t,n){if(t&1&&(m(0,"div",22),T(1,Su,1,1,"tui-svg",23),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.controller.customContent)}}function Au(t,n){if(t&1&&I(0,"tui-svg",27),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function Hu(t,n){if(t&1){let e=H();m(0,"span",25),v("click.stop",function(){f(e);let o=h();return _(o.clear())}),T(1,Au,1,1,"tui-svg",26),g()}if(t&2){let e=h();p(),u("polymorpheusOutlet",e.iconCleaner||e.controller.options.iconCleaner)("polymorpheusOutletContext",ce(2,Po,e.size))}}function Ru(t,n){if(t&1&&I(0,"tui-tooltip",28),t&2){let e=h();u("content",e.hintOptions==null?null:e.hintOptions.content)("describeId",e.computedId)}}function Lu(t,n){if(t&1&&I(0,"tui-svg",20),t&2){let e=n.polymorpheusOutlet;u("src",e)}}function Nu(t,n){if(t&1&&(m(0,"div",29),T(1,Lu,1,1,"tui-svg",19),g()),t&2){let e=h();p(),u("polymorpheusOutlet",e.iconContent)("polymorpheusOutletContext",ce(2,Po,e.size))}}var zu=(()=>{class t{constructor(e,i){this.textfield=e,this.fontsReady$=i,this.prefix$=new At(""),this.pre$=De(this.fontsReady$,this.prefix$).pipe(ut(0),lt(()=>{var o;return!!(!((o=this.pre)===null||o===void 0)&&o.nativeElement.isConnected)}),V(()=>{var o;return((o=this.pre)===null||o===void 0?void 0:o.nativeElement.offsetWidth)||0}),Ge())}get isContextTable(){return this.textfield.appearance===ht.Table}get value(){return this.textfield.value}get filler(){let{focused:e,placeholder:i,exampleText:o,value:r,textfield:a}=this;return i&&o?"":e?o||a.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 e;return((e=this.textfield.nativeFocusableElement)===null||e===void 0?void 0:e.placeholder)||""}get exampleText(){return!this.value&&this.focused?this.placeholder:""}get decorationsVisible(){return!!this.value||this.focused&&!this.placeholder}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 t.\u0275fac=function(e){return new(e||t)(l(br),l(yr))},t.\u0275cmp=S({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(e,i){if(e&1&&K(bu,7,F),e&2){let o;j(o=B())&&(i.pre=o.first)}},hostVars:4,hostBindings:function(e,i){e&1&&v("animationstart",function(){return i.ngDoCheck()}),e&2&&A("_table",i.isContextTable)("_filler",i.filler)},decls:5,vars:4,consts:[["pre",""],[1,"t-prefix",3,"textContent"],[1,"t-ghost",3,"textContent"],[1,"t-filler",3,"textContent"],[1,"t-postfix",3,"textContent"]],template:function(e,i){e&1&&I(0,"span",1,0)(2,"span",2)(3,"span",3)(4,"span",4),e&2&&(u("textContent",i.prefix),p(2),u("textContent",i.value),p(),u("textContent",i.filler),p(),u("textContent",i.postfix))},styles:['[_nghost-%COMP%]{position:absolute;display:block;width:100%;line-height:var(--tui-height);margin-top:calc(var(--tui-height) / -2);box-sizing:content-box;color:var(--tui-text-03);animation:tuiPresent 1s;white-space:nowrap}._table[_nghost-%COMP%]{position:static;margin-top:0}._filler[_nghost-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]{color:var(--tui-text-03-night)}tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]{line-height:calc(var(--tui-height) - .25rem)}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip}.t-prefix[_ngcontent-%COMP%], .t-postfix[_ngcontent-%COMP%]{white-space:pre;color:var(--tui-text-01)}tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.t-filler[_ngcontent-%COMP%]{max-width:100%;white-space:nowrap}']}),t})(),Vu={s:1.25,m:1.75,l:2.25},Di=(()=>{class t extends Xi{constructor(e,i,o,r){super(),this.controller=e,this.hintOptions=i,this.options=o,this.el=r,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 $,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;let{nativeElement:e}=this.focusableElement;return e.previousElementSibling||e}get focused(){return pt(this.el.nativeElement)}get appearance(){return this.controller.appearance}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var e;return!!(!((e=this.content)===null||e===void 0)&&e.length)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var e;return!!(!((e=this.hintOptions)===null||e===void 0)&&e.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var e;let o=(((e=this.nativeFocusableElement)===null||e===void 0?void 0:e.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!o}get hasPlaceholder(){return 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 Vr(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent,this.size)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconLeft}get showHint(){var e;return!!(!((e=this.hintOptions)===null||e===void 0)&&e.content)&&(this.options.hintOnDisabled||!this.computedDisabled)}get name(){var e;return((e=this.nativeFocusableElement)===null||e===void 0?void 0:e.autocomplete)==="cc-exp"?"ccexpiryyear":null}get computedId(){var e;return((e=this.nativeFocusableElement)===null||e===void 0?void 0:e.id)||""}onFocused(e){this.updateFocused(e)}getIndent$(e){return Ii(e,"scroll").pipe(V(()=>-1*Math.max(e.scrollLeft,0)))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(e){let{nativeFocusableElement:i}=this;!i||e.target===i||(e.preventDefault(),i.focus())}onModelChange(e){this.updateValue(e)}onAutofilled(e){this.updateAutofilled(e)}detectRetargetFromLabel(e){$i(e)&&e.stopImmediatePropagation()}get iconPaddingLeft(){return Vu[this.size]}get placeholderRaisable(){return this.size!=="s"&&!this.controller.labelOutside}updateAutofilled(e){this.autofilled!==e&&(this.autofilled=e)}updateValue(e){this.value=e,this.valueChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(l(bi),l(Et,8),l(Mo),l(F))},t.\u0275cmp=S({type:t,selectors:[["tui-primitive-textfield"]],contentQueries:function(e,i,o){if(e&1&&Ct(o,ie,5),e&2){let r;j(r=B())&&(i.content=r)}},viewQuery:function(e,i){if(e&1&&K(yu,5),e&2){let o;j(o=B())&&(i.focusableElement=o.first)}},hostVars:15,hostBindings:function(e,i){e&1&&v("focusin",function(){return i.onFocused(!0)})("focusout",function(){return i.onFocused(!1)}),e&2&&(N("data-size",i.size),Ie("--border-start",i.borderStart,"rem")("--border-end",i.borderEnd,"rem"),A("_autofilled",i.autofilled)("_label-outside",i.controller.labelOutside)("_readonly",i.readOnly)("_invalid",i.computedInvalid)("_hidden",i.inputHidden))},inputs:{editable:"editable",textfieldFiller:[E.None,"filler","textfieldFiller"],iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",textfieldPrefix:[E.None,"prefix","textfieldPrefix"],textfieldPostfix:[E.None,"postfix","textfieldPostfix"],value:"value"},outputs:{valueChange:"valueChange"},features:[O([Ee(t),Ln]),x],ngContentSelectors:Ou,decls:24,vars:37,consts:[["focusableElement",""],["decor",""],[4,"ngIf"],["automation-id","tui-primitive-textfield__wrapper","tuiWrapper","",3,"click.prevent.silent","mousedown","tuiAutofilledChange","active","appearance","disabled","focus","hover","invalid","readOnly"],["automation-id","tui-primitive-textfield__native-input","tuiMaskAccessor","",1,"t-input",3,"ngModelChange","disabled","id","ngModel","readOnly","tuiFocusable"],["automation-id","tui-primitive-textfield__value","class","t-input t-input_template",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_left t-textfield-icon",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"],["aria-hidden","true","automation-id","tui-primitive-textfield__value-decoration",1,"t-value-decoration"],[1,"t-icons"],["automation-id","tui-primitive-textfield__custom-content","class","t-custom-content",4,"ngIf"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","","class","t-cleaner",3,"click.stop",4,"ngIf"],["automation-id","tui-primitive-textfield__tooltip","class","t-tooltip",3,"content","describeId",4,"ngIf"],["class","t-icon t-textfield-icon",4,"ngIf"],["automation-id","tui-primitive-textfield__value",1,"t-input","t-input_template"],[1,"t-icon","t-icon_left","t-textfield-icon"],["appearance","icon","tuiWrapper","",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","tuiWrapper","",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"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","",1,"t-cleaner",3,"click.stop"],[3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"src"],["automation-id","tui-primitive-textfield__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"]],template:function(e,i){if(e&1){let o=H();re(Du),T(0,Pu,1,0,"ng-container",2),Y(1,"async"),T(2,wu,1,0,"ng-container",2),Y(3,"async"),m(4,"div",3),Y(5,"async"),v("click.prevent.silent",function(a){return f(o),_(i.detectRetargetFromLabel(a))})("mousedown",function(a){return f(o),_(i.onMouseDown(a))})("tuiAutofilledChange",function(a){return f(o),_(i.onAutofilled(a))}),X(6),X(7,1),m(8,"input",4,0),v("ngModelChange",function(a){return f(o),_(i.onModelChange(a))}),g(),T(10,xu,2,0,"div",5),m(11,"div",6),T(12,ku,2,4,"div",7),m(13,"div",8),T(14,Eu,2,3,"label",9),m(15,"div",10),I(16,"tui-value-decoration",11,1),Y(18,"async"),g()(),m(19,"div",12),T(20,Fu,2,1,"div",13)(21,Hu,2,4,"span",14)(22,Ru,1,2,"tui-tooltip",15)(23,Nu,2,4,"div",16),g()()()}if(e&2){let o=te(9),r=te(17);u("ngIf",J(1,29,i.content==null?null:i.content.changes)),p(2),u("ngIf",J(3,31,i.hintOptions==null?null:i.hintOptions.change$)),p(2),Ie("--text-indent",J(5,33,r.pre$),"px"),u("active",i.pseudoActive)("appearance",i.appearance)("disabled",i.disabled)("focus",i.computedFocused)("hover",i.pseudoHover)("invalid",i.computedInvalid)("readOnly",i.readOnly),p(4),u("disabled",i.computedDisabled)("id",i.id)("ngModel",i.value)("readOnly",i.readOnly||!i.editable)("tuiFocusable",i.computedFocusable),N("aria-invalid",i.computedInvalid)("name",i.name),p(2),u("ngIf",i.inputHidden),p(2),u("ngIf",i.iconLeftContent),p(2),u("ngIf",i.hasPlaceholder),p(2),Ie("text-indent",J(18,35,i.getIndent$(o)),"px"),A("t-has-value",i.value),p(4),u("ngIf",i.hasCustomContent),p(),u("ngIf",i.hasCleaner),p(),u("ngIf",i.showHint),p(),u("ngIf",i.iconContent)}},dependencies:[Ce,zu,jn,ae,$e,oa,ya,qe,Je,Re,rt,ie,ve],styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;text-align:left;border-radius:var(--tui-radius-m);height:var(--tui-height);min-height:var(--tui-height);max-height:var(--tui-height)}[data-size=s][_nghost-%COMP%]{--tui-height: var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{--tui-height: var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{--tui-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-width: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%;border-style:solid;border-color:transparent;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}.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-input[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder{opacity:1}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, [tuiWrapper][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}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]::placeholder, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[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-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), .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=m][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="m"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="m"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-m)}[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-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), .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-textarea._disabled[_nghost-%COMP%], tui-textarea._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=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:1rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]{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%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-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%;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=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}.t-placeholder[_ngcontent-%COMP%]{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.t-placeholder_raised[_ngcontent-%COMP%]{transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;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)}._invalid[_nghost-%COMP%]:not(._focused) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .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:var(--tui-font-text-m);line-height:1.25rem}[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)}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}._focused[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}.t-cleaner[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto}._readonly[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%], ._disabled[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%]{pointer-events:none}.t-icon[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}[data-size=s][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-start:-.375rem;margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-end:.75rem;margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.125rem;margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.375rem;margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size="s"]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){-webkit-margin-start:.25rem;margin-inline-start:.25rem}._autofilled[data-size=s][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled[_nghost-%COMP%] .t-value-decoration[_ngcontent-%COMP%]:not(.t-has-value){visibility:hidden}.t-custom-content[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;pointer-events:none}.t-custom-icon[_ngcontent-%COMP%]{width:2rem;height:100%}.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-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}),ye([Ne],t.prototype,"getIndent$",null),t})(),os=(()=>{class t extends on{constructor(e){super(e),this.textfield=e}get readOnly(){return this.textfield.readOnly||!this.textfield.editable}onValueChange(e){this.textfield.onModelChange(e)}}return t.\u0275fac=function(e){return new(e||t)(l(Di))},t.\u0275dir=y({type:t,selectors:[["tui-primitive-textfield"]],features:[O([dn(t)]),x]}),t})();var rs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=b({type:t}),t.\u0275inj=M({imports:[[z,et,se,Da,at,We,Te,Bn,ra]]}),t})();function as(t){if(t==="")return"";let n=0;for(let r=0;ra&&n(r)),i=t[e-1]||t[0],o=t[e]||t[t.length-1];return[i,o]}function cs(t,n){let[[e,i],[o,r]]=us(n,([d,C])=>t<=d),a=(t-e)/(o-e),c=(r-i)*a+i;return ar(c,ls)}function ds(t,n){let[[e,i],[o,r]]=us(n,([c,d])=>t<=d),a=(t-i)/(r-i)||0;return(o-e)*a+e}function ps(t,n){return t?gr(t).pipe(V(e=>n?n.fromControlValue(e):e)):je(null)}var ju=new Ke("[TUI_CALENDAR_DATE_STREAM]");function ms(t){return{provide:ju,deps:[[new xe,new Yt,we],[new xe,t]],useFactory:ps}}var Bu={[s.AD]:"+376###-###",[s.AE]:"+971-##-###-####",[s.AF]:"+93##-###-####",[s.AG]:"+1(268) ###-####",[s.AI]:"+1(264) ###-####",[s.AL]:"+355(###) ###-###",[s.AM]:"+374##-###-###",[s.AO]:"+244(###) ###-###",[s.AR]:"+54(###) ####-####",[s.AT]:"+43(###) ###-####",[s.AU]:"+61#-####-####",[s.AW]:"+297###-####",[s.AZ]:"+994##-###-##-##",[s.BA]:"+387 ###-####-##",[s.BB]:"+1(246) ###-####",[s.BD]:"+880##-###-###",[s.BE]:"+32(###) ###-###",[s.BF]:"+226##-##-####",[s.BG]:"+359(###) ###-###",[s.BH]:"+973####-####",[s.BI]:"+257##-##-####",[s.BJ]:"+229##-##-####",[s.BL]:"+590 ## ## ## ## ##",[s.BM]:"+1(441) ###-####",[s.BN]:"+673###-####",[s.BO]:"+591#-###-####",[s.BQ]:"+599-###-####",[s.BR]:"+55(##) ####-#####",[s.BS]:"+1(242) ###-####",[s.BT]:"+975#-###-###",[s.BW]:"+267##-###-###",[s.BY]:"+375(##) ###-##-##",[s.BZ]:"+501###-####",[s.CA]:"+1(###) ###-####",[s.CD]:"+243(###) ###-###",[s.CF]:"+236-##-##-####",[s.CG]:"+242##-###-####",[s.CH]:"+41##-###-####",[s.CI]:"+225##-##-###-###",[s.CL]:"+56#-####-####",[s.CM]:"+237#####-####",[s.CN]:"+86(###) ####-####",[s.CO]:"+57(###) ###-####",[s.CR]:"+506####-####",[s.CU]:"+53#-###-####",[s.CV]:"+238(###) ##-##",[s.CW]:"+5999-###-####",[s.CY]:"+357##-###-###",[s.CZ]:"+420(###) ###-###",[s.DE]:"+49(###) ###-###-##",[s.DJ]:"+253##-##-##-##",[s.DK]:"+45##-##-##-##",[s.DM]:"+1(767) ###-####",[s.DO]:"+1(###) ###-####",[s.DZ]:"+213##-###-####",[s.EC]:"+593##-###-####",[s.EE]:"+372####-####",[s.EG]:"+20(###) ###-####",[s.ER]:"+291#-###-###",[s.ES]:"+34(###) ###-###",[s.ET]:"+251##-###-####",[s.FI]:"+358(###) ###-##-##",[s.FJ]:"+679##-#####",[s.FK]:"+500#####",[s.FM]:"+691###-####",[s.FR]:"+33 ## ## ## ## ##",[s.GA]:"+241##-##-##-##",[s.GB]:"+44##-####-####",[s.GD]:"+1(473) ###-####",[s.GE]:"+995(###) ###-###",[s.GF]:"+594 ## ## ## ## ##",[s.GH]:"+233(###) ###-###",[s.GI]:"+350###-#####",[s.GL]:"+299##-##-##",[s.GM]:"+220(###) ##-##",[s.GN]:"+224##-###-###",[s.GP]:"+590 ## ## ## ## ##",[s.GQ]:"+240##-###-####",[s.GR]:"+30(###) ###-####",[s.GT]:"+502#-###-####",[s.GW]:"+245#-######",[s.GY]:"+592###-####",[s.HK]:"+852####-####",[s.HN]:"+504####-####",[s.HR]:"+385##-###-####",[s.HT]:"+509##-##-####",[s.HU]:"+36(###) ###-###",[s.ID]:"+62(###) ###-##-###",[s.IE]:"+353(###) ###-###",[s.IL]:"+972##-###-####",[s.IN]:"+91(####) ###-###",[s.IQ]:"+964(###) ###-####",[s.IR]:"+98(###) ###-####",[s.IS]:"+354###-####",[s.IT]:"+39(###) ####-###",[s.JM]:"+1(876) ###-####",[s.JO]:"+962#-####-####",[s.JP]:"+81-##-####-####",[s.KE]:"+254###-######",[s.KG]:"+996(###) ###-###",[s.KH]:"+855##-###-###",[s.KM]:"+269##-#####",[s.KN]:"+1(869) ###-####",[s.KP]:"+850####-#############",[s.KR]:"+82##-###-####",[s.KW]:"+965####-####",[s.KY]:"+1(345) ###-####",[s.KZ]:"+7(###) ###-##-##",[s.LA]:"+856##-##-###-###",[s.LB]:"+961##-###-###",[s.LC]:"+1(758) ###-####",[s.LI]:"+423(###) ###-####",[s.LK]:"+94##-###-####",[s.LR]:"+231##-###-###",[s.LS]:"+266#-###-####",[s.LT]:"+370(###) ##-###",[s.LU]:"+352(###) ###-###",[s.LV]:"+371##-###-###",[s.LY]:"+218##-###-####",[s.MA]:"+212##-####-###",[s.MC]:"+377###-###-###",[s.MD]:"+373####-####",[s.ME]:"+382##-###-###",[s.MF]:"+590 ## ## ## ## ##",[s.MG]:"+261##-##-#####",[s.MK]:"+389##-###-###",[s.ML]:"+223##-##-####",[s.MM]:"+95##-###-###",[s.MN]:"+976##-##-####",[s.MO]:"+853####-####",[s.MQ]:"+596 ## ## ## ## ##",[s.MR]:"+222##-##-####",[s.MS]:"+1(664) ###-####",[s.MT]:"+356####-####",[s.MU]:"+230####-####",[s.MV]:"+960###-####",[s.MW]:"+265#-####-####",[s.MX]:"+52(###) ###-####",[s.MY]:"+60(###) ###-###",[s.MZ]:"+258##-###-###",[s.NA]:"+264##-###-####",[s.NC]:"+687 ### ###",[s.NE]:"+227##-##-####",[s.NG]:"+234(###) ###-####",[s.NI]:"+505####-####",[s.NL]:"+31##-###-####",[s.NO]:"+47(###) ##-###",[s.NP]:"+977##-###-###",[s.NZ]:"+64(###) ###-####",[s.OM]:"+968##-###-###",[s.PA]:"+507###-####",[s.PE]:"+51(###) ###-###",[s.PF]:"+689 ## ## ## ##",[s.PG]:"+675(###) ##-###",[s.PH]:"+63(###) ###-####",[s.PK]:"+92(###) ###-####",[s.PL]:"+48(###) ###-###",[s.PT]:"+351##-###-####",[s.PW]:"+680###-####",[s.PY]:"+595(###) ###-###",[s.QA]:"+974####-####",[s.RE]:"+262 ## ## ## ## ##",[s.RO]:"+40##-###-####",[s.RS]:"+381##-###-####",[s.RU]:"+7### ###-##-##",[s.RW]:"+250(###) ###-###",[s.SA]:"+966#-####-####",[s.SB]:"+677###-####",[s.SC]:"+248#-###-###",[s.SD]:"+249##-###-####",[s.SE]:"+46##-###-####",[s.SG]:"+65####-####",[s.SH]:"+290####",[s.SI]:"+386##-###-###",[s.SK]:"+421(###) ###-###",[s.SL]:"+232##-######",[s.SM]:"+378####-######",[s.SN]:"+221##-###-####",[s.SO]:"+252##-###-###",[s.SR]:"+597###-####",[s.ST]:"+239##-#####",[s.SV]:"+503##-##-####",[s.SX]:"+1(721) ###-####",[s.SY]:"+963##-####-###",[s.SZ]:"+268##-##-####",[s.TC]:"+1(649) ###-####",[s.TD]:"+235##-##-##-##",[s.TG]:"+228##-###-###",[s.TH]:"+66##-###-####",[s.TJ]:"+992##-###-####",[s.TL]:"+670###-#####",[s.TM]:"+993#-###-####",[s.TN]:"+216##-###-###",[s.TO]:"+676#####",[s.TR]:"+90(###) ###-####",[s.TT]:"+1(868) ###-####",[s.TW]:"+886#-####-####",[s.TZ]:"+255##-###-####",[s.UA]:"+380(##) ###-##-##",[s.UG]:"+256(###) ###-###",[s.US]:"+1(###) ###-####",[s.UY]:"+598#-###-##-##",[s.UZ]:"+998##-###-####",[s.VC]:"+1(784) ###-####",[s.VE]:"+58(###) ###-####",[s.VG]:"+1(284)###-####",[s.VN]:"+84(###) ####-###",[s.VU]:"+678##-#####",[s.WS]:"+685##-####",[s.XK]:"+383##-###-###",[s.YE]:"+967###-###-###",[s.YT]:"+262 ## ## ## ## ##",[s.ZA]:"+27##-###-####",[s.ZM]:"+260##-###-####",[s.ZW]:"+263#-######"},J_=Z(Bu);var wo=new Ke("[TUI_DATE_VALUE_TRANSFORMER]"),ev=new Ke("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),tv=new Ke("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),iv=L(ne("prompt")),nv=L(ne("cancel")),ov=L(ne("done")),rv=L(ne("more")),av=L(ne("hide")),sv=L(ne("showAll")),lv=L(ne("otherDate")),uv=L(ne("mobileCalendarTexts")),cv=L(ne("range")),dv=L(ne("countTexts")),pv=L(ne("time")),hs=L(ne("dateTexts")),mv=L(ne("digitalInformationUnits")),hv=L(ne("copyTexts")),gv=L(ne("passwordTexts")),fv=L(ne("shortCalendarMonths")),_v=L(ne("fileTexts")),vv=L(ne("pagination")),Cv=L(ne("inputFileTexts")),Tv=L(ne("multiSelectTexts")),Mv=L(ne("countries")),Uu={icon:({$implicit:t})=>t==="s"?"tuiIconCalendar":"tuiIconCalendarLarge",min:Se,max:Ve,nativePicker:!1},gs=Z(Uu);var $u={stringify:tr,identityMatcher:ir,disabledItemHandler:ge},bv=Z($u);var fs=new Ke("[TUI_MOBILE_CALENDAR]"),yv=new Ke("[TUI_MONTH_FORMATTER]"),Dv=Z(24),Ov=Z({});var ys=t=>t.querySelector("input,textarea")||t,_t={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},xo=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let n=this.past.pop();n&&this.now&&(this.future.push(this.now),this.updateElement(n,"historyUndo"))}redo(){let n=this.future.pop();n&&this.now&&(this.past.push(this.now),this.updateElement(n,"historyRedo"))}updateHistory(n){if(!this.now){this.now=n;return}let e=this.now.value!==n.value,i=this.now.selection.some((o,r)=>o!==n.selection[r]);!e&&!i||(e&&(this.past.push(this.now),this.future=[]),this.now=n)}updateElement(n,e){this.now=n,this.updateElementState(n,{inputType:e,data:null})}};function Wu(t,...n){return n.every(({value:e})=>e===t.value)}function Yu(t,...n){return n.every(({value:e,selection:i})=>e===t.value&&i[0]===t.selection[0]&&i[1]===t.selection[1])}function Gu({value:t,selection:n},e,i){let[o,r]=n,a=typeof i=="function"?i({value:t,selection:n}):i;return{value:t,selection:a==="replace"?[o,o+e.length]:[o,r]}}function Gn(t){return typeof t=="string"}function _s(t,n,e,i){let o="";for(let r=n.length;r{let o=n[i];return Gn(o)?e===o:e.match(o)}):n.test(t)}function Ku(t,n,e){let i=null,o=null,r=Array.from(t.value).reduce((c,d,C)=>{let D=_s(n,c,d,e),P=c+D,k=n[P.length];return Gn(k)?P+k:d.match(k)?(i===null&&C>=t.selection[0]&&(i=P.length),o===null&&C>=t.selection[1]&&(o=P.length),P+d):P},""),a=_s(n,r,"",e);return{value:Ds(r+a,n)?r+a:r,selection:[i??r.length,o??r.length]}}function Qu({value:t,selection:n},e){let[i,o]=n,r=i,a=o;return{value:Array.from(t).reduce((d,C,D)=>{let P=d+C;return i===D&&(r=d.length),o===D&&(a=d.length),P.match(e)?P:d},""),selection:[r,a]}}function $n(t,n,e=null){if(Ds(t.value,n))return t;let{value:i,selection:o}=Array.isArray(n)?Ku(t,n,e):Qu(t,n);return{selection:o,value:Array.isArray(n)?i.slice(0,n.length):i}}function vs(t,n){if(!Array.isArray(n))return t;let[e,i]=t.selection,o=[],r=Array.from(t.value).reduce((a,c,d)=>{let C=n[d];return d===e&&o.push(a.length),d===i&&o.push(a.length),Gn(C)&&C===c?a:a+c},"");return o.length<2&&o.push(...new Array(2-o.length).fill(r.length)),{value:r,selection:[o[0],o[1]]}}var Pi=class{constructor(n,e){this.initialElementState=n,this.maskOptions=e,this.value="",this.selection=[0,0];let{value:i,selection:o}=$n(n,this.getMaskExpression(n));this.value=i,this.selection=o}addCharacters([n,e],i){let{value:o}=this,r=this.getMaskExpression({value:o.slice(0,n)+i+o.slice(e),selection:[n+i.length,n+i.length]}),a={value:o,selection:[n,e]},c=vs(a,r),[d,C]=Gu(c,i,this.maskOptions.overwriteMode).selection,D=c.value.slice(0,d)+i,P=D.length,k=$n({value:D+c.value.slice(C),selection:[P,P]},r,a);if(o.slice(0,d)===$n({value:D,selection:[P,P]},r,a).value||Yu(this,k))throw new Error("Invalid mask value");this.value=k.value,this.selection=k.selection}deleteCharacters([n,e]){if(n===e||!e)return;let{value:i}=this,o=this.getMaskExpression({value:i.slice(0,n)+i.slice(e),selection:[n,n]}),r={value:i,selection:[n,e]},a=vs(r,o),[c,d]=a.selection,C=a.value.slice(0,c)+a.value.slice(d),D=$n({value:C,selection:[c,c]},o,r);this.value=D.value,this.selection=D.selection}getMaskExpression(n){let{mask:e}=this.maskOptions;return typeof e=="function"?e(n):e}},Io=class{constructor(n){this.element=n,this.listeners=[]}listen(n,e,i){let o=e;this.element.addEventListener(n,o,i),this.listeners.push(()=>this.element.removeEventListener(n,o))}destroy(){this.listeners.forEach(n=>n())}};function Oi(t,n,e){return t.ctrlKey===!!(n&1)&&t.altKey===!!(n&2)&&t.shiftKey===!!(n&4)&&t.metaKey===!!(n&8)&&t.keyCode===e}function Xu(t){return Oi(t,1,89)||Oi(t,5,90)||Oi(t,12,90)}function Zu(t){return Oi(t,1,90)||Oi(t,8,90)}function qu(t){return"onbeforeinput"in t}function Ju({key:t,ctrlKey:n,metaKey:e,altKey:i}){let o=n||e||i,r=/^.$/u.test(t);return!o&&t!=="Backspace"&&r}function ec({value:t,selection:n},e){let[i,o]=n;if(i!==o)return[i,o];let r=e?t.slice(i).indexOf(` `)+1||t.length:t.slice(0,o).lastIndexOf(` `)+1;return[e?i:r,e?r:o]}function Cs({value:t,selection:n},e){let[i,o]=n;return i!==o?[i,o]:(e?[i,o+1]:[i-1,o]).map(a=>Math.min(Math.max(a,0),t.length))}var Ts=/\s+$/g,Ms=/^\s+/g,bs=/\s/;function tc({value:t,selection:n},e){let[i,o]=n;if(i!==o)return[i,o];if(e){let d=t.slice(i),[C]=d.match(Ms)||[""],D=d.replace(Ms,"").search(bs);return[i,D!==-1?i+C.length+D:t.length]}let r=t.slice(0,o),[a]=r.match(Ts)||[""],c=r.replace(Ts,"").split("").reverse().findIndex(d=>d.match(bs));return[c!==-1?o-a.length-c:0,o]}function Wn(t=[]){return(n,...e)=>t.reduce((i,o)=>Object.assign(Object.assign({},i),o(i,...e)),n)}function ko(t,n){let e=Object.assign(Object.assign({},_t),n),i=Wn(e.preprocessors),o=Wn(e.postprocessors),r=typeof t=="string"?{value:t,selection:[0,0]}:t,{elementState:a}=i({elementState:r,data:""},"validation"),c=new Pi(a,e),{value:d,selection:C}=o(c,r);return typeof t=="string"?d:{value:d,selection:C}}var Yn=class extends xo{constructor(n,e){super(),this.element=n,this.maskitoOptions=e,this.isTextArea=this.element.nodeName==="TEXTAREA",this.eventListener=new Io(this.element),this.options=Object.assign(Object.assign({},_t),this.maskitoOptions),this.preprocessor=Wn(this.options.preprocessors),this.postprocessor=Wn(this.options.postprocessors),this.teardowns=this.options.plugins.map(i=>i(this.element,this.options)),this.ensureValueFitsMask(),this.updateHistory(this.elementState),this.eventListener.listen("keydown",i=>{if(Xu(i))return i.preventDefault(),this.redo();if(Zu(i))return i.preventDefault(),this.undo()}),qu(n)?this.eventListener.listen("beforeinput",i=>{let o=i.inputType.includes("Forward");switch(this.updateHistory(this.elementState),i.inputType){case"historyUndo":return i.preventDefault(),this.undo();case"historyRedo":return i.preventDefault(),this.redo();case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:i,isForward:o,selection:Cs(this.elementState,o)});case"deleteWordForward":case"deleteWordBackward":return this.handleDelete({event:i,isForward:o,selection:tc(this.elementState,o),force:!0});case"deleteSoftLineBackward":case"deleteSoftLineForward":case"deleteHardLineBackward":case"deleteHardLineForward":return this.handleDelete({event:i,isForward:o,selection:ec(this.elementState,o),force:!0});case"insertCompositionText":return;case"insertLineBreak":return this.handleEnter(i);case"insertFromPaste":case"insertText":case"insertFromDrop":default:return this.handleInsert(i,i.data||"")}}):(this.eventListener.listen("keydown",i=>this.handleKeydown(i)),this.eventListener.listen("paste",i=>{var o;return this.handleInsert(i,((o=i.clipboardData)===null||o===void 0?void 0:o.getData("text/plain"))||"")})),this.eventListener.listen("input",({inputType:i})=>{i!=="insertCompositionText"&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))}),this.eventListener.listen("compositionend",()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)})}get elementState(){let{value:n,selectionStart:e,selectionEnd:i}=this.element;return{value:n,selection:[e||0,i||0]}}get maxLength(){let{maxLength:n}=this.element;return n===-1?1/0:n}destroy(){this.eventListener.destroy(),this.teardowns.forEach(n=>n==null?void 0:n())}updateElementState({value:n,selection:e},i={inputType:"insertText",data:null}){let o=this.elementState.value;this.updateValue(n),this.updateSelectionRange(e),o!==n&&this.dispatchInputEvent(i)}updateSelectionRange([n,e]){var i,o;(this.element.selectionStart!==n||this.element.selectionEnd!==e)&&((o=(i=this.element).setSelectionRange)===null||o===void 0||o.call(i,n,e))}updateValue(n){this.element.value=n}ensureValueFitsMask(){this.updateElementState(ko(this.elementState,this.options))}dispatchInputEvent(n={inputType:"insertText",data:null}){let e=typeof window<"u"?window:globalThis;e!=null&&e.InputEvent&&this.element.dispatchEvent(new InputEvent("input",Object.assign(Object.assign({},n),{bubbles:!0,cancelable:!1})))}handleKeydown(n){let e=n.key,i=e==="Delete";switch(e){case"Backspace":case"Delete":return this.handleDelete({event:n,isForward:i,selection:Cs(this.elementState,i)});case"Enter":return this.handleEnter(n)}Ju(n)&&this.handleInsert(n,e)}handleDelete({event:n,selection:e,isForward:i,force:o=!1}){let r={value:this.elementState.value,selection:e},[a,c]=r.selection,{elementState:d}=this.preprocessor({elementState:r,data:""},i?"deleteForward":"deleteBackward"),C=new Pi(d,this.options),[D,P]=d.selection;C.deleteCharacters([D,P]);let k=this.postprocessor(C,r);if(r.value.slice(0,a)+r.value.slice(c)===k.value&&!o)return;if(n.preventDefault(),Wu(r,d,C,k))return this.updateSelectionRange(i?[P,P]:[D,D]);let G=i?"deleteContentForward":"deleteContentBackward";this.updateElementState(k,{inputType:"inputType"in n?n.inputType:G,data:null}),this.updateHistory(k)}handleInsert(n,e){let i=this.elementState,{elementState:o,data:r=e}=this.preprocessor({data:e,elementState:i},"insert"),a=new Pi(o,this.options);try{a.addCharacters(o.selection,r)}catch{return n.preventDefault()}let[c,d]=o.selection,C=o.value.slice(0,c)+e+o.value.slice(d),D=this.postprocessor(a,i);if(D.value.length>this.maxLength)return n.preventDefault();C!==D.value&&(n.preventDefault(),this.updateElementState(D,{data:e,inputType:"inputType"in n?n.inputType:"insertText"}),this.updateHistory(D))}handleEnter(n){this.isTextArea&&this.handleInsert(n,` @@ -6,4 +6,4 @@ import{$,$a as Qo,$b as Bi,$c as ro,A as vt,Aa as Rt,Ac as ie,Ad as en,Ae as ot, `),g(),m(4,"tui-input-tag",3),He("ngModelChange",function(d){return f(a),Ae(r.tags,d)||(r.tags=d),_(d)}),g(),T(5,Fd,1,1,"ng-template",null,0,_e),m(7,"div",4)(8,"div",5)(9,"tui-input-date",6),He("ngModelChange",function(d){return f(a),Ae(r.date,d)||(r.date=d),_(d)}),v("click.capture.stop",function(){return f(a),_(0)})("keydown.capture.stop",function(){return f(a),_(0)})("mousedown.capture.stop",function(){return f(a),_(0)}),W(10," Choose date "),g(),m(11,"tui-calendar",7),v("dayClick",function(d){return f(a),_(r.onDay(d))})("event.prevent.silent",function(){return f(a),_(0)}),g()(),m(12,"div"),T(13,Ad,2,2,"tui-checkbox-labeled",8),g(),m(14,"div",9)(15,"label")(16,"tui-toggle",10),He("ngModelChange",function(d){return f(a),Ae(r.notification,d)||(r.notification=d),_(d)}),g(),W(17," Push notification "),g(),m(18,"input",11),He("ngModelChange",function(d){return f(a),Ae(r.slider,d)||(r.slider=d),_(d)}),g(),m(19,"div",12)(20,"button",13),v("click",function(){return f(a),_(r.slider=0)}),g(),I(21,"button",14),m(22,"button",15),v("click",function(){f(a);let d=te(24);return _(r.call(d))}),g()()()(),T(23,Hd,8,0,"ng-template",null,1,_e)(25,Rd,7,0,"tui-push",16)}if(o&2){let a=te(6);p(4),u("tuiHintContent",a)("tuiTextfieldLabelOutside",!0),Fe("ngModel",r.tags),p(5),Fe("ngModel",r.date),p(2),u("tuiDropdownOpen",!1)("value",r.date),p(2),u("ngForOf",r.labels),p(3),u("showIcons",!0),Fe("ngModel",r.notification),p(2),u("max",140),Fe("ngModel",r.slider),p(7),u("tuiPush",r.notification)}},dependencies:[z,Gt,et,qe,Zo,Je,qo,Re,Gs,Ys,Zs,Xs,zn,Nn,Rn,Do,Us,js,Bs,Es,ks,_n,fn,An,Et,Ks,Fo,Te,Ce,ta,qr,Jr,ea,ai,ri,En,Mi,na],styles:[`.title{font-size:3.5rem;line-height:4.0625rem;margin:0}.t-overlay{display:none!important}.flex{display:flex}.date{width:18rem;margin-right:2.8125rem}.calendar{box-shadow:var(--tui-shadow-dropdown);border-radius:var(--tui-radius-m);border:.0625rem solid var(--tui-base-03);margin-top:.25rem;width:18rem;box-sizing:border-box;height:auto}.controls{flex:1;margin-left:2.8125rem}.icons{display:flex;justify-content:space-between}.button[data-size][data-shape],.error[data-size][data-shape]{transition-property:color,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-base-02);color:var(--tui-primary)}.button[data-size][data-shape]:hover,.error[data-size][data-shape]:hover,.button[data-size][data-shape]:active,.error[data-size][data-shape]:active{background:var(--tui-base-03);color:var(--tui-primary-hover)}.error[data-size][data-shape]{color:var(--tui-negative)}.error[data-size][data-shape]:hover,.error[data-size][data-shape]:active{color:var(--tui-negative-hover)}tui-dialog[data-appearance=call][data-size]{border-radius:.25rem;width:25rem;padding:0;border:none;margin:1.25rem auto}tui-dialog[data-appearance=call][data-size]>.t-content{padding:.5rem 1rem;box-shadow:0 0 .1875rem #1f1f1f;--border-width: .1875rem}tui-dialog[data-appearance=call][data-size]>.t-content:after{position:absolute;content:"";top:calc(-1 * var(--border-width));left:calc(-1 * var(--border-width));z-index:-1;width:calc(100% + var(--border-width) * 2);height:calc(100% + var(--border-width) * 2);background:linear-gradient(60deg,#5f86f2,#a65ff2,#f25fd0,#f25f61,#f2cb5f,#abf25f,#5ff281,#5ff2f0);background-size:300% 300%;background-position:0 50%;border-radius:calc(2 * var(--border-width));animation:moveGradient 4s alternate infinite}tui-dialog[data-appearance=call][data-size]>.t-filler,tui-dialog[data-appearance=call][data-size]:after{display:none}tui-dialog[data-appearance=call][data-size] .call{display:flex;align-items:center;justify-content:space-between}tui-dialog[data-appearance=call][data-size] .person{display:flex;align-items:center;gap:.625rem}tui-dialog[data-appearance=call][data-size] .person img{width:2.25rem;border-radius:.625rem;border:.0625rem solid var(--tui-base-05)}tui-dialog[data-appearance=call][data-size] .missed,tui-dialog[data-appearance=call][data-size] .income{border-radius:50%;color:#fff}tui-dialog[data-appearance=call][data-size] .missed [data-appearance=custom]{background:#d23a47;transform:rotate(135deg)}tui-dialog[data-appearance=call][data-size] .income [data-appearance=custom]{background:#27bb64}tui-dialog[data-appearance=call][data-size] .buttons{display:flex;gap:.625rem}@keyframes moveGradient{50%{background-position:100% 50%}} /*# sourceMappingURL=home.component-EJSMLVVN.css.map */ `],encapsulation:2,changeDetection:0});let t=n;return t})();export{IT as default}; -//# sourceMappingURL=chunk-TCVSCQDS.js.map +//# sourceMappingURL=chunk-B6556NEC.js.map diff --git a/chunk-TCVSCQDS.js.map b/chunk-B6556NEC.js.map similarity index 100% rename from chunk-TCVSCQDS.js.map rename to chunk-B6556NEC.js.map diff --git a/chunk-ZMRV6PSF.js b/chunk-GH5PDYR7.js similarity index 62% rename from chunk-ZMRV6PSF.js rename to chunk-GH5PDYR7.js index b95b653c..6989e32f 100644 --- a/chunk-ZMRV6PSF.js +++ b/chunk-GH5PDYR7.js @@ -1,11 +1,11 @@ -var uI=Object.create;var ld=Object.defineProperty,dI=Object.defineProperties,fI=Object.getOwnPropertyDescriptor,hI=Object.getOwnPropertyDescriptors,pI=Object.getOwnPropertyNames,Ha=Object.getOwnPropertySymbols,mI=Object.getPrototypeOf,ud=Object.prototype.hasOwnProperty,$g=Object.prototype.propertyIsEnumerable;var Bg=(e,t,n)=>t in e?ld(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||(t={}))ud.call(t,n)&&Bg(e,n,t[n]);if(Ha)for(var n of Ha(t))$g.call(t,n)&&Bg(e,n,t[n]);return e},Ve=(e,t)=>dI(e,hI(t));var za=(e,t)=>{var n={};for(var r in e)ud.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ha)for(var r of Ha(e))t.indexOf(r)<0&&$g.call(e,r)&&(n[r]=e[r]);return n};var gI=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vI=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pI(t))!ud.call(e,i)&&i!==n&&ld(e,i,{get:()=>t[i],enumerable:!(r=fI(t,i))||r.enumerable});return e};var yI=(e,t,n)=>(n=e!=null?uI(mI(e)):{},vI(t||!e||!e.__esModule?ld(n,"default",{value:e,enumerable:!0}):n,e));var Hg=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(l){i(l)}},s=c=>{try{a(n.throw(c))}catch(l){i(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(e,t)).next())});var Lb=gI((sg,ag)=>{"use strict";(function(e,t){typeof sg=="object"&&typeof ag<"u"?ag.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.DOMPurify=t())})(sg,function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object,{freeze:o,seal:s,create:a}=Object,{apply:c,construct:l}=typeof Reflect<"u"&&Reflect;o||(o=function(L){return L}),s||(s=function(L){return L}),c||(c=function(L,Me,_e){return L.apply(Me,_e)}),l||(l=function(L,Me){return new L(...Me)});let u=de(Array.prototype.forEach),d=de(Array.prototype.pop),f=de(Array.prototype.push),m=de(String.prototype.toLowerCase),v=de(String.prototype.toString),_=de(String.prototype.match),N=de(String.prototype.replace),x=de(String.prototype.indexOf),ge=de(String.prototype.trim),ee=de(Object.prototype.hasOwnProperty),H=de(RegExp.prototype.test),Et=ct(TypeError),nt=de(Number.isNaN);function de(Ee){return function(L){for(var Me=arguments.length,_e=new Array(Me>1?Me-1:0),Mt=1;Mt2&&arguments[2]!==void 0?arguments[2]:m;t&&t(Ee,null);let _e=L.length;for(;_e--;){let Mt=L[_e];if(typeof Mt=="string"){let cr=Me(Mt);cr!==Mt&&(n(L)||(L[_e]=cr),Mt=cr)}Ee[Mt]=!0}return Ee}function Kt(Ee){for(let L=0;L/gm),qu=s(/\${[\w\W]*}/gm),ht=s(/^data-[\-\w.\u00B7-\uFFFF]/),ar=s(/^aria-[\-\w]+$/),At=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$i=s(/^(?:\w+script|data):/i),ts=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cg=s(/^html$/i),jb=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var lg=Object.freeze({__proto__:null,MUSTACHE_EXPR:$e,ERB_EXPR:Fa,TMPLIT_EXPR:qu,DATA_ATTR:ht,ARIA_ATTR:ar,IS_ALLOWED_URI:At,IS_SCRIPT_OR_DATA:$i,ATTR_WHITESPACE:ts,DOCTYPE_NAME:cg,CUSTOM_ELEMENT:jb});let Qr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Vb=function(){return typeof window>"u"?null:window},Ub=function(L,Me){if(typeof L!="object"||typeof L.createPolicy!="function")return null;let _e=null,Mt="data-tt-policy-suffix";Me&&Me.hasAttribute(Mt)&&(_e=Me.getAttribute(Mt));let cr="dompurify"+(_e?"#"+_e:"");try{return L.createPolicy(cr,{createHTML(Hi){return Hi},createScriptURL(Hi){return Hi}})}catch{return console.warn("TrustedTypes policy "+cr+" could not be created."),null}};function ug(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vb(),L=k=>ug(k);if(L.version="3.1.3",L.removed=[],!Ee||!Ee.document||Ee.document.nodeType!==Qr.document)return L.isSupported=!1,L;let{document:Me}=Ee,_e=Me,Mt=_e.currentScript,{DocumentFragment:cr,HTMLTemplateElement:Hi,Node:Yu,Element:dg,NodeFilter:ns,NamedNodeMap:$b=Ee.NamedNodeMap||Ee.MozNamedAttrMap,HTMLFormElement:Hb,DOMParser:zb,trustedTypes:La}=Ee,ka=dg.prototype,Gb=kn(ka,"cloneNode"),Wb=kn(ka,"nextSibling"),qb=kn(ka,"childNodes"),rs=kn(ka,"parentNode");if(typeof Hi=="function"){let k=Me.createElement("template");k.content&&k.content.ownerDocument&&(Me=k.content.ownerDocument)}let Ot,is="",{implementation:Zu,createNodeIterator:Yb,createDocumentFragment:Zb,getElementsByTagName:Kb}=Me,{importNode:Qb}=_e,Vn={};L.isSupported=typeof e=="function"&&typeof rs=="function"&&Zu&&Zu.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ku,ERB_EXPR:Qu,TMPLIT_EXPR:Xu,DATA_ATTR:Xb,ARIA_ATTR:Jb,IS_SCRIPT_OR_DATA:eI,ATTR_WHITESPACE:fg,CUSTOM_ELEMENT:tI}=lg,{IS_ALLOWED_URI:hg}=lg,pt=null,pg=B({},[...jn,...Ui,...Bi,...F,...ve]),mt=null,mg=B({},[...rt,...jt,...Ct,...Qt]),it=Object.seal(a(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}})),os=null,Ju=null,gg=!0,ed=!0,vg=!1,yg=!0,zi=!1,td=!0,Xr=!1,nd=!1,rd=!1,Gi=!1,ja=!1,Va=!1,_g=!0,Dg=!1,nI="user-content-",id=!0,ss=!1,Wi={},qi=null,Eg=B({},["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"]),wg=null,bg=B({},["audio","video","img","source","image","track"]),od=null,Ig=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ua="http://www.w3.org/1998/Math/MathML",Ba="http://www.w3.org/2000/svg",lr="http://www.w3.org/1999/xhtml",Yi=lr,sd=!1,ad=null,rI=B({},[Ua,Ba,lr],v),as=null,iI=["application/xhtml+xml","text/html"],oI="text/html",gt=null,Zi=null,Cg=255,sI=Me.createElement("form"),Mg=function(p){return p instanceof RegExp||p instanceof Function},cd=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Zi&&Zi===p)){if((!p||typeof p!="object")&&(p={}),p=un(p),as=iI.indexOf(p.PARSER_MEDIA_TYPE)===-1?oI:p.PARSER_MEDIA_TYPE,gt=as==="application/xhtml+xml"?v:m,pt=ee(p,"ALLOWED_TAGS")?B({},p.ALLOWED_TAGS,gt):pg,mt=ee(p,"ALLOWED_ATTR")?B({},p.ALLOWED_ATTR,gt):mg,ad=ee(p,"ALLOWED_NAMESPACES")?B({},p.ALLOWED_NAMESPACES,v):rI,od=ee(p,"ADD_URI_SAFE_ATTR")?B(un(Ig),p.ADD_URI_SAFE_ATTR,gt):Ig,wg=ee(p,"ADD_DATA_URI_TAGS")?B(un(bg),p.ADD_DATA_URI_TAGS,gt):bg,qi=ee(p,"FORBID_CONTENTS")?B({},p.FORBID_CONTENTS,gt):Eg,os=ee(p,"FORBID_TAGS")?B({},p.FORBID_TAGS,gt):{},Ju=ee(p,"FORBID_ATTR")?B({},p.FORBID_ATTR,gt):{},Wi=ee(p,"USE_PROFILES")?p.USE_PROFILES:!1,gg=p.ALLOW_ARIA_ATTR!==!1,ed=p.ALLOW_DATA_ATTR!==!1,vg=p.ALLOW_UNKNOWN_PROTOCOLS||!1,yg=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,zi=p.SAFE_FOR_TEMPLATES||!1,td=p.SAFE_FOR_XML!==!1,Xr=p.WHOLE_DOCUMENT||!1,Gi=p.RETURN_DOM||!1,ja=p.RETURN_DOM_FRAGMENT||!1,Va=p.RETURN_TRUSTED_TYPE||!1,rd=p.FORCE_BODY||!1,_g=p.SANITIZE_DOM!==!1,Dg=p.SANITIZE_NAMED_PROPS||!1,id=p.KEEP_CONTENT!==!1,ss=p.IN_PLACE||!1,hg=p.ALLOWED_URI_REGEXP||At,Yi=p.NAMESPACE||lr,it=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&Mg(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(it.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Mg(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(it.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(it.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),zi&&(ed=!1),ja&&(Gi=!0),Wi&&(pt=B({},ve),mt=[],Wi.html===!0&&(B(pt,jn),B(mt,rt)),Wi.svg===!0&&(B(pt,Ui),B(mt,jt),B(mt,Qt)),Wi.svgFilters===!0&&(B(pt,Bi),B(mt,jt),B(mt,Qt)),Wi.mathMl===!0&&(B(pt,F),B(mt,Ct),B(mt,Qt))),p.ADD_TAGS&&(pt===pg&&(pt=un(pt)),B(pt,p.ADD_TAGS,gt)),p.ADD_ATTR&&(mt===mg&&(mt=un(mt)),B(mt,p.ADD_ATTR,gt)),p.ADD_URI_SAFE_ATTR&&B(od,p.ADD_URI_SAFE_ATTR,gt),p.FORBID_CONTENTS&&(qi===Eg&&(qi=un(qi)),B(qi,p.FORBID_CONTENTS,gt)),id&&(pt["#text"]=!0),Xr&&B(pt,["html","head","body"]),pt.table&&(B(pt,["tbody"]),delete os.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Et('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Et('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ot=p.TRUSTED_TYPES_POLICY,is=Ot.createHTML("")}else Ot===void 0&&(Ot=Ub(La,Mt)),Ot!==null&&typeof is=="string"&&(is=Ot.createHTML(""));o&&o(p),Zi=p}},Sg=B({},["mi","mo","mn","ms","mtext"]),Tg=B({},["foreignobject","annotation-xml"]),aI=B({},["title","style","font","a","script"]),Ag=B({},[...Ui,...Bi,...O]),Og=B({},[...F,...U]),cI=function(p){let D=rs(p);(!D||!D.tagName)&&(D={namespaceURI:Yi,tagName:"template"});let P=m(p.tagName),re=m(D.tagName);return ad[p.namespaceURI]?p.namespaceURI===Ba?D.namespaceURI===lr?P==="svg":D.namespaceURI===Ua?P==="svg"&&(re==="annotation-xml"||Sg[re]):!!Ag[P]:p.namespaceURI===Ua?D.namespaceURI===lr?P==="math":D.namespaceURI===Ba?P==="math"&&Tg[re]:!!Og[P]:p.namespaceURI===lr?D.namespaceURI===Ba&&!Tg[re]||D.namespaceURI===Ua&&!Sg[re]?!1:!Og[P]&&(aI[P]||!Ag[P]):!!(as==="application/xhtml+xml"&&ad[p.namespaceURI]):!1},dn=function(p){f(L.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},$a=function(p,D){try{f(L.removed,{attribute:D.getAttributeNode(p),from:D})}catch{f(L.removed,{attribute:null,from:D})}if(D.removeAttribute(p),p==="is"&&!mt[p])if(Gi||ja)try{dn(D)}catch{}else try{D.setAttribute(p,"")}catch{}},Ng=function(p){let D=null,P=null;if(rd)p=""+p;else{let wt=_(p,/^[\r\n\t ]+/);P=wt&&wt[0]}as==="application/xhtml+xml"&&Yi===lr&&(p=''+p+"");let re=Ot?Ot.createHTML(p):p;if(Yi===lr)try{D=new zb().parseFromString(re,as)}catch{}if(!D||!D.documentElement){D=Zu.createDocument(Yi,"template",null);try{D.documentElement.innerHTML=sd?is:re}catch{}}let St=D.body||D.documentElement;return p&&P&&St.insertBefore(Me.createTextNode(P),St.childNodes[0]||null),Yi===lr?Kb.call(D,Xr?"html":"body")[0]:Xr?D.documentElement:St},xg=function(p){return Yb.call(p.ownerDocument||p,p,ns.SHOW_ELEMENT|ns.SHOW_COMMENT|ns.SHOW_TEXT|ns.SHOW_PROCESSING_INSTRUCTION|ns.SHOW_CDATA_SECTION,null)},Pg=function(p){return p instanceof Hb&&(typeof p.__depth<"u"&&typeof p.__depth!="number"||typeof p.__removalCount<"u"&&typeof p.__removalCount!="number"||typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof $b)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Rg=function(p){return typeof Yu=="function"&&p instanceof Yu},ur=function(p,D,P){Vn[p]&&u(Vn[p],re=>{re.call(L,D,P,Zi)})},Fg=function(p){let D=null;if(ur("beforeSanitizeElements",p,null),Pg(p))return dn(p),!0;let P=gt(p.nodeName);if(ur("uponSanitizeElement",p,{tagName:P,allowedTags:pt}),p.hasChildNodes()&&!Rg(p.firstElementChild)&&H(/<[/\w]/g,p.innerHTML)&&H(/<[/\w]/g,p.textContent)||p.nodeType===Qr.progressingInstruction||td&&p.nodeType===Qr.comment&&H(/<[/\w]/g,p.data))return dn(p),!0;if(!pt[P]||os[P]){if(!os[P]&&kg(P)&&(it.tagNameCheck instanceof RegExp&&H(it.tagNameCheck,P)||it.tagNameCheck instanceof Function&&it.tagNameCheck(P)))return!1;if(id&&!qi[P]){let re=rs(p)||p.parentNode,St=qb(p)||p.childNodes;if(St&&re){let wt=St.length;for(let Vt=wt-1;Vt>=0;--Vt){let Ut=Gb(St[Vt],!0);Ut.__removalCount=(p.__removalCount||0)+1,re.insertBefore(Ut,Wb(p))}}}return dn(p),!0}return p instanceof dg&&!cI(p)||(P==="noscript"||P==="noembed"||P==="noframes")&&H(/<\/no(script|embed|frames)/i,p.innerHTML)?(dn(p),!0):(zi&&p.nodeType===Qr.text&&(D=p.textContent,u([Ku,Qu,Xu],re=>{D=N(D,re," ")}),p.textContent!==D&&(f(L.removed,{element:p.cloneNode()}),p.textContent=D)),ur("afterSanitizeElements",p,null),!1)},Lg=function(p,D,P){if(_g&&(D==="id"||D==="name")&&(P in Me||P in sI||P==="__depth"||P==="__removalCount"))return!1;if(!(ed&&!Ju[D]&&H(Xb,D))){if(!(gg&&H(Jb,D))){if(!mt[D]||Ju[D]){if(!(kg(p)&&(it.tagNameCheck instanceof RegExp&&H(it.tagNameCheck,p)||it.tagNameCheck instanceof Function&&it.tagNameCheck(p))&&(it.attributeNameCheck instanceof RegExp&&H(it.attributeNameCheck,D)||it.attributeNameCheck instanceof Function&&it.attributeNameCheck(D))||D==="is"&&it.allowCustomizedBuiltInElements&&(it.tagNameCheck instanceof RegExp&&H(it.tagNameCheck,P)||it.tagNameCheck instanceof Function&&it.tagNameCheck(P))))return!1}else if(!od[D]){if(!H(hg,N(P,fg,""))){if(!((D==="src"||D==="xlink:href"||D==="href")&&p!=="script"&&x(P,"data:")===0&&wg[p])){if(!(vg&&!H(eI,N(P,fg,"")))){if(P)return!1}}}}}}return!0},kg=function(p){return p!=="annotation-xml"&&_(p,tI)},jg=function(p){ur("beforeSanitizeAttributes",p,null);let{attributes:D}=p;if(!D)return;let P={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:mt},re=D.length;for(;re--;){let St=D[re],{name:wt,namespaceURI:Vt,value:Ut}=St,cs=gt(wt),Nt=wt==="value"?Ut:ge(Ut);if(P.attrName=cs,P.attrValue=Nt,P.keepAttr=!0,P.forceKeepAttr=void 0,ur("uponSanitizeAttribute",p,P),Nt=P.attrValue,P.forceKeepAttr||($a(wt,p),!P.keepAttr))continue;if(!yg&&H(/\/>/i,Nt)){$a(wt,p);continue}if(td&&H(/((--!?|])>)|<\/(style|title)/i,Nt)){$a(wt,p);continue}zi&&u([Ku,Qu,Xu],Ug=>{Nt=N(Nt,Ug," ")});let Vg=gt(p.nodeName);if(Lg(Vg,cs,Nt)){if(Dg&&(cs==="id"||cs==="name")&&($a(wt,p),Nt=nI+Nt),Ot&&typeof La=="object"&&typeof La.getAttributeType=="function"&&!Vt)switch(La.getAttributeType(Vg,cs)){case"TrustedHTML":{Nt=Ot.createHTML(Nt);break}case"TrustedScriptURL":{Nt=Ot.createScriptURL(Nt);break}}try{Vt?p.setAttributeNS(Vt,wt,Nt):p.setAttribute(wt,Nt),Pg(p)?dn(p):d(L.removed)}catch{}}}ur("afterSanitizeAttributes",p,null)},lI=function k(p){let D=null,P=xg(p);for(ur("beforeSanitizeShadowDOM",p,null);D=P.nextNode();){if(ur("uponSanitizeShadowNode",D,null),Fg(D))continue;let re=rs(D);D.nodeType===Qr.element&&(re&&re.__depth?D.__depth=(D.__removalCount||0)+re.__depth+1:D.__depth=1),(D.__depth>=Cg||D.__depth<0||nt(D.__depth))&&dn(D),D.content instanceof cr&&(D.content.__depth=D.__depth,k(D.content)),jg(D)}ur("afterSanitizeShadowDOM",p,null)};return L.sanitize=function(k){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,P=null,re=null,St=null;if(sd=!k,sd&&(k=""),typeof k!="string"&&!Rg(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw Et("dirty is not a string, aborting")}else throw Et("toString is not a function");if(!L.isSupported)return k;if(nd||cd(p),L.removed=[],typeof k=="string"&&(ss=!1),ss){if(k.nodeName){let Ut=gt(k.nodeName);if(!pt[Ut]||os[Ut])throw Et("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof Yu)D=Ng(""),P=D.ownerDocument.importNode(k,!0),P.nodeType===Qr.element&&P.nodeName==="BODY"||P.nodeName==="HTML"?D=P:D.appendChild(P);else{if(!Gi&&!zi&&!Xr&&k.indexOf("<")===-1)return Ot&&Va?Ot.createHTML(k):k;if(D=Ng(k),!D)return Gi?null:Va?is:""}D&&rd&&dn(D.firstChild);let wt=xg(ss?k:D);for(;re=wt.nextNode();){if(Fg(re))continue;let Ut=rs(re);re.nodeType===Qr.element&&(Ut&&Ut.__depth?re.__depth=(re.__removalCount||0)+Ut.__depth+1:re.__depth=1),(re.__depth>=Cg||re.__depth<0||nt(re.__depth))&&dn(re),re.content instanceof cr&&(re.content.__depth=re.__depth,lI(re.content)),jg(re)}if(ss)return k;if(Gi){if(ja)for(St=Zb.call(D.ownerDocument);D.firstChild;)St.appendChild(D.firstChild);else St=D;return(mt.shadowroot||mt.shadowrootmode)&&(St=Qb.call(_e,St,!0)),St}let Vt=Xr?D.outerHTML:D.innerHTML;return Xr&&pt["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&H(cg,D.ownerDocument.doctype.name)&&(Vt=" -`+Vt),zi&&u([Ku,Qu,Xu],Ut=>{Vt=N(Vt,Ut," ")}),Ot&&Va?Ot.createHTML(Vt):Vt},L.setConfig=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cd(k),nd=!0},L.clearConfig=function(){Zi=null,nd=!1},L.isValidAttribute=function(k,p,D){Zi||cd({});let P=gt(k),re=gt(p);return Lg(P,re,D)},L.addHook=function(k,p){typeof p=="function"&&(Vn[k]=Vn[k]||[],f(Vn[k],p))},L.removeHook=function(k){if(Vn[k])return d(Vn[k])},L.removeHooks=function(k){Vn[k]&&(Vn[k]=[])},L.removeAllHooks=function(){Vn={}},L}var Bb=ug();return Bb})});var zg=null;var dd=1,fd=Symbol("SIGNAL");function be(e){let t=zg;return zg=e,t}var Gg={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function _I(e){if(!(md(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===dd)){if(!e.producerMustRecompute(e)&&!hd(e)){e.dirty=!1,e.lastCleanEpoch=dd;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=dd}}function Wg(e){return e&&(e.nextProducerIndex=0),be(e)}function qg(e,t){if(be(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(md(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function hd(e){Ga(e);for(let t=0;t0}function Ga(e){e.producerNode??(e.producerNode=[]),e.producerIndexOfThis??(e.producerIndexOfThis=[]),e.producerLastReadVersion??(e.producerLastReadVersion=[])}function DI(e){e.liveConsumerNode??(e.liveConsumerNode=[]),e.liveConsumerIndexOfThis??(e.liveConsumerIndexOfThis=[])}function EI(){throw new Error}var wI=EI;function Zg(e){wI=e}function $(e){return typeof e=="function"}function Ki(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Wa=Ki(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +var lI=Object.create;var ud=Object.defineProperty,dI=Object.defineProperties,fI=Object.getOwnPropertyDescriptor,hI=Object.getOwnPropertyDescriptors,pI=Object.getOwnPropertyNames,Ha=Object.getOwnPropertySymbols,mI=Object.getPrototypeOf,ld=Object.prototype.hasOwnProperty,Hg=Object.prototype.propertyIsEnumerable;var $g=(e,t,n)=>t in e?ud(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||(t={}))ld.call(t,n)&&$g(e,n,t[n]);if(Ha)for(var n of Ha(t))Hg.call(t,n)&&$g(e,n,t[n]);return e},Ve=(e,t)=>dI(e,hI(t));var za=(e,t)=>{var n={};for(var r in e)ld.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ha)for(var r of Ha(e))t.indexOf(r)<0&&Hg.call(e,r)&&(n[r]=e[r]);return n};var gI=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vI=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pI(t))!ld.call(e,i)&&i!==n&&ud(e,i,{get:()=>t[i],enumerable:!(r=fI(t,i))||r.enumerable});return e};var yI=(e,t,n)=>(n=e!=null?lI(mI(e)):{},vI(t||!e||!e.__esModule?ud(n,"default",{value:e,enumerable:!0}):n,e));var dd=(e,t,n)=>new Promise((r,i)=>{var o=c=>{try{a(n.next(c))}catch(u){i(u)}},s=c=>{try{a(n.throw(c))}catch(u){i(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((n=n.apply(e,t)).next())});var Lb=gI((ag,cg)=>{"use strict";(function(e,t){typeof ag=="object"&&typeof cg<"u"?cg.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.DOMPurify=t())})(ag,function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object,{freeze:o,seal:s,create:a}=Object,{apply:c,construct:u}=typeof Reflect<"u"&&Reflect;o||(o=function(L){return L}),s||(s=function(L){return L}),c||(c=function(L,Me,_e){return L.apply(Me,_e)}),u||(u=function(L,Me){return new L(...Me)});let l=de(Array.prototype.forEach),d=de(Array.prototype.pop),f=de(Array.prototype.push),m=de(String.prototype.toLowerCase),v=de(String.prototype.toString),_=de(String.prototype.match),N=de(String.prototype.replace),x=de(String.prototype.indexOf),ge=de(String.prototype.trim),ee=de(Object.prototype.hasOwnProperty),H=de(RegExp.prototype.test),Et=ct(TypeError),nt=de(Number.isNaN);function de(Ee){return function(L){for(var Me=arguments.length,_e=new Array(Me>1?Me-1:0),Mt=1;Mt2&&arguments[2]!==void 0?arguments[2]:m;t&&t(Ee,null);let _e=L.length;for(;_e--;){let Mt=L[_e];if(typeof Mt=="string"){let cr=Me(Mt);cr!==Mt&&(n(L)||(L[_e]=cr),Mt=cr)}Ee[Mt]=!0}return Ee}function Kt(Ee){for(let L=0;L/gm),ql=s(/\${[\w\W]*}/gm),ht=s(/^data-[\-\w.\u00B7-\uFFFF]/),ar=s(/^aria-[\-\w]+$/),At=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$i=s(/^(?:\w+script|data):/i),ts=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ug=s(/^html$/i),jb=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var lg=Object.freeze({__proto__:null,MUSTACHE_EXPR:$e,ERB_EXPR:Fa,TMPLIT_EXPR:ql,DATA_ATTR:ht,ARIA_ATTR:ar,IS_ALLOWED_URI:At,IS_SCRIPT_OR_DATA:$i,ATTR_WHITESPACE:ts,DOCTYPE_NAME:ug,CUSTOM_ELEMENT:jb});let Qr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Vb=function(){return typeof window>"u"?null:window},Ub=function(L,Me){if(typeof L!="object"||typeof L.createPolicy!="function")return null;let _e=null,Mt="data-tt-policy-suffix";Me&&Me.hasAttribute(Mt)&&(_e=Me.getAttribute(Mt));let cr="dompurify"+(_e?"#"+_e:"");try{return L.createPolicy(cr,{createHTML(Hi){return Hi},createScriptURL(Hi){return Hi}})}catch{return console.warn("TrustedTypes policy "+cr+" could not be created."),null}};function dg(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vb(),L=k=>dg(k);if(L.version="3.1.3",L.removed=[],!Ee||!Ee.document||Ee.document.nodeType!==Qr.document)return L.isSupported=!1,L;let{document:Me}=Ee,_e=Me,Mt=_e.currentScript,{DocumentFragment:cr,HTMLTemplateElement:Hi,Node:Yl,Element:fg,NodeFilter:ns,NamedNodeMap:$b=Ee.NamedNodeMap||Ee.MozNamedAttrMap,HTMLFormElement:Hb,DOMParser:zb,trustedTypes:La}=Ee,ka=fg.prototype,Gb=kn(ka,"cloneNode"),Wb=kn(ka,"nextSibling"),qb=kn(ka,"childNodes"),rs=kn(ka,"parentNode");if(typeof Hi=="function"){let k=Me.createElement("template");k.content&&k.content.ownerDocument&&(Me=k.content.ownerDocument)}let Ot,is="",{implementation:Zl,createNodeIterator:Yb,createDocumentFragment:Zb,getElementsByTagName:Kb}=Me,{importNode:Qb}=_e,Vn={};L.isSupported=typeof e=="function"&&typeof rs=="function"&&Zl&&Zl.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Kl,ERB_EXPR:Ql,TMPLIT_EXPR:Xl,DATA_ATTR:Xb,ARIA_ATTR:Jb,IS_SCRIPT_OR_DATA:eI,ATTR_WHITESPACE:hg,CUSTOM_ELEMENT:tI}=lg,{IS_ALLOWED_URI:pg}=lg,pt=null,mg=B({},[...jn,...Ui,...Bi,...F,...ve]),mt=null,gg=B({},[...rt,...jt,...Ct,...Qt]),it=Object.seal(a(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}})),os=null,Jl=null,vg=!0,ed=!0,yg=!1,_g=!0,zi=!1,td=!0,Xr=!1,nd=!1,rd=!1,Gi=!1,ja=!1,Va=!1,Dg=!0,Eg=!1,nI="user-content-",id=!0,ss=!1,Wi={},qi=null,wg=B({},["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"]),bg=null,Ig=B({},["audio","video","img","source","image","track"]),od=null,Cg=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ua="http://www.w3.org/1998/Math/MathML",Ba="http://www.w3.org/2000/svg",ur="http://www.w3.org/1999/xhtml",Yi=ur,sd=!1,ad=null,rI=B({},[Ua,Ba,ur],v),as=null,iI=["application/xhtml+xml","text/html"],oI="text/html",gt=null,Zi=null,Mg=255,sI=Me.createElement("form"),Sg=function(p){return p instanceof RegExp||p instanceof Function},cd=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Zi&&Zi===p)){if((!p||typeof p!="object")&&(p={}),p=ln(p),as=iI.indexOf(p.PARSER_MEDIA_TYPE)===-1?oI:p.PARSER_MEDIA_TYPE,gt=as==="application/xhtml+xml"?v:m,pt=ee(p,"ALLOWED_TAGS")?B({},p.ALLOWED_TAGS,gt):mg,mt=ee(p,"ALLOWED_ATTR")?B({},p.ALLOWED_ATTR,gt):gg,ad=ee(p,"ALLOWED_NAMESPACES")?B({},p.ALLOWED_NAMESPACES,v):rI,od=ee(p,"ADD_URI_SAFE_ATTR")?B(ln(Cg),p.ADD_URI_SAFE_ATTR,gt):Cg,bg=ee(p,"ADD_DATA_URI_TAGS")?B(ln(Ig),p.ADD_DATA_URI_TAGS,gt):Ig,qi=ee(p,"FORBID_CONTENTS")?B({},p.FORBID_CONTENTS,gt):wg,os=ee(p,"FORBID_TAGS")?B({},p.FORBID_TAGS,gt):{},Jl=ee(p,"FORBID_ATTR")?B({},p.FORBID_ATTR,gt):{},Wi=ee(p,"USE_PROFILES")?p.USE_PROFILES:!1,vg=p.ALLOW_ARIA_ATTR!==!1,ed=p.ALLOW_DATA_ATTR!==!1,yg=p.ALLOW_UNKNOWN_PROTOCOLS||!1,_g=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,zi=p.SAFE_FOR_TEMPLATES||!1,td=p.SAFE_FOR_XML!==!1,Xr=p.WHOLE_DOCUMENT||!1,Gi=p.RETURN_DOM||!1,ja=p.RETURN_DOM_FRAGMENT||!1,Va=p.RETURN_TRUSTED_TYPE||!1,rd=p.FORCE_BODY||!1,Dg=p.SANITIZE_DOM!==!1,Eg=p.SANITIZE_NAMED_PROPS||!1,id=p.KEEP_CONTENT!==!1,ss=p.IN_PLACE||!1,pg=p.ALLOWED_URI_REGEXP||At,Yi=p.NAMESPACE||ur,it=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&Sg(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(it.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Sg(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(it.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(it.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),zi&&(ed=!1),ja&&(Gi=!0),Wi&&(pt=B({},ve),mt=[],Wi.html===!0&&(B(pt,jn),B(mt,rt)),Wi.svg===!0&&(B(pt,Ui),B(mt,jt),B(mt,Qt)),Wi.svgFilters===!0&&(B(pt,Bi),B(mt,jt),B(mt,Qt)),Wi.mathMl===!0&&(B(pt,F),B(mt,Ct),B(mt,Qt))),p.ADD_TAGS&&(pt===mg&&(pt=ln(pt)),B(pt,p.ADD_TAGS,gt)),p.ADD_ATTR&&(mt===gg&&(mt=ln(mt)),B(mt,p.ADD_ATTR,gt)),p.ADD_URI_SAFE_ATTR&&B(od,p.ADD_URI_SAFE_ATTR,gt),p.FORBID_CONTENTS&&(qi===wg&&(qi=ln(qi)),B(qi,p.FORBID_CONTENTS,gt)),id&&(pt["#text"]=!0),Xr&&B(pt,["html","head","body"]),pt.table&&(B(pt,["tbody"]),delete os.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Et('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Et('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ot=p.TRUSTED_TYPES_POLICY,is=Ot.createHTML("")}else Ot===void 0&&(Ot=Ub(La,Mt)),Ot!==null&&typeof is=="string"&&(is=Ot.createHTML(""));o&&o(p),Zi=p}},Tg=B({},["mi","mo","mn","ms","mtext"]),Ag=B({},["foreignobject","annotation-xml"]),aI=B({},["title","style","font","a","script"]),Og=B({},[...Ui,...Bi,...O]),Ng=B({},[...F,...U]),cI=function(p){let D=rs(p);(!D||!D.tagName)&&(D={namespaceURI:Yi,tagName:"template"});let P=m(p.tagName),re=m(D.tagName);return ad[p.namespaceURI]?p.namespaceURI===Ba?D.namespaceURI===ur?P==="svg":D.namespaceURI===Ua?P==="svg"&&(re==="annotation-xml"||Tg[re]):!!Og[P]:p.namespaceURI===Ua?D.namespaceURI===ur?P==="math":D.namespaceURI===Ba?P==="math"&&Ag[re]:!!Ng[P]:p.namespaceURI===ur?D.namespaceURI===Ba&&!Ag[re]||D.namespaceURI===Ua&&!Tg[re]?!1:!Ng[P]&&(aI[P]||!Og[P]):!!(as==="application/xhtml+xml"&&ad[p.namespaceURI]):!1},dn=function(p){f(L.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},$a=function(p,D){try{f(L.removed,{attribute:D.getAttributeNode(p),from:D})}catch{f(L.removed,{attribute:null,from:D})}if(D.removeAttribute(p),p==="is"&&!mt[p])if(Gi||ja)try{dn(D)}catch{}else try{D.setAttribute(p,"")}catch{}},xg=function(p){let D=null,P=null;if(rd)p=""+p;else{let wt=_(p,/^[\r\n\t ]+/);P=wt&&wt[0]}as==="application/xhtml+xml"&&Yi===ur&&(p=''+p+"");let re=Ot?Ot.createHTML(p):p;if(Yi===ur)try{D=new zb().parseFromString(re,as)}catch{}if(!D||!D.documentElement){D=Zl.createDocument(Yi,"template",null);try{D.documentElement.innerHTML=sd?is:re}catch{}}let St=D.body||D.documentElement;return p&&P&&St.insertBefore(Me.createTextNode(P),St.childNodes[0]||null),Yi===ur?Kb.call(D,Xr?"html":"body")[0]:Xr?D.documentElement:St},Pg=function(p){return Yb.call(p.ownerDocument||p,p,ns.SHOW_ELEMENT|ns.SHOW_COMMENT|ns.SHOW_TEXT|ns.SHOW_PROCESSING_INSTRUCTION|ns.SHOW_CDATA_SECTION,null)},Rg=function(p){return p instanceof Hb&&(typeof p.__depth<"u"&&typeof p.__depth!="number"||typeof p.__removalCount<"u"&&typeof p.__removalCount!="number"||typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof $b)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Fg=function(p){return typeof Yl=="function"&&p instanceof Yl},lr=function(p,D,P){Vn[p]&&l(Vn[p],re=>{re.call(L,D,P,Zi)})},Lg=function(p){let D=null;if(lr("beforeSanitizeElements",p,null),Rg(p))return dn(p),!0;let P=gt(p.nodeName);if(lr("uponSanitizeElement",p,{tagName:P,allowedTags:pt}),p.hasChildNodes()&&!Fg(p.firstElementChild)&&H(/<[/\w]/g,p.innerHTML)&&H(/<[/\w]/g,p.textContent)||p.nodeType===Qr.progressingInstruction||td&&p.nodeType===Qr.comment&&H(/<[/\w]/g,p.data))return dn(p),!0;if(!pt[P]||os[P]){if(!os[P]&&jg(P)&&(it.tagNameCheck instanceof RegExp&&H(it.tagNameCheck,P)||it.tagNameCheck instanceof Function&&it.tagNameCheck(P)))return!1;if(id&&!qi[P]){let re=rs(p)||p.parentNode,St=qb(p)||p.childNodes;if(St&&re){let wt=St.length;for(let Vt=wt-1;Vt>=0;--Vt){let Ut=Gb(St[Vt],!0);Ut.__removalCount=(p.__removalCount||0)+1,re.insertBefore(Ut,Wb(p))}}}return dn(p),!0}return p instanceof fg&&!cI(p)||(P==="noscript"||P==="noembed"||P==="noframes")&&H(/<\/no(script|embed|frames)/i,p.innerHTML)?(dn(p),!0):(zi&&p.nodeType===Qr.text&&(D=p.textContent,l([Kl,Ql,Xl],re=>{D=N(D,re," ")}),p.textContent!==D&&(f(L.removed,{element:p.cloneNode()}),p.textContent=D)),lr("afterSanitizeElements",p,null),!1)},kg=function(p,D,P){if(Dg&&(D==="id"||D==="name")&&(P in Me||P in sI||P==="__depth"||P==="__removalCount"))return!1;if(!(ed&&!Jl[D]&&H(Xb,D))){if(!(vg&&H(Jb,D))){if(!mt[D]||Jl[D]){if(!(jg(p)&&(it.tagNameCheck instanceof RegExp&&H(it.tagNameCheck,p)||it.tagNameCheck instanceof Function&&it.tagNameCheck(p))&&(it.attributeNameCheck instanceof RegExp&&H(it.attributeNameCheck,D)||it.attributeNameCheck instanceof Function&&it.attributeNameCheck(D))||D==="is"&&it.allowCustomizedBuiltInElements&&(it.tagNameCheck instanceof RegExp&&H(it.tagNameCheck,P)||it.tagNameCheck instanceof Function&&it.tagNameCheck(P))))return!1}else if(!od[D]){if(!H(pg,N(P,hg,""))){if(!((D==="src"||D==="xlink:href"||D==="href")&&p!=="script"&&x(P,"data:")===0&&bg[p])){if(!(yg&&!H(eI,N(P,hg,"")))){if(P)return!1}}}}}}return!0},jg=function(p){return p!=="annotation-xml"&&_(p,tI)},Vg=function(p){lr("beforeSanitizeAttributes",p,null);let{attributes:D}=p;if(!D)return;let P={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:mt},re=D.length;for(;re--;){let St=D[re],{name:wt,namespaceURI:Vt,value:Ut}=St,cs=gt(wt),Nt=wt==="value"?Ut:ge(Ut);if(P.attrName=cs,P.attrValue=Nt,P.keepAttr=!0,P.forceKeepAttr=void 0,lr("uponSanitizeAttribute",p,P),Nt=P.attrValue,P.forceKeepAttr||($a(wt,p),!P.keepAttr))continue;if(!_g&&H(/\/>/i,Nt)){$a(wt,p);continue}if(td&&H(/((--!?|])>)|<\/(style|title)/i,Nt)){$a(wt,p);continue}zi&&l([Kl,Ql,Xl],Bg=>{Nt=N(Nt,Bg," ")});let Ug=gt(p.nodeName);if(kg(Ug,cs,Nt)){if(Eg&&(cs==="id"||cs==="name")&&($a(wt,p),Nt=nI+Nt),Ot&&typeof La=="object"&&typeof La.getAttributeType=="function"&&!Vt)switch(La.getAttributeType(Ug,cs)){case"TrustedHTML":{Nt=Ot.createHTML(Nt);break}case"TrustedScriptURL":{Nt=Ot.createScriptURL(Nt);break}}try{Vt?p.setAttributeNS(Vt,wt,Nt):p.setAttribute(wt,Nt),Rg(p)?dn(p):d(L.removed)}catch{}}}lr("afterSanitizeAttributes",p,null)},uI=function k(p){let D=null,P=Pg(p);for(lr("beforeSanitizeShadowDOM",p,null);D=P.nextNode();){if(lr("uponSanitizeShadowNode",D,null),Lg(D))continue;let re=rs(D);D.nodeType===Qr.element&&(re&&re.__depth?D.__depth=(D.__removalCount||0)+re.__depth+1:D.__depth=1),(D.__depth>=Mg||D.__depth<0||nt(D.__depth))&&dn(D),D.content instanceof cr&&(D.content.__depth=D.__depth,k(D.content)),Vg(D)}lr("afterSanitizeShadowDOM",p,null)};return L.sanitize=function(k){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,P=null,re=null,St=null;if(sd=!k,sd&&(k=""),typeof k!="string"&&!Fg(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw Et("dirty is not a string, aborting")}else throw Et("toString is not a function");if(!L.isSupported)return k;if(nd||cd(p),L.removed=[],typeof k=="string"&&(ss=!1),ss){if(k.nodeName){let Ut=gt(k.nodeName);if(!pt[Ut]||os[Ut])throw Et("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof Yl)D=xg(""),P=D.ownerDocument.importNode(k,!0),P.nodeType===Qr.element&&P.nodeName==="BODY"||P.nodeName==="HTML"?D=P:D.appendChild(P);else{if(!Gi&&!zi&&!Xr&&k.indexOf("<")===-1)return Ot&&Va?Ot.createHTML(k):k;if(D=xg(k),!D)return Gi?null:Va?is:""}D&&rd&&dn(D.firstChild);let wt=Pg(ss?k:D);for(;re=wt.nextNode();){if(Lg(re))continue;let Ut=rs(re);re.nodeType===Qr.element&&(Ut&&Ut.__depth?re.__depth=(re.__removalCount||0)+Ut.__depth+1:re.__depth=1),(re.__depth>=Mg||re.__depth<0||nt(re.__depth))&&dn(re),re.content instanceof cr&&(re.content.__depth=re.__depth,uI(re.content)),Vg(re)}if(ss)return k;if(Gi){if(ja)for(St=Zb.call(D.ownerDocument);D.firstChild;)St.appendChild(D.firstChild);else St=D;return(mt.shadowroot||mt.shadowrootmode)&&(St=Qb.call(_e,St,!0)),St}let Vt=Xr?D.outerHTML:D.innerHTML;return Xr&&pt["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&H(ug,D.ownerDocument.doctype.name)&&(Vt=" +`+Vt),zi&&l([Kl,Ql,Xl],Ut=>{Vt=N(Vt,Ut," ")}),Ot&&Va?Ot.createHTML(Vt):Vt},L.setConfig=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};cd(k),nd=!0},L.clearConfig=function(){Zi=null,nd=!1},L.isValidAttribute=function(k,p,D){Zi||cd({});let P=gt(k),re=gt(p);return kg(P,re,D)},L.addHook=function(k,p){typeof p=="function"&&(Vn[k]=Vn[k]||[],f(Vn[k],p))},L.removeHook=function(k){if(Vn[k])return d(Vn[k])},L.removeHooks=function(k){Vn[k]&&(Vn[k]=[])},L.removeAllHooks=function(){Vn={}},L}var Bb=dg();return Bb})});var zg=null;var fd=1,hd=Symbol("SIGNAL");function be(e){let t=zg;return zg=e,t}var Gg={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function _I(e){if(!(gd(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===fd)){if(!e.producerMustRecompute(e)&&!pd(e)){e.dirty=!1,e.lastCleanEpoch=fd;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=fd}}function Wg(e){return e&&(e.nextProducerIndex=0),be(e)}function qg(e,t){if(be(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(gd(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function pd(e){Ga(e);for(let t=0;t0}function Ga(e){e.producerNode??(e.producerNode=[]),e.producerIndexOfThis??(e.producerIndexOfThis=[]),e.producerLastReadVersion??(e.producerLastReadVersion=[])}function DI(e){e.liveConsumerNode??(e.liveConsumerNode=[]),e.liveConsumerIndexOfThis??(e.liveConsumerIndexOfThis=[])}function EI(){throw new Error}var wI=EI;function Zg(e){wI=e}function $(e){return typeof e=="function"}function Ki(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Wa=Ki(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Jr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ot=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if($(r))try{r()}catch(o){t=o instanceof Wa?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Kg(o)}catch(s){t=t??[],s instanceof Wa?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Wa(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Kg(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Jr(n,t)}remove(t){let{_finalizers:n}=this;n&&Jr(n,t),t instanceof e&&t._removeParent(this)}};ot.EMPTY=(()=>{let e=new ot;return e.closed=!0,e})();var gd=ot.EMPTY;function qa(e){return e instanceof ot||e&&"closed"in e&&$(e.remove)&&$(e.add)&&$(e.unsubscribe)}function Kg(e){$(e)?e():e.unsubscribe()}var En={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Qi={setTimeout(e,t,...n){let{delegate:r}=Qi;return r!=null&&r.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Qi;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ya(e){Qi.setTimeout(()=>{let{onUnhandledError:t}=En;if(t)t(e);else throw e})}function Xt(){}var Qg=vd("C",void 0,void 0);function Xg(e){return vd("E",void 0,e)}function Jg(e){return vd("N",e,void 0)}function vd(e,t,n){return{kind:e,value:t,error:n}}var ei=null;function Xi(e){if(En.useDeprecatedSynchronousErrorHandling){let t=!ei;if(t&&(ei={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=ei;if(ei=null,n)throw r}}else e()}function ev(e){En.useDeprecatedSynchronousErrorHandling&&ei&&(ei.errorThrown=!0,ei.error=e)}var ti=class extends ot{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,qa(t)&&t.add(this)):this.destination=CI}static create(t,n,r){return new dr(t,n,r)}next(t){this.isStopped?_d(Jg(t),this):this._next(t)}error(t){this.isStopped?_d(Xg(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?_d(Qg,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},bI=Function.prototype.bind;function yd(e,t){return bI.call(e,t)}var Dd=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Za(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Za(r)}else Za(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Za(n)}}},dr=class extends ti{constructor(t,n,r){super();let i;if($(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&En.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&yd(t.next,o),error:t.error&&yd(t.error,o),complete:t.complete&&yd(t.complete,o)}):i=t}this.destination=new Dd(i)}};function Za(e){En.useDeprecatedSynchronousErrorHandling?ev(e):Ya(e)}function II(e){throw e}function _d(e,t){let{onStoppedNotification:n}=En;n&&Qi.setTimeout(()=>n(e,t))}var CI={closed:!0,next:Xt,error:II,complete:Xt};var Ji=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Je(e){return e}function ni(...e){return Ed(e)}function Ed(e){return e.length===0?Je:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var R=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=SI(n)?n:new dr(n,r,i);return Xi(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=tv(r),new r((i,o)=>{let s=new dr({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ji](){return this}pipe(...n){return Ed(n)(this)}toPromise(n){return n=tv(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function tv(e){var t;return(t=e??En.Promise)!==null&&t!==void 0?t:Promise}function MI(e){return e&&$(e.next)&&$(e.error)&&$(e.complete)}function SI(e){return e&&e instanceof ti||MI(e)&&qa(e)}function wd(e){return $(e==null?void 0:e.lift)}function j(e){return t=>{if(wd(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function A(e,t,n,r,i){return new bd(e,t,n,r,i)}var bd=class extends ti{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function eo(){return j((e,t)=>{let n=null;e._refCount++;let r=A(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var to=class extends R{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,wd(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t==null||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new ot;let n=this.getSubject();t.add(this.source.subscribe(A(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=ot.EMPTY)}return t}refCount(){return eo()(this)}};var nv=Ki(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Oe=(()=>{class e extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ka(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new nv}next(n){Xi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Xi(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Xi(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?gd:(this.currentObservers=null,o.push(n),new ot(()=>{this.currentObservers=null,Jr(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new R;return n.source=this,n}}return e.create=(t,n)=>new Ka(t,n),e})(),Ka=class extends Oe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:gd}};var We=class extends Oe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var ls={now(){return(ls.delegate||Date).now()},delegate:void 0};var fr=class extends Oe{constructor(t=1/0,n=1/0,r=ls){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(t),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;se.complete());function ec(e){return e&&$(e.schedule)}function Id(e){return e[e.length-1]}function ro(e){return $(Id(e))?e.pop():void 0}function Un(e){return ec(Id(e))?e.pop():void 0}function iv(e,t){return typeof Id(e)=="number"?e.pop():t}function sv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function nc(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):i(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function ov(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ii(e){return this instanceof ii?(this.v=e,this):new ii(e)}function av(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(m){return new Promise(function(v,_){o.push([f,m,v,_])>1||a(f,m)})})}function a(f,m){try{c(r[f](m))}catch(v){d(o[0][3],v)}}function c(f){f.value instanceof ii?Promise.resolve(f.value.v).then(l,u):d(o[0][2],f)}function l(f){a("next",f)}function u(f){a("throw",f)}function d(f,m){f(m),o.shift(),o.length&&a(o[0][0],o[0][1])}}function cv(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ov=="function"?ov(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){s=e[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var io=e=>e&&typeof e.length=="number"&&typeof e!="function";function rc(e){return $(e==null?void 0:e.then)}function ic(e){return $(e[Ji])}function oc(e){return Symbol.asyncIterator&&$(e==null?void 0:e[Symbol.asyncIterator])}function sc(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function TI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ac=TI();function cc(e){return $(e==null?void 0:e[ac])}function lc(e){return av(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield ii(n.read());if(i)return yield ii(void 0);yield yield ii(r)}}finally{n.releaseLock()}})}function uc(e){return $(e==null?void 0:e.getReader)}function Y(e){if(e instanceof R)return e;if(e!=null){if(ic(e))return AI(e);if(io(e))return OI(e);if(rc(e))return NI(e);if(oc(e))return lv(e);if(cc(e))return xI(e);if(uc(e))return PI(e)}throw sc(e)}function AI(e){return new R(t=>{let n=e[Ji]();if($(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function OI(e){return new R(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ya)})}function xI(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function lv(e){return new R(t=>{RI(e,t).catch(n=>t.error(n))})}function PI(e){return lv(lc(e))}function RI(e,t){var n,r,i,o;return nc(this,void 0,void 0,function*(){try{for(n=cv(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function Bt(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function dc(e,t=0){return j((n,r)=>{n.subscribe(A(r,i=>Bt(r,e,()=>r.next(i),t),()=>Bt(r,e,()=>r.complete(),t),i=>Bt(r,e,()=>r.error(i),t)))})}function fc(e,t=0){return j((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function uv(e,t){return Y(e).pipe(fc(t),dc(t))}function dv(e,t){return Y(e).pipe(fc(t),dc(t))}function fv(e,t){return new R(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function hv(e,t){return new R(n=>{let r;return Bt(n,t,()=>{r=e[ac](),Bt(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>$(r==null?void 0:r.return)&&r.return()})}function hc(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{Bt(n,t,()=>{let r=e[Symbol.asyncIterator]();Bt(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function pv(e,t){return hc(lc(e),t)}function mv(e,t){if(e!=null){if(ic(e))return uv(e,t);if(io(e))return fv(e,t);if(rc(e))return dv(e,t);if(oc(e))return hc(e,t);if(cc(e))return hv(e,t);if(uc(e))return pv(e,t)}throw sc(e)}function Pe(e,t){return t?mv(e,t):Y(e)}function S(...e){let t=Un(e);return Pe(e,t)}function oo(e,t){let n=$(e)?e:()=>e,r=i=>i.error(n());return new R(t?i=>t.schedule(r,0,i):r)}function oi(e){return!!e&&(e instanceof R||$(e.lift)&&$(e.subscribe))}var hr=Ki(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function gv(e){return e instanceof Date&&!isNaN(e)}function b(e,t){return j((n,r)=>{let i=0;n.subscribe(A(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:FI}=Array;function LI(e,t){return FI(t)?e(...t):e(t)}function so(e){return b(t=>LI(e,t))}var{isArray:kI}=Array,{getPrototypeOf:jI,prototype:VI,keys:UI}=Object;function pc(e){if(e.length===1){let t=e[0];if(kI(t))return{args:t,keys:null};if(BI(t)){let n=UI(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function BI(e){return e&&typeof e=="object"&&jI(e)===VI}function mc(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function gc(...e){let t=Un(e),n=ro(e),{args:r,keys:i}=pc(e);if(r.length===0)return Pe([],t);let o=new R($I(r,t,i?s=>mc(i,s):Je));return n?o.pipe(so(n)):o}function $I(e,t,n=Je){return r=>{vv(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let c=0;c{let l=Pe(e[c],t),u=!1;l.subscribe(A(r,d=>{o[c]=d,u||(u=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function vv(e,t,n){e?Bt(n,e,t):t()}function yv(e,t,n,r,i,o,s,a){let c=[],l=0,u=0,d=!1,f=()=>{d&&!c.length&&!l&&t.complete()},m=_=>l{o&&t.next(_),l++;let N=!1;Y(n(_,u++)).subscribe(A(t,x=>{i==null||i(x),o?m(x):t.next(x)},()=>{N=!0},void 0,()=>{if(N)try{for(l--;c.length&&lv(x)):v(x)}f()}catch(x){t.error(x)}}))};return e.subscribe(A(t,m,()=>{d=!0,f()})),()=>{a==null||a()}}function Ke(e,t,n=1/0){return $(t)?Ke((r,i)=>b((o,s)=>t(r,o,i,s))(Y(e(r,i))),n):(typeof t=="number"&&(n=t),j((r,i)=>yv(r,i,e,n)))}function ds(e=1/0){return Ke(Je,e)}function _v(){return ds(1)}function $t(...e){return _v()(Pe(e,Un(e)))}function Bn(e){return new R(t=>{Y(e()).subscribe(t)})}function Cd(...e){let t=ro(e),{args:n,keys:r}=pc(e),i=new R(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||o.next(r?mc(r,a):a),o.complete())}))}});return t?i.pipe(so(t)):i}var HI=["addListener","removeListener"],zI=["addEventListener","removeEventListener"],GI=["on","off"];function $n(e,t,n,r){if($(n)&&(r=n,n=void 0),r)return $n(e,t,n).pipe(so(r));let[i,o]=YI(e)?zI.map(s=>a=>e[s](t,a,n)):WI(e)?HI.map(Dv(e,t)):qI(e)?GI.map(Dv(e,t)):[];if(!i&&io(e))return Ke(s=>$n(s,t,n))(Y(e));if(!i)throw new TypeError("Invalid event target");return new R(s=>{let a=(...c)=>s.next(1o(a)})}function Dv(e,t){return n=>r=>e[n](t,r)}function WI(e){return $(e.addListener)&&$(e.removeListener)}function qI(e){return $(e.on)&&$(e.off)}function YI(e){return $(e.addEventListener)&&$(e.removeEventListener)}function vt(e=0,t,n=rv){let r=-1;return t!=null&&(ec(t)?n=t:r=t),new R(i=>{let o=gv(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Ue(...e){let t=Un(e),n=iv(e,1/0),r=e;return r.length?r.length===1?Y(r[0]):ds(n)(Pe(r,t)):xe}var ZI=new R(Xt);var{isArray:KI}=Array;function Ev(e){return e.length===1&&KI(e[0])?e[0]:e}function Ie(e,t){return j((n,r)=>{let i=0;n.subscribe(A(r,o=>e.call(t,o,i++)&&r.next(o)))})}function Md(...e){return e=Ev(e),e.length===1?Y(e[0]):new R(QI(e))}function QI(e){return t=>{let n=[];for(let r=0;n&&!t.closed&&r{if(n){for(let o=0;o{let r=null,i=!1,o;r=t.subscribe(A(n,void 0,void 0,s=>{o=Y(e(s,wn(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function wv(e,t,n,r,i){return(o,s)=>{let a=n,c=t,l=0;o.subscribe(A(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function si(e,t){return $(t)?Ke(e,t,1):Ke(e,1)}function XI(e){return j((t,n)=>{let r=!1,i=null,o=null,s=()=>{if(o==null||o.unsubscribe(),o=null,r){r=!1;let a=i;i=null,n.next(a)}};t.subscribe(A(n,a=>{o==null||o.unsubscribe(),r=!0,i=a,o=A(n,s,Xt),Y(e(a)).subscribe(o)},()=>{s(),n.complete()},void 0,()=>{i=o=null}))})}function bv(e,t=ri){return j((n,r)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let l=o;o=null,r.next(l)}};function c(){let l=s+e,u=t.now();if(u{o=l,s=t.now(),i||(i=t.schedule(c,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function Ar(e){return j((t,n)=>{let r=!1;t.subscribe(A(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function Qe(e){return e<=0?()=>xe:j((t,n)=>{let r=0;t.subscribe(A(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function ao(){return j((e,t)=>{e.subscribe(A(t,Xt))})}function fs(e){return b(()=>e)}function Sd(e,t){return t?n=>$t(t.pipe(Qe(1),ao()),n.pipe(Sd(e))):Ke((n,r)=>Y(e(n,r)).pipe(Qe(1),fs(n)))}function hs(e,t=ri){let n=vt(e,t);return Sd(()=>n)}function qe(e,t=Je){return e=e??JI,j((n,r)=>{let i,o=!0;n.subscribe(A(r,s=>{let a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function JI(e,t){return e===t}function vc(e=eC){return j((t,n)=>{let r=!1;t.subscribe(A(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function eC(){return new hr}function ps(...e){return t=>$t(t,S(...e))}function Or(e){return j((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function bn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ie((i,o)=>e(i,o,r)):Je,Qe(1),n?Ar(t):vc(()=>new hr))}function co(e){return e<=0?()=>xe:j((t,n)=>{let r=[];t.subscribe(A(n,i=>{r.push(i),e{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Td(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ie((i,o)=>e(i,o,r)):Je,co(1),n?Ar(t):vc(()=>new hr))}function yc(e){let t=1/0,n;return e!=null&&(typeof e=="object"?{count:t=1/0,delay:n}=e:t=e),t<=0?()=>xe:j((r,i)=>{let o=0,s,a=()=>{if(s==null||s.unsubscribe(),s=null,n!=null){let l=typeof n=="number"?vt(n):Y(n(o)),u=A(i,()=>{u.unsubscribe(),c()});l.subscribe(u)}else c()},c=()=>{let l=!1;s=r.subscribe(A(i,void 0,()=>{++o{let r,i=!1,o,s=!1,a=!1,c=()=>a&&s&&(n.complete(),!0),l=()=>(o||(o=new Oe,Y(e(o)).subscribe(A(n,()=>{r?u():i=!0},()=>{s=!0,c()}))),o),u=()=>{a=!1,r=t.subscribe(A(n,void 0,()=>{a=!0,!c()&&l().next()})),i&&(r.unsubscribe(),r=null,i=!1,u())};u()})}function _c(e,t){return j(wv(e,t,arguments.length>=2,!0))}function Ht(e={}){let{connector:t=()=>new Oe,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,l=0,u=!1,d=!1,f=()=>{a==null||a.unsubscribe(),a=void 0},m=()=>{f(),s=c=void 0,u=d=!1},v=()=>{let _=s;m(),_==null||_.unsubscribe()};return j((_,N)=>{l++,!d&&!u&&f();let x=c=c??t();N.add(()=>{l--,l===0&&!d&&!u&&(a=Od(v,i))}),x.subscribe(N),!s&&l>0&&(s=new dr({next:ge=>x.next(ge),error:ge=>{d=!0,f(),a=Od(m,n,ge),x.error(ge)},complete:()=>{u=!0,f(),a=Od(m,r),x.complete()}}),Y(_).subscribe(s))})(o)}}function Od(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new dr({next:()=>{r.unsubscribe(),e()}});return Y(t(...n)).subscribe(r)}function Jt(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e??1/0,Ht({connector:()=>new fr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Nd(e){return Ie((t,n)=>e<=n)}function xd(e){return j((t,n)=>{let r=!1,i=0;t.subscribe(A(n,o=>(r||(r=!e(o,i++)))&&n.next(o)))})}function Ce(...e){let t=Un(e);return j((n,r)=>{(t?$t(e,n,t):$t(e,n)).subscribe(r)})}function ce(e,t){return j((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(A(r,c=>{i==null||i.unsubscribe();let l=0,u=o++;Y(e(c,u)).subscribe(i=A(r,d=>r.next(t?t(c,d,u,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Ae(e){return j((t,n)=>{Y(e).subscribe(A(n,()=>n.complete(),Xt)),!n.closed&&t.subscribe(n)})}function Dc(e,t=!1){return j((n,r)=>{let i=0;n.subscribe(A(r,o=>{let s=e(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}function Be(e,t,n){let r=$(e)||t||n?{next:e,error:t,complete:n}:e;return r?j((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(A(o,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),o.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),o.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):Je}function Iv(e,t){return j((n,r)=>{let{leading:i=!0,trailing:o=!1}=t??{},s=!1,a=null,c=null,l=!1,u=()=>{c==null||c.unsubscribe(),c=null,o&&(m(),l&&r.complete())},d=()=>{c=null,l&&r.complete()},f=v=>c=Y(e(v)).subscribe(A(r,u,d)),m=()=>{if(s){s=!1;let v=a;a=null,r.next(v),!l&&f(v)}};n.subscribe(A(r,v=>{s=!0,a=v,!(c&&!c.closed)&&(i?m():f(v))},()=>{l=!0,!(o&&s&&c&&!c.closed)&&r.complete()}))})}function Nr(e,t=ri,n){let r=vt(e,t);return Iv(()=>r,n)}function ms(...e){let t=ro(e);return j((n,r)=>{let i=e.length,o=new Array(i),s=e.map(()=>!1),a=!1;for(let c=0;c{o[c]=l,!a&&!s[c]&&(s[c]=!0,(a=s.every(Je))&&(s=null))},Xt));n.subscribe(A(r,c=>{if(a){let l=[c,...o];r.next(t?t(...l):l)}}))})}var hy="https://g.co/ng/security#xss",I=class extends Error{constructor(t,n){super(il(t,n)),this.code=t}};function il(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function As(e){return{toString:e}.toString()}var Ec="__parameters__";function tC(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function Qf(e,t,n){return As(()=>{let r=tC(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Ec)?c[Ec]:Object.defineProperty(c,Ec,{value:[]})[Ec];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var pr=globalThis;function Le(e){for(let t in e)if(e[t]===Le)return t;throw Error("Could not find renamed property on target object.")}function nC(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Pt(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Pt).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function Cv(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var rC=Le({__forward_ref__:Le});function wr(e){return e.__forward_ref__=wr,e.toString=function(){return Pt(this())},e}function xt(e){return py(e)?e():e}function py(e){return typeof e=="function"&&e.hasOwnProperty(rC)&&e.__forward_ref__===wr}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Z(e){return{providers:e.providers||[],imports:e.imports||[]}}function ol(e){return Mv(e,gy)||Mv(e,vy)}function my(e){return ol(e)!==null}function Mv(e,t){return e.hasOwnProperty(t)?e[t]:null}function iC(e){let t=e&&(e[gy]||e[vy]);return t||null}function Sv(e){return e&&(e.hasOwnProperty(Tv)||e.hasOwnProperty(oC))?e[Tv]:null}var gy=Le({\u0275prov:Le}),Tv=Le({\u0275inj:Le}),vy=Le({ngInjectableDef:Le}),oC=Le({ngInjectorDef:Le}),E=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=C({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function yy(e){return e&&!!e.\u0275providers}var sC=Le({\u0275cmp:Le}),aC=Le({\u0275dir:Le}),cC=Le({\u0275pipe:Le}),lC=Le({\u0275mod:Le}),Fc=Le({\u0275fac:Le}),gs=Le({__NG_ELEMENT_ID__:Le}),Av=Le({__NG_ENV_ID__:Le});function Os(e){return typeof e=="string"?e:e==null?"":String(e)}function uC(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Os(e)}function dC(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new I(-200,e)}function Xf(e,t){throw new I(-201,!1)}var le=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(le||{}),Kd;function _y(){return Kd}function zt(e){let t=Kd;return Kd=e,t}function Dy(e,t,n){let r=ol(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&le.Optional)return null;if(t!==void 0)return t;Xf(e,"Injector")}var fC={},vs=fC,Qd="__NG_DI_FLAG__",Lc="ngTempTokenPath",hC="ngTokenPath",pC=/\n/gm,mC="\u0275",Ov="__source",po;function gC(){return po}function xr(e){let t=po;return po=e,t}function vC(e,t=le.Default){if(po===void 0)throw new I(-203,!1);return po===null?Dy(e,void 0,t):po.get(e,t&le.Optional?null:void 0,t)}function M(e,t=le.Default){return(_y()||vC)(xt(e),t)}function g(e,t=le.Default){return M(e,sl(t))}function sl(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Xd(e){let t=[];for(let n=0;n{let e=new ot;return e.closed=!0,e})();var vd=ot.EMPTY;function qa(e){return e instanceof ot||e&&"closed"in e&&$(e.remove)&&$(e.add)&&$(e.unsubscribe)}function Kg(e){$(e)?e():e.unsubscribe()}var En={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Qi={setTimeout(e,t,...n){let{delegate:r}=Qi;return r!=null&&r.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Qi;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ya(e){Qi.setTimeout(()=>{let{onUnhandledError:t}=En;if(t)t(e);else throw e})}function Xt(){}var Qg=yd("C",void 0,void 0);function Xg(e){return yd("E",void 0,e)}function Jg(e){return yd("N",e,void 0)}function yd(e,t,n){return{kind:e,value:t,error:n}}var ei=null;function Xi(e){if(En.useDeprecatedSynchronousErrorHandling){let t=!ei;if(t&&(ei={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=ei;if(ei=null,n)throw r}}else e()}function ev(e){En.useDeprecatedSynchronousErrorHandling&&ei&&(ei.errorThrown=!0,ei.error=e)}var ti=class extends ot{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,qa(t)&&t.add(this)):this.destination=CI}static create(t,n,r){return new dr(t,n,r)}next(t){this.isStopped?Dd(Jg(t),this):this._next(t)}error(t){this.isStopped?Dd(Xg(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Dd(Qg,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},bI=Function.prototype.bind;function _d(e,t){return bI.call(e,t)}var Ed=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Za(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Za(r)}else Za(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Za(n)}}},dr=class extends ti{constructor(t,n,r){super();let i;if($(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&En.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&_d(t.next,o),error:t.error&&_d(t.error,o),complete:t.complete&&_d(t.complete,o)}):i=t}this.destination=new Ed(i)}};function Za(e){En.useDeprecatedSynchronousErrorHandling?ev(e):Ya(e)}function II(e){throw e}function Dd(e,t){let{onStoppedNotification:n}=En;n&&Qi.setTimeout(()=>n(e,t))}var CI={closed:!0,next:Xt,error:II,complete:Xt};var Ji=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Je(e){return e}function ni(...e){return wd(e)}function wd(e){return e.length===0?Je:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var R=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=SI(n)?n:new dr(n,r,i);return Xi(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=tv(r),new r((i,o)=>{let s=new dr({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ji](){return this}pipe(...n){return wd(n)(this)}toPromise(n){return n=tv(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function tv(e){var t;return(t=e??En.Promise)!==null&&t!==void 0?t:Promise}function MI(e){return e&&$(e.next)&&$(e.error)&&$(e.complete)}function SI(e){return e&&e instanceof ti||MI(e)&&qa(e)}function bd(e){return $(e==null?void 0:e.lift)}function j(e){return t=>{if(bd(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function A(e,t,n,r,i){return new Id(e,t,n,r,i)}var Id=class extends ti{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function eo(){return j((e,t)=>{let n=null;e._refCount++;let r=A(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var to=class extends R{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,bd(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t==null||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new ot;let n=this.getSubject();t.add(this.source.subscribe(A(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=ot.EMPTY)}return t}refCount(){return eo()(this)}};var nv=Ki(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Oe=(()=>{class e extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ka(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new nv}next(n){Xi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Xi(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Xi(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?vd:(this.currentObservers=null,o.push(n),new ot(()=>{this.currentObservers=null,Jr(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new R;return n.source=this,n}}return e.create=(t,n)=>new Ka(t,n),e})(),Ka=class extends Oe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:vd}};var We=class extends Oe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var us={now(){return(us.delegate||Date).now()},delegate:void 0};var fr=class extends Oe{constructor(t=1/0,n=1/0,r=us){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(t),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;se.complete());function ec(e){return e&&$(e.schedule)}function Cd(e){return e[e.length-1]}function ro(e){return $(Cd(e))?e.pop():void 0}function Un(e){return ec(Cd(e))?e.pop():void 0}function iv(e,t){return typeof Cd(e)=="number"?e.pop():t}function sv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function nc(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function ov(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ii(e){return this instanceof ii?(this.v=e,this):new ii(e)}function av(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){r[f]&&(i[f]=function(m){return new Promise(function(v,_){o.push([f,m,v,_])>1||a(f,m)})})}function a(f,m){try{c(r[f](m))}catch(v){d(o[0][3],v)}}function c(f){f.value instanceof ii?Promise.resolve(f.value.v).then(u,l):d(o[0][2],f)}function u(f){a("next",f)}function l(f){a("throw",f)}function d(f,m){f(m),o.shift(),o.length&&a(o[0][0],o[0][1])}}function cv(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ov=="function"?ov(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){s=e[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var io=e=>e&&typeof e.length=="number"&&typeof e!="function";function rc(e){return $(e==null?void 0:e.then)}function ic(e){return $(e[Ji])}function oc(e){return Symbol.asyncIterator&&$(e==null?void 0:e[Symbol.asyncIterator])}function sc(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function TI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ac=TI();function cc(e){return $(e==null?void 0:e[ac])}function uc(e){return av(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield ii(n.read());if(i)return yield ii(void 0);yield yield ii(r)}}finally{n.releaseLock()}})}function lc(e){return $(e==null?void 0:e.getReader)}function Y(e){if(e instanceof R)return e;if(e!=null){if(ic(e))return AI(e);if(io(e))return OI(e);if(rc(e))return NI(e);if(oc(e))return uv(e);if(cc(e))return xI(e);if(lc(e))return PI(e)}throw sc(e)}function AI(e){return new R(t=>{let n=e[Ji]();if($(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function OI(e){return new R(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ya)})}function xI(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function uv(e){return new R(t=>{RI(e,t).catch(n=>t.error(n))})}function PI(e){return uv(uc(e))}function RI(e,t){var n,r,i,o;return nc(this,void 0,void 0,function*(){try{for(n=cv(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function Bt(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function dc(e,t=0){return j((n,r)=>{n.subscribe(A(r,i=>Bt(r,e,()=>r.next(i),t),()=>Bt(r,e,()=>r.complete(),t),i=>Bt(r,e,()=>r.error(i),t)))})}function fc(e,t=0){return j((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function lv(e,t){return Y(e).pipe(fc(t),dc(t))}function dv(e,t){return Y(e).pipe(fc(t),dc(t))}function fv(e,t){return new R(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function hv(e,t){return new R(n=>{let r;return Bt(n,t,()=>{r=e[ac](),Bt(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>$(r==null?void 0:r.return)&&r.return()})}function hc(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{Bt(n,t,()=>{let r=e[Symbol.asyncIterator]();Bt(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function pv(e,t){return hc(uc(e),t)}function mv(e,t){if(e!=null){if(ic(e))return lv(e,t);if(io(e))return fv(e,t);if(rc(e))return dv(e,t);if(oc(e))return hc(e,t);if(cc(e))return hv(e,t);if(lc(e))return pv(e,t)}throw sc(e)}function Pe(e,t){return t?mv(e,t):Y(e)}function S(...e){let t=Un(e);return Pe(e,t)}function oo(e,t){let n=$(e)?e:()=>e,r=i=>i.error(n());return new R(t?i=>t.schedule(r,0,i):r)}function oi(e){return!!e&&(e instanceof R||$(e.lift)&&$(e.subscribe))}var hr=Ki(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function gv(e){return e instanceof Date&&!isNaN(e)}function b(e,t){return j((n,r)=>{let i=0;n.subscribe(A(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:FI}=Array;function LI(e,t){return FI(t)?e(...t):e(t)}function so(e){return b(t=>LI(e,t))}var{isArray:kI}=Array,{getPrototypeOf:jI,prototype:VI,keys:UI}=Object;function pc(e){if(e.length===1){let t=e[0];if(kI(t))return{args:t,keys:null};if(BI(t)){let n=UI(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function BI(e){return e&&typeof e=="object"&&jI(e)===VI}function mc(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function gc(...e){let t=Un(e),n=ro(e),{args:r,keys:i}=pc(e);if(r.length===0)return Pe([],t);let o=new R($I(r,t,i?s=>mc(i,s):Je));return n?o.pipe(so(n)):o}function $I(e,t,n=Je){return r=>{vv(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let c=0;c{let u=Pe(e[c],t),l=!1;u.subscribe(A(r,d=>{o[c]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function vv(e,t,n){e?Bt(n,e,t):t()}function yv(e,t,n,r,i,o,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&t.complete()},m=_=>u{o&&t.next(_),u++;let N=!1;Y(n(_,l++)).subscribe(A(t,x=>{i==null||i(x),o?m(x):t.next(x)},()=>{N=!0},void 0,()=>{if(N)try{for(u--;c.length&&uv(x)):v(x)}f()}catch(x){t.error(x)}}))};return e.subscribe(A(t,m,()=>{d=!0,f()})),()=>{a==null||a()}}function Ke(e,t,n=1/0){return $(t)?Ke((r,i)=>b((o,s)=>t(r,o,i,s))(Y(e(r,i))),n):(typeof t=="number"&&(n=t),j((r,i)=>yv(r,i,e,n)))}function ds(e=1/0){return Ke(Je,e)}function _v(){return ds(1)}function $t(...e){return _v()(Pe(e,Un(e)))}function Bn(e){return new R(t=>{Y(e()).subscribe(t)})}function Md(...e){let t=ro(e),{args:n,keys:r}=pc(e),i=new R(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l{d||(d=!0,u--),a[l]=f},()=>c--,void 0,()=>{(!c||!d)&&(u||o.next(r?mc(r,a):a),o.complete())}))}});return t?i.pipe(so(t)):i}var HI=["addListener","removeListener"],zI=["addEventListener","removeEventListener"],GI=["on","off"];function $n(e,t,n,r){if($(n)&&(r=n,n=void 0),r)return $n(e,t,n).pipe(so(r));let[i,o]=YI(e)?zI.map(s=>a=>e[s](t,a,n)):WI(e)?HI.map(Dv(e,t)):qI(e)?GI.map(Dv(e,t)):[];if(!i&&io(e))return Ke(s=>$n(s,t,n))(Y(e));if(!i)throw new TypeError("Invalid event target");return new R(s=>{let a=(...c)=>s.next(1o(a)})}function Dv(e,t){return n=>r=>e[n](t,r)}function WI(e){return $(e.addListener)&&$(e.removeListener)}function qI(e){return $(e.on)&&$(e.off)}function YI(e){return $(e.addEventListener)&&$(e.removeEventListener)}function vt(e=0,t,n=rv){let r=-1;return t!=null&&(ec(t)?n=t:r=t),new R(i=>{let o=gv(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Ue(...e){let t=Un(e),n=iv(e,1/0),r=e;return r.length?r.length===1?Y(r[0]):ds(n)(Pe(r,t)):xe}var ZI=new R(Xt);var{isArray:KI}=Array;function Ev(e){return e.length===1&&KI(e[0])?e[0]:e}function Ie(e,t){return j((n,r)=>{let i=0;n.subscribe(A(r,o=>e.call(t,o,i++)&&r.next(o)))})}function Sd(...e){return e=Ev(e),e.length===1?Y(e[0]):new R(QI(e))}function QI(e){return t=>{let n=[];for(let r=0;n&&!t.closed&&r{if(n){for(let o=0;o{let r=null,i=!1,o;r=t.subscribe(A(n,void 0,void 0,s=>{o=Y(e(s,wn(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function wv(e,t,n,r,i){return(o,s)=>{let a=n,c=t,u=0;o.subscribe(A(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function si(e,t){return $(t)?Ke(e,t,1):Ke(e,1)}function XI(e){return j((t,n)=>{let r=!1,i=null,o=null,s=()=>{if(o==null||o.unsubscribe(),o=null,r){r=!1;let a=i;i=null,n.next(a)}};t.subscribe(A(n,a=>{o==null||o.unsubscribe(),r=!0,i=a,o=A(n,s,Xt),Y(e(a)).subscribe(o)},()=>{s(),n.complete()},void 0,()=>{i=o=null}))})}function bv(e,t=ri){return j((n,r)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let u=o;o=null,r.next(u)}};function c(){let u=s+e,l=t.now();if(l{o=u,s=t.now(),i||(i=t.schedule(c,e),r.add(i))},()=>{a(),r.complete()},void 0,()=>{o=i=null}))})}function Ar(e){return j((t,n)=>{let r=!1;t.subscribe(A(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function Qe(e){return e<=0?()=>xe:j((t,n)=>{let r=0;t.subscribe(A(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function ao(){return j((e,t)=>{e.subscribe(A(t,Xt))})}function fs(e){return b(()=>e)}function Td(e,t){return t?n=>$t(t.pipe(Qe(1),ao()),n.pipe(Td(e))):Ke((n,r)=>Y(e(n,r)).pipe(Qe(1),fs(n)))}function hs(e,t=ri){let n=vt(e,t);return Td(()=>n)}function qe(e,t=Je){return e=e??JI,j((n,r)=>{let i,o=!0;n.subscribe(A(r,s=>{let a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}function JI(e,t){return e===t}function vc(e=eC){return j((t,n)=>{let r=!1;t.subscribe(A(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function eC(){return new hr}function ps(...e){return t=>$t(t,S(...e))}function Or(e){return j((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function bn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ie((i,o)=>e(i,o,r)):Je,Qe(1),n?Ar(t):vc(()=>new hr))}function co(e){return e<=0?()=>xe:j((t,n)=>{let r=[];t.subscribe(A(n,i=>{r.push(i),e{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Ad(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ie((i,o)=>e(i,o,r)):Je,co(1),n?Ar(t):vc(()=>new hr))}function yc(e){let t=1/0,n;return e!=null&&(typeof e=="object"?{count:t=1/0,delay:n}=e:t=e),t<=0?()=>xe:j((r,i)=>{let o=0,s,a=()=>{if(s==null||s.unsubscribe(),s=null,n!=null){let u=typeof n=="number"?vt(n):Y(n(o)),l=A(i,()=>{l.unsubscribe(),c()});u.subscribe(l)}else c()},c=()=>{let u=!1;s=r.subscribe(A(i,void 0,()=>{++o{let r,i=!1,o,s=!1,a=!1,c=()=>a&&s&&(n.complete(),!0),u=()=>(o||(o=new Oe,Y(e(o)).subscribe(A(n,()=>{r?l():i=!0},()=>{s=!0,c()}))),o),l=()=>{a=!1,r=t.subscribe(A(n,void 0,()=>{a=!0,!c()&&u().next()})),i&&(r.unsubscribe(),r=null,i=!1,l())};l()})}function _c(e,t){return j(wv(e,t,arguments.length>=2,!0))}function Ht(e={}){let{connector:t=()=>new Oe,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,u=0,l=!1,d=!1,f=()=>{a==null||a.unsubscribe(),a=void 0},m=()=>{f(),s=c=void 0,l=d=!1},v=()=>{let _=s;m(),_==null||_.unsubscribe()};return j((_,N)=>{u++,!d&&!l&&f();let x=c=c??t();N.add(()=>{u--,u===0&&!d&&!l&&(a=Nd(v,i))}),x.subscribe(N),!s&&u>0&&(s=new dr({next:ge=>x.next(ge),error:ge=>{d=!0,f(),a=Nd(m,n,ge),x.error(ge)},complete:()=>{l=!0,f(),a=Nd(m,r),x.complete()}}),Y(_).subscribe(s))})(o)}}function Nd(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new dr({next:()=>{r.unsubscribe(),e()}});return Y(t(...n)).subscribe(r)}function Jt(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e??1/0,Ht({connector:()=>new fr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function xd(e){return Ie((t,n)=>e<=n)}function Pd(e){return j((t,n)=>{let r=!1,i=0;t.subscribe(A(n,o=>(r||(r=!e(o,i++)))&&n.next(o)))})}function Ce(...e){let t=Un(e);return j((n,r)=>{(t?$t(e,n,t):$t(e,n)).subscribe(r)})}function ce(e,t){return j((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(A(r,c=>{i==null||i.unsubscribe();let u=0,l=o++;Y(e(c,l)).subscribe(i=A(r,d=>r.next(t?t(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Ae(e){return j((t,n)=>{Y(e).subscribe(A(n,()=>n.complete(),Xt)),!n.closed&&t.subscribe(n)})}function Dc(e,t=!1){return j((n,r)=>{let i=0;n.subscribe(A(r,o=>{let s=e(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}function Be(e,t,n){let r=$(e)||t||n?{next:e,error:t,complete:n}:e;return r?j((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(A(o,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),o.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),o.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Je}function Iv(e,t){return j((n,r)=>{let{leading:i=!0,trailing:o=!1}=t??{},s=!1,a=null,c=null,u=!1,l=()=>{c==null||c.unsubscribe(),c=null,o&&(m(),u&&r.complete())},d=()=>{c=null,u&&r.complete()},f=v=>c=Y(e(v)).subscribe(A(r,l,d)),m=()=>{if(s){s=!1;let v=a;a=null,r.next(v),!u&&f(v)}};n.subscribe(A(r,v=>{s=!0,a=v,!(c&&!c.closed)&&(i?m():f(v))},()=>{u=!0,!(o&&s&&c&&!c.closed)&&r.complete()}))})}function Nr(e,t=ri,n){let r=vt(e,t);return Iv(()=>r,n)}function ms(...e){let t=ro(e);return j((n,r)=>{let i=e.length,o=new Array(i),s=e.map(()=>!1),a=!1;for(let c=0;c{o[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Je))&&(s=null))},Xt));n.subscribe(A(r,c=>{if(a){let u=[c,...o];r.next(t?t(...u):u)}}))})}var hy="https://g.co/ng/security#xss",I=class extends Error{constructor(t,n){super(iu(t,n)),this.code=t}};function iu(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function As(e){return{toString:e}.toString()}var Ec="__parameters__";function tC(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function Xf(e,t,n){return As(()=>{let r=tC(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(Ec)?c[Ec]:Object.defineProperty(c,Ec,{value:[]})[Ec];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var pr=globalThis;function Le(e){for(let t in e)if(e[t]===Le)return t;throw Error("Could not find renamed property on target object.")}function nC(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Pt(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Pt).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Cv(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var rC=Le({__forward_ref__:Le});function wr(e){return e.__forward_ref__=wr,e.toString=function(){return Pt(this())},e}function xt(e){return py(e)?e():e}function py(e){return typeof e=="function"&&e.hasOwnProperty(rC)&&e.__forward_ref__===wr}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Z(e){return{providers:e.providers||[],imports:e.imports||[]}}function ou(e){return Mv(e,gy)||Mv(e,vy)}function my(e){return ou(e)!==null}function Mv(e,t){return e.hasOwnProperty(t)?e[t]:null}function iC(e){let t=e&&(e[gy]||e[vy]);return t||null}function Sv(e){return e&&(e.hasOwnProperty(Tv)||e.hasOwnProperty(oC))?e[Tv]:null}var gy=Le({\u0275prov:Le}),Tv=Le({\u0275inj:Le}),vy=Le({ngInjectableDef:Le}),oC=Le({ngInjectorDef:Le}),E=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=C({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function yy(e){return e&&!!e.\u0275providers}var sC=Le({\u0275cmp:Le}),aC=Le({\u0275dir:Le}),cC=Le({\u0275pipe:Le}),uC=Le({\u0275mod:Le}),Fc=Le({\u0275fac:Le}),gs=Le({__NG_ELEMENT_ID__:Le}),Av=Le({__NG_ENV_ID__:Le});function Os(e){return typeof e=="string"?e:e==null?"":String(e)}function lC(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Os(e)}function dC(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new I(-200,e)}function Jf(e,t){throw new I(-201,!1)}var ue=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ue||{}),Qd;function _y(){return Qd}function zt(e){let t=Qd;return Qd=e,t}function Dy(e,t,n){let r=ou(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&ue.Optional)return null;if(t!==void 0)return t;Jf(e,"Injector")}var fC={},vs=fC,Xd="__NG_DI_FLAG__",Lc="ngTempTokenPath",hC="ngTokenPath",pC=/\n/gm,mC="\u0275",Ov="__source",po;function gC(){return po}function xr(e){let t=po;return po=e,t}function vC(e,t=ue.Default){if(po===void 0)throw new I(-203,!1);return po===null?Dy(e,void 0,t):po.get(e,t&ue.Optional?null:void 0,t)}function M(e,t=ue.Default){return(_y()||vC)(xt(e),t)}function g(e,t=ue.Default){return M(e,su(t))}function su(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Jd(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Pt(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(pC,` - `)}`}var nn=Jf(Qf("Optional"),8),Ey=Jf(Qf("Self"),2),Wn=Jf(Qf("SkipSelf"),4);function ci(e,t){let n=e.hasOwnProperty(Fc);return n?e[Fc]:null}function EC(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?eh(n,t):t(n))}function wy(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function kc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function bC(e,t){let n=[];for(let r=0;rt;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function CC(e,t,n){let r=Ns(e,t);return r>=0?e[r|1]=n:(r=~r,IC(e,r,t,n)),r}function Pd(e,t){let n=Ns(e,t);if(n>=0)return e[n|1]}function Ns(e,t){return MC(e,t,1)}function MC(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<t){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[u+1].toLowerCase(),r&2&&l!==d){if(In(r))return!1;s=!0}}}}return In(r)||s}function In(e){return(e&1)===0}function PC(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!In(s)&&(t+=xv(o,i),i=""),r=s,o=o||!In(r);n++}return i!==""&&(t+=xv(o,i)),t}function VC(e){return e.map(jC).join(",")}function UC(e){let t=[],n=[],r=1,i=2;for(;r{let t=Ny(e),n=Ve(T({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Iy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Gn.Emulated,styles:e.styles||en,_:null,schemas:e.schemas||null,tView:null,id:""});xy(n);let r=e.dependencies;return n.directiveDefs=Rv(r,!1),n.pipeDefs=Rv(r,!0),n.id=HC(n),n})}function BC(e){return ui(e)||Sy(e)}function $C(e){return e!==null}function K(e){return As(()=>({type:e.type,bootstrap:e.bootstrap||en,declarations:e.declarations||en,imports:e.imports||en,exports:e.exports||en,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Pv(e,t){if(e==null)return go;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=Ye.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==Ye.None?[r,a]:r,t[o]=s):n[o]=r}return n}function z(e){return As(()=>{let t=Ny(e);return xy(t),t})}function yi(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function ui(e){return e[sC]||null}function Sy(e){return e[aC]||null}function Ty(e){return e[cC]||null}function Ay(e){let t=ui(e)||Sy(e)||Ty(e);return t!==null?t.standalone:!1}function Oy(e,t){let n=e[lC]||null;if(!n&&t===!0)throw new Error(`Type ${Pt(e)} does not have '\u0275mod' property.`);return n}function Ny(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||go,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||en,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Pv(e.inputs,t),outputs:Pv(e.outputs),debugInfo:null}}function xy(e){var t;(t=e.features)==null||t.forEach(n=>n(e))}function Rv(e,t){if(!e)return null;let n=t?Ty:BC;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter($C)}function HC(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function _i(e){return{\u0275providers:e}}function zC(...e){return{\u0275providers:Py(!0,e),\u0275fromNgModule:!0}}function Py(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return eh(t,s=>{let a=s;ef(a,o,[],r)&&(i||(i=[]),i.push(a))}),i!==void 0&&Ry(i,o),n}function Ry(e,t){for(let n=0;n{t(o,r)})}}function ef(e,t,n,r){if(e=xt(e),!e)return!1;let i=null,o=Sv(e),s=!o&&ui(e);if(!o&&!s){let c=e.ngModule;if(o=Sv(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)ef(l,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{eh(o.imports,u=>{ef(u,t,n,r)&&(l||(l=[]),l.push(u))})}finally{}l!==void 0&&Ry(l,t)}if(!a){let l=ci(i)||(()=>new i);t({provide:i,useFactory:l,deps:en},i),t({provide:by,useValue:i,multi:!0},i),t({provide:li,useValue:()=>M(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let l=e;nh(c,u=>{t(u,l)})}}else return!1;return i!==e&&e.providers!==void 0}function nh(e,t){for(let n of e)yy(n)&&(n=n.\u0275providers),Array.isArray(n)?nh(n,t):t(n)}var GC=Le({provide:String,useValue:Le});function Fy(e){return e!==null&&typeof e=="object"&&GC in e}function WC(e){return!!(e&&e.useExisting)}function qC(e){return!!(e&&e.useFactory)}function vo(e){return typeof e=="function"}function YC(e){return!!e.useClass}var al=new E(""),Ac={},ZC={},Rd;function rh(){return Rd===void 0&&(Rd=new jc),Rd}var fn=class{},_s=class extends fn{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,nf(t,s=>this.processProvider(s)),this.records.set(wo,uo(void 0,this)),i.has("environment")&&this.records.set(fn,uo(void 0,this));let o=this.records.get(al);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(by,en,le.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=be(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),be(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=xr(this),r=zt(void 0),i;try{return t()}finally{xr(n),zt(r)}}get(t,n=vs,r=le.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Av))return t[Av](this);r=sl(r);let i,o=xr(this),s=zt(void 0);try{if(!(r&le.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=eM(t)&&ol(t);l&&this.injectableDefInScope(l)?c=uo(tf(t),Ac):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&le.Self?rh():this.parent;return n=r&le.Optional&&n===vs?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Lc]=a[Lc]||[]).unshift(Pt(t)),o)throw a;return _C(a,t,"R3InjectorError",this.source)}else throw a}finally{zt(s),xr(o)}}resolveInjectorInitializers(){let t=be(null),n=xr(this),r=zt(void 0),i;try{let o=this.get(li,en,le.Self);for(let s of o)s()}finally{xr(n),zt(r),be(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Pt(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(t){t=xt(t);let n=vo(t)?t:xt(t&&t.provide),r=QC(t);if(!vo(t)&&t.multi===!0){let i=this.records.get(n);i||(i=uo(void 0,Ac,!0),i.factory=()=>Xd(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=be(null);try{return n.value===Ac&&(n.value=ZC,n.value=n.factory()),typeof n.value=="object"&&n.value&&JC(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{be(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=xt(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function tf(e){let t=ol(e),n=t!==null?t.factory:ci(e);if(n!==null)return n;if(e instanceof E)throw new I(204,!1);if(e instanceof Function)return KC(e);throw new I(204,!1)}function KC(e){if(e.length>0)throw new I(204,!1);let n=iC(e);return n!==null?()=>n.factory(e):()=>new e}function QC(e){if(Fy(e))return uo(void 0,e.useValue);{let t=Ly(e);return uo(t,Ac)}}function Ly(e,t,n){let r;if(vo(e)){let i=xt(e);return ci(i)||tf(i)}else if(Fy(e))r=()=>xt(e.useValue);else if(qC(e))r=()=>e.useFactory(...Xd(e.deps||[]));else if(WC(e))r=()=>M(xt(e.useExisting));else{let i=xt(e&&(e.useClass||e.provide));if(XC(e))r=()=>new i(...Xd(e.deps));else return ci(i)||tf(i)}return r}function uo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function XC(e){return!!e.deps}function JC(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function eM(e){return typeof e=="function"||typeof e=="object"&&e instanceof E}function nf(e,t){for(let n of e)Array.isArray(n)?nf(n,t):n&&yy(n)?nf(n.\u0275providers,t):t(n)}function Fr(e,t){e instanceof _s&&e.assertNotDestroyed();let n,r=xr(e),i=zt(void 0);try{return t()}finally{xr(r),zt(i)}}function tM(){return _y()!==void 0||gC()!=null}function nM(e){return typeof e=="function"}var Wt=0,te=1,G=2,yt=3,Cn=4,rn=5,hn=6,Ds=7,Sn=8,yo=9,Tn=10,Re=11,Es=12,Fv=13,bo=14,tn=15,xs=16,fo=17,Mn=18,cl=19,ky=20,Pr=21,Fd=22,di=23,at=25,ih=1,ws=6,gr=7,Vc=8,_o=9,Gt=10,oh=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(oh||{});function mr(e){return Array.isArray(e)&&typeof e[ih]=="object"}function qn(e){return Array.isArray(e)&&e[ih]===!0}function sh(e){return(e.flags&4)!==0}function Ps(e){return e.componentOffset>-1}function ll(e){return(e.flags&1)===1}function vr(e){return!!e.template}function jy(e){return(e[G]&512)!==0}var rf=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Vy(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function mn(){return Uy}function Uy(e){return e.type.prototype.ngOnChanges&&(e.setInput=iM),rM}mn.ngInherit=!0;function rM(){let e=$y(this),t=e==null?void 0:e.current;if(t){let n=e.previous;if(n===go)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function iM(e,t,n,r,i){let o=this.declaredInputs[r],s=$y(e)||oM(e,{previous:go,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new rf(l&&l.currentValue,n,c===go),Vy(e,t,i,n)}var By="__ngSimpleChanges__";function $y(e){return e[By]||null}function oM(e,t){return e[By]=t}var Lv=null;var Hn=function(e,t,n){Lv!=null&&Lv(e,t,n)},Hy="svg",sM="math",aM=!1;function cM(){return aM}function An(e){for(;Array.isArray(e);)e=e[Wt];return e}function lM(e){for(;Array.isArray(e);){if(typeof e[ih]=="object")return e;e=e[Wt]}return null}function zy(e,t){return An(t[e])}function on(e,t){return An(t[e.index])}function Gy(e,t){return e.data[t]}function Rs(e,t){return e[t]}function Lr(e,t){let n=t[e];return mr(n)?n:n[Wt]}function uM(e){return(e[G]&4)===4}function ah(e){return(e[G]&128)===128}function dM(e){return qn(e[yt])}function Do(e,t){return t==null?null:e[t]}function Wy(e){e[fo]=0}function fM(e){e[G]&1024||(e[G]|=1024,ah(e)&&bs(e))}function hM(e,t){for(;e>0;)t=t[bo],e--;return t}function ch(e){var t;return!!(e[G]&9216||(t=e[di])!=null&&t.dirty)}function of(e){var t,n;(t=e[Tn].changeDetectionScheduler)==null||t.notify(1),ch(e)?bs(e):e[G]&64&&(cM()?(e[G]|=1024,bs(e)):(n=e[Tn].changeDetectionScheduler)==null||n.notify())}function bs(e){var n;(n=e[Tn].changeDetectionScheduler)==null||n.notify();let t=Is(e);for(;t!==null&&!(t[G]&8192||(t[G]|=8192,!ah(t)));)t=Is(t)}function qy(e,t){if((e[G]&256)===256)throw new I(911,!1);e[Pr]===null&&(e[Pr]=[]),e[Pr].push(t)}function pM(e,t){if(e[Pr]===null)return;let n=e[Pr].indexOf(t);n!==-1&&e[Pr].splice(n,1)}function Is(e){let t=e[yt];return qn(t)?t[yt]:t}var ie={lFrame:e_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function mM(){return ie.lFrame.elementDepthCount}function gM(){ie.lFrame.elementDepthCount++}function vM(){ie.lFrame.elementDepthCount--}function Yy(){return ie.bindingsEnabled}function Io(){return ie.skipHydrationRootTNode!==null}function yM(e){return ie.skipHydrationRootTNode===e}function _M(e){ie.skipHydrationRootTNode=e}function DM(){ie.skipHydrationRootTNode=null}function ne(){return ie.lFrame.lView}function et(){return ie.lFrame.tView}function On(e){return ie.lFrame.contextLView=e,e[Sn]}function Nn(e){return ie.lFrame.contextLView=null,e}function Rt(){let e=Zy();for(;e!==null&&e.type===64;)e=e.parent;return e}function Zy(){return ie.lFrame.currentTNode}function EM(){let e=ie.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Di(e,t){let n=ie.lFrame;n.currentTNode=e,n.isParent=t}function lh(){return ie.lFrame.isParent}function uh(){ie.lFrame.isParent=!1}function wM(){return ie.lFrame.contextLView}function Ei(){let e=ie.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function bM(e){return ie.lFrame.bindingIndex=e}function Co(){return ie.lFrame.bindingIndex++}function IM(e){let t=ie.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function CM(){return ie.lFrame.inI18n}function MM(e,t){let n=ie.lFrame;n.bindingIndex=n.bindingRootIndex=e,sf(t)}function SM(){return ie.lFrame.currentDirectiveIndex}function sf(e){ie.lFrame.currentDirectiveIndex=e}function Ky(e){let t=ie.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Qy(){return ie.lFrame.currentQueryIndex}function dh(e){ie.lFrame.currentQueryIndex=e}function TM(e){let t=e[te];return t.type===2?t.declTNode:t.type===1?e[rn]:null}function Xy(e,t,n){if(n&le.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&le.Host);)if(i=TM(o),i===null||(o=o[bo],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=ie.lFrame=Jy();return r.currentTNode=t,r.lView=e,!0}function fh(e){let t=Jy(),n=e[te];ie.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Jy(){let e=ie.lFrame,t=e===null?null:e.child;return t===null?e_(e):t}function e_(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function t_(){let e=ie.lFrame;return ie.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var n_=t_;function hh(){let e=t_();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 AM(e){return(ie.lFrame.contextLView=hM(e,ie.lFrame.contextLView))[Sn]}function Mo(){return ie.lFrame.selectedIndex}function fi(e){ie.lFrame.selectedIndex=e}function Fs(){let e=ie.lFrame;return Gy(e.tView,e.selectedIndex)}function ul(){ie.lFrame.currentNamespace=Hy}function r_(){return ie.lFrame.currentNamespace}var i_=!0;function dl(){return i_}function Yn(e){i_=e}function OM(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=Uy(t);(n.preOrderHooks??(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks??(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,o))}function fl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[fo]+=65536),(a>14>16&&(e[G]&3)===t&&(e[G]+=16384,kv(a,o)):kv(a,o)}var mo=-1,hi=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function xM(e){return e instanceof hi}function PM(e){return(e.flags&8)!==0}function RM(e){return(e.flags&16)!==0}function s_(e){return e!==mo}function Uc(e){return e&32767}function FM(e){return e>>16}function Bc(e,t){let n=FM(e),r=t;for(;n>0;)r=r[bo],n--;return r}var af=!0;function $c(e){let t=af;return af=e,t}var LM=256,a_=LM-1,c_=5,kM=0,zn={};function jM(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(gs)&&(r=n[gs]),r==null&&(r=n[gs]=kM++);let i=r&a_,o=1<>c_)]|=o}function Hc(e,t){let n=l_(e,t);if(n!==-1)return n;let r=t[te];r.firstCreatePass&&(e.injectorIndex=t.length,kd(r.data,e),kd(t,null),kd(r.blueprint,null));let i=ph(e,t),o=e.injectorIndex;if(s_(i)){let s=Uc(i),a=Bc(i,t),c=a[te].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|c[s+l]}return t[o+8]=i,o}function kd(e,t){e.push(0,0,0,0,0,0,0,0,t)}function l_(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ph(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=p_(i),r===null)return mo;if(n++,i=i[bo],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return mo}function cf(e,t,n){jM(e,t,n)}function u_(e,t,n){if(n&le.Optional||e!==void 0)return e;Xf(t,"NodeInjector")}function d_(e,t,n,r){if(n&le.Optional&&r===void 0&&(r=null),!(n&(le.Self|le.Host))){let i=e[yo],o=zt(void 0);try{return i?i.get(t,r,n&le.Optional):Dy(t,r,n&le.Optional)}finally{zt(o)}}return u_(r,t,n)}function f_(e,t,n,r=le.Default,i){if(e!==null){if(t[G]&2048&&!(r&le.Self)){let s=$M(e,t,n,r,zn);if(s!==zn)return s}let o=h_(e,t,n,r,zn);if(o!==zn)return o}return d_(t,n,r,i)}function h_(e,t,n,r,i){let o=UM(n);if(typeof o=="function"){if(!Xy(t,e,r))return r&le.Host?u_(i,n,r):d_(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&le.Optional))Xf(n);else return s}finally{n_()}}else if(typeof o=="number"){let s=null,a=l_(e,t),c=mo,l=r&le.Host?t[tn][rn]:null;for((a===-1||r&le.SkipSelf)&&(c=a===-1?ph(e,t):t[a+8],c===mo||!Vv(r,!1)?a=-1:(s=t[te],a=Uc(c),t=Bc(c,t)));a!==-1;){let u=t[te];if(jv(o,a,u.data)){let d=VM(a,t,n,s,r,l);if(d!==zn)return d}c=t[a+8],c!==mo&&Vv(r,t[te].data[a+8]===l)&&jv(o,a,t)?(s=u,a=Uc(c),t=Bc(c,t)):a=-1}}return i}function VM(e,t,n,r,i,o){let s=t[te],a=s.data[e+8],c=r==null?Ps(a)&&af:r!=s&&(a.type&3)!==0,l=i&le.Host&&o===a,u=xc(a,s,n,c,l);return u!==null?pi(t,s,u,a):zn}function xc(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,c=e.directiveStart,l=e.directiveEnd,u=o>>20,d=r?a:a+u,f=i?a+u:l;for(let m=d;m=c&&v.type===n)return m}if(i){let m=s[c];if(m&&vr(m)&&m.type===n)return c}return null}function pi(e,t,n,r){let i=e[n],o=t.data;if(xM(i)){let s=i;s.resolving&&dC(uC(o[n]));let a=$c(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?zt(s.injectImpl):null,u=Xy(e,r,le.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&OM(n,o[n],t)}finally{l!==null&&zt(l),$c(a),s.resolving=!1,n_()}}return i}function UM(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(gs)?e[gs]:void 0;return typeof t=="number"?t>=0?t&a_:BM:t}function jv(e,t,n){let r=1<>c_)]&r)}function Vv(e,t){return!(e&le.Self)&&!(e&le.Host&&t)}var ai=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return f_(this._tNode,this._lView,t,sl(r),n)}};function BM(){return new ai(Rt(),ne())}function ke(e){return As(()=>{let t=e.prototype.constructor,n=t[Fc]||lf(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[Fc]||lf(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function lf(e){return py(e)?()=>{let t=lf(xt(e));return t&&t()}:ci(e)}function $M(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[G]&2048&&!(s[G]&512);){let a=h_(o,s,n,r|le.Self,zn);if(a!==zn)return a;let c=o.parent;if(!c){let l=s[ky];if(l){let u=l.get(n,zn,r);if(u!==zn)return u}c=p_(s),s=s[bo]}o=c}return i}function p_(e){let t=e[te],n=t.type;return n===2?t.declTNode:n===1?e[rn]:null}function Uv(e,t=null,n=null,r){let i=m_(e,t,n,r);return i.resolveInjectorInitializers(),i}function m_(e,t=null,n=null,r,i=new Set){let o=[n||en,zC(e)];return r=r||(typeof e=="object"?void 0:Pt(e)),new _s(o,t||rh(),r||null,i)}var qt=(()=>{let t=class t{static create(r,i){if(Array.isArray(r))return Uv({name:""},i,r,"");{let o=r.name??"";return Uv({name:o},r.parent,r.providers,o)}}};t.THROW_IF_NOT_FOUND=vs,t.NULL=new jc,t.\u0275prov=C({token:t,providedIn:"any",factory:()=>M(wo)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var HM="ngOriginalError";function jd(e){return e[HM]}var yr=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&jd(t);for(;n&&jd(n);)n=jd(n);return n||null}},g_=new E("",{providedIn:"root",factory:()=>g(yr).handleError.bind(void 0)}),v_=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=zM,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),uf=class extends v_{constructor(t){super(),this._lView=t}onDestroy(t){return qy(this._lView,t),()=>pM(this._lView,t)}};function zM(){return new uf(ne())}function GM(){return So(Rt(),ne())}function So(e,t){return new Q(on(e,t))}var Q=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=GM;let e=t;return e})();function WM(e){return e instanceof Q?e.nativeElement:e}var df=class extends Oe{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,tM()&&(this.destroyRef=g(v_,{optional:!0})??void 0)}emit(t){let n=be(null);try{super.next(t)}finally{be(n)}}subscribe(t,n,r){var c,l,u;let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let d=t;i=(c=d.next)==null?void 0:c.bind(d),o=(l=d.error)==null?void 0:l.bind(d),s=(u=d.complete)==null?void 0:u.bind(d)}this.__isAsync&&(o=Vd(o),i&&(i=Vd(i)),s&&(s=Vd(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof ot&&t.add(a),a}};function Vd(e){return t=>{setTimeout(e,void 0,t)}}var st=df;function qM(){return this._results[Symbol.iterator]()}var Cs=class e{get changes(){return this._changes??(this._changes=new st)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=qM)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=wC(t);(this._changesDetected=!EC(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){var t;this.dirty=!0,(t=this._onDirty)==null||t.call(this)}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},YM="ngSkipHydration",ZM="ngskiphydration";function y_(e){let t=e.mergedAttrs;if(t===null)return!1;for(let n=0;ntS}),tS="ng",mh=new E(""),Yt=new E("",{providedIn:"platform",factory:()=>"unknown"});var fG=new E(""),gh=new E("",{providedIn:"root",factory:()=>{var e,t;return((t=(e=Ls().body)==null?void 0:e.querySelector("[ngCspNonce]"))==null?void 0:t.getAttribute("ngCspNonce"))||null}});function nS(){let e=new wi;return g(Yt)==="browser"&&(e.store=rS(Ls(),g(hl))),e}var wi=(()=>{let t=class t{constructor(){this.store={},this.onSerializeCallbacks={}}get(r,i){return this.store[r]!==void 0?this.store[r]:i}set(r,i){this.store[r]=i}remove(r){delete this.store[r]}hasKey(r){return this.store.hasOwnProperty(r)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(r,i){this.onSerializeCallbacks[r]=i}toJson(){for(let r in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(r))try{this.store[r]=this.onSerializeCallbacks[r]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/null;function dS(e,t,n=!1){let r=e.getAttribute(Ud);if(r==null)return null;let[i,o]=r.split("|");if(r=n?o:i,!r)return null;let s=o?`|${o}`:"",a=n?i:s,c={};if(r!==""){let u=t.get(wi,null,{optional:!0});u!==null&&(c=u.get(T_,[])[Number(r)])}let l={data:c,firstChild:e.firstChild??null};return n&&(l.firstChild=e,pl(l,0,e.nextSibling)),a?e.setAttribute(Ud,a):e.removeAttribute(Ud),l}function fS(){A_=dS}function yh(e,t,n=!1){return A_(e,t,n)}function hS(e){let t=e._lView;return t[te].type===2?null:(jy(t)&&(t=t[at]),t)}function pS(e){var t;return(t=e.textContent)==null?void 0:t.replace(/\s/gm,"")}function mS(e){let t=Ls(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=pS(o);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,i=[];for(;r=n.nextNode();)i.push(r);for(let o of i)o.textContent==="ngetn"?o.replaceWith(t.createTextNode("")):o.remove()}function pl(e,t,n){e.segmentHeads??(e.segmentHeads={}),e.segmentHeads[t]=n}function pf(e,t){var n;return((n=e.segmentHeads)==null?void 0:n[t])??null}function gS(e,t){var i,o;let n=e.data,r=((i=n[iS])==null?void 0:i[t])??null;return r===null&&((o=n[vh])!=null&&o[t])&&(r=_h(e,t)),r}function O_(e,t){var n;return((n=e.data[vh])==null?void 0:n[t])??null}function _h(e,t){let n=O_(e,t)??[],r=0;for(let i of n)r+=i[Gc]*(i[S_]??1);return r}function ml(e,t){var n;if(typeof e.disconnectedNodes>"u"){let r=e.data[cS];e.disconnectedNodes=r?new Set(r):null}return!!((n=e.disconnectedNodes)!=null&&n.has(t))}var wc=new E(""),N_=!1,x_=new E("",{providedIn:"root",factory:()=>N_}),vS=new E(""),bc;function yS(){if(bc===void 0&&(bc=null,pr.trustedTypes))try{bc=pr.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return bc}function gl(e){var t;return((t=yS())==null?void 0:t.createHTML(e))||e}var Ic;function _S(){if(Ic===void 0&&(Ic=null,pr.trustedTypes))try{Ic=pr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ic}function $v(e){var t;return((t=_S())==null?void 0:t.createHTML(e))||e}var _r=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${hy})`}},mf=class extends _r{getTypeName(){return"HTML"}},gf=class extends _r{getTypeName(){return"Style"}},vf=class extends _r{getTypeName(){return"Script"}},yf=class extends _r{getTypeName(){return"URL"}},_f=class extends _r{getTypeName(){return"ResourceURL"}};function Zn(e){return e instanceof _r?e.changingThisBreaksApplicationSecurity:e}function kr(e,t){let n=DS(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${hy})`)}return n===t}function DS(e){return e instanceof _r&&e.getTypeName()||null}function P_(e){return new mf(e)}function R_(e){return new gf(e)}function F_(e){return new vf(e)}function L_(e){return new yf(e)}function k_(e){return new _f(e)}function ES(e){let t=new Ef(e);return wS()?new Df(t):t}var Df=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(gl(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},Ef=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=gl(t),n}};function wS(){try{return!!new window.DOMParser().parseFromString(gl(""),"text/html")}catch{return!1}}var bS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function vl(e){return e=String(e),e.match(bS)?e:"unsafe:"+e}function br(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function ks(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var j_=br("area,br,col,hr,img,wbr"),V_=br("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),U_=br("rp,rt"),IS=ks(U_,V_),CS=ks(V_,br("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),MS=ks(U_,br("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Hv=ks(j_,CS,MS,IS),B_=br("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),SS=br("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),TS=br("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),AS=ks(B_,SS,TS),OS=br("script,style,template"),wf=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=PS(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=xS(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(t){let n=zv(t).toLowerCase();if(!Hv.hasOwnProperty(n))return this.sanitizedSomething=!0,!OS.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let i=0;i"),!0}endElement(t){let n=zv(t).toLowerCase();Hv.hasOwnProperty(n)&&!j_.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Gv(t))}};function NS(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function xS(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw $_(t);return t}function PS(e){let t=e.firstChild;if(t&&NS(e,t))throw $_(t);return t}function zv(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function $_(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var RS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,FS=/([^\#-~ |!])/g;function Gv(e){return e.replace(/&/g,"&").replace(RS,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(FS,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Cc;function Dh(e,t){let n=null;try{Cc=Cc||ES(e);let r=t?String(t):"";n=Cc.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Cc.getInertBodyElement(r)}while(r!==o);let a=new wf().sanitizeChildren(Wv(n)||n);return gl(a)}finally{if(n){let r=Wv(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Wv(e){return"content"in e&&LS(e)?e.content:null}function LS(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Dt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Dt||{});function To(e){let t=z_();return t?$v(t.sanitize(Dt.HTML,e)||""):kr(e,"HTML")?$v(Zn(e)):Dh(Ls(),Os(e))}function H_(e){let t=z_();return t?t.sanitize(Dt.URL,e)||"":kr(e,"URL")?Zn(e):vl(Os(e))}function z_(){let e=ne();return e&&e[Tn].sanitizer}var kS=/^>|^->||--!>|)/g,VS="\u200B$1\u200B";function US(e){return e.replace(kS,t=>t.replace(jS,VS))}function hG(e){return e.ownerDocument.defaultView}function G_(e){return e.ownerDocument}function BS(e){return e.ownerDocument.body}function W_(e){return e instanceof Function?e():e}function Mc(e){return(e??g(qt)).get(Yt)==="browser"}var Dr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Dr||{}),$S;function Eh(e,t){return $S(e,t)}function ho(e,t,n,r,i){if(r!=null){let o,s=!1;qn(r)?o=r:mr(r)&&(s=!0,r=r[Wt]);let a=An(r);e===0&&n!==null?i==null?Q_(t,n,a):Wc(t,n,a,i||null,!0):e===1&&n!==null?Wc(t,n,a,i||null,!0):e===2?Ch(t,a,s):e===3&&t.destroyNode(a),o!=null&&rT(t,e,o,n,i)}}function wh(e,t){return e.createText(t)}function HS(e,t,n){e.setValue(t,n)}function bh(e,t){return e.createComment(US(t))}function yl(e,t,n){return e.createElement(t,n)}function zS(e,t){q_(e,t),t[Wt]=null,t[rn]=null}function GS(e,t,n,r,i,o){r[Wt]=i,r[rn]=t,Dl(e,r,n,1,i,o)}function q_(e,t){var n;(n=t[Tn].changeDetectionScheduler)==null||n.notify(1),Dl(e,t,t[Re],2,null,null)}function WS(e){let t=e[Es];if(!t)return Bd(e[te],e);for(;t;){let n=null;if(mr(t))n=t[Es];else{let r=t[Gt];r&&(n=r)}if(!n){for(;t&&!t[Cn]&&t!==e;)mr(t)&&Bd(t[te],t),t=t[yt];t===null&&(t=e),mr(t)&&Bd(t[te],t),n=t&&t[Cn]}t=n}}function qS(e,t,n,r){let i=Gt+r,o=n.length;r>0&&(n[i-1][Cn]=t),r0&&(e[n-1][Cn]=r[Cn]);let o=kc(e,Gt+t);zS(r[te],r);let s=o[Mn];s!==null&&s.detachView(o[te]),r[yt]=null,r[Cn]=null,r[G]&=-129}return r}function Z_(e,t){if(!(t[G]&256)){let n=t[Re];n.destroyNode&&Dl(e,t,n,3,null,null),WS(t)}}function Bd(e,t){if(t[G]&256)return;let n=be(null);try{t[G]&=-129,t[G]|=256,t[di]&&Yg(t[di]),KS(e,t),ZS(e,t),t[te].type===1&&t[Re].destroy();let r=t[xs];if(r!==null&&qn(t[yt])){r!==t[yt]&&Y_(r,t);let i=t[Mn];i!==null&&i.detachView(e)}eS(t)}finally{be(n)}}function ZS(e,t){let n=e.cleanup,r=t[Ds];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[Ds]=null);let i=t[Pr];if(i!==null){t[Pr]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===Gn.None||o===Gn.Emulated)return null}return on(r,n)}}function Wc(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Q_(e,t,n){e.appendChild(t,n)}function qv(e,t,n,r,i){r!==null?Wc(e,t,n,r,i):Q_(e,t,n)}function XS(e,t,n,r){e.removeChild(t,n,r)}function Ih(e,t){return e.parentNode(t)}function JS(e,t){return e.nextSibling(t)}function X_(e,t,n){return tT(e,t,n)}function eT(e,t,n){return e.type&40?on(e,n):null}var tT=eT,Yv;function _l(e,t,n,r){let i=K_(e,r,t),o=t[Re],s=r.parent||t[rn],a=X_(s,r,t);if(i!=null)if(Array.isArray(n))for(let c=0;cat&&iD(e,t,at,!1),Hn(s?2:0,i),n(r,i)}finally{fi(o),Hn(s?3:1,i)}}function Th(e,t,n){if(sh(t)){let r=be(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function dT(e){__(e)?eD(e):mS(e)}function fT(){lD=dT}function hT(e,t,n,r){let i=pD(t);i.push(n),e.firstCreatePass&&mD(e).push(r,i.length-1)}function pT(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return Io()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Zv(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??(r={});let a,c=Ye.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(i!==null){if(!i.hasOwnProperty(o))continue;l=i[o]}e===0?Kv(r,n,l,a,c):Kv(r,n,l,a)}return r}function Kv(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function mT(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],c=null,l=null;for(let u=r;u0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function DT(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;Ps(n)&&ST(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Hc(n,t),Rr(r,t);let s=n.initialInputs;for(let a=i;a{bs(e.lView)},consumerOnSignalRead(){this.lView[di]=this}}),yD=100;function _D(e,t=!0,n=0){var s,a,c;let r=e[Tn],i=r.rendererFactory,o=!1;o||(s=i.begin)==null||s.call(i);try{zT(e,n)}catch(l){throw t&&gD(e,l),l}finally{o||((a=i.end)==null||a.call(i),(c=r.inlineEffectRunner)==null||c.flush())}}function zT(e,t){Sf(e,t);let n=0;for(;ch(e);){if(n===yD)throw new I(103,!1);n++,Sf(e,1)}}function GT(e,t,n,r){var c;let i=t[G];if((i&256)===256)return;let o=!1;!o&&((c=t[Tn].inlineEffectRunner)==null||c.flush()),fh(t);let s=null,a=null;!o&&WT(e)&&(a=UT(t),s=Wg(a));try{Wy(t),bM(e.bindingStartIndex),n!==null&&aD(e,t,n,2,r);let l=(i&3)===3;if(!o)if(l){let f=e.preOrderCheckHooks;f!==null&&Oc(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Nc(t,f,0,null),Ld(t,0)}if(qT(t),DD(t,0),e.contentQueries!==null&&hD(e,t),!o)if(l){let f=e.contentCheckHooks;f!==null&&Oc(t,f)}else{let f=e.contentHooks;f!==null&&Nc(t,f,1),Ld(t,1)}sT(e,t);let u=e.components;u!==null&&wD(t,u,0);let d=e.viewQuery;if(d!==null&&Mf(2,d,r),!o)if(l){let f=e.viewCheckHooks;f!==null&&Oc(t,f)}else{let f=e.viewHooks;f!==null&&Nc(t,f,2),Ld(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Fd]){for(let f of t[Fd])f();t[Fd]=null}o||(t[G]&=-73)}catch(l){throw bs(t),l}finally{a!==null&&(qg(a,s),$T(a)),hh()}}function WT(e){return e.type!==2}function DD(e,t){for(let n=E_(e);n!==null;n=w_(n))for(let r=Gt;r-1&&(bf(t,r),kc(n,r))}this._attachedToViewContainer=!1}Z_(this._lView[te],this._lView)}onDestroy(t){qy(this._lView,t)}markForCheck(){Fh(this._cdRefInjectingView||this._lView)}detach(){this._lView[G]&=-129}reattach(){of(this._lView),this._lView[G]|=128}detectChanges(){this._lView[G]|=1024,_D(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,q_(this._lView[te],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=t,of(this._lView)}},_t=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=QT;let e=t;return e})(),ZT=_t,KT=class extends ZT{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var t;return((t=this._declarationTContainer.tView)==null?void 0:t.ssrId)||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let i=kT(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new mi(i)}};function QT(){return Il(Rt(),ne())}function Il(e,t){return e.type&4?new KT(t,e,So(e,t)):null}function bD(e){let t=e[ws]??[],r=e[yt][Re];for(let i of t)XT(i,r);e[ws]=en}function XT(e,t){let n=0,r=e.firstChild;if(r){let i=e.data[Gc];for(;n0&&(o.firstChild=e,e=Ml(r[Gc],e)),n.push(o)}return[e,n]}var CD=()=>null;function cA(e,t){let n=e[ws];return!t||n===null||n.length===0?null:n[0].data[sS]===t?n.shift():(bD(e),null)}function lA(){CD=cA}function Xv(e,t){return CD(e,t)}var Tf=class{},Af=class{},Zc=class{};function uA(e){let t=Error(`No component factory found for ${Pt(e)}.`);return t[dA]=e,t}var dA="ngComponent";var Of=class{resolveComponentFactory(t){throw uA(t)}},Kn=(()=>{let t=class t{};t.NULL=new Of;let e=t;return e})(),gi=class{},Ir=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>fA();let e=t;return e})();function fA(){let e=ne(),t=Rt(),n=Lr(t.index,e);return(mr(n)?n:e)[Re]}var hA=(()=>{let t=class t{};t.\u0275prov=C({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Hd={};var Jv=new Set;function js(e){var t;Jv.has(e)||(Jv.add(e),(t=performance==null?void 0:performance.mark)==null||t.call(performance,"mark_feature_usage",{detail:{feature:e}}))}function ey(...e){}function pA(){let e=typeof pr.requestAnimationFrame=="function",t=pr[e?"requestAnimationFrame":"setTimeout"],n=pr[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var fe=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new st(!1),this.onMicrotaskEmpty=new st(!1),this.onStable=new st(!1),this.onError=new st(!1),typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=pA().nativeRequestAnimationFrame,vA(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new I(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,mA,ey,ey);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},mA={};function Lh(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function gA(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(pr,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Nf(e),e.isCheckStableRunning=!0,Lh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Nf(e))}function vA(e){let t=()=>{gA(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(yA(a))return n.invokeTask(i,o,s,a);try{return ty(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),ny(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return ty(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),ny(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,Nf(e),Lh(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function Nf(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ty(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ny(e){e._nesting--,Lh(e)}function yA(e){var t;return!Array.isArray(e)||e.length!==1?!1:((t=e[0].data)==null?void 0:t.__ignore_ng_zone__)===!0}var MD=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var r;this.executeInternalCallbacks(),(r=this.handler)==null||r.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of r)i()}ngOnDestroy(){var r;(r=this.handler)==null||r.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=C({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Kc(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&nD(e,n,o.join(" "))}}function CA(e,t,n){let r=e.projection=[];for(let i=0;i{let t=class t{};t.__NG_ELEMENT_ID__=SA;let e=t;return e})();function SA(){let e=Rt();return TD(e,ne())}var TA=Ft,SD=class extends TA{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return So(this._hostTNode,this._hostLView)}get injector(){return new ai(this._hostTNode,this._hostLView)}get parentInjector(){let t=ph(this._hostTNode,this._hostLView);if(s_(t)){let n=Bc(t,this._hostLView),r=Uc(t),i=n[te].data[r+8];return new ai(i,n)}else return new ai(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=iy(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Gt}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=Xv(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Qv(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!nM(t),a;if(s)a=n;else{let v=n||{};a=v.index,r=v.injector,i=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef}let c=s?t:new Ms(ui(t)),l=r||this.parentInjector;if(!o&&c.ngModule==null){let _=(s?l:this.parentInjector).get(fn,null);_&&(o=_)}let u=ui(c.componentType??{}),d=Xv(this._lContainer,(u==null?void 0:u.id)??null),f=(d==null?void 0:d.firstChild)??null,m=c.create(l,i,f,o);return this.insertImpl(m.hostView,a,Qv(this._hostTNode,d)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(dM(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=i[yt],l=new SD(c,c[rn],c[yt]);l.detach(l.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return jT(s,i,o,r),t.attachToViewContainerRef(),wy(zd(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=iy(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=bf(this._lContainer,n);r&&(kc(zd(this._lContainer),n),Z_(r[te],r))}detach(t){let n=this._adjustIndex(t,-1),r=bf(this._lContainer,n);return r&&kc(zd(this._lContainer),n)!=null?new mi(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function iy(e){return e[Vc]}function zd(e){return e[Vc]||(e[Vc]=[])}function TD(e,t){let n,r=t[e.index];return qn(r)?n=r:(n=fD(r,t,null,e),t[e.index]=n,bl(t,n)),AD(n,t,e,r),new SD(n,e,t)}function AA(e,t){let n=e[Re],r=n.createComment(""),i=on(t,e),o=Ih(n,i);return Wc(n,o,r,JS(n,i),!1),r}var AD=OD,kh=()=>!1;function OA(e,t,n){return kh(e,t,n)}function OD(e,t,n,r){if(e[gr])return;let i;n.type&8?i=An(r):i=AA(t,n),e[gr]=i}function NA(e,t,n){var u;if(e[gr]&&e[ws])return!0;let r=n[hn],i=t.index-at;if(!r||KM(t)||ml(r,i))return!1;let s=pf(r,i),a=(u=r.data[vh])==null?void 0:u[i],[c,l]=aA(s,a);return e[gr]=c,e[ws]=l,!0}function xA(e,t,n,r){kh(e,n,t)||OD(e,t,n,r)}function PA(){AD=xA,kh=NA}var Rf=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ff=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let l=o[a+1],u=t[-c];for(let d=Gt;dt.trim())}function PD(e,t,n){e.queries===null&&(e.queries=new Lf),e.queries.track(new kf(t,n))}function $A(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function jh(e,t){return e.queries.getByIndex(t)}function HA(e,t){let n=e[te],r=jh(n,t);return r.crossesNgTemplate?jf(n,e,t,[]):ND(n,e,r,t)}function zA(e){return typeof e=="function"&&e[fd]!==void 0}function RD(e){return zA(e)&&typeof e.set=="function"}function GA(e){return Object.getPrototypeOf(e.prototype).constructor}function He(e){let t=GA(e.type),n=!0,r=[e];for(;t;){let i;if(vr(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new I(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Sc(e.inputs),s.inputTransforms=Sc(e.inputTransforms),s.declaredInputs=Sc(e.declaredInputs),s.outputs=Sc(e.outputs);let a=i.hostBindings;a&&KA(e,a);let c=i.viewQuery,l=i.contentQueries;if(c&&YA(e,c),l&&ZA(e,l),WA(e,i),nC(e.outputs,i.outputs),vr(i)&&i.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=ys(i.hostAttrs,n=ys(n,i.hostAttrs))}}function Sc(e){return e===go?{}:e===en?[]:e}function YA(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function ZA(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function KA(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}var Er=class{},Ss=class{};function FD(e,t){return new Jc(e,t??null,[])}var Jc=class extends Er{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Qc(this);let i=Oy(t);this._bootstrapComponents=W_(i.bootstrap),this._r3Injector=m_(t,n,[{provide:Er,useValue:this},{provide:Kn,useValue:this.componentFactoryResolver},...r],Pt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Vf=class extends Ss{constructor(t){super(),this.moduleType=t}create(t){return new Jc(this.moduleType,t,[])}};var el=class extends Er{constructor(t){super(),this.componentFactoryResolver=new Qc(this),this.instance=null;let n=new _s([...t.providers,{provide:Er,useValue:this},{provide:Kn,useValue:this.componentFactoryResolver}],t.parent||rh(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Vh(e,t,n=null){return new el({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Vs=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new We(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function LD(e){return XA(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function QA(e,t){if(Array.isArray(e))for(let n=0;n>17&32767}function iO(e){return(e&2)==2}function oO(e,t){return e&131071|t<<17}function Bf(e){return e|2}function Eo(e){return(e&131068)>>2}function Gd(e,t){return e&-131069|t<<2}function sO(e){return(e&1)===1}function $f(e){return e|1}function aO(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=vi(s),c=Eo(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Ns(d,u)>0)&&(l=!0)}else u=n;if(i)if(c!==0){let f=vi(e[a+1]);e[r+1]=Tc(f,a),f!==0&&(e[f+1]=Gd(e[f+1],r)),e[a+1]=oO(e[a+1],r)}else e[r+1]=Tc(a,0),a!==0&&(e[a+1]=Gd(e[a+1],r)),a=r;else e[r+1]=Tc(c,0),a===0?a=r:e[c+1]=Gd(e[c+1],r),c=r;l&&(e[r+1]=Bf(e[r+1])),oy(e,u,r,!0),oy(e,u,r,!1),cO(t,u,e,r,o),s=Tc(a,c),o?t.classBindings=s:t.styleBindings=s}function cO(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Ns(o,t)>=0&&(n[r+1]=$f(n[r+1]))}function oy(e,t,n,r){let i=e[n+1],o=t===null,s=r?vi(i):Eo(i),a=!1;for(;s!==0&&(a===!1||o);){let c=e[s],l=e[s+1];lO(c,t)&&(a=!0,e[s+1]=r?$f(l):Bf(l)),s=r?vi(l):Eo(l)}a&&(e[n+1]=r?Bf(i):$f(i))}function lO(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ns(e,t)>=0:!1}function V(e,t,n){let r=ne(),i=Co();if(pn(r,i,t)){let o=et(),s=Fs();wl(o,s,r,e,t,r[Re],n,!1)}return V}function sy(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";Ph(e,n,o[s],s,r)}function Ii(e,t,n){return UD(e,t,n,!1),Ii}function tt(e,t){return UD(e,t,null,!0),tt}function UD(e,t,n,r){let i=ne(),o=et(),s=IM(2);if(o.firstUpdatePass&&dO(o,e,s,r),t!==bi&&pn(i,s,t)){let a=o.data[Mo()];gO(o,a,i,i[Re],e,i[s+1]=vO(t,n),r,s)}}function uO(e,t){return t>=e.expandoStartIndex}function dO(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[Mo()],s=uO(e,n);yO(o,r)&&t===null&&!s&&(t=!1),t=fO(i,o,t,r),aO(i,o,t,n,s,r)}}function fO(e,t,n,r){let i=Ky(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Wd(null,e,t,n,r),n=Ts(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Wd(i,e,t,n,r),o===null){let c=hO(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Wd(null,e,t,c[1],r),c=Ts(c,t.attrs,r),pO(e,t,r,c))}else o=mO(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function hO(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Eo(r)!==0)return e[vi(r)]}function pO(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[vi(i)]=r}function mO(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let c=e[i],l=Array.isArray(c),u=l?c[1]:c,d=u===null,f=n[i+1];f===bi&&(f=d?en:void 0);let m=d?Pd(f,r):u===r?f:void 0;if(l&&!tl(m)&&(m=Pd(c,r)),tl(m)&&(a=m,s))return a;let v=e[i+1];i=s?vi(v):Eo(v)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=Pd(c,r))}return a}function tl(e){return e!==void 0}function vO(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Pt(Zn(e)))),e}function yO(e,t){return(e.flags&(t?8:16))!==0}function _O(e,t,n,r,i,o){let s=t.consts,a=Do(s,i),c=Ao(t,e,2,r,a);return xh(t,n,c,Do(s,o)),c.attrs!==null&&Kc(c,c.attrs,!1),c.mergedAttrs!==null&&Kc(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function De(e,t,n,r){let i=ne(),o=et(),s=at+e,a=i[Re],c=o.firstCreatePass?_O(s,o,i,t,n,r):o.data[s],l=BD(o,i,c,a,t,e);i[s]=l;let u=ll(c);return Di(c,!0),rD(a,l,c),!Bs(c)&&dl()&&_l(o,i,l,c),mM()===0&&Rr(l,i),gM(),u&&(Ah(o,i,c),Th(o,c,i)),r!==null&&Oh(i,c),De}function ye(){let e=Rt();lh()?uh():(e=e.parent,Di(e,!1));let t=e;yM(t)&&DM(),vM();let n=et();return n.firstCreatePass&&(fl(n,e),sh(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&PM(t)&&sy(n,t,ne(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&RM(t)&&sy(n,t,ne(),t.stylesWithoutHost,!1),ye}function je(e,t,n,r){return De(e,t,n,r),ye(),je}var BD=(e,t,n,r,i,o)=>(Yn(!0),yl(r,i,r_()));function DO(e,t,n,r,i,o){let s=t[hn],a=!s||Io()||Bs(n)||ml(s,o);if(Yn(a),a)return yl(r,i,r_());let c=Cl(s,e,t,n);return O_(s,o)&&pl(s,o,c.nextSibling),s&&(y_(n)||__(c))&&Ps(n)&&(_M(n),eD(c)),c}function EO(){BD=DO}function wO(e,t,n,r,i){let o=t.consts,s=Do(o,r),a=Ao(t,e,8,"ng-container",s);s!==null&&Kc(a,s,!0);let c=Do(o,i);return xh(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function xn(e,t,n){let r=ne(),i=et(),o=e+at,s=i.firstCreatePass?wO(o,i,r,t,n):i.data[o];Di(s,!0);let a=$D(i,r,s,e);return r[o]=a,dl()&&_l(i,r,a,s),Rr(a,r),ll(s)&&(Ah(i,r,s),Th(i,s,r)),n!=null&&Oh(r,s),xn}function Pn(){let e=Rt(),t=et();return lh()?uh():(e=e.parent,Di(e,!1)),t.firstCreatePass&&(fl(t,e),sh(e)&&t.queries.elementEnd(e)),Pn}function Ci(e,t,n){return xn(e,t,n),Pn(),Ci}var $D=(e,t,n,r)=>(Yn(!0),bh(t[Re],""));function bO(e,t,n,r){let i,o=t[hn],s=!o||Io()||Bs(n);if(Yn(s),s)return bh(t[Re],"");let a=Cl(o,e,t,n),c=gS(o,r);return pl(o,r,a),i=Ml(c,a),i}function IO(){$D=bO}function Qn(){return ne()}function Uh(e,t,n){let r=ne(),i=Co();if(pn(r,i,t)){let o=et(),s=Fs();wl(o,s,r,e,t,r[Re],n,!0)}return Uh}function $s(e,t,n){let r=ne(),i=Co();if(pn(r,i,t)){let o=et(),s=Fs(),a=Ky(o.data),c=xT(a,s,r);wl(o,s,r,e,t,c,n,!0)}return $s}var nl="en-US";var CO=nl;function MO(e){typeof e=="string"&&(CO=e.toLowerCase().replace(/_/g,"-"))}function HD(e,t,n){let r=e[Re];switch(n){case Node.COMMENT_NODE:return bh(r,t);case Node.TEXT_NODE:return wh(r,t);case Node.ELEMENT_NODE:return yl(r,t,null)}}var SO=(e,t,n,r)=>(Yn(!0),HD(e,n,r));function TO(e,t,n,r){return Yn(!0),HD(e,n,r)}function AO(){SO=TO}function Xe(e,t,n,r){let i=ne(),o=et(),s=Rt();return zD(o,i,i[Re],s,e,t,r),Xe}function OO(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function zD(e,t,n,r,i,o,s){let a=ll(r),l=e.firstCreatePass&&mD(e),u=t[Sn],d=pD(t),f=!0;if(r.type&3||s){let _=on(r,t),N=s?s(_):_,x=d.length,ge=s?H=>s(An(H[r.index])):r.index,ee=null;if(!s&&a&&(ee=OO(e,t,i,r.index)),ee!==null){let H=ee.__ngLastListenerFn__||ee;H.__ngNextListenerFn__=o,ee.__ngLastListenerFn__=o,f=!1}else{o=ly(r,t,u,o,!1);let H=n.listen(N,i,o);d.push(o,H),l&&l.push(i,ge,x,x+1)}}else o=ly(r,t,u,o,!1);let m=r.outputs,v;if(f&&m!==null&&(v=m[i])){let _=v.length;if(_)for(let N=0;N<_;N+=2){let x=v[N],ge=v[N+1],Et=t[x][ge].subscribe(o),nt=d.length;d.push(o,Et),l&&l.push(i,r.index,nt,-(nt+1))}}}function cy(e,t,n,r){let i=be(null);try{return Hn(6,t,n),n(r)!==!1}catch(o){return gD(e,o),!1}finally{Hn(7,t,n),be(i)}}function ly(e,t,n,r,i){return function o(s){if(s===Function)return r;let a=e.componentOffset>-1?Lr(e.index,t):t;Fh(a);let c=cy(t,n,r,s),l=o.__ngNextListenerFn__;for(;l;)c=cy(t,n,l,s)&&c,l=l.__ngNextListenerFn__;return i&&c===!1&&s.preventDefault(),c}}function me(e=1){return AM(e)}function NO(e,t){let n=null,r=RC(e);for(let i=0;i=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Sl(e){let t=wM();return Rs(t,at+e)}function Jn(e,t=""){let n=ne(),r=et(),i=e+at,o=r.firstCreatePass?Ao(r,i,1,t,null):r.data[i],s=WD(r,n,o,t,e);n[i]=s,dl()&&_l(r,n,s,o),Di(o,!1)}var WD=(e,t,n,r,i)=>(Yn(!0),wh(t[Re],r));function RO(e,t,n,r,i){let o=t[hn],s=!o||Io()||Bs(n)||ml(o,i);return Yn(s),s?wh(t[Re],r):Cl(o,e,t,n)}function FO(){WD=RO}function LO(e){return gn("",e,""),LO}function gn(e,t,n){let r=ne(),i=rO(r,e,t,n);return i!==bi&&PT(r,Mo(),i),gn}function kO(e,t,n){RD(t)&&(t=t());let r=ne(),i=Co();if(pn(r,i,t)){let o=et(),s=Fs();wl(o,s,r,e,t,r[Re],n,!1)}return kO}function gG(e,t){let n=RD(e);return n&&e.set(t),n}function jO(e,t){let n=ne(),r=et(),i=Rt();return zD(r,n,n[Re],i,e,t),jO}function VO(e,t,n){let r=et();if(r.firstCreatePass){let i=vr(e);Hf(n,r.data,r.blueprint,i,!0),Hf(t,r.data,r.blueprint,i,!1)}}function Hf(e,t,n,r,i){if(e=xt(e),Array.isArray(e))for(let o=0;o>20;if(vo(e)||!e.multi){let m=new hi(l,i,y),v=Yd(c,t,i?u:u+f,d);v===-1?(cf(Hc(a,s),o,c),qd(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[v]=m,s[v]=m)}else{let m=Yd(c,t,u+f,d),v=Yd(c,t,u,u+f),_=m>=0&&n[m],N=v>=0&&n[v];if(i&&!N||!i&&!_){cf(Hc(a,s),o,c);let x=$O(i?BO:UO,n.length,i,r,l);!i&&N&&(n[v].providerFactory=x),qd(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(x),s.push(x)}else{let x=qD(n[i?v:m],l,!i&&r);qd(o,e,m>-1?m:v,x)}!i&&r&&N&&n[v].componentProviders++}}}function qd(e,t,n,r){let i=vo(t),o=YC(t);if(i||o){let c=(o?xt(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function qD(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Yd(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>VO(r,i?i(e):e,t)}}var HO=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let i=Py(!1,r.type),o=i.length>0?Vh([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=C({token:t,providedIn:"environment",factory:()=>new t(M(fn))});let e=t;return e})();function YD(e){js("NgStandalone"),e.getStandaloneInjector=t=>t.get(HO).getOrCreateStandaloneInjector(e)}function vG(e,t,n,r){return ZD(ne(),Ei(),e,t,n,r)}function yG(e,t,n,r,i){return KD(ne(),Ei(),e,t,n,r,i)}function _G(e,t,n,r,i,o,s,a){let c=Ei()+e,l=ne(),u=kD(l,c,n,r,i,o);return pn(l,c+4,s)||u?Us(l,c+5,a?t.call(a,n,r,i,o,s):t(n,r,i,o,s)):JA(l,c+5)}function Tl(e,t){let n=e[t];return n===bi?void 0:n}function ZD(e,t,n,r,i,o){let s=t+n;return pn(e,s,i)?Us(e,s+1,o?r.call(o,i):r(i)):Tl(e,s+1)}function KD(e,t,n,r,i,o,s){let a=t+n;return Uf(e,a,i,o)?Us(e,a+2,s?r.call(s,i,o):r(i,o)):Tl(e,a+2)}function zO(e,t,n,r,i,o,s,a,c){let l=t+n;return kD(e,l,i,o,s,a)?Us(e,l+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):Tl(e,l+4)}function GO(e,t,n,r,i,o){let s=t+n,a=!1;for(let c=0;c=0;n--){let r=t[n];if(e===r.name)return r}}function yn(e,t,n){let r=e+at,i=ne(),o=Rs(i,r);return Al(i,r)?ZD(i,Ei(),t,o.transform,n,o):o.transform(n)}function DG(e,t,n,r){let i=e+at,o=ne(),s=Rs(o,i);return Al(o,i)?KD(o,Ei(),t,s.transform,n,r,s):s.transform(n,r)}function EG(e,t,n,r,i,o){let s=e+at,a=ne(),c=Rs(a,s);return Al(a,s)?zO(a,Ei(),t,c.transform,n,r,i,o,c):c.transform(n,r,i,o)}function wG(e,t,n){let r=e+at,i=ne(),o=Rs(i,r);return Al(i,r)?GO(i,Ei(),t,o.transform,n,o):o.transform.apply(o,n)}function Al(e,t){return e[te].data[t].pure}function Ol(e,t){return Il(e,t)}var Nl=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var QD=new E("");function jr(e){return!!e&&typeof e.then=="function"}function Hh(e){return!!e&&typeof e.subscribe=="function"}var XD=new E(""),JD=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=g(XD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(jr(s))r.push(s);else if(Hh(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});r.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),r.length===0&&i(),this.initialized=!0}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Oo=new E("");function qO(){Zg(()=>{throw new I(600,!1)})}function YO(e){return e.isBoundToModule}function ZO(e,t,n){try{let r=n();return jr(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Vr=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(g_),this.afterRenderEffectManager=g(MD),this.externalTestViews=new Set,this.beforeRender=new Oe,this.afterTick=new Oe,this.componentTypes=[],this.components=[],this.isStable=g(Vs).hasPendingTasks.pipe(b(r=>!r)),this._injector=g(fn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof Zc;if(!this._injector.get(JD).done){let m=!o&&Ay(r),v=!1;throw new I(405,v)}let a;o?a=r:a=this._injector.get(Kn).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=YO(a)?void 0:this._injector.get(Er),l=i||a.selector,u=a.create(qt.NULL,[],l,c),d=u.location.nativeElement,f=u.injector.get(QD,null);return f==null||f.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),Zd(this.components,u),f==null||f.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new I(101,!1);let i=be(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,be(i)}}detectChangesInAttachedViews(r){let i=0,o=this.afterRenderEffectManager;for(;;){if(i===yD)throw new I(103,!1);if(r){let s=i===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:c}of this._views)KO(a,s,c)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Gf(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Gf(s))))break}}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Zd(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(Oo,[]);[...this._bootstrapListeners,...i].forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Zd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new I(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Zd(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var lo;function zh(e){lo??(lo=new WeakMap);let t=lo.get(e);if(t)return t;let n=e.isStable.pipe(bn(r=>r)).toPromise().then(()=>{});return lo.set(e,n),e.onDestroy(()=>lo==null?void 0:lo.delete(e)),n}function KO(e,t,n){!t&&!Gf(e)||QO(e,n,t)}function Gf(e){return ch(e)}function QO(e,t,n){let r;n?(r=0,e[G]|=1024):e[G]&64?r=0:r=1,_D(e,t,r)}var Wf=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Gh=(()=>{let t=class t{compileModuleSync(r){return new Vf(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=Oy(r),s=W_(o.declarations).reduce((a,c)=>{let l=ui(c);return l&&a.push(new Ms(l)),a},[]);return new Wf(i,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var XO=(()=>{let t=class t{constructor(){this.zone=g(fe),this.applicationRef=g(Vr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;(r=this._onMicrotaskEmptySubscription)==null||r.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function JO(e){return[{provide:fe,useFactory:e},{provide:li,multi:!0,useFactory:()=>{let t=g(XO,{optional:!0});return()=>t.initialize()}},{provide:li,multi:!0,useFactory:()=>{let t=g(rN);return()=>{t.initialize()}}},{provide:g_,useFactory:eN}]}function eN(){let e=g(fe),t=g(yr);return n=>e.runOutsideAngular(()=>t.handleError(n))}function tN(e){let t=JO(()=>new fe(nN(e)));return _i([[],t])}function nN(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(e==null?void 0:e.eventCoalescing)??!1,shouldCoalesceRunChangeDetection:(e==null?void 0:e.runCoalescing)??!1}}var rN=(()=>{let t=class t{constructor(){this.subscription=new ot,this.initialized=!1,this.zone=g(fe),this.pendingTasks=g(Vs)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{fe.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{fe.assertInAngularZone(),r??(r=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function iN(){return typeof $localize<"u"&&$localize.locale||nl}var Hs=new E("",{providedIn:"root",factory:()=>g(Hs,le.Optional|le.SkipSelf)||iN()});var e0=new E("");var Rc=null;function oN(e=[],t){return qt.create({name:t,providers:[{provide:al,useValue:"platform"},{provide:e0,useValue:new Set([()=>Rc=null])},...e]})}function sN(e=[]){if(Rc)return Rc;let t=oN(e);return Rc=t,qO(),aN(t),t}function aN(e){let t=e.get(mh,null);t==null||t.forEach(n=>n())}function t0(){return!1}var dt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=cN;let e=t;return e})();function cN(e){return lN(Rt(),ne(),(e&16)===16)}function lN(e,t,n){if(Ps(e)&&!n){let r=Lr(e.index,t);return new mi(r,r)}else if(e.type&47){let r=t[tn];return new mi(r,t)}return null}var qf=class{constructor(){}supports(t){return LD(t)}create(t){return new Yf(t)}},uN=(e,t)=>t,Yf=class{constructor(t){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=t||uN}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return t===null?o=this._itTail:(o=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,i),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new Zf(n,r),o,i)),t}_verifyReinsertion(t,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let i=t._prevRemoved,o=t._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let i=n===null?this._itHead:n._next;return t._next=i,t._prev=n,i===null?this._itTail=t:i._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new rl),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new rl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Zf=class{constructor(t,n){this.item=t,this.trackById=n,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}},Kf=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},rl=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Kf,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,i=this.map.get(r);return i?i.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function uy(e,t,n){let r=e.previousIndex;if(r===null)return r;let i=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,i){if(i!=null){let o=i.factories.slice();r=r.concat(o)}return new t(r)}static extend(r){return{provide:t,useFactory:i=>t.create(r,i||dy()),deps:[[t,new Wn,new nn]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new I(901,!1)}};t.\u0275prov=C({token:t,providedIn:"root",factory:dy});let e=t;return e})();function n0(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=sN(r),o=[tN(),...n||[]],a=new el({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(fe);return c.run(()=>{a.resolveInjectorInitializers();let l=a.get(yr,null),u;c.runOutsideAngular(()=>{u=c.onError.subscribe({next:m=>{l.handleError(m)}})});let d=()=>a.destroy(),f=i.get(e0);return f.add(d),a.onDestroy(()=>{u.unsubscribe(),f.delete(d)}),ZO(l,c,()=>{let m=a.get(JD);return m.runInitializers(),m.donePromise.then(()=>{let v=a.get(Hs,nl);MO(v||nl);let _=a.get(Vr);return t!==void 0&&_.bootstrap(t),_})})})}catch(t){return Promise.reject(t)}}var fy=!1,dN=!1;function fN(){fy||(fy=!0,fS(),EO(),FO(),IO(),nO(),PA(),lA(),fT(),AO())}function hN(e,t){return zh(e)}function r0(){return _i([{provide:wc,useFactory:()=>{let e=!0;if(Mc()){let t=g(wi,{optional:!0});e=!!(t!=null&&t.get(T_,null))}return e&&js("NgHydration"),e}},{provide:li,useValue:()=>{dN=!!g(vS,{optional:!0}),Mc()&&g(wc)&&(pN(),fN())},multi:!0},{provide:x_,useFactory:()=>Mc()&&g(wc)},{provide:Oo,useFactory:()=>{if(Mc()&&g(wc)){let e=g(Vr),t=g(qt);return()=>{hN(e,t).then(()=>{eA(e)})}}return()=>{}},multi:!0}])}function pN(){var n;let e=Ls(),t;for(let r of e.body.childNodes)if(r.nodeType===Node.COMMENT_NODE&&((n=r.textContent)==null?void 0:n.trim())===uS){t=r;break}if(!t)throw new I(-507,!1)}function zs(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function qh(e){let t=be(null);try{return e()}finally{be(t)}}var l0=null;function Cr(){return l0}function u0(e){l0??(l0=e)}var xl=class{};var he=new E(""),d0=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(vN),providedIn:"platform"});let e=t;return e})();var vN=(()=>{let t=class t extends d0{constructor(){super(),this._doc=g(he),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Cr().getBaseHref(this._doc)}onPopState(r){let i=Cr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=Cr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",r,!1),()=>i.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,i,o){this._history.pushState(r,i,o)}replaceState(r,i,o){this._history.replaceState(r,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function f0(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function i0(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Mi(e){return e&&e[0]!=="?"?"?"+e:e}var Rl=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(h0),providedIn:"root"});let e=t;return e})(),yN=new E(""),h0=(()=>{let t=class t extends Rl{constructor(r,i){var o;super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??((o=g(he).location)==null?void 0:o.origin)??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return f0(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+Mi(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?`${i}${o}`:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Mi(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Mi(s));this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){var i,o;(o=(i=this._platformLocation).historyGo)==null||o.call(i,r)}};t.\u0275fac=function(i){return new(i||t)(M(d0),M(yN,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Gs=(()=>{let t=class t{constructor(r){this._subject=new st,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=EN(i0(o0(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){var r;(r=this._urlChangeSubscription)==null||r.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,i=""){return this.path()==this.normalize(r+Mi(i))}normalize(r){return t.stripTrailingSlash(DN(this._basePath,o0(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,i="",o=null){this._locationStrategy.pushState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Mi(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Mi(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){var i,o;(o=(i=this._locationStrategy).historyGo)==null||o.call(i,r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var o;let i=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&((o=this._urlChangeSubscription)==null||o.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",i){this._urlChangeListeners.forEach(o=>o(r,i))}subscribe(r,i,o){return this._subject.subscribe({next:r,error:i,complete:o})}};t.normalizeQueryParams=Mi,t.joinWithSlash=f0,t.stripTrailingSlash=i0,t.\u0275fac=function(i){return new(i||t)(M(Rl))},t.\u0275prov=C({token:t,factory:()=>_N(),providedIn:"root"});let e=t;return e})();function _N(){return new Gs(M(Rl))}function DN(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function o0(e){return e.replace(/\/index.html$/,"")}function EN(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Jh(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var zG=(()=>{let t=class t{constructor(r){this._viewContainerRef=r,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(r){return r.ngComponentOutletNgModule!==void 0||r.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(r){return r.ngComponentOutlet!==void 0||r.ngComponentOutletContent!==void 0||r.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(r)}ngOnChanges(r){var i;if(this._needToReCreateComponentInstance(r)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let o=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(r)&&((i=this._moduleRef)==null||i.destroy(),this.ngComponentOutletNgModule?this._moduleRef=FD(this.ngComponentOutletNgModule,s0(o)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(s0(o)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:o,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let r of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(r,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){var r;(r=this._moduleRef)==null||r.destroy()}_applyInputStateDiff(r){for(let[i,o]of this._inputsUsed)o?(r.setInput(i,this.ngComponentOutletInputs[i]),this._inputsUsed.set(i,!1)):(r.setInput(i,void 0),this._inputsUsed.delete(i))}};t.\u0275fac=function(i){return new(i||t)(y(Ft))},t.\u0275dir=z({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[mn]});let e=t;return e})();function s0(e){return e.get(Er).injector}var Yh=class{constructor(t,n,r,i){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},GG=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,i,o){this._viewContainer=r,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Yh(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),a0(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);a0(s,o)})}static ngTemplateContextGuard(r,i){return!0}};t.\u0275fac=function(i){return new(i||t)(y(Ft),y(_t),y(Wh))},t.\u0275dir=z({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function a0(e,t){e.context.$implicit=t.item}var Lt=(()=>{let t=class t{constructor(r,i){this._viewContainer=r,this._context=new Zh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){c0("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){c0("ngIfElse",r),this._elseTemplateRef=r,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(r,i){return!0}};t.\u0275fac=function(i){return new(i||t)(y(Ft),y(_t))},t.\u0275dir=z({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Zh=class{constructor(){this.$implicit=null,this.ngIf=null}};function c0(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${Pt(t)}'.`)}function wN(e,t){return new I(2100,!1)}var Kh=class{createSubscription(t,n){return qh(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){qh(()=>t.unsubscribe())}},Qh=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},bN=new Qh,IN=new Kh,er=(()=>{let t=class t{constructor(r){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=r}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(r){if(!this._obj){if(r)try{this.markForCheckOnValueUpdate=!1,this._subscribe(r)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,i=>this._updateLatestValue(r,i))}_selectStrategy(r){if(jr(r))return bN;if(Hh(r))return IN;throw wN(t,r)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(r,i){var o;r===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&((o=this._ref)==null||o.markForCheck()))}};t.\u0275fac=function(i){return new(i||t)(y(dt,16))},t.\u0275pipe=yi({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var kt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=Z({});let e=t;return e})(),ep="browser",CN="server";function p0(e){return e===ep}function Si(e){return e===CN}var Pl=class{};var Ll=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var w0=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(w0||{}),tp=class{constructor(t,n=b0.Ok,r="OK"){this.headers=t.headers||new Ll,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}};var kl=class e extends tp{constructor(t={}){super(t),this.type=w0.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}};var b0=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(b0||{});var SN=new E("");var m0="b",g0="h",v0="s",y0="st",_0="u",D0="rt",Fl=new E(""),TN=["GET","HEAD"];function AN(e,t){var f;let d=g(Fl),{isCacheActive:n}=d,r=za(d,["isCacheActive"]),{transferCache:i,method:o}=e;if(!n||o==="POST"&&!r.includePostRequests&&!i||o!=="POST"&&!TN.includes(o)||i===!1||((f=r.filter)==null?void 0:f.call(r,e))===!1)return t(e);let s=g(wi),a=NN(e),c=s.get(a,null),l=r.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(l=i.includeHeaders),c){let{[m0]:m,[D0]:v,[g0]:_,[v0]:N,[y0]:x,[_0]:ge}=c,ee=m;switch(v){case"arraybuffer":ee=new TextEncoder().encode(m).buffer;break;case"blob":ee=new Blob([m]);break}let H=new Ll(_);return S(new kl({body:ee,headers:H,status:N,statusText:x,url:ge}))}let u=Si(g(Yt));return t(e).pipe(Be(m=>{m instanceof kl&&u&&s.set(a,{[m0]:m.body,[g0]:ON(m.headers,l),[v0]:m.status,[y0]:m.statusText,[_0]:m.url||"",[D0]:e.responseType})}))}function ON(e,t){if(!t)return{};let n={};for(let r of t){let i=e.getAll(r);i!==null&&(n[r]=i)}return n}function E0(e){return[...e.keys()].sort().map(t=>`${t}=${e.getAll(t)}`).join("&")}function NN(e){let{params:t,method:n,responseType:r,url:i}=e,o=E0(t),s=e.serializeBody();s instanceof URLSearchParams?s=E0(s):typeof s!="string"&&(s="");let a=[n,r,i,s,o].join("|"),c=xN(a);return c}function xN(e){let t=0;for(let n of e)t=Math.imul(31,t)+n.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function I0(e){return[{provide:Fl,useFactory:()=>(js("NgHttpTransferCache"),T({isCacheActive:!0},e))},{provide:SN,useValue:AN,multi:!0,deps:[wi,Fl]},{provide:Oo,multi:!0,useFactory:()=>{let t=g(Vr),n=g(Fl);return()=>{zh(t).then(()=>{n.isCacheActive=!1})}}}]}var ip=class extends xl{constructor(){super(...arguments),this.supportsDOMEvents=!0}},op=class e extends ip{static makeCurrent(){u0(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=PN();return n==null?null:RN(n)}resetBaseElement(){Ws=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Jh(document.cookie,t)}},Ws=null;function PN(){return Ws=Ws||document.querySelector("base"),Ws?Ws.getAttribute("href"):null}function RN(e){return new URL(e,document.baseURI).pathname}var FN=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),No=new E(""),T0=(()=>{let t=class t{constructor(r,i){this._zone=i,this._eventNameToPlugin=new Map,r.forEach(o=>{o.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}getZone(){return this._zone}_findPluginFor(r){let i=this._eventNameToPlugin.get(r);if(i)return i;if(i=this._plugins.find(s=>s.supports(r)),!i)throw new I(5101,!1);return this._eventNameToPlugin.set(r,i),i}};t.\u0275fac=function(i){return new(i||t)(M(No),M(fe))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),jl=class{constructor(t){this._doc=t}},np="ng-app-id",A0=(()=>{let t=class t{constructor(r,i,o,s={}){this.doc=r,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Si(s),this.resetHostNodes()}addStyles(r){for(let i of r)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(r){for(let i of r)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(i=>i.remove()),r.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let i of this.getAllStyles())this.addStyleToHost(r,i)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let i of this.hostNodes)this.addStyleToHost(i,r)}onStyleRemoved(r){var o,s;let i=this.styleRef;(s=(o=i.get(r))==null?void 0:o.elements)==null||s.forEach(a=>a.remove()),i.delete(r)}collectServerRenderedStyles(){var i;let r=(i=this.doc.head)==null?void 0:i.querySelectorAll(`style[${np}="${this.appId}"]`);if(r!=null&&r.length){let o=new Map;return r.forEach(s=>{s.textContent!=null&&o.set(s.textContent,s)}),o}return null}changeUsageCount(r,i){let o=this.styleRef;if(o.has(r)){let s=o.get(r);return s.usage+=i,s.usage}return o.set(r,{usage:i,elements:[]}),i}getStyleElement(r,i){let o=this.styleNodesInDOM,s=o==null?void 0:o.get(i);if((s==null?void 0:s.parentNode)===r)return o.delete(i),s.removeAttribute(np),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(np,this.appId),r.appendChild(a),a}}addStyleToHost(r,i){var c;let o=this.getStyleElement(r,i),s=this.styleRef,a=(c=s.get(i))==null?void 0:c.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(M(he),M(hl),M(gh,8),M(Yt))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),rp={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/"},cp=/%COMP%/g,O0="%COMP%",LN=`_nghost-${O0}`,kN=`_ngcontent-${O0}`,jN=!0,VN=new E("",{providedIn:"root",factory:()=>jN});function UN(e){return kN.replace(cp,e)}function BN(e){return LN.replace(cp,e)}function N0(e,t){return t.map(n=>n.replace(cp,e))}var C0=(()=>{let t=class t{constructor(r,i,o,s,a,c,l,u=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Si(c),this.defaultRenderer=new qs(r,a,l,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Gn.ShadowDom&&(i=Ve(T({},i),{encapsulation:Gn.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Vl?o.applyToHost(r):o instanceof Ys&&o.applyStyles(),o}getOrCreateRenderer(r,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case Gn.Emulated:s=new Vl(l,u,i,this.appId,d,a,c,f);break;case Gn.ShadowDom:return new sp(l,u,r,i,a,c,this.nonce,f);default:s=new Ys(l,u,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(M(T0),M(A0),M(hl),M(VN),M(he),M(Yt),M(fe),M(gh))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),qs=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(rp[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(M0(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(M0(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new I(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=rp[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=rp[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(Dr.DashCase|Dr.Important)?t.style.setProperty(n,r,i&Dr.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Dr.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Cr().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function M0(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var sp=class extends qs{constructor(t,n,r,i,o,s,a,c){super(t,o,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=N0(i.id,i.styles);for(let u of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ys=class extends qs{constructor(t,n,r,i,o,s,a,c){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=c?N0(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Vl=class extends Ys{constructor(t,n,r,i,o,s,a,c){let l=i+"-"+r.id;super(t,n,r,o,s,a,c,l),this.contentAttr=UN(l),this.hostAttr=BN(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},$N=(()=>{let t=class t extends jl{constructor(r){super(r)}supports(r){return!0}addEventListener(r,i,o){return r.addEventListener(i,o,!1),()=>this.removeEventListener(r,i,o)}removeEventListener(r,i,o){return r.removeEventListener(i,o)}};t.\u0275fac=function(i){return new(i||t)(M(he))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),S0=["alt","control","meta","shift"],HN={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},GN=(()=>{let t=class t extends jl{constructor(r){super(r)}supports(r){return t.parseEventName(r)!=null}addEventListener(r,i,o){let s=t.parseEventName(i),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Cr().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let i=r.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),S0.forEach(u=>{let d=i.indexOf(u);d>-1&&(i.splice(d,1),a+=u+".")}),a+=s,i.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(r,i){let o=HN[r.key]||r.key,s="";return i.indexOf("code.")>-1&&(o=r.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),S0.forEach(a=>{if(a!==o){let c=zN[a];c(r)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(r,i,o){return s=>{t.matchEventFullKeyCode(s,r)&&o.runGuarded(()=>i(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};t.\u0275fac=function(i){return new(i||t)(M(he))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})();function _3(e,t){return n0(T({rootComponent:e},WN(t)))}function WN(e){return{appProviders:[...QN,...(e==null?void 0:e.providers)??[]],platformProviders:KN}}function qN(){op.makeCurrent()}function YN(){return new yr}function ZN(){return I_(document),document}var KN=[{provide:Yt,useValue:ep},{provide:mh,useValue:qN,multi:!0},{provide:he,useFactory:ZN,deps:[]}];var QN=[{provide:al,useValue:"root"},{provide:yr,useFactory:YN,deps:[]},{provide:No,useClass:$N,multi:!0,deps:[he,fe,Yt]},{provide:No,useClass:GN,multi:!0,deps:[he]},C0,A0,T0,{provide:gi,useExisting:C0},{provide:Pl,useClass:FN,deps:[]},[]];var x0=(()=>{let t=class t{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}};t.\u0275fac=function(i){return new(i||t)(M(he))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Zs=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=M(XN),o},providedIn:"root"});let e=t;return e})(),XN=(()=>{let t=class t extends Zs{constructor(r){super(),this._doc=r}sanitize(r,i){if(i==null)return null;switch(r){case Dt.NONE:return i;case Dt.HTML:return kr(i,"HTML")?Zn(i):Dh(this._doc,String(i)).toString();case Dt.STYLE:return kr(i,"Style")?Zn(i):i;case Dt.SCRIPT:if(kr(i,"Script"))return Zn(i);throw new I(5200,!1);case Dt.URL:return kr(i,"URL")?Zn(i):vl(String(i));case Dt.RESOURCE_URL:if(kr(i,"ResourceURL"))return Zn(i);throw new I(5201,!1);default:throw new I(5202,!1)}}bypassSecurityTrustHtml(r){return P_(r)}bypassSecurityTrustStyle(r){return R_(r)}bypassSecurityTrustScript(r){return F_(r)}bypassSecurityTrustUrl(r){return L_(r)}bypassSecurityTrustResourceUrl(r){return k_(r)}};t.\u0275fac=function(i){return new(i||t)(M(he))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ap=function(e){return e[e.NoHttpTransferCache=0]="NoHttpTransferCache",e[e.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",e}(ap||{});function D3(...e){let t=[],n=new Set,r=n.has(ap.HttpTransferCacheOptions);for(let{\u0275providers:i,\u0275kind:o}of e)n.add(o),i.length&&t.push(i);return _i([[],r0(),n.has(ap.NoHttpTransferCache)||r?[]:I0({}),t])}var B0=(()=>{let t=class t{constructor(r,i){this._renderer=r,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(r,i){this._renderer.setProperty(this._elementRef.nativeElement,r,i)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}};t.\u0275fac=function(i){return new(i||t)(y(Ir),y(Q))},t.\u0275dir=z({type:t});let e=t;return e})(),$0=(()=>{let t=class t extends B0{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=ke(t)))(o||t)}})(),t.\u0275dir=z({type:t,features:[He]});let e=t;return e})(),hp=new E("");var ex={provide:hp,useExisting:wr(()=>H0),multi:!0};function tx(){let e=Cr()?Cr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var nx=new E(""),H0=(()=>{let t=class t extends B0{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!tx())}writeValue(r){let i=r??"";this.setProperty("value",i)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}};t.\u0275fac=function(i){return new(i||t)(y(Ir),y(Q),y(nx,8))},t.\u0275dir=z({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&Xe("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[ze([ex]),He]});let e=t;return e})();function rx(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}var z0=new E(""),ix=new E("");function ox(e){return rx(e.value)?{required:!0}:null}function P0(e){return null}function G0(e){return e!=null}function W0(e){return jr(e)?Pe(e):e}function q0(e){let t={};return e.forEach(n=>{t=n!=null?T(T({},t),n):t}),Object.keys(t).length===0?null:t}function Y0(e,t){return t.map(n=>n(e))}function sx(e){return!e.validate}function Z0(e){return e.map(t=>sx(t)?t:n=>t.validate(n))}function ax(e){if(!e)return null;let t=e.filter(G0);return t.length==0?null:function(n){return q0(Y0(n,t))}}function K0(e){return e!=null?ax(Z0(e)):null}function cx(e){if(!e)return null;let t=e.filter(G0);return t.length==0?null:function(n){let r=Y0(n,t).map(W0);return Cd(r).pipe(b(q0))}}function Q0(e){return e!=null?cx(Z0(e)):null}function R0(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function lx(e){return e._rawValidators}function ux(e){return e._rawAsyncValidators}function lp(e){return e?Array.isArray(e)?e:[e]:[]}function Bl(e,t){return Array.isArray(e)?e.includes(t):e===t}function F0(e,t){let n=lp(t);return lp(e).forEach(i=>{Bl(n,i)||n.push(i)}),n}function L0(e,t){return lp(t).filter(n=>!Bl(e,n))}var $l=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=K0(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Q0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},up=class extends $l{get formDirective(){return null}get path(){return null}},Ai=class extends $l{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},dp=class{constructor(t){this._cd=t}get isTouched(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.touched)}get isUntouched(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.untouched)}get isPristine(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.pristine)}get isDirty(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.dirty)}get isValid(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.valid)}get isInvalid(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.invalid)}get isPending(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.pending)}get isSubmitted(){var t;return!!((t=this._cd)!=null&&t.submitted)}},dx={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},k3=Ve(T({},dx),{"[class.ng-submitted]":"isSubmitted"}),j3=(()=>{let t=class t extends dp{constructor(r){super(r)}};t.\u0275fac=function(i){return new(i||t)(y(Ai,2))},t.\u0275dir=z({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&tt("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[He]});let e=t;return e})();var Ks="VALID",Ul="INVALID",xo="PENDING",Qs="DISABLED";function fx(e){return(Hl(e)?e.validators:e)||null}function hx(e){return Array.isArray(e)?K0(e):e||null}function px(e,t){return(Hl(t)?t.asyncValidators:e)||null}function mx(e){return Array.isArray(e)?Q0(e):e||null}function Hl(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var fp=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Ks}get invalid(){return this.status===Ul}get pending(){return this.status==xo}get disabled(){return this.status===Qs}get enabled(){return this.status!==Qs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(F0(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(F0(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(L0(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(L0(t,this._rawAsyncValidators))}hasValidator(t){return Bl(this._rawValidators,t)}hasAsyncValidator(t){return Bl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=xo,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Qs,this.errors=null,this._forEachChild(r=>{r.disable(Ve(T({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ve(T({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Ks,this._forEachChild(r=>{r.enable(Ve(T({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Ve(T({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ks||this.status===xo)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qs:Ks}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=xo,this._hasOwnPendingAsyncValidator=!0;let n=W0(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new st,this.statusChanges=new st}_calculateStatus(){return this._allControlsDisabled()?Qs:this.errors?Ul:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xo)?xo:this._anyControlsHaveStatus(Ul)?Ul:Ks}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Hl(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=hx(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=mx(this._rawAsyncValidators)}};var X0=new E("CallSetDisabledState",{providedIn:"root",factory:()=>pp}),pp="always";function gx(e,t){return[...t.path,e]}function vx(e,t,n=pp){var r,i;_x(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&((i=(r=t.valueAccessor).setDisabledState)==null||i.call(r,e.disabled)),Dx(e,t),wx(e,t),Ex(e,t),yx(e,t)}function k0(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function yx(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function _x(e,t){let n=lx(e);t.validator!==null?e.setValidators(R0(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=ux(e);t.asyncValidator!==null?e.setAsyncValidators(R0(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();k0(t._rawValidators,i),k0(t._rawAsyncValidators,i)}function Dx(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&J0(e,t)})}function Ex(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&J0(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function J0(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function wx(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function bx(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Ix(e){return Object.getPrototypeOf(e.constructor)===$0}function Cx(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===H0?n=o:Ix(o)?r=o:i=o}),i||r||n||null}function j0(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function V0(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Mx=class extends fp{constructor(t=null,n,r){super(fx(n),px(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Hl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(V0(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){j0(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){j0(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){V0(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Sx={provide:Ai,useExisting:wr(()=>zl)},U0=Promise.resolve(),zl=(()=>{let t=class t extends Ai{constructor(r,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Mx,this._registered=!1,this.name="",this.update=new st,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Cx(this,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){let i=r.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),bx(r,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(r){this.viewModel=r,this.update.emit(r)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){vx(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(r){U0.then(()=>{var i;this.control.setValue(r,{emitViewToModelChange:!1}),(i=this._changeDetectorRef)==null||i.markForCheck()})}_updateDisabled(r){let i=r.isDisabled.currentValue,o=i!==0&&zs(i);U0.then(()=>{var s;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),(s=this._changeDetectorRef)==null||s.markForCheck()})}_getPath(r){return this._parent?gx(r,this._parent):[r]}};t.\u0275fac=function(i){return new(i||t)(y(up,9),y(z0,10),y(ix,10),y(hp,10),y(dt,8),y(X0,8))},t.\u0275dir=z({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ye.None,"disabled","isDisabled"],model:[Ye.None,"ngModel","model"],options:[Ye.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ze([Sx]),He,mn]});let e=t;return e})();var Tx={provide:hp,useExisting:wr(()=>Ax),multi:!0},Ax=(()=>{let t=class t extends $0{writeValue(r){this.setProperty("value",parseFloat(r))}registerOnChange(r){this.onChange=i=>{r(i==""?null:parseFloat(i))}}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=ke(t)))(o||t)}})(),t.\u0275dir=z({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(i,o){i&1&&Xe("change",function(a){return o.onChange(a.target.value)})("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[ze([Tx]),He]});let e=t;return e})();var Ox=(()=>{let t=class t{constructor(){this._validator=P0}ngOnChanges(r){if(this.inputName in r){let i=this.normalizeInput(r[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):P0,this._onChange&&this._onChange()}}validate(r){return this._validator(r)}registerOnValidatorChange(r){this._onChange=r}enabled(r){return r!=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=z({type:t,features:[mn]});let e=t;return e})();var Nx={provide:z0,useExisting:wr(()=>xx),multi:!0};var xx=(()=>{let t=class t extends Ox{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=zs,this.createValidator=r=>ox}enabled(r){return r}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=ke(t)))(o||t)}})(),t.\u0275dir=z({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){i&2&&ut("required",o._enabled?"":null)},inputs:{required:"required"},features:[ze([Nx]),He]});let e=t;return e})();var Px=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=Z({});let e=t;return e})();var U3=(()=>{let t=class t{static withConfig(r){return{ngModule:t,providers:[{provide:X0,useValue:r.callSetDisabledState??pp}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=Z({imports:[Px]});let e=t;return e})();var pe=new E("An abstraction over global window object",{factory:()=>{let{defaultView:e}=g(he);if(!e)throw new Error("Window is not available");return e}}),Rn=new E("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{let{requestAnimationFrame:e,cancelAnimationFrame:t}=g(pe);return new R(r=>{let i=NaN,o=s=>{r.next(s),i=e(o)};return i=e(o),()=>{t(i)}}).pipe(Ht())}}),W3=new E("An abstraction over window.caches object",{factory:()=>g(pe).caches}),q3=new E("An abstraction over window.crypto object",{factory:()=>g(pe).crypto}),Y3=new E("An abstraction over window.CSS object",{factory:()=>g(pe).CSS||{escape:e=>e,supports:()=>!1}}),Z3=new E("An abstraction over window.history object",{factory:()=>g(pe).history}),K3=new E("An abstraction over window.localStorage object",{factory:()=>g(pe).localStorage}),Q3=new E("An abstraction over window.location object",{factory:()=>g(pe).location}),Po=new E("An abstraction over window.navigator object",{factory:()=>g(pe).navigator}),X3=new E("An abstraction over window.navigator.mediaDevices object",{factory:()=>g(Po).mediaDevices}),J3=new E("An abstraction over window.navigator.connection object",{factory:()=>g(Po).connection||null}),eW=new E("Shared Observable based on `document visibility changed`",{factory:()=>{let e=g(he);return $n(e,"visibilitychange").pipe(Ce(0),b(()=>e.visibilityState!=="hidden"),qe(),Jt({refCount:!1,bufferSize:1}))}}),eE=new E("An abstraction over window.performance object",{factory:()=>g(pe).performance}),tW=new E("An abstraction over window.screen object",{factory:()=>g(pe).screen}),nW=new E("An abstraction over window.sessionStorage object",{factory:()=>g(pe).sessionStorage}),rW=new E("An abstraction over SpeechRecognition class",{factory:()=>{let e=g(pe);return e.speechRecognition||e.webkitSpeechRecognition||null}}),iW=new E("An abstraction over window.speechSynthesis object",{factory:()=>g(pe).speechSynthesis}),mp=new E("An abstraction over window.navigator.userAgent object",{factory:()=>g(Po).userAgent});var X=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(X||{}),tr="*";function Ge(e,t){return{type:X.Trigger,name:e,definitions:t,options:{}}}function W(e,t=null){return{type:X.Animate,styles:t,timings:e}}function tE(e,t=null){return{type:X.Sequence,steps:e,options:t}}function w(e){return{type:X.Style,styles:e,offset:null}}function ue(e,t,n=null){return{type:X.Transition,expr:e,animation:t,options:n}}function nE(e=null){return{type:X.AnimateChild,options:e}}function ft(e,t,n=null){return{type:X.Query,selector:e,animation:t,options:n}}function bt(e,t){return{type:X.Stagger,timings:e,animation:t}}var Ur=class{constructor(t=0,n=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=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Xs=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,r=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(r=>{let i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Gl="!";var Br=()=>!1,Ro=()=>!0,lW=79,rE={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},uW=new Cs,gp=[],vp=()=>{},iE=Object.assign(Object.assign({},rE),{toJSON(){return rE}}),dW=e=>String(e);function Fx(e,t){return Array.isArray(e)&&Array.isArray(t)&&!e.length&&!t.length}var fW=(e,t)=>e===t||Fx(e,t),hW=Ge("tuiParentAnimation",[ue(":leave",[ft(":scope > *",[nE()],{optional:!0})])]),pW=Ge("tuiParentStop",[ue(":enter",[])]),Fo=1e3/15,oE=e=>"ownerSVGElement"in e?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,sE="\xA0",mW="\u2013";var aE="3.74.0";var cE="edge/";function vW(e,t){return parseInt(t.slice(t.toLowerCase().indexOf(cE)+cE.length),10)=t&&e=n?n:Math.round(e)}var Lx=292;function kx(e,t,n){if(e===1/0)return e;t=Math.min(t,Lx);let r=`${e}e`.split("e"),o=`${n(+`${r[0]}e${Number(r[1])+t}`)}e`.split("e");return+`${o[0]}e${Number(o[1])-t}`}function wW(e,t=0){return kx(e,t,Math.round)}function uE(e,t){return e.slice(0,Math.max(t,0)).concat(e.slice(Math.max(t+1,0)))}function Fn(e){return typeof e=="string"}function Te(e){return se(()=>e)}function se(e){return new E("",{factory:e})}function dE(e){return e<.5?2*e*e:-1+(4-2*e)*e}function fE(e){return!e}function Oi(e){return e!=null}function CW(e,t,n){return e===null?t===null:t===null?!1:n(e,t)}function jx(e,t,n){let r=e;for(;r!==t.parentElement;){if(Math.floor(r.scrollTop)>0&&!n||Math.ceil(r.scrollTop+r.clientHeight)0&&!n||Math.ceil(r.scrollLeft+r.clientWidth)!e.contains(_));return v.length===4?v:null}function OW(e,t){let{offsetTop:n,offsetLeft:r,offsetParent:i}=t;for(;Lo(i)&&i!==e;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{offsetTop:n,offsetLeft:r}}function Yl(e,t=!0){return e===null?null:t&&e.scrollHeight>e.clientHeight||!t&&e.scrollWidth>e.clientWidth?e:Yl(e.parentElement,t)}function NW(e){return $x(e)&&!e.readOnly||!!e.isContentEditable}function xW(e=0,t=0){let n={x:e,y:t,left:e,right:e,top:t,bottom:t,width:0,height:0};return Object.assign(Object.assign({},n),{toJSON(){return n}})}function PW(e){return"explicitOriginalTarget"in e?(e==null?void 0:e.explicitOriginalTarget)!==e.target:"pointerId"in e?e.pointerId===-1:"detail"in e&&"webkitForce"in e?(e==null?void 0:e.detail)===0:!1}function yp({activeElement:e}){if(!(e!=null&&e.shadowRoot))return e;let t=e.shadowRoot.activeElement;for(;t!=null&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function mE(e){let t=yp(e);Lo(t)&&t.blur()}function gE(e){if(e.hasAttribute("disabled")||e.getAttribute("tabIndex")==="-1")return!1;if(Lo(e)&&e.isContentEditable||e.getAttribute("tabIndex")==="0")return!0;switch(e.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return e.hasAttribute("controls");case"INPUT":return e.getAttribute("type")!=="hidden";case"A":case"LINK":return e.hasAttribute("href");default:return!1}}function Hx(e){return!e.hasAttribute("disabled")&&(e.getAttribute("tabIndex")==="-1"||gE(e))}function kW({initial:e,root:t,previous:n=!1,keyboard:r=!0}){if(!t.ownerDocument)return null;let i=r?gE:Hx,o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,oE);for(o.currentNode=e;n?o.previousNode():o.nextNode();)if(Lo(o.currentNode)&&(e=o.currentNode),Lo(e)&&i(e))return e;return null}function jo(e){return!!(e!=null&&e.ownerDocument)&&yp(e.ownerDocument)===e&&e.ownerDocument.hasFocus()}function vE(e){if(!e.ownerDocument||!e.contains)return!1;let t=yp(e.ownerDocument);return t!==null&&e.contains(t)&&e.ownerDocument.hasFocus()}function Vo(e){return`${e}px`}function zx(e){return e.platform.startsWith("Mac")||e.platform==="iPhone"}var Gx=/ipad|iphone|ipod/;function _p(e){return Gx.test(e.userAgent.toLowerCase())||zx(e)&&e.maxTouchPoints>1}var Wx=/^((?!chrome|android).)*safari/i;function yE(e){return _p(e)||Wx.test(e.userAgent.toLowerCase())}function qx(){return Math.floor(Math.random()*Date.now())}function Yx(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Zx(e){var t;let n=((t=e.match(/url\(("?)('*)#(.*?)('*)\)/g))!==null&&t!==void 0?t:[]).map(r=>r.slice(4,r.length-1).replace(/['"#]+/g,""));return Array.from(new Set(n))}function Kx(e,t){try{let n=new DOMParser().parseFromString(e,"text/html");return n.body.querySelectorAll("[fill^=url]").forEach(r=>r.setAttribute("fill",`${r.getAttribute("fill")} ${t}`.trim())),n.body.innerHTML.trim()}catch{return e}}function Zl(e,t=qx(),n="rgba(0, 0, 0, 0.7)"){if(Fn(e)){let i=Zx(e).reduce((o,s)=>{let a=Yx(s),c=`id_${t}_${s}`;return o.replace(new RegExp(`"${a}"`,"g"),`"${c}"`).replace(new RegExp(`'${a}'`,"g"),`'${c}'`).replace(new RegExp(`url\\('#${a}'\\)`,"g"),`url('#${c}')`).replace(new RegExp(`url\\("#${a}"\\)`,"g"),`url("#${c}")`).replace(new RegExp(`url\\(#${a}\\)`,"g"),`url(#${c})`)},e);return Kx(i,n)}return e}var _E=class extends Error{constructor(t){super("")}},DE=class extends Error{constructor(t){super("")}},EE=class extends Error{constructor(t){super("")}},Kl=class extends Error{constructor(){super("")}},ea=class extends Error{constructor(){super("")}},ta=class extends Error{constructor(){super("")}};var Ql=class extends Error{constructor(){super("")}};function QW(e){return new R(t=>{if(!e.valueChanges)throw new Ql;return e.valueChanges.pipe(Ce(e.value)).subscribe(t)})}function J(e,t,n={}){return $n(e,t,n)}function Qx(e){return Ue(J(e,"mouseup"),J(e,"dragend"))}function wE(e=0){return ni(ce(()=>vt(e).pipe(b(Br),Ce(!0))),qe())}var Dp,Ep;function bE(e){let t=J(e,"blur"),{ownerDocument:n}=e;if(!n)throw new ea;return(!Ep||!Dp)&&(Dp=J(n,"mouseup",{capture:!0}).pipe(wE(),Ce(!1),Jt({bufferSize:1,refCount:!0})),Ep=J(n,"mousedown",{capture:!0}).pipe(wE(),Ce(!1),Jt({bufferSize:1,refCount:!0}))),Ue($t(J(e,"focus").pipe(Qe(1)),t.pipe(Ie(()=>!jo(e)),Qe(1),ao())).pipe(yc(),ms(Ep,Dp,(r,i,o)=>i||o),Ie(fE))).pipe(ce(()=>t.pipe(b(Br),Qe(1),Ce(!0))),qe())}function IE(e,t=Boolean){return ni(ce(n=>t(n)?e(n):xe))}function CE(e){var t,n;return"observed"in e?e.observed:!!(!((n=(t=e)===null||t===void 0?void 0:t.observers)===null||n===void 0)&&n.length)}function XW(e,{onlyTrusted:t}={onlyTrusted:!0}){let{ownerDocument:n}=e;if(!n)throw new ea;return J(e,"mousedown").pipe(Ie(({isTrusted:r})=>r||!t),ce(()=>Qx(n).pipe(b(Br),Qe(1),Ce(!0))))}function Xx(){return Be(e=>e.preventDefault())}function ME(e){return J(e===e.ownerDocument.documentElement?e.ownerDocument:e,"scroll")}function SE(e){return Be(()=>{e.markForCheck()})}function Jx(e){return t=>new R(n=>t.subscribe({next:r=>e.run(()=>n.next(r)),error:r=>e.run(()=>n.error(r)),complete:()=>e.run(()=>n.complete())}))}function nr(e){return t=>new R(n=>e.runOutsideAngular(()=>t.subscribe(n)))}function rr(e){return ni(nr(e),Jx(e))}var na=new E("POLYMORPHEUS_CONTEXT"),Ni=class{constructor(t,n){this.component=t,this.i=n}createInjector(t,n){return qt.create({parent:this.i||t,providers:[{provide:na,useValue:n}]})}},bp=(()=>{class e{constructor(n,r){this.template=n,this.cdr=r,this.polymorpheus=""}check(){this.cdr.markForCheck()}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(y(_t,2),y(dt))},e.\u0275dir=z({type:e,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"]}),e})(),Xl=class{constructor(t){this.$implicit=t}get polymorpheusOutlet(){return this.$implicit}};var Hr=(()=>{class e{constructor(n,r,i){this.vcr=n,this.i=r,this.t=i,this.content=""}get template(){return wp(this.content)?this.content.template:this.content instanceof _t?this.content:this.t}ngOnChanges({content:n}){var r;let i=this.getContext();if((r=this.c)===null||r===void 0||r.injector.get(dt).markForCheck(),!n)return;this.vcr.clear();let o=i&&new Proxy(i,{get:(s,a)=>{var c;return(c=this.getContext())===null||c===void 0?void 0:c[a]}});TE(this.content)?this.process(this.content,o):(i instanceof Xl&&i.$implicit)!=null&&this.vcr.createEmbeddedView(this.template,o)}ngDoCheck(){wp(this.content)&&this.content.check()}static ngTemplateContextGuard(n,r){return!0}getContext(){return eP(this.content)||TE(this.content)?this.context:new Xl(typeof this.content=="function"?this.content(this.context):this.content)}process(n,r){let i=n.createInjector(this.i,r);this.c=this.vcr.createComponent(i.get(Kn).resolveComponentFactory(n.component),0,i)}}return e.\u0275fac=function(n){return new(n||e)(y(Ft),y(qt),y(_t))},e.\u0275dir=z({type:e,selectors:[["","polymorpheusOutlet",""]],inputs:{content:[Ye.None,"polymorpheusOutlet","content"],context:[Ye.None,"polymorpheusOutletContext","context"]},features:[mn]}),e})();function wp(e){return e instanceof bp}function TE(e){return e instanceof Ni}function eP(e){return wp(e)||e instanceof _t}var zr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();function Ip(e,t={}){let{selector:n}=t,r=sv(t,["selector"]);return new R(i=>{let o=new AbortController,{signal:s}=o,a=!0,{signal:c}=r;if(c)if(c.aborted)o.abort();else{let d=()=>{s.aborted||o.abort()};c.addEventListener("abort",d),i.add(()=>c.removeEventListener("abort",d))}let l=Object.assign(Object.assign({},r),{signal:s}),u=d=>{a=!1,i.error(d)};return fetch(e,l).then(d=>{n?Y(n(d)).subscribe(A(i,void 0,()=>{a=!1,i.complete()},u)):(a=!1,i.next(d),i.complete())}).catch(u),()=>{a&&o.abort()}})}function AE(e){return new I(3e3,!1)}function tP(){return new I(3100,!1)}function nP(){return new I(3101,!1)}function rP(e){return new I(3001,!1)}function iP(e){return new I(3003,!1)}function oP(e){return new I(3004,!1)}function sP(e,t){return new I(3005,!1)}function aP(){return new I(3006,!1)}function cP(){return new I(3007,!1)}function lP(e,t){return new I(3008,!1)}function uP(e){return new I(3002,!1)}function dP(e,t,n,r,i){return new I(3010,!1)}function fP(){return new I(3011,!1)}function hP(){return new I(3012,!1)}function pP(){return new I(3200,!1)}function mP(){return new I(3202,!1)}function gP(){return new I(3013,!1)}function vP(e){return new I(3014,!1)}function yP(e){return new I(3015,!1)}function _P(e){return new I(3016,!1)}function DP(e,t){return new I(3404,!1)}function EP(e){return new I(3502,!1)}function wP(e){return new I(3503,!1)}function bP(){return new I(3300,!1)}function IP(e){return new I(3504,!1)}function CP(e){return new I(3301,!1)}function MP(e,t){return new I(3302,!1)}function SP(e){return new I(3303,!1)}function TP(e,t){return new I(3400,!1)}function AP(e){return new I(3401,!1)}function OP(e){return new I(3402,!1)}function NP(e,t){return new I(3505,!1)}function Gr(e){switch(e.length){case 0:return new Ur;case 1:return e[0];default:return new Xs(e)}}function qE(e,t,n=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(t.forEach(c=>{let l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((f,m)=>{let v=m,_=f;if(m!=="offset")switch(v=e.normalizePropertyName(v,i),_){case Gl:_=n.get(m);break;case tr:_=r.get(m);break;default:_=e.normalizeStyleValue(m,v,_,i);break}d.set(v,_)}),u||o.push(d),a=d,s=l}),i.length)throw EP(i);return o}function Yp(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&Cp(n,"start",e)));break;case"done":e.onDone(()=>r(n&&Cp(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&Cp(n,"destroy",e)));break}}function Cp(e,t,n){let r=n.totalTime,i=!!n.disabled,o=Zp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,r??e.totalTime,i),s=e._data;return s!=null&&(o._data=s),o}function Zp(e,t,n,r,i="",o=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function an(e,t,n){let r=e.get(t);return r||e.set(t,r=n),r}function OE(e){let t=e.indexOf(":"),n=e.substring(1,t),r=e.slice(t+1);return[n,r]}var xP=typeof document>"u"?null:document.documentElement;function Kp(e){let t=e.parentNode||e.host||null;return t===xP?null:t}function PP(e){return e.substring(1,6)=="ebkit"}var xi=null,NE=!1;function RP(e){xi||(xi=FP()||{},NE=xi.style?"WebkitAppearance"in xi.style:!1);let t=!0;return xi.style&&!PP(e)&&(t=e in xi.style,!t&&NE&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in xi.style)),t}function FP(){return typeof document<"u"?document.body:null}function YE(e,t){for(;t;){if(t===e)return!0;t=Kp(t)}return!1}function ZE(e,t,n){if(n)return Array.from(e.querySelectorAll(t));let r=e.querySelector(t);return r?[r]:[]}var LP=(()=>{let t=class t{validateStyleProperty(r){return RP(r)}matchesElement(r,i){return!1}containsElement(r,i){return YE(r,i)}getParentElement(r){return Kp(r)}query(r,i,o){return ZE(r,i,o)}computeStyle(r,i,o){return o||""}animate(r,i,o,s,a,c=[],l){return new Ur(o,s)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),em=class em{};em.NOOP=new LP;var xE=em,Np=class{};var kP=1e3,KE="{{",jP="}}",QE="ng-enter",xp="ng-leave",eu="ng-trigger",ou=".ng-trigger",PE="ng-animating",Pp=".ng-animating";function Sr(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Rp(parseFloat(t[1]),t[2])}function Rp(e,t){switch(t){case"s":return e*kP;default:return e}}function su(e,t,n){return e.hasOwnProperty("duration")?e:VP(e,t,n)}function VP(e,t,n){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,o=0,s="";if(typeof e=="string"){let a=e.match(r);if(a===null)return t.push(AE(e)),{duration:0,delay:0,easing:""};i=Rp(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=Rp(parseFloat(c),a[4]));let l=a[5];l&&(s=l)}else i=e;if(!n){let a=!1,c=t.length;i<0&&(t.push(tP()),a=!0),o<0&&(t.push(nP()),a=!0),a&&t.splice(c,0,AE(e))}return{duration:i,delay:o,easing:s}}function UP(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function ir(e,t,n){t.forEach((r,i)=>{let o=Qp(i);n&&!n.has(i)&&n.set(i,e.style[o]),e.style[o]=r})}function Ri(e,t){t.forEach((n,r)=>{let i=Qp(r);e.style[i]=""})}function ra(e){return Array.isArray(e)?e.length==1?e[0]:tE(e):e}function BP(e,t,n){let r=t.params||{},i=XE(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(rP(o))})}var Fp=new RegExp(`${KE}\\s*(.+?)\\s*${jP}`,"g");function XE(e){let t=[];if(typeof e=="string"){let n;for(;n=Fp.exec(e);)t.push(n[1]);Fp.lastIndex=0}return t}function oa(e,t,n){let r=`${e}`,i=r.replace(Fp,(o,s)=>{let a=t[s];return a==null&&(n.push(iP(s)),a=""),a.toString()});return i==r?e:i}var $P=/-+([a-z0-9])/g;function Qp(e){return e.replace($P,(...t)=>t[1].toUpperCase())}function HP(e,t){return e===0||t===0}function zP(e,t,n){if(n.size&&t.length){let r=t[0],i=[];if(n.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,Xp(e,a)))}}return t}function sn(e,t,n){switch(t.type){case X.Trigger:return e.visitTrigger(t,n);case X.State:return e.visitState(t,n);case X.Transition:return e.visitTransition(t,n);case X.Sequence:return e.visitSequence(t,n);case X.Group:return e.visitGroup(t,n);case X.Animate:return e.visitAnimate(t,n);case X.Keyframes:return e.visitKeyframes(t,n);case X.Style:return e.visitStyle(t,n);case X.Reference:return e.visitReference(t,n);case X.AnimateChild:return e.visitAnimateChild(t,n);case X.AnimateRef:return e.visitAnimateRef(t,n);case X.Query:return e.visitQuery(t,n);case X.Stagger:return e.visitStagger(t,n);default:throw oP(t.type)}}function Xp(e,t){return window.getComputedStyle(e)[t]}var GP=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"]),RE=class extends Np{normalizePropertyName(t,n){return Qp(t)}normalizeStyleValue(t,n,r,i){let o="",s=r.toString().trim();if(GP.has(n)&&r!==0&&r!=="0")if(typeof r=="number")o="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(sP(t,r))}return s+o}};var au="*";function WP(e,t){let n=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(r=>qP(r,n,t)):n.push(e),n}function qP(e,t,n){if(e[0]==":"){let c=YP(e,n);if(typeof c=="function"){t.push(c);return}e=c}let r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(yP(e)),t;let i=r[1],o=r[2],s=r[3];t.push(FE(i,s));let a=i==au&&s==au;o[0]=="<"&&!a&&t.push(FE(s,i))}function YP(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r) *"}}var tu=new Set(["true","1"]),nu=new Set(["false","0"]);function FE(e,t){let n=tu.has(e)||nu.has(e),r=tu.has(t)||nu.has(t);return(i,o)=>{let s=e==au||e==i,a=t==au||t==o;return!s&&n&&typeof i=="boolean"&&(s=i?tu.has(e):nu.has(e)),!a&&r&&typeof o=="boolean"&&(a=o?tu.has(t):nu.has(t)),s&&a}}var JE=":self",ZP=new RegExp(`s*${JE}s*,?`,"g");function ew(e,t,n,r){return new Lp(e).build(t,n,r)}var LE="",Lp=class{constructor(t){this._driver=t}build(t,n,r){let i=new kp(n);return this._resetContextStyleTimingState(i),sn(this,ra(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector=LE,t.collectedStyles=new Map,t.collectedStyles.set(LE,new Map),t.currentTime=0}visitTrigger(t,n){let r=n.queryCount=0,i=n.depCount=0,o=[],s=[];return t.name.charAt(0)=="@"&&n.errors.push(aP()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==X.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,o.push(this.visitState(c,n))}),c.name=l}else if(a.type==X.Transition){let c=this.visitTransition(a,n);r+=c.queryCount,i+=c.depCount,s.push(c)}else n.errors.push(cP())}),{type:X.Trigger,name:t.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(t,n){let r=this.visitStyle(t.styles,n),i=t.options&&t.options.params||null;if(r.containsDynamicStyles){let o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{XE(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&n.errors.push(lP(t.name,[...o.values()]))}return{type:X.State,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,n){n.queryCount=0,n.depCount=0;let r=sn(this,ra(t.animation),n),i=WP(t.expr,n.errors);return{type:X.Transition,matchers:i,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Pi(t.options)}}visitSequence(t,n){return{type:X.Sequence,steps:t.steps.map(r=>sn(this,r,n)),options:Pi(t.options)}}visitGroup(t,n){let r=n.currentTime,i=0,o=t.steps.map(s=>{n.currentTime=r;let a=sn(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:X.Group,steps:o,options:Pi(t.options)}}visitAnimate(t,n){let r=JP(t.timings,n.errors);n.currentAnimateTimings=r;let i,o=t.styles?t.styles:w({});if(o.type==X.Keyframes)i=this.visitKeyframes(o,n);else{let s=t.styles,a=!1;if(!s){a=!0;let l={};r.easing&&(l.easing=r.easing),s=w(l)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,i=c}return n.currentAnimateTimings=null,{type:X.Animate,timings:r,style:i,options:null}}visitStyle(t,n){let r=this._makeStyleAst(t,n);return this._validateStyleAst(r,n),r}_makeStyleAst(t,n){let r=[],i=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of i)typeof a=="string"?a===tr?r.push(a):n.errors.push(uP(a)):r.push(new Map(Object.entries(a)));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(KE)>=0){o=!0;break}}}),{type:X.Style,styles:r,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,n){let r=n.currentAnimateTimings,i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let l=n.collectedStyles.get(n.currentQuerySelector),u=l.get(c),d=!0;u&&(o!=i&&o>=u.startTime&&i<=u.endTime&&(n.errors.push(dP(c,u.startTime,u.endTime,o,i)),d=!1),o=u.startTime),d&&l.set(c,{startTime:o,endTime:i}),n.options&&BP(a,n.options,n.errors)})})}visitKeyframes(t,n){let r={type:X.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(fP()),r;let i=1,o=0,s=[],a=!1,c=!1,l=0,u=t.steps.map(x=>{let ge=this._makeStyleAst(x,n),ee=ge.offset!=null?ge.offset:XP(ge.styles),H=0;return ee!=null&&(o++,H=ge.offset=ee),c=c||H<0||H>1,a=a||H0&&o{let ee=f>0?ge==m?1:f*ge:s[ge],H=ee*N;n.currentTime=v+_.delay+H,_.duration=H,this._validateStyleAst(x,n),x.offset=ee,r.styles.push(x)}),r}visitReference(t,n){return{type:X.Reference,animation:sn(this,ra(t.animation),n),options:Pi(t.options)}}visitAnimateChild(t,n){return n.depCount++,{type:X.AnimateChild,options:Pi(t.options)}}visitAnimateRef(t,n){return{type:X.AnimateRef,animation:this.visitReference(t.animation,n),options:Pi(t.options)}}visitQuery(t,n){let r=n.currentQuerySelector,i=t.options||{};n.queryCount++,n.currentQuery=t;let[o,s]=KP(t.selector);n.currentQuerySelector=r.length?r+" "+o:o,an(n.collectedStyles,n.currentQuerySelector,new Map);let a=sn(this,ra(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:X.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Pi(t.options)}}visitStagger(t,n){n.currentQuery||n.errors.push(gP());let r=t.timings==="full"?{duration:0,delay:0,easing:"full"}:su(t.timings,n.errors,!0);return{type:X.Stagger,animation:sn(this,ra(t.animation),n),timings:r,options:null}}};function KP(e){let t=!!e.split(/\s*,\s*/).find(n=>n==JE);return t&&(e=e.replace(ZP,"")),e=e.replace(/@\*/g,ou).replace(/@\w+/g,n=>ou+"-"+n.slice(1)).replace(/:animating/g,Pp),[e,t]}function QP(e){return e?T({},e):null}var kp=class{constructor(t){this.errors=t,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 XP(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;t=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let n=e;t=parseFloat(n.get("offset")),n.delete("offset")}return t}function JP(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let o=su(e,t).duration;return Mp(o,0,"")}let n=e;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Mp(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=su(n,t);return Mp(i.duration,i.delay,i.easing)}function Pi(e){return e?(e=T({},e),e.params&&(e.params=QP(e.params))):e={},e}function Mp(e,t,n){return{duration:e,delay:t,easing:n}}function Jp(e,t,n,r,i,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var sa=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,n){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...n)}has(t){return this._map.has(t)}clear(){this._map.clear()}},eR=1,tR=":enter",nR=new RegExp(tR,"g"),rR=":leave",iR=new RegExp(rR,"g");function tw(e,t,n,r,i,o=new Map,s=new Map,a,c,l=[]){return new jp().buildKeyframes(e,t,n,r,i,o,s,a,c,l)}var jp=class{buildKeyframes(t,n,r,i,o,s,a,c,l,u=[]){l=l||new sa;let d=new Vp(t,n,l,i,o,u,[]);d.options=c;let f=c.delay?Sr(c.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,c),sn(this,r,d);let m=d.timelines.filter(v=>v.containsAnimation());if(m.length&&a.size){let v;for(let _=m.length-1;_>=0;_--){let N=m[_];if(N.element===n){v=N;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([a],null,d.errors,c)}return m.length?m.map(v=>v.buildKeyframes()):[Jp(n,[],[],[],0,f,"",!1)]}visitTrigger(t,n){}visitState(t,n){}visitTransition(t,n){}visitAnimateChild(t,n){let r=n.subInstructions.get(n.element);if(r){let i=n.createSubContext(t.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}visitAnimateRef(t,n){let r=n.createSubContext(t.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],n,r),this.visitReference(t.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=t}_applyAnimationRefDelays(t,n,r){for(let i of t){let o=i==null?void 0:i.delay;if(o){let s=typeof o=="number"?o:Sr(oa(o,(i==null?void 0:i.params)??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(t,n,r){let o=n.currentTimeline.currentTime,s=r.duration!=null?Sr(r.duration):null,a=r.delay!=null?Sr(r.delay):null;return s!==0&&t.forEach(c=>{let l=n.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(t,n){n.updateOptions(t.options,!0),sn(this,t.animation,n),n.previousNode=t}visitSequence(t,n){let r=n.subContextCount,i=n,o=t.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==X.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=cu);let s=Sr(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>sn(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=t}visitGroup(t,n){let r=[],i=n.currentTimeline.currentTime,o=t.options&&t.options.delay?Sr(t.options.delay):0;t.steps.forEach(s=>{let a=n.createSubContext(t.options);o&&a.delayNextStep(o),sn(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(i),n.previousNode=t}_visitTiming(t,n){if(t.dynamic){let r=t.strValue,i=n.params?oa(r,n.params,n.errors):r;return su(i,n.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,n){let r=n.currentAnimateTimings=this._visitTiming(t.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());let o=t.style;o.type==X.Keyframes?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}visitStyle(t,n){let r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();let o=i&&i.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(o):r.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t}visitKeyframes(t,n){let r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*o),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+o),n.previousNode=t}visitQuery(t,n){let r=n.currentTimeline.currentTime,i=t.options||{},o=i.delay?Sr(i.delay):0;o&&(n.previousNode.type===X.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=cu);let s=r,a=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{n.currentQueryIndex=u;let d=n.createSubContext(t.options,l);o&&d.delayNextStep(o),l===n.element&&(c=d.currentTimeline),sn(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe();let f=d.currentTimeline.currentTime;s=Math.max(s,f)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}visitStagger(t,n){let r=n.parentContext,i=n.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime;break}let u=n.currentTimeline;c&&u.delayNextStep(c);let d=u.currentTime;sn(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},cu={},Vp=class e{constructor(t,n,r,i,o,s,a,c){this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new lu(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,n){if(!t)return;let r=t,i=this.options;r.duration!=null&&(i.duration=Sr(r.duration)),r.delay!=null&&(i.delay=Sr(r.delay));let o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=oa(o[a],s,this.errors))})}}_copyOptions(){let t={};if(this.options){let n=this.options.params;if(n){let r=t.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return t}createSubContext(t=null,n,r){let i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=cu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,n,r){let i={duration:n??t.duration,delay:this.currentTimeline.currentTime+(r??0)+t.delay,easing:""},o=new Up(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,n,r,i,o,s){let a=[];if(i&&a.push(this.element),t.length>0){t=t.replace(nR,"."+this._enterClassName),t=t.replace(iR,"."+this._leaveClassName);let c=r!=1,l=this._driver.query(this.element,t,c);r!==0&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!o&&a.length==0&&s.push(vP(n)),a}},lu=class e{constructor(t,n,r,i){this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,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(t){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||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+=eR,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,n){this._localTimelineStyles.set(t,n),this._globalTimelineStyles.set(t,n),this._styleSummary.set(t,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||tr),this._currentKeyframe.set(n,tr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,r,i){n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=oR(t,this._globalTimelineStyles);for(let[a,c]of s){let l=oa(c,o,r);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??tr),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,n)=>{this._currentKeyframe.set(n,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,t)}))}snapshotCurrentStyles(){for(let[t,n]of this._localTimelineStyles)this._pendingStyles.set(t,n),this._updateStyle(t,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let n in this._currentKeyframe)t.push(n);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((n,r)=>{let i=this._styleSummary.get(r);(!i||n.time>i.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{u===Gl?t.add(d):u===tr&&n.add(d)}),r||l.set("offset",c/this.duration),i.push(l)});let o=[...t.values()],s=[...n.values()];if(r){let a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return Jp(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},Up=class extends lu{constructor(t,n,r,i,o,s,a=!1){super(t,n,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){let o=[],s=r+n,a=n/s,c=new Map(t[0]);c.set("offset",0),o.push(c);let l=new Map(t[0]);l.set("offset",kE(a)),o.push(l);let u=t.length-1;for(let d=1;d<=u;d++){let f=new Map(t[d]),m=f.get("offset"),v=n+m*r;f.set("offset",kE(v/s)),o.push(f)}r=s,n=0,i="",t=o}return Jp(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function kE(e,t=3){let n=Math.pow(10,t-1);return Math.round(e*n)/n}function oR(e,t){let n=new Map,r;return e.forEach(i=>{if(i==="*"){r??(r=t.keys());for(let o of r)n.set(o,tr)}else for(let[o,s]of i)n.set(o,s)}),n}function jE(e,t,n,r,i,o,s,a,c,l,u,d,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:f}}var Sp={},uu=class{constructor(t,n,r){this._triggerName=t,this.ast=n,this._stateStyles=r}match(t,n,r,i){return sR(this.ast.matchers,t,n,r,i)}buildStyles(t,n,r){let i=this._stateStyles.get("*");return t!==void 0&&(i=this._stateStyles.get(t==null?void 0:t.toString())||i),i?i.buildStyles(n,r):new Map}build(t,n,r,i,o,s,a,c,l,u){var ct;let d=[],f=this.ast.options&&this.ast.options.params||Sp,m=a&&a.params||Sp,v=this.buildStyles(r,m,d),_=c&&c.params||Sp,N=this.buildStyles(i,_,d),x=new Set,ge=new Map,ee=new Map,H=i==="void",Et={params:nw(_,f),delay:(ct=this.ast.options)==null?void 0:ct.delay},nt=u?[]:tw(t,n,this.ast.animation,o,s,v,N,Et,l,d),de=0;return nt.forEach(B=>{de=Math.max(B.duration+B.delay,de)}),d.length?jE(n,this._triggerName,r,i,H,v,N,[],[],ge,ee,de,d):(nt.forEach(B=>{let Kt=B.element,un=an(ge,Kt,new Set);B.preStyleProps.forEach(jn=>un.add(jn));let kn=an(ee,Kt,new Set);B.postStyleProps.forEach(jn=>kn.add(jn)),Kt!==n&&x.add(Kt)}),jE(n,this._triggerName,r,i,H,v,N,nt,[...x.values()],ge,ee,de))}};function sR(e,t,n,r,i){return e.some(o=>o(t,n,r,i))}function nw(e,t){let n=T({},t);return Object.entries(e).forEach(([r,i])=>{i!=null&&(n[r]=i)}),n}var Bp=class{constructor(t,n,r){this.styles=t,this.defaultParams=n,this.normalizer=r}buildStyles(t,n){let r=new Map,i=nw(t,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=oa(s,i,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function aR(e,t,n){return new $p(e,t,n)}var $p=class{constructor(t,n,r){this.name=t,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new Bp(i.style,o,r))}),VE(this.states,"true","1"),VE(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new uu(t,i,this.states))}),this.fallbackTransition=cR(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,n,r,i){return this.transitionFactories.find(s=>s.match(t,n,r,i))||null}matchStyles(t,n,r){return this.fallbackTransition.buildStyles(t,n,r)}};function cR(e,t,n){let r=[(s,a)=>!0],i={type:X.Sequence,steps:[],options:null},o={type:X.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new uu(e,o,t)}function VE(e,t,n){e.has(t)?e.has(n)||e.set(n,e.get(t)):e.has(n)&&e.set(t,e.get(n))}var lR=new sa,Hp=class{constructor(t,n,r){this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,n){let r=[],i=[],o=ew(this._driver,n,r,i);if(r.length)throw wP(r);i.length&&void 0,this._animations.set(t,o)}_buildPlayer(t,n,r){let i=t.element,o=qE(this._normalizer,t.keyframes,n,r);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}create(t,n,r={}){let i=[],o=this._animations.get(t),s,a=new Map;if(o?(s=tw(this._driver,n,o,QE,xp,new Map,new Map,r,lR,i),s.forEach(u=>{let d=an(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(bP()),s=[]),i.length)throw IP(i);a.forEach((u,d)=>{u.forEach((f,m)=>{u.set(m,this._driver.computeStyle(d,m,tr))})});let c=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),l=Gr(c);return this._playersById.set(t,l),l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){let n=this._getPlayer(t);n.destroy(),this._playersById.delete(t);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(t){let n=this._playersById.get(t);if(!n)throw CP(t);return n}listen(t,n,r,i){let o=Zp(n,"","","");return Yp(this._getPlayer(t),r,o,i),()=>{}}command(t,n,r,i){if(r=="register"){this.register(t,i[0]);return}if(r=="create"){let s=i[0]||{};this.create(t,n,s);return}let o=this._getPlayer(t);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t);break}}},UE="ng-animate-queued",uR=".ng-animate-queued",Tp="ng-animate-disabled",dR=".ng-animate-disabled",fR="ng-star-inserted",hR=".ng-star-inserted",pR=[],rw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},mR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ln="__ng_removed",aa=class{get params(){return this.options.params}constructor(t,n=""){this.namespaceId=n;let r=t&&t.hasOwnProperty("value"),i=r?t.value:t;if(this.value=vR(i),r){let o=t,{value:s}=o,a=za(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let n=t.params;if(n){let r=this.options.params;Object.keys(n).forEach(i=>{r[i]==null&&(r[i]=n[i])})}}},ia="void",Ap=new aa(ia),zp=class{constructor(t,n,r){this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,_n(n,this._hostClassName)}listen(t,n,r,i){if(!this._triggers.has(n))throw MP(r,n);if(r==null||r.length==0)throw SP(n);if(!yR(r))throw TP(r,n);let o=an(this._elementListeners,t,[]),s={name:n,phase:r,callback:i};o.push(s);let a=an(this._engine.statesByElement,t,new Map);return a.has(n)||(_n(t,eu),_n(t,eu+"-"+n),a.set(n,Ap)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(t,n){return this._triggers.has(t)?!1:(this._triggers.set(t,n),!0)}_getTrigger(t){let n=this._triggers.get(t);if(!n)throw AP(t);return n}trigger(t,n,r,i=!0){let o=this._getTrigger(n),s=new ca(this.id,n,t),a=this._engine.statesByElement.get(t);a||(_n(t,eu),_n(t,eu+"-"+n),this._engine.statesByElement.set(t,a=new Map));let c=a.get(n),l=new aa(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(n,l),c||(c=Ap),!(l.value===ia)&&c.value===l.value){if(!ER(c.params,l.params)){let _=[],N=o.matchStyles(c.value,c.params,_),x=o.matchStyles(l.value,l.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{Ri(t,N),ir(t,x)})}return}let f=an(this._engine.playersByElement,t,[]);f.forEach(_=>{_.namespaceId==this.id&&_.triggerName==n&&_.queued&&_.destroy()});let m=o.matchTransition(c.value,l.value,t,l.params),v=!1;if(!m){if(!i)return;m=o.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:m,fromState:c,toState:l,player:s,isFallbackTransition:v}),v||(_n(t,UE),s.onStart(()=>{Uo(t,UE)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);let N=this._engine.playersByElement.get(t);if(N){let x=N.indexOf(s);x>=0&&N.splice(x,1)}}),this.players.push(s),f.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(n=>n.delete(t)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let n=this._engine.playersByElement.get(t);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,n){let r=this._engine.driver.query(t,ou,!0);r.forEach(i=>{if(i[Ln])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,n,r,i){let o=this._engine.statesByElement.get(t),s=new Map;if(o){let a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let u=this.trigger(t,l,ia,i);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,s),r&&Gr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let n=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(n&&r){let i=new Set;n.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let c=this._triggers.get(s).fallbackTransition,l=r.get(s)||Ap,u=new aa(ia),d=new ca(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,n){let r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),this.triggerLeaveAnimation(t,n,!0))return;let i=!1;if(r.totalAnimations){let o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else{let s=t;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,n);else{let o=t[Ln];(!o||o===rw)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,n))}}insertNode(t,n){_n(t,this._hostClassName)}drainQueuedTransitions(t){let n=[];return this._queue.forEach(r=>{let i=r.player;if(i.destroyed)return;let o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){let c=Zp(o,r.triggerName,r.fromState.value,r.toState.value);c._data=t,Yp(r.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{let o=r.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(t){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},Gp=class{_onRemovalComplete(t,n){this.onRemovalComplete(t,n)}constructor(t,n,r,i){this.bodyNode=t,this.driver=n,this._normalizer=r,this.scheduler=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,s)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,n){let r=new zp(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,n){let r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let c=i.get(a);if(c){let l=r.indexOf(c);r.splice(l+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(t)}else r.push(t);return i.set(n,t),t}register(t,n){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,n)),r}registerTrigger(t,n,r){let i=this._namespaceLookup[t];i&&i.register(n,r)&&this.totalAnimations++}destroy(t,n){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(t);this.namespacesByHostElement.delete(r.hostElement);let i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(n),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let n=new Set,r=this.statesByElement.get(t);if(r){for(let i of r.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&n.add(o)}}return n}trigger(t,n,r,i){if(ru(n)){let o=this._fetchNamespace(t);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(t,n,r,i){if(!ru(n))return;let o=n[Ln];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){let s=this._fetchNamespace(t);s&&s.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),_n(t,Tp)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Uo(t,Tp))}removeNode(t,n,r){var i;if(ru(n)){(i=this.scheduler)==null||i.notify();let o=t?this._fetchNamespace(t):null;o?o.removeNode(n,r):this.markElementAsRemoved(t,n,!1,r);let s=this.namespacesByHostElement.get(n);s&&s.id!==t&&s.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(t,n,r,i,o){this.collectedLeaveElements.push(n),n[Ln]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,n,r,i,o){return ru(n)?this._fetchNamespace(t).listen(n,r,i,o):()=>{}}_buildInstruction(t,n,r,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,i,t.fromState.options,t.toState.options,n,o)}destroyInnerAnimations(t){let n=this.driver.query(t,ou,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(t,Pp,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){let n=this.playersByElement.get(t);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){let n=this.playersByQueriedElement.get(t);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Gr(this.players).onDone(()=>t());t()})}processLeaveNode(t){var r;let n=t[Ln];if(n&&n.setForRemoval){if(t[Ln]=rw,n.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}(r=t.classList)!=null&&r.contains(Tp)&&this.markElementAsDisabled(t,!1),this.driver.query(t,dR,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?Gr(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw OP(t)}_flushAnimations(t,n){let r=new sa,i=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(O=>{u.add(O);let F=this.driver.query(O,uR,!0);for(let U=0;U{let U=QE+_++;v.set(F,U),O.forEach(ve=>_n(ve,U))});let N=[],x=new Set,ge=new Set;for(let O=0;Ox.add(ve)):ge.add(F))}let ee=new Map,H=HE(f,Array.from(x));H.forEach((O,F)=>{let U=xp+_++;ee.set(F,U),O.forEach(ve=>_n(ve,U))}),t.push(()=>{m.forEach((O,F)=>{let U=v.get(F);O.forEach(ve=>Uo(ve,U))}),H.forEach((O,F)=>{let U=ee.get(F);O.forEach(ve=>Uo(ve,U))}),N.forEach(O=>{this.processLeaveNode(O)})});let Et=[],nt=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(n).forEach(U=>{let ve=U.player,rt=U.element;if(Et.push(ve),this.collectedEnterElements.length){let ht=rt[Ln];if(ht&&ht.setForMove){if(ht.previousTriggersValues&&ht.previousTriggersValues.has(U.triggerName)){let ar=ht.previousTriggersValues.get(U.triggerName),At=this.statesByElement.get(U.element);if(At&&At.has(U.triggerName)){let $i=At.get(U.triggerName);$i.value=ar,At.set(U.triggerName,$i)}}ve.destroy();return}}let jt=!d||!this.driver.containsElement(d,rt),Ct=ee.get(rt),Qt=v.get(rt),$e=this._buildInstruction(U,r,Qt,Ct,jt);if($e.errors&&$e.errors.length){nt.push($e);return}if(jt){ve.onStart(()=>Ri(rt,$e.fromStyles)),ve.onDestroy(()=>ir(rt,$e.toStyles)),i.push(ve);return}if(U.isFallbackTransition){ve.onStart(()=>Ri(rt,$e.fromStyles)),ve.onDestroy(()=>ir(rt,$e.toStyles)),i.push(ve);return}let Fa=[];$e.timelines.forEach(ht=>{ht.stretchStartingKeyframe=!0,this.disabledNodes.has(ht.element)||Fa.push(ht)}),$e.timelines=Fa,r.append(rt,$e.timelines);let qu={instruction:$e,player:ve,element:rt};s.push(qu),$e.queriedElements.forEach(ht=>an(a,ht,[]).push(ve)),$e.preStyleProps.forEach((ht,ar)=>{if(ht.size){let At=c.get(ar);At||c.set(ar,At=new Set),ht.forEach(($i,ts)=>At.add(ts))}}),$e.postStyleProps.forEach((ht,ar)=>{let At=l.get(ar);At||l.set(ar,At=new Set),ht.forEach(($i,ts)=>At.add(ts))})});if(nt.length){let O=[];nt.forEach(F=>{O.push(NP(F.triggerName,F.errors))}),Et.forEach(F=>F.destroy()),this.reportError(O)}let de=new Map,ct=new Map;s.forEach(O=>{let F=O.element;r.has(F)&&(ct.set(F,F),this._beforeAnimationBuild(O.player.namespaceId,O.instruction,de))}),i.forEach(O=>{let F=O.element;this._getPreviousPlayers(F,!1,O.namespaceId,O.triggerName,null).forEach(ve=>{an(de,F,[]).push(ve),ve.destroy()})});let B=N.filter(O=>zE(O,c,l)),Kt=new Map;$E(Kt,this.driver,ge,l,tr).forEach(O=>{zE(O,c,l)&&B.push(O)});let kn=new Map;m.forEach((O,F)=>{$E(kn,this.driver,new Set(O),c,Gl)}),B.forEach(O=>{let F=Kt.get(O),U=kn.get(O);Kt.set(O,new Map([...(F==null?void 0:F.entries())??[],...(U==null?void 0:U.entries())??[]]))});let jn=[],Ui=[],Bi={};s.forEach(O=>{let{element:F,player:U,instruction:ve}=O;if(r.has(F)){if(u.has(F)){U.onDestroy(()=>ir(F,ve.toStyles)),U.disabled=!0,U.overrideTotalTime(ve.totalTime),i.push(U);return}let rt=Bi;if(ct.size>1){let Ct=F,Qt=[];for(;Ct=Ct.parentNode;){let $e=ct.get(Ct);if($e){rt=$e;break}Qt.push(Ct)}Qt.forEach($e=>ct.set($e,rt))}let jt=this._buildAnimation(U.namespaceId,ve,de,o,kn,Kt);if(U.setRealPlayer(jt),rt===Bi)jn.push(U);else{let Ct=this.playersByElement.get(rt);Ct&&Ct.length&&(U.parentPlayer=Gr(Ct)),i.push(U)}}else Ri(F,ve.fromStyles),U.onDestroy(()=>ir(F,ve.toStyles)),Ui.push(U),u.has(F)&&i.push(U)}),Ui.forEach(O=>{let F=o.get(O.element);if(F&&F.length){let U=Gr(F);O.setRealPlayer(U)}}),i.forEach(O=>{O.parentPlayer?O.syncPlayerEvents(O.parentPlayer):O.destroy()});for(let O=0;O!jt.destroyed);rt.length?_R(this,F,rt):this.processLeaveNode(F)}return N.length=0,jn.forEach(O=>{this.players.push(O),O.onDone(()=>{O.destroy();let F=this.players.indexOf(O);this.players.splice(F,1)}),O.play()}),jn}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,n,r,i,o){let s=[];if(n){let a=this.playersByQueriedElement.get(t);a&&(s=a)}else{let a=this.playersByElement.get(t);if(a){let c=!o||o==ia;a.forEach(l=>{l.queued||!c&&l.triggerName!=i||s.push(l)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(t,n,r){let i=n.triggerName,o=n.element,s=n.isRemovalTransition?void 0:t,a=n.isRemovalTransition?void 0:i;for(let c of n.timelines){let l=c.element,u=l!==o,d=an(r,l,[]);this._getPreviousPlayers(l,u,s,a,n.toState).forEach(m=>{let v=m.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),m.destroy(),d.push(m)})}Ri(o,n.fromStyles)}_buildAnimation(t,n,r,i,o,s){let a=n.triggerName,c=n.element,l=[],u=new Set,d=new Set,f=n.timelines.map(v=>{let _=v.element;u.add(_);let N=_[Ln];if(N&&N.removedBeforeQueried)return new Ur(v.duration,v.delay);let x=_!==c,ge=DR((r.get(_)||pR).map(de=>de.getRealPlayer())).filter(de=>{let ct=de;return ct.element?ct.element===_:!1}),ee=o.get(_),H=s.get(_),Et=qE(this._normalizer,v.keyframes,ee,H),nt=this._buildPlayer(v,Et,ge);if(v.subTimeline&&i&&d.add(_),x){let de=new ca(t,a,_);de.setRealPlayer(nt),l.push(de)}return nt});l.forEach(v=>{an(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>gR(this.playersByQueriedElement,v.element,v))}),u.forEach(v=>_n(v,PE));let m=Gr(f);return m.onDestroy(()=>{u.forEach(v=>Uo(v,PE)),ir(c,n.toStyles)}),d.forEach(v=>{an(i,v,[]).push(m)}),m}_buildPlayer(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new Ur(t.duration,t.delay)}},ca=class{constructor(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new Ur,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>Yp(t,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let n=this._player;n.triggerCallback&&t.onStart(()=>n.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,n){an(this._queuedCallbacks,t,[]).push(n)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let n=this._player;n.triggerCallback&&n.triggerCallback(t)}};function gR(e,t,n){let r=e.get(t);if(r){if(r.length){let i=r.indexOf(n);r.splice(i,1)}r.length==0&&e.delete(t)}return r}function vR(e){return e??null}function ru(e){return e&&e.nodeType===1}function yR(e){return e=="start"||e=="done"}function BE(e,t){let n=e.style.display;return e.style.display=t??"none",n}function $E(e,t,n,r,i){let o=[];n.forEach(c=>o.push(BE(c)));let s=[];r.forEach((c,l)=>{let u=new Map;c.forEach(d=>{let f=t.computeStyle(l,d,i);u.set(d,f),(!f||f.length==0)&&(l[Ln]=mR,s.push(l))}),e.set(l,u)});let a=0;return n.forEach(c=>BE(c,o[a++])),s}function HE(e,t){let n=new Map;if(e.forEach(a=>n.set(a,[])),t.length==0)return n;let r=1,i=new Set(t),o=new Map;function s(a){if(!a)return r;let c=o.get(a);if(c)return c;let l=a.parentNode;return n.has(l)?c=l:i.has(l)?c=r:c=s(l),o.set(a,c),c}return t.forEach(a=>{let c=s(a);c!==r&&n.get(c).push(a)}),n}function _n(e,t){var n;(n=e.classList)==null||n.add(t)}function Uo(e,t){var n;(n=e.classList)==null||n.remove(t)}function _R(e,t,n){Gr(n).onDone(()=>e.processLeaveNode(t))}function DR(e){let t=[];return iw(e,t),t}function iw(e,t){for(let n=0;ni.add(o)):t.set(e,r),n.delete(e),!0}var du=class{constructor(t,n,r,i){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Gp(t.body,n,r,i),this._timelineEngine=new Hp(t.body,n,r),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(t,n,r,i,o){let s=t+"-"+i,a=this._triggerCache[s];if(!a){let c=[],l=[],u=ew(this._driver,o,c,l);if(c.length)throw DP(i,c);l.length&&void 0,a=aR(i,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,i,a)}register(t,n){this._transitionEngine.register(t,n)}destroy(t,n){this._transitionEngine.destroy(t,n)}onInsert(t,n,r,i){this._transitionEngine.insertNode(t,n,r,i)}onRemove(t,n,r){this._transitionEngine.removeNode(t,n,r)}disableAnimations(t,n){this._transitionEngine.markElementAsDisabled(t,n)}process(t,n,r,i){if(r.charAt(0)=="@"){let[o,s]=OE(r),a=i;this._timelineEngine.command(o,n,s,a)}else this._transitionEngine.trigger(t,n,r,i)}listen(t,n,r,i,o){if(r.charAt(0)=="@"){let[s,a]=OE(r);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(t,n,r,i,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function wR(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=Op(t[0]),t.length>1&&(r=Op(t[t.length-1]))):t instanceof Map&&(n=Op(t)),n||r?new Wp(e,n,r):null}var Bo=class Bo{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let i=Bo.initialStylesByElement.get(t);i||Bo.initialStylesByElement.set(t,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ir(this._element,this._initialStyles),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Bo.initialStylesByElement.delete(this._element),this._startStyles&&(Ri(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ri(this._element,this._endStyles),this._endStyles=null),ir(this._element,this._initialStyles),this._state=3)}};Bo.initialStylesByElement=new WeakMap;var Wp=Bo;function Op(e){let t=null;return e.forEach((n,r)=>{bR(r)&&(t=t||new Map,t.set(r,n))}),t}function bR(e){return e==="display"||e==="position"}var fu=class{constructor(t,n,r,i){this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let n=[];return t.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(t,n,r){return t.animate(this._convertKeyframesToObject(n),r)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{i!=="offset"&&t.set(i,this._finished?r:Xp(this.element,i))}),this.currentSnapshot=t}triggerCallback(t){let n=t==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},GE=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,n){return!1}containsElement(t,n){return YE(t,n)}getParentElement(t){return Kp(t)}query(t,n,r){return ZE(t,n,r)}computeStyle(t,n,r){return Xp(t,n)}animate(t,n,r,i,o,s=[]){let a=i==0?"both":"forwards",c={duration:r,delay:i,fill:a};o&&(c.easing=o);let l=new Map,u=s.filter(m=>m instanceof fu);HP(r,i)&&u.forEach(m=>{m.currentSnapshot.forEach((v,_)=>l.set(_,v))});let d=UP(n).map(m=>new Map(m));d=zP(t,d,l);let f=wR(t,d);return new fu(t,d,c,f)}};var iu="@",ow="@.disabled",hu=class{constructor(t,n,r,i){this.namespaceId=t,this.delegate=n,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){var n,r;(r=(n=this.delegate).destroyNode)==null||r.call(n,t)}destroy(){var t;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(t=this._onDestroy)==null||t.call(this)}createElement(t,n){return this.delegate.createElement(t,n)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,n){this.delegate.appendChild(t,n),this.engine.onInsert(this.namespaceId,n,t,!1)}insertBefore(t,n,r,i=!0){this.delegate.insertBefore(t,n,r),this.engine.onInsert(this.namespaceId,n,t,i)}removeChild(t,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(t,n){return this.delegate.selectRootElement(t,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,n,r,i){this.delegate.setAttribute(t,n,r,i)}removeAttribute(t,n,r){this.delegate.removeAttribute(t,n,r)}addClass(t,n){this.delegate.addClass(t,n)}removeClass(t,n){this.delegate.removeClass(t,n)}setStyle(t,n,r,i){this.delegate.setStyle(t,n,r,i)}removeStyle(t,n,r){this.delegate.removeStyle(t,n,r)}setProperty(t,n,r){n.charAt(0)==iu&&n==ow?this.disableAnimations(t,!!r):this.delegate.setProperty(t,n,r)}setValue(t,n){this.delegate.setValue(t,n)}listen(t,n,r){return this.delegate.listen(t,n,r)}disableAnimations(t,n){this.engine.disableAnimations(t,n)}},qp=class extends hu{constructor(t,n,r,i,o){super(n,r,i,o),this.factory=t,this.namespaceId=n}setProperty(t,n,r){n.charAt(0)==iu?n.charAt(1)=="."&&n==ow?(r=r===void 0?!0:!!r,this.disableAnimations(t,r)):this.engine.process(this.namespaceId,t,n.slice(1),r):this.delegate.setProperty(t,n,r)}listen(t,n,r){if(n.charAt(0)==iu){let i=IR(t),o=n.slice(1),s="";return o.charAt(0)!=iu&&([o,s]=CR(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,r,a)})}return this.delegate.listen(t,n,r)}};function IR(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function CR(e){let t=e.indexOf("."),n=e.substring(0,t),r=e.slice(t+1);return[n,r]}var WE=class{constructor(t,n,r){this.delegate=t,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(i,o)=>{let s=o==null?void 0:o.parentNode(i);s&&o.removeChild(s,i)}}createRenderer(t,n){var l;let r="",i=this.delegate.createRenderer(t,n);if(!t||!((l=n==null?void 0:n.data)!=null&&l.animation)){let u=this._rendererCache,d=u.get(i);if(!d){let f=()=>u.delete(i);d=new hu(r,i,this.engine,f),u.set(i,d)}return d}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(o,s,t,u.name,u)};return n.data.animation.forEach(a),new qp(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,n,r){if(t>=0&&tn(r));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([n,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var MR=se(()=>{let e={onRemovalComplete:()=>{}},t=new We(null),n=g(du,le.Optional)||e,{onRemovalComplete:r=e.onRemovalComplete}=n;return n.onRemovalComplete=(i,o)=>{t.next(i),r.call(n,i,o)},t.pipe(ce(i=>vt(0).pipe(b(()=>null),Ce(i))),Ht())});function sw(e,t=null){return ko(e).activeElement!==e&&!e.matches(":disabled")&&!(t!=null&&t.contains(e))}function SR(e){return Ue(J(e,"focusin").pipe(b(({target:t})=>t)),J(e,"focusout").pipe(Ie(({target:t,relatedTarget:n})=>!!n&&sw(t)),b(({relatedTarget:t})=>t)))}var aw=se(()=>{let e=g(MR),t=g(pe),n=g(he),r=J(t,"focusout"),i=J(t,"focusin"),o=J(t,"blur"),s=J(t,"mousedown"),a=J(t,"mouseup");return Ue(r.pipe(Ae(s),Ad(()=>a),ms(e),Ie(([c,l])=>sw($r(c),l)),b(([{relatedTarget:c}])=>c)),o.pipe(b(()=>n.activeElement),Ie(c=>!!(c!=null&&c.matches("iframe")))),i.pipe(ce(c=>{let l=$r(c),u=ko(l);return u===n?S(l):SR(u).pipe(Ce(l))})),s.pipe(ce(c=>{let l=$r(c);return!n.activeElement||n.activeElement===n.body?S(l):r.pipe(Qe(1),b(()=>l),Ae(vt(0)))}))).pipe(qe(),Ht())}),cw=Te([]);var lw=se(()=>{var e,t;return(t=(e=g(he).querySelector("base"))===null||e===void 0?void 0:e.href)!==null&&t!==void 0?t:""}),C4=se(()=>g(gi).createRenderer(null,null)),TR=Te([]);function uw(e){return{provide:TR,multi:!0,useExisting:e}}var M4=se(()=>{var e;let t=(e=g(he).querySelector("base"))===null||e===void 0?void 0:e.href;if(t)return t;let n=g(he).createElement("a");return n.href="",n.pathname}),la=new E("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function pu(e){return{provide:la,useExisting:e}}var S4=new E("[TUI_FONTS_READY]",{factory:()=>{var e;return Pe(((e=g(he).fonts)===null||e===void 0?void 0:e.ready)||xe).pipe(Jt({bufferSize:1,refCount:!1}))}}),ua=se(()=>_p(g(Po))),AR=/(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/,OR=/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-/,tm=se(()=>AR.test(g(mp).toLowerCase())||OR.test(g(mp).slice(0,4).toLowerCase())),T4=se(()=>g(tm)&&!g(ua)),A4=se(()=>yE(g(Po))),O4=se(()=>!!g(pe).chrome),NR=se(()=>!!g(pe).Cypress),xR=se(Br),N4=se(()=>g(NR)||g(xR)),x4=se(()=>{var e;return typeof((e=g(pe))===null||e===void 0?void 0:e.mozCancelFullScreen)<"u"}),P4=se(()=>g(pe).location.host.endsWith("stackblitz.io")),dw=se(()=>{var e;return!!(!((e=g(pe))===null||e===void 0)&&e.webkitConvertPointFromNodeToPage)}),R4=Te("web");var F4=se(()=>p0(g(Yt))?new Range:{}),da=se(()=>new Q(g(he).documentElement)),L4=Te({timeout:500,threshold:30}),k4=se(Ro),j4=se(()=>g(pe).matchMedia("(any-pointer: coarse)").matches),nm=new E("[TUI_WINDOW_SIZE]",{factory:()=>{let e=g(pe);return J(e,"resize").pipe(Ce(null),b(()=>{var t,n;let r=Math.max(e.document.documentElement.clientWidth||0,e.innerWidth||0,((t=e.visualViewport)===null||t===void 0?void 0:t.width)||0),i=Math.max(e.document.documentElement.clientHeight||0,e.innerHeight||0,((n=e.visualViewport)===null||n===void 0?void 0:n.height)||0);return{width:r,height:i,top:0,left:0,right:r,bottom:i}}),Jt({bufferSize:1,refCount:!0}))}}),V4=se(()=>g(nm).pipe(b(({height:e})=>e))),U4=Te({wheelSensitivity:.01});var Ze=(()=>{class e extends fr{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),oq=(()=>{class e{constructor(n,r){this.resolver=n,this.injector=r,this.map=new Map}addComponent(n){this.map.has(n)||this.map.set(n,this.resolver.resolveComponentFactory(n).create(this.injector))}ngOnDestroy(){this.map.forEach(n=>n.destroy())}}return e.\u0275fac=function(n){return new(n||e)(M(Kn),M(wo))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),rm=(()=>{class e extends R{constructor({nativeElement:n},r,i){super(o=>this.focusVisible$.subscribe(o)),this.focusVisible$=bE(n).pipe(SE(r),Ae(i))}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(dt),M(Ze,2))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),PR="tui_",hw=(()=>{class e{generate(){return`${PR}${e.autoId++}${Date.now()}`}}return e.autoId=0,e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),RR=(()=>{class e extends R{constructor(n,r){super(i=>this.callback$.subscribe(i)),this.callback$=Bn(()=>{let{nativeElement:i}=n,o=[r,i];for(;i.parentElement;)i=i.parentElement,o.push(i);return Ue(...o.map(s=>J(s,"scroll")))})}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(pe))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),sq=(()=>{class e extends R{constructor(n,{nativeElement:r},i,o,s,a){super(c=>this.obscured$.subscribe(c)),this.obscured$=Ue(Ue(n,$n(o,"resize")).pipe(hs(0)),a.pipe(Nr(Fo))).pipe(b(()=>ql(r)),Ce(null),qe(),rr(i),Ae(s))}}return e.\u0275fac=function(n){return new(n||e)(M(RR,2),M(Q),M(fe),M(pe),M(Ze,2),M(Rn))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var FR=300;function fw(e){return"scrollX"in e?e.scrollX:e.scrollLeft}function LR(e){return"scrollY"in e?e.scrollY:e.scrollTop}var aq=(()=>{class e{constructor(n,r){this.performanceRef=n,this.animationFrame$=r}scroll$(n,r,i=fw(n),o=FR){let s=LR(n),a=fw(n),c=r-s,l=i-a;return(o?Bn(()=>S(this.performanceRef.now())).pipe(ce(d=>this.animationFrame$.pipe(b(f=>f-d))),b(d=>dE(Mr(d/o,0,1))),b(d=>[s+c*d,a+l*d]),Ae(vt(o)),ps([r,i])):S([r,i])).pipe(Be(([d,f])=>{var m;(m=n.scrollTo)===null||m===void 0||m.call(n,f,d)}))}}return e.\u0275fac=function(n){return new(n||e)(M(eE),M(Rn))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),pw=(()=>{class e{constructor(n,r){this.win=n,this.platformId=r,this.cache=new Map}request(n){let r=this.cache.get(n);if(r)return r;let o=("AbortController"in this.win||Si(this.platformId)?Ip(n):Bn(()=>Pe(fetch(n)))).pipe(ce(s=>nc(this,void 0,void 0,function*(){if(s.ok)return s.text();throw new Error(`Failed to load ${n} (${s.statusText})`)})),Jt({bufferSize:1,refCount:!1}));return this.cache.set(n,o),o}}return e.\u0275fac=function(n){return new(n||e)(M(pe),M(Yt))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var kR=["viewContainer"],jR="tui_interactive_",om=(()=>{class e{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new st,this.focusVisibleChange=new st,this.focusVisible=!1,this.autoIdString=`${jR}${e.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get computedFocused(){var n;return!this.computedDisabled&&((n=this.pseudoFocus)!==null&&n!==void 0?n:this.focused)}get computedFocusVisible(){var n;return!this.computedDisabled&&((n=this.pseudoFocus)!==null&&n!==void 0?n:this.focusVisible)}get id(){return this.nativeId||this.autoIdString}updateFocused(n){this.focusedChange.emit(n)}updateFocusVisible(n){this.focusVisible!==n&&(this.focusVisible=n,this.focusVisibleChange.emit(n))}}return e.autoId=0,e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=z({type:e,hostVars:7,hostBindings:function(n,r){n&2&&(ut("data-focused",r.pseudoFocus),tt("_disabled",r.computedDisabled)("_focused",r.computedFocused)("_focus-visible",r.computedFocusVisible))},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}}),e})(),im=class{},fa=(()=>{class e extends om{constructor(n,r,i){super(),this.ngControl=n,this.cdr=r,this.valueTransformer=i,this.refresh$=new Oe,this.onTouched=vp,this.onChange=vp,this.fallbackValue=this.getFallbackValue(),this.destroy$=new Oe,this.readOnly=!1,this.pseudoInvalid=null,this.ngControl&&(this.ngControl.valueAccessor=this)}get computedInvalid(){return this.interactive&&(this.pseudoInvalid!==null?this.pseudoInvalid:this.touched&&this.invalid)}get value(){var n;return(n=this.previousInternalValue)!==null&&n!==void 0?n:this.fallbackValue}set value(n){this.updateValue(n)}get safeCurrentValue(){var n;return(n=this.rawValue)!==null&&n!==void 0?n:this.fallbackValue}get invalid(){return this.safeNgControlData(({invalid:n})=>n,!1)}get valid(){return this.safeNgControlData(({valid:n})=>n,!1)}get touched(){return this.safeNgControlData(({touched:n})=>n,!1)}get disabled(){return this.safeNgControlData(({disabled:n})=>n,!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData(({control:n})=>n,null)}get computedName(){var n,r;return(r=(n=this.controlName)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:null}get controlName(){var n,r,i;return(i=(r=(n=this.ngControl)===null||n===void 0?void 0:n.name)===null||r===void 0?void 0:r.toString())!==null&&i!==void 0?i:null}get rawValue(){let{ngControl:n}=this;if(n===null)return;let r=n instanceof zl&&this.previousInternalValue===void 0?n.viewModel:n.value;return this.fromControlValue(r)}ngOnInit(){this.refresh$.pipe(hs(0),Ce(null),b(()=>{var n;return(n=this.ngControl)===null||n===void 0?void 0:n.control}),Ie(Oi),qe(),ce(n=>Ue(n.valueChanges,n.statusChanges)),Ae(this.destroy$)).subscribe(()=>{this.refreshLocalValue(this.safeCurrentValue)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(n){this.onChange=r=>{n(this.toControlValue(r))},this.refresh$.next()}registerOnTouched(n){this.onTouched=n}setDisabledState(){this.checkControlUpdate()}writeValue(n){let r=this.ngControl instanceof zl&&this.previousInternalValue===void 0?this.ngControl.model:n;this.refreshLocalValue(this.fromControlValue(r))}updateFocused(n){n||this.controlMarkAsTouched(),super.updateFocused(n)}updateValue(n){this.disabled||this.valueIdenticalComparator(this.value,n)||(this.previousInternalValue=n,this.controlSetValue(n))}valueIdenticalComparator(n,r){return n===r}safeNgControlData(n,r){var i;return(i=this.ngControl&&n(this.ngControl))!==null&&i!==void 0?i:r}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(n){this.onChange(n),this.checkControlUpdate()}refreshLocalValue(n){this.previousInternalValue=n,this.checkControlUpdate()}fromControlValue(n){return this.valueTransformer?this.valueTransformer.fromControlValue(n):n}toControlValue(n){return this.valueTransformer?this.valueTransformer.toControlValue(n):n}}return e.\u0275fac=function(n){return new(n||e)(y(Ai,8),y(dt),y(im,8))},e.\u0275dir=z({type:e,hostVars:4,hostBindings:function(n,r){n&2&&tt("_readonly",r.readOnly)("_invalid",r.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[He]}),e})();function Cq(e){return{provide:fa,useExisting:e}}var mw=(()=>{class e{constructor(){this.change$=new Oe}ngOnChanges(){this.change$.next()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=z({type:e,features:[mn]}),e})(),mu=(()=>{class e extends R{constructor(n){super(r=>this.dialogs$.subscribe(r)),this.idService=n,this.dialogs$=new We([])}open(n,r={}){return new R(i=>{let o=a=>{i.next(a),i.complete()},s=Object.assign(Object.assign(Object.assign({},this.defaultOptions),r),{content:n,completeWith:o,$implicit:i,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(n){return new(n||e)(M(hw))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var Mq=(()=>{class e extends fa{clear(){this.value=[]}getFallbackValue(){return[]}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275dir=z({type:e,features:[He]}),e})(),Sq=(()=>{class e extends fa{getFallbackValue(){return null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275dir=z({type:e,features:[He]}),e})(),gu=(()=>{class e{get safeHost(){if(!this.host)throw new Kl;return this.host}attach(n){this.host=n}add(n){return this.safeHost.addComponentChild(n)}remove({hostView:n}){n.destroyed||n.destroy()}addTemplate(n,r){return this.safeHost.addTemplateChild(n,r)}removeTemplate(n){n.destroyed||n.destroy()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),sm=(()=>{class e{constructor(n,r,i){this.injector=n,this.el=r,i.attach(this)}get clientRect(){return this.el.nativeElement.getBoundingClientRect()}addComponentChild(n){let r=n.createInjector(this.injector),o=r.get(Kn).resolveComponentFactory(n.component),s=[{provide:e,useValue:this}],a=qt.create({parent:r,providers:s}),c=this.vcr.createComponent(o,void 0,a);return c.changeDetectorRef.detectChanges(),c}addTemplateChild(n,r){return this.vcr.createEmbeddedView(n,r)}}return e.\u0275fac=function(n){return new(n||e)(y(wo),y(Q),y(gu))},e.\u0275dir=z({type:e,viewQuery:function(n,r){if(n&1&&GD(kR,5,Ft),n&2){let i;Bh(i=$h())&&(r.vcr=i.first)}}}),e})();function gw(e){return e!==null&&typeof e<"u"&&`${e}`!="false"}var Oq=(()=>{class e{transform(n,r,...i){return r(n,...i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=yi({name:"tuiMapper",type:e,pure:!0}),e})(),Nq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();function VR(e,t){if(e&1&&(De(0,"div",3),je(1,"div",4),ye()),e&2){let n=me().ngIf;tt("t-bar_has-horizontal",n[1])}}function UR(e,t){if(e&1&&(De(0,"div",5),je(1,"div",6),ye()),e&2){let n=me().ngIf;tt("t-bar_has-vertical",n[0])}}function BR(e,t){if(e&1&&(xn(0),Se(1,VR,2,2,"div",1)(2,UR,2,2,"div",2),Pn()),e&2){let n=t.ngIf;oe(),V("ngIf",n[0]),oe(),V("ngIf",n[1])}}var vu=24;function $R({clientY:e},{top:t,height:n}){return(e-t)/n}function HR({clientX:e},{left:t,width:n}){return(e-t)/n}var zR=(()=>{class e{constructor(n,r,i,o,s,a){this.container=o,this.doc=s,this.el=a,this.tuiScrollbar="vertical";let{nativeElement:c}=this.el,l=J(c,"mousedown"),u=J(this.doc,"mousemove"),d=J(this.doc,"mouseup"),f=J(this.wrapper,"mousedown");Ue(f.pipe(b(m=>this.getScrolled(m,.5,.5))),l.pipe(ce(m=>{let v=c.getBoundingClientRect(),_=$R(m,v),N=HR(m,v);return u.pipe(b(x=>this.getScrolled(x,_,N)),Ae(d))}))).pipe(nr(n),Ae(r)).subscribe(([m,v])=>{this.tuiScrollbar==="vertical"?this.element.scrollTop=m:this.element.scrollLeft=v}),Ue(i.pipe(Nr(Fo)),ME(this.element)).pipe(nr(n),Ae(r)).subscribe(()=>{this.tuiScrollbar==="vertical"?(c.style.top=`${this.thumb*100}%`,c.style.height=`${this.view*100}%`):(c.style.left=`${this.thumb*100}%`,c.style.width=`${this.view*100}%`)})}get wrapper(){return this.el.nativeElement.parentElement}get scrolled(){let{scrollTop:n,scrollHeight:r,clientHeight:i,scrollLeft:o,scrollWidth:s,clientWidth:a}=this.element;return this.tuiScrollbar==="vertical"?n/(r-i):o/(s-a)}get compensation(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.element;return n*n/r>vu&&this.tuiScrollbar==="vertical"||i*i/o>vu&&this.tuiScrollbar==="horizontal"?0:this.tuiScrollbar==="vertical"?vu/n:vu/i}get thumb(){let n=this.compensation||this.view;return this.scrolled*(1-n)}get view(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.element;return this.tuiScrollbar==="vertical"?Math.ceil(n/r*100)/100:Math.ceil(i/o*100)/100}get element(){return this.container.nativeElement}getScrolled({clientY:n,clientX:r},i,o){let{offsetHeight:s,offsetWidth:a}=this.el.nativeElement,{top:c,left:l,width:u,height:d}=this.wrapper.getBoundingClientRect(),f=this.element.scrollHeight-d,m=this.element.scrollWidth-u,v=(n-c-s*i)/(d-s),_=(r-l-a*o)/(u-a);return[f*v,m*_]}}return e.\u0275fac=function(n){return new(n||e)(y(fe),y(Ze,2),y(Rn),y(da),y(he),y(Q))},e.\u0275dir=z({type:e,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[ze([Ze])]}),e})(),Zq=(()=>{class e{constructor(n,r,i){this.zone=n,this.scrollRef=r,this.animationFrame$=i,this.refresh$=this.animationFrame$.pipe(Nr(300),b(()=>this.scrollbars),Ce([!1,!1]),qe((o,s)=>o[0]===s[0]&&o[1]===s[1]),rr(this.zone))}get scrollbars(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.scrollRef.nativeElement;return[Math.ceil(n/r*100)<100,Math.ceil(i/o*100)<100]}}return e.\u0275fac=function(n){return new(n||e)(y(fe),y(da),y(Rn))},e.\u0275cmp=lt({type:e,selectors:[["tui-scroll-controls"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],[1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],[1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(n,r){n&1&&(Se(0,BR,3,2,"ng-container",0),vn(1,"async")),n&2&&V("ngIf",yn(1,1,r.refresh$))},dependencies:[Lt,zR,er],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);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;-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;animation:tuiFadeIn var(--tui-duration, .3s) ease-in-out}.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%]{position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition:all var(--tui-duration, .3s) ease-in-out;transition-property:width,height,opacity;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}.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}"],changeDetection:0}),e})();var Kq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=z({type:e,selectors:[["","tuiScrollRef",""]],features:[ze([{provide:da,useExisting:Q}])]}),e})(),Qq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({imports:[[kt]]}),e})();function GR(e){let t=[],n=!1,r;return function(...o){return n&&t.length===o.length&&o.every((a,c)=>a===t[c])||(t=o,r=e.apply(this,o),n=!0),r}}function vw(e,t,n=!0){return function(){let i=e.call(this);return Object.defineProperty(this,t,{enumerable:n,value:i}),i}}function yu(e,t,n){if(typeof e=="function"){let c=t;if(c.kind==="getter")return vw(e,c.name);if(c.kind==="method")return GR(e);throw new ta}let{get:r,enumerable:i,value:o}=n,s=t;if(r)return{configurable:!0,enumerable:i,get:vw(r,s,i)};if(typeof o!="function")throw new ta;let a=o;return{configurable:!0,enumerable:i,get(){let c=[],l=!1,u,d=(...f)=>(l&&c.length===f.length&&f.every((v,_)=>v===c[_])||(c=f,u=a.apply(this,f),l=!0),u);return Object.defineProperty(this,s,{configurable:!0,value:d}),d}}}var m8=(()=>{class e{constructor(n,r,i,o){var s;this.active$=n,this.zone=r,this.el=i,this.directParentActiveZone=o,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe(b(a=>!!a&&this.contains(a)),Ce(!1),qe(),Nd(1),rr(this.zone)),(s=this.directParentActiveZone)===null||s===void 0||s.addSubActiveZone(this)}set tuiActiveZoneParentSetter(n){this.setZone(n)}ngOnDestroy(){var n,r;(n=this.directParentActiveZone)===null||n===void 0||n.removeSubActiveZone(this),(r=this.tuiActiveZoneParent)===null||r===void 0||r.removeSubActiveZone(this)}contains(n){return this.el.nativeElement.contains(n)||this.subActiveZones.some((r,i,o)=>o.indexOf(r)===i&&r.contains(n))}setZone(n){var r;(r=this.tuiActiveZoneParent)===null||r===void 0||r.removeSubActiveZone(this),n==null||n.addSubActiveZone(this),this.tuiActiveZoneParent=n}addSubActiveZone(n){this.subActiveZones=[...this.subActiveZones,n]}removeSubActiveZone(n){this.subActiveZones=uE(this.subActiveZones,this.subActiveZones.indexOf(n))}}return e.\u0275fac=function(n){return new(n||e)(y(aw),y(fe),y(Q),y(e,12))},e.\u0275dir=z({type:e,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],hostBindings:function(n,r){n&1&&Xe("mousedown.silent",function(){return 0},!1,G_)},inputs:{tuiActiveZoneParentSetter:[Ye.None,"tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"]}),tc([yu],e.prototype,"setZone",null),e})(),g8=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var yw=(()=>{class e{constructor(n,r){this.focusable=n,this.el=r}get element(){var n;return((n=this.focusable)===null||n===void 0?void 0:n.nativeFocusableElement)||this.el.nativeElement}get isTextFieldElement(){return this.element.matches("input, textarea, [contenteditable]")}}return e.\u0275fac=function(n){Sh()},e.\u0275dir=z({type:e}),e})(),WR=1e3,qR=".ng-animating",YR=(()=>{class e extends yw{constructor(n,r,i){super(n,r),this.animationFrame$=i}setFocus(){this.isTextFieldElement?Md(vt(WR),this.animationFrame$.pipe(Nr(Fo),b(()=>this.element.closest(qR)),xd(Boolean),Qe(1))).subscribe(()=>this.element.focus({preventScroll:!0})):this.element.focus({preventScroll:!0})}}return e.\u0275fac=function(n){return new(n||e)(y(la,10),y(Q),y(Rn))},e.\u0275dir=z({type:e,features:[He]}),e})(),ZR=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"],KR=(()=>{class e extends yw{constructor(n,r,i,o,s){super(n,r),this.renderer=i,this.zone=o,this.win=s,this.patchCssStyles()}setFocus(){this.isTextFieldElement?this.zone.runOutsideAngular(()=>this.iosWebkitAutofocus()):this.element.focus({preventScroll:!0})}iosWebkitAutofocus(){var n;let r=this.makeFakeInput(),i=this.getDurationTimeBeforeFocus(),o=0,s=0,a=()=>r.focus({preventScroll:!0}),c=()=>{clearTimeout(o),o=this.win.setTimeout(()=>{clearTimeout(s),r.removeEventListener("blur",a),r.removeEventListener("focus",c),s=this.win.setTimeout(()=>{this.element.focus({preventScroll:!1}),r.remove()},i)})};r.addEventListener("blur",a,{once:!0}),r.addEventListener("focus",c),this.insideDialog()?this.win.document.body.appendChild(r):(n=this.element.parentElement)===null||n===void 0||n.appendChild(r),r.focus({preventScroll:!0})}makeFakeInput(){let n=this.renderer.createElement("input"),r=this.element.getBoundingClientRect();return this.patchFakeInputFromFocusableElement(n),n.style.height=Vo(r.height),n.style.width=Vo(r.width/2),n.style.position="fixed",n.style.zIndex="-99999999",n.style.caretColor="transparent",n.style.border="none",n.style.outline="none",n.style.color="transparent",n.style.background="transparent",n.style.cursor="none",n.style.fontSize=Vo(16),n.style.top=Vo(r.top),n.style.left=Vo(r.left),n}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){[this.win.document.documentElement,this.win.document.body].forEach(n=>{n.style.setProperty("overflow","auto"),n.style.setProperty("height","100%")})}patchFakeInputFromFocusableElement(n){ZR.forEach(r=>{let i=this.element.getAttribute(r);Oi(i)&&n.setAttribute(r,i)})}}return e.\u0275fac=function(n){return new(n||e)(y(la,10),y(Q),y(Ir),y(fe),y(pe))},e.\u0275dir=z({type:e,features:[He]}),e})(),QR={delay:NaN},XR=Te(QR);var _w=new E("[TUI_AUTOFOCUS_HANDLER]"),JR=[{provide:_w,useFactory:(e,t,n,r,i,o,s)=>s?new KR(e,t,r,i,o):new YR(e,t,n),deps:[[new nn,new Ey,la],Q,Rn,Ir,fe,pe,ua]},Ze],Dw=(()=>{class e{constructor(n,r,i){this.handler=n,this.options=r,this.destroy$=i,this.autoFocus=!0}ngAfterViewInit(){gw(this.autoFocus)&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then(()=>this.handler.setFocus()):vt(this.options.delay).pipe(Ae(this.destroy$)).subscribe(()=>this.handler.setFocus())}}return e.\u0275fac=function(n){return new(n||e)(y(_w),y(XR),y(Ze,2))},e.\u0275dir=z({type:e,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:[Ye.None,"tuiAutoFocus","autoFocus"]},features:[ze(JR)]}),e})(),Ew=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var am=class{constructor(t){this.internalDirectiveInstance=t}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}},ww=(()=>{class e{constructor(n,r){n.createEmbeddedView(r,new am(this))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(y(Ft),y(_t))},e.\u0275dir=z({type:e,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"}}),e})(),bw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var K8=(()=>{class e{constructor({nativeElement:n},r,i){this.mode="scroll",J(n,"wheel",{passive:!1}).pipe(Ie(()=>this.enabled),nr(r),Ae(i)).subscribe(o=>{this.processEvent(o,!!o.deltaY,o.deltaY?o.deltaY<0:o.deltaX<0)}),J(n,"touchstart",{passive:!0}).pipe(ce(({touches:o})=>{let{clientX:s,clientY:a}=o[0],c=0,l=0,u;return J(n,"touchmove",{passive:!1}).pipe(Ie(()=>this.enabled),Be(d=>{let f=d.changedTouches[0];c=s-f.clientX,l=a-f.clientY,s=f.clientX,a=f.clientY,u===void 0&&(u=Math.abs(l)>Math.abs(c)),this.processEvent(d,u,u?l<0:c<0)}))}),nr(r),Ae(i)).subscribe()}get enabled(){return this.mode!=="none"}get overscrollBehavior(){return this.enabled?"contain":null}processEvent(n,r,i){var o;let{target:s,currentTarget:a,cancelable:c}=n;if(!(!c||!Wl(s)||((o=s)===null||o===void 0?void 0:o.type)==="range")){if(this.mode==="all"&&(r&&!a.contains(Yl(s))||!r&&!a.contains(Yl(s,!1)))){n.preventDefault();return}if(r&&(i&&!Js(s,a,!0,!1)||!i&&!Js(s,a,!0,!0))){n.preventDefault();return}!r&&(i&&!Js(s,a,!1,!1)||!i&&!Js(s,a,!1,!0))&&n.preventDefault()}}}return e.\u0275fac=function(n){return new(n||e)(y(Q),y(fe),y(Ze,2))},e.\u0275dir=z({type:e,selectors:[["","tuiOverscroll",""]],hostVars:2,hostBindings:function(n,r){n&2&&Ii("overscroll-behavior",r.overscrollBehavior)},inputs:{mode:[Ye.None,"tuiOverscroll","mode"]},features:[ze([Ze])]}),e})(),Q8=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var eF=["*"],tF=(()=>{class e extends gu{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),e5=(()=>{class e extends sm{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275cmp=lt({type:e,selectors:[["tui-dropdown-host"]],features:[ze([{provide:gu,useExisting:tF},{provide:sm,useExisting:e}]),He],ngContentSelectors:eF,decls:3,vars:0,consts:[["viewContainer",""]],template:function(n,r){n&1&&(Xn(),Zt(0),Ci(1,null,0))},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})(),t5=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var cm=function(e){return e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e}(cm||{}),nF=function(e){return e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December",e}(nF||{});var pa=`?v=${aE}`;var Iw=e=>e.includes(".svg#")?e:`#${e}`,o5=()=>gp,lm={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:sE,zeroPadding:!0,rounding:"truncate",decimal:"not-zero"},Cw=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"];var s5="tui-scroll-into-view";var Mw="tui-icon-error",a5=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"];var h=function(e){return e.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.CA="CA",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.NC="NC",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.US="US",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}(h||{});var rF={cardNumber:["Number","Card number"],cardExpiry:["Expires","Valid through"]},iF={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"}},oF={previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}},sF={showHideText:"Show/Hide",paginationTexts:{pages:"Pages",linesPerPage:"Lines per page",of:"of"}},aF={[h.AD]:"Andorra",[h.AE]:"United Arab Emirates",[h.AF]:"Afghanistan",[h.AG]:"Antigua and Barbuda",[h.BL]:"Saint Barth\xE9lemy",[h.AI]:"Anguilla",[h.AL]:"Albania",[h.AM]:"Armenia",[h.AO]:"Angola",[h.AR]:"Argentina",[h.AT]:"Austria",[h.AU]:"Australia",[h.AW]:"Aruba",[h.AZ]:"Azerbaijan",[h.BA]:"Bosnia and Herzegovina",[h.BB]:"Barbados",[h.BD]:"Bangladesh",[h.BE]:"Belgium",[h.BF]:"Burkina Faso",[h.BG]:"Bulgaria",[h.BH]:"Bahrain",[h.BI]:"Burundi",[h.BJ]:"Benin",[h.GF]:"Guyana",[h.BM]:"Bermuda",[h.BN]:"Brunei Darussalam",[h.BO]:"Bolivia",[h.BQ]:"Bonaire, Sint Eustatius and Saba",[h.BR]:"Brazil",[h.BS]:"Bahamas",[h.BT]:"Bhutan",[h.BW]:"Botswana",[h.BY]:"Belarus",[h.BZ]:"Belize",[h.CA]:"Canada",[h.CD]:"Dem. Rep. Congo (Kinshasa)",[h.CF]:"Central African Republic",[h.CG]:"Congo (Brazzaville)",[h.CH]:"Switzerland",[h.CI]:"Ivory Coast",[h.CL]:"Chile",[h.CM]:"Cameroon",[h.CN]:"China",[h.CO]:"Colombia",[h.CR]:"Costa Rica",[h.CU]:"Cuba",[h.CV]:"Cape Verde",[h.CW]:"Cura\xE7ao",[h.CY]:"Cyprus",[h.CZ]:"Czech Republic",[h.DE]:"Germany",[h.DJ]:"Djibouti",[h.DK]:"Denmark",[h.DM]:"Dominica",[h.DO]:"Dominican Republic",[h.DZ]:"Algeria",[h.EC]:"Ecuador",[h.EE]:"Estonia",[h.EG]:"Egypt",[h.ER]:"Eritrea",[h.ES]:"Spain",[h.ET]:"Ethiopia",[h.FI]:"Finland",[h.FJ]:"Fiji",[h.FK]:"Falkland Islands",[h.FM]:"F.S. of Micronesia",[h.FR]:"France",[h.GA]:"Gabon",[h.GB]:"United Kingdom",[h.GD]:"Grenada",[h.GE]:"Georgia",[h.GP]:"Guadeloupe",[h.GH]:"Ghana",[h.GI]:"Gibraltar",[h.GL]:"Greenland",[h.GM]:"Gambia",[h.GN]:"Guinea",[h.MF]:"Saint-Martin",[h.GQ]:"Equatorial Guinea",[h.GR]:"Greece",[h.GT]:"Guatemala",[h.GW]:"Guinea-Bissau",[h.GY]:"Guyana",[h.HK]:"Hong Kong",[h.HN]:"Honduras",[h.HR]:"Croatia",[h.HT]:"Haiti",[h.HU]:"Hungary",[h.ID]:"Indonesia",[h.IE]:"Ireland",[h.IL]:"Israel",[h.IN]:"India",[h.IQ]:"Iraq",[h.IR]:"Iran",[h.IS]:"Iceland",[h.IT]:"Italy",[h.JM]:"Jamaica",[h.JO]:"Jordan",[h.JP]:"Japan",[h.KE]:"Kenya",[h.KG]:"Kyrgyzstan",[h.KH]:"Cambodia",[h.KM]:"Comoros",[h.KN]:"Saint Kitts and Nevis",[h.KP]:"Korean PDR",[h.KR]:"Rep. Korea",[h.KW]:"Kuwait",[h.KY]:"Cayman Islands",[h.KZ]:"Kazakhstan",[h.LA]:"Laos",[h.LB]:"Lebanon",[h.LC]:"Saint Lucia",[h.LI]:"Liechtenstein",[h.LK]:"Sri Lanka",[h.LR]:"Liberia",[h.LS]:"Lesotho",[h.LT]:"Lithuania",[h.LU]:"Luxembourg",[h.LV]:"Latvia",[h.LY]:"Libya",[h.MA]:"Morocco",[h.MC]:"Monaco",[h.MD]:"Moldova",[h.ME]:"Montenegro",[h.MQ]:"Martinique",[h.MG]:"Madagascar",[h.MK]:"Rep. of North Macedonia",[h.ML]:"Mali",[h.MM]:"Burma (Myanmar)",[h.MN]:"Mongolia",[h.MO]:"Macau",[h.RE]:"R\xE9union",[h.MR]:"Mauritania",[h.MS]:"Montserrat",[h.MT]:"Malta",[h.MU]:"Mauritius",[h.MV]:"Maldives",[h.MW]:"Malawi",[h.MX]:"Mexico",[h.MY]:"Malaysia",[h.MZ]:"Mozambique",[h.NA]:"Namibia",[h.NC]:"New Caledonia",[h.NE]:"Niger",[h.NG]:"Nigeria",[h.NI]:"Nicaragua",[h.NL]:"Netherlands",[h.NO]:"Norway",[h.NP]:"Nepal",[h.NZ]:"New Zealand",[h.OM]:"Oman",[h.PA]:"Panama",[h.PE]:"Peru",[h.PF]:"French Polynesia (Tahiti)",[h.PG]:"Papua New Guinea",[h.PH]:"Philippines",[h.PK]:"Pakistan",[h.PL]:"Poland",[h.PT]:"Portugal",[h.PW]:"Palau",[h.PY]:"Paraguay",[h.QA]:"Qatar",[h.YT]:"Mayotte",[h.RO]:"Romania",[h.RS]:"Serbia",[h.RU]:"Russia",[h.RW]:"Rwanda",[h.SA]:"Saudi Arabia",[h.SB]:"Solomon Islands",[h.SC]:"Seychelles",[h.SD]:"Sudan",[h.SE]:"Sweden",[h.SG]:"Singapore",[h.SH]:"Saint Helena",[h.SI]:"Slovenia",[h.SK]:"Slovakia",[h.SL]:"Sierra Leone",[h.SM]:"San Marino",[h.SN]:"Senegal",[h.SO]:"Somalia",[h.SR]:"Suriname",[h.ST]:"Sao Tome and Principe",[h.SV]:"El Salvador",[h.SX]:"Sint Maarten",[h.SY]:"Syrian Arab Republic",[h.SZ]:"Swaziland",[h.TC]:"Turks and Caicos",[h.TD]:"Chad",[h.TG]:"Togo",[h.TH]:"Thailand",[h.TJ]:"Tajikistan",[h.TL]:"East Timor",[h.TM]:"Turkmenistan",[h.TN]:"Tunisia",[h.TO]:"Tonga",[h.TR]:"Turkey",[h.TT]:"Trinidad and Tobago",[h.TW]:"Taiwan",[h.TZ]:"Tanzania",[h.UA]:"Ukraine",[h.UG]:"Uganda",[h.US]:"USA",[h.UY]:"Uruguay",[h.UZ]:"Uzbekistan",[h.VC]:"Saint Vincent and the Grenadines",[h.VE]:"Venezuela",[h.VG]:"British Virgin Islands",[h.VN]:"Vietnam",[h.VU]:"Vanuatu",[h.WS]:"Samoa",[h.XK]:"Kosovo",[h.YE]:"Yemen",[h.ZA]:"South Africa",[h.ZM]:"Zambia",[h.ZW]:"Zimbabwe"},cF={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:aF},lF={cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range","Choose days"],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","KiB","MiB"],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 larger than ",formatRejectionReason:"Wrong file type",drop:"Drop file here",dropMultiple:"Drop files here"},multiSelectTexts:{all:"Select all",none:"Select none"},prompt:{yes:"Yes",no:"No"}},Sw=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},cF),lF),sF),rF),iF),oF);var uF=new E("[TUI_DEFAULT_LANGUAGE]",{factory:()=>Sw}),Tw=new E("[TUI_LANGUAGE]",{factory:()=>S(g(uF))}),m5=new E("[TUI_LANGUAGE_LOADER]"),g5=new E("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});function Fi(e){return()=>g(Tw).pipe(ce(t=>oi(t)?t:S(t)),b(t=>t[e]))}function dF(e){return!e||typeof getComputedStyle>"u"?!1:getComputedStyle(e).getPropertyValue("position")==="fixed"||dF(e.parentElement)}function _u({document:e,innerWidth:t}){return Math.max(e.documentElement.clientWidth||0,t||0)}var um='width="',dm='height="',fm="")));if(!(r!=null&&r.includes(um))||!r.includes(dm))return`${n.replace(fm,``;let i=r.indexOf(um),o=r.indexOf(dm),s=i+um.length,a=o+dm.length,c=r.slice(s,r.indexOf('"',s)),l=r.slice(a,r.indexOf('"',a));if(!l||!c||c.includes("%")||l.includes("%")||c.includes("em")||l.includes("em"))return n.replace(fm,`${n}`}var hm=1.5,fF=2.5;function M5(e,t=!1,n=!1,r=!1,i="m"){let o=i==="s"?0:.25,s=0;return e&&(s+=hm+o),t&&(s+=hm+o),n&&(s+=hm+o),r&&(s+=fF+o),s}function Du(e){let t=e.endsWith("/")?e:`${e}/`;return n=>n.startsWith("tuiIcon")?`${t}${n}.svg${pa}#${n}`:Iw(n)}function S5(e){return e.length===1||Cw.includes(e)}function T5(e,t="tui-hints-host"){var n;return!!(!((n=ql(e))===null||n===void 0)&&n.some(r=>!r.closest(t)))}function Nw(e){let t=e.trim();return t.startsWith("<")&&t.endsWith(">")}function A5(e,t){return(n,r)=>{let i=n||Object.assign({},r||t);return Object.keys(e).forEach(o=>{i[o]=e[o]}),i}}var Ow={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function xw(e,t="s"){return Ow[e]>Ow[t]}function Pw(e,{mobile:t}){return _u(e){var e,t,n;return(n=(t=(e=g(he).defaultView)===null||e===void 0?void 0:e.matchMedia)===null||t===void 0?void 0:t.call(e,"(prefers-reduced-motion: reduce)").matches)!==null&&n!==void 0?n:!1}),mF=300,pm=se(()=>g(pF)?0:mF),Rw=se(()=>({value:"",params:{duration:g(pm)}})),z5=se(()=>t0()),gF={check:"tuiIconCheck",close:"tuiIconClose",error:"tuiIconAlertCircle",more:"tuiIconChevronRight"},Eu=Te(gF);var G5=new E("[TUI_DATA_LIST_ACCESSOR]");var vF=new E("[TUI_DATA_LIST_HOST]");function W5(e){return{provide:vF,useExisting:e}}var q5=Te(e=>e.isWeekend?"weekend":"weekday"),Y5=new E("[TUI_DOCUMENT_OR_SHADOW_ROOT]"),Z5=new E("[TUI_ELEMENT_REF]"),yF=Te(cm.Monday),K5=se(Fi("months")),wu=se(Fi("close")),Q5=se(Fi("nothingFoundMessage")),X5=se(Fi("defaultErrorMessage")),J5=se(Fi("spinTexts")),_F=se(Fi("shortWeekDays")),bu="assets/taiga-ui/icons",mm=Te(bu),Fw=Te({}),Lw=se(()=>Du(g(mm))),gm=Te({mobile:768,desktopSmall:1024,desktopLarge:1280}),vm=se(()=>{let e=g(pe),t=g(gm);return J(e,"resize").pipe(Ht(),Ce(null),b(()=>Pw(e,t)),qe(),rr(g(fe)))}),e6=new E("[TUI_LEGACY_MASK]"),Ho=new E("[TUI_MODE]"),DF={info:"tuiIconInfo",success:"tuiIconCheckCircle",error:"tuiIconXCircle",warning:"tuiIconAlertCircle",neutral:"tuiIconInfo"},EF={autoClose:3e3,label:"",status:"info",hasCloseButton:!0,icon:({$implicit:e})=>DF[e],size:"m",hasIcon:!0,defaultAutoCloseTime:3e3},t6=Te(EF);var n6=Te(lm);var r6=Te(S(Object.assign(Object.assign({},lm),{decimalLimit:NaN}))),i6=new E("[TUI_OPTION_CONTENT]");var wF=e=>{let t=e.length-1;return[e[t],...e.slice(0,t)]},o6=se(()=>{let e=g(yF);return g(_F).pipe(b(wF),b(t=>[...t.slice(e),...t.slice(0,e)]))}),Iu=new E("[TUI_SANITIZER]");var s6=se(()=>{let e=g(he);return Ue(J(e,"selectionchange"),J(e,"mouseup"),J(e,"mousedown").pipe(ce(()=>J(e,"mousemove").pipe(Ae(J(e,"mouseup"))))),J(e,"keydown"),J(e,"keyup")).pipe(Ht())}),a6=Te({decrement:"tuiIconChevronLeft",increment:"tuiIconChevronRight"}),kw=Te(Zl),jw=Te(Je),c6=Te(ma.Textfield),bF=new E("[TUI_TEXTFIELD_HOST]");function l6(e){return{provide:bF,useExisting:e}}var u6=Te("Taiga"),d6=new E("[TUI_VALUE_ACCESSOR]"),f6=se(()=>{let e=g(pe);return{type:"viewport",getClientRect(){return{top:0,left:0,right:e.innerWidth,bottom:e.innerHeight,width:e.innerWidth,height:e.innerHeight}}}});var Cu=class extends R{};function E6(e){return{provide:Cu,multi:!0,useExisting:e}}var Mu=class{};function w6(e){return{provide:Mu,multi:!0,useExisting:e}}var b6=(()=>{class e{constructor(n,r,i){this.destroy$=n,this.drivers=r,this.vehicles=i}ngOnInit(){let n=this.vehicles.find(({type:r})=>r===this.type);Ue(...this.drivers.filter(({type:r})=>r===this.type)).pipe(qe(),Ae(this.destroy$)).subscribe(r=>{n==null||n.toggle(r)})}}return e.\u0275fac=function(n){return new(n||e)(y(Ze,2),y(Cu),y(Mu))},e.\u0275dir=z({type:e}),e})(),I6=(()=>{class e{constructor(n){this.host=n}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 inputMode(){return"text"}get value(){var n;return((n=this.host.value)===null||n===void 0?void 0:n.toString())||""}process(n){}}return e.\u0275fac=function(n){return new(n||e)(y(fa))},e.\u0275dir=z({type:e}),e})();function ym(e){return(t,n)=>(t==null?void 0:t.find(r=>r!==n&&r.type===e))||n}var Wr=class{};function C6(e,t){return{provide:Wr,deps:t?[[new Wn,new nn,Wr],t]:[[new Wn,new nn,Wr]],useFactory:ym(e)}}function M6(e){return{provide:Wr,multi:!0,useExisting:e}}var ga=class{};function S6(e,t){return{provide:ga,deps:[[new Wn,new nn,ga],t],useFactory:ym(e)}}var T6=ym;function A6(e){return{provide:ga,multi:!0,useExisting:e}}var ae="primary",Na=Symbol("RouteTitle"),bm=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Yo(e){return new bm(e)}function IF(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[o]===i)}else return e===t}function Gw(e){return e.length>0?e[e.length-1]:null}function Zr(e){return oi(e)?e:jr(e)?Pe(Promise.resolve(e)):S(e)}var MF={exact:qw,subset:Yw},Ww={exact:SF,subset:TF,ignored:()=>!0};function Vw(e,t,n){return MF[n.paths](e.root,t.root,n.matrixParams)&&Ww[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function SF(e,t){return or(e,t)}function qw(e,t,n){if(!ki(e.segments,t.segments)||!Au(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!qw(e.children[r],t.children[r],n))return!1;return!0}function TF(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>zw(e[n],t[n]))}function Yw(e,t,n){return Zw(e,t,t.segments,n)}function Zw(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!ki(i,n)||t.hasChildren()||!Au(i,n,r))}else if(e.segments.length===n.length){if(!ki(e.segments,n)||!Au(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Yw(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!ki(e.segments,i)||!Au(e.segments,i,r)||!e.children[ae]?!1:Zw(e.children[ae],t,o,r)}}function Au(e,t,n){return t.every((r,i)=>Ww[n](e[i].parameters,r.parameters))}var qr=class{constructor(t=new Ne([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=Yo(this.queryParams)),this._queryParamMap}toString(){return NF.serialize(this)}},Ne=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ou(this)}},Li=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??(this._parameterMap=Yo(this.parameters)),this._parameterMap}toString(){return Qw(this)}};function AF(e,t){return ki(e,t)&&e.every((n,r)=>or(n.parameters,t[r].parameters))}function ki(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function OF(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===ae&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==ae&&(n=n.concat(t(i,r)))}),n}var Km=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>new xu,providedIn:"root"});let e=t;return e})(),xu=class{parse(t){let n=new Mm(t);return new qr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${va(t.root,!0)}`,r=RF(t.queryParams),i=typeof t.fragment=="string"?`#${xF(t.fragment)}`:"";return`${n}${r}${i}`}},NF=new xu;function Ou(e){return e.segments.map(t=>Qw(t)).join("/")}function va(e,t){if(!e.hasChildren())return Ou(e);if(t){let n=e.children[ae]?va(e.children[ae],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==ae&&r.push(`${i}:${va(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=OF(e,(r,i)=>i===ae?[va(e.children[ae],!1)]:[`${i}:${va(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[ae]!=null?`${Ou(e)}/${n[0]}`:`${Ou(e)}/(${n.join("//")})`}}function Kw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Su(e){return Kw(e).replace(/%3B/gi,";")}function xF(e){return encodeURI(e)}function Cm(e){return Kw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nu(e){return decodeURIComponent(e)}function Uw(e){return Nu(e.replace(/\+/g,"%20"))}function Qw(e){return`${Cm(e.path)}${PF(e.parameters)}`}function PF(e){return Object.entries(e).map(([t,n])=>`;${Cm(t)}=${Cm(n)}`).join("")}function RF(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${Su(n)}=${Su(i)}`).join("&"):`${Su(n)}=${Su(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var FF=/^[^\/()?;#]+/;function _m(e){let t=e.match(FF);return t?t[0]:""}var LF=/^[^\/()?;=#]+/;function kF(e){let t=e.match(LF);return t?t[0]:""}var jF=/^[^=?&#]+/;function VF(e){let t=e.match(jF);return t?t[0]:""}var UF=/^[^&#]+/;function BF(e){let t=e.match(UF);return t?t[0]:""}var Mm=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ne([],{}):new Ne([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[ae]=new Ne(t,n)),r}parseSegment(){let t=_m(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new Li(Nu(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=kF(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=_m(this.remaining);i&&(r=i,this.capture(r))}t[Nu(n)]=Nu(r)}parseQueryParam(t){let n=VF(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=BF(this.remaining);s&&(r=s,this.capture(r))}let i=Uw(n),o=Uw(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=_m(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new I(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=ae);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[ae]:new Ne([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new I(4011,!1)}};function Xw(e){return e.segments.length>0?new Ne([],{[ae]:e}):e}function Jw(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=Jw(i);if(r===ae&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new Ne(e.segments,t);return $F(n)}function $F(e){if(e.numberOfChildren===1&&e.children[ae]){let t=e.children[ae];return new Ne(e.segments.concat(t.segments),t.children)}return e}function Zo(e){return e instanceof qr}function HF(e,t,n=null,r=null){let i=eb(e);return tb(i,t,n,r)}function eb(e){let t;function n(o){let s={};for(let c of o.children){let l=n(c);s[c.outlet]=l}let a=new Ne(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=Xw(r);return t??i}function tb(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Dm(i,i,i,n,r);let o=zF(t);if(o.toRoot())return Dm(i,i,new Ne([],{}),n,r);let s=GF(o,i,e),a=s.processChildren?Da(s.segmentGroup,s.index,o.commands):rb(s.segmentGroup,s.index,o.commands);return Dm(i,s.segmentGroup,a,n,r)}function Pu(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ba(e){return typeof e=="object"&&e!=null&&e.outlets}function Dm(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;e===t?s=n:s=nb(e,t,n);let a=Xw(Jw(s));return new qr(a,o,i)}function nb(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=nb(o,t,n)}),new Ne(e.segments,r)}var Ru=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Pu(r[0]))throw new I(4003,!1);let i=r.find(ba);if(i&&i!==Gw(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function zF(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ru(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Ru(n,t,r)}var Wo=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function GF(e,t,n){if(e.isAbsolute)return new Wo(t,!0,0);if(!n)return new Wo(t,!1,NaN);if(n.parent===null)return new Wo(n,!0,0);let r=Pu(e.commands[0])?0:1,i=n.segments.length-1+r;return WF(n,i,e.numberOfDoubleDots)}function WF(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new I(4005,!1);i=r.segments.length}return new Wo(r,!1,i-o)}function qF(e){return ba(e[0])?e[0].outlets:{[ae]:e}}function rb(e,t,n){if(e??(e=new Ne([],{})),e.segments.length===0&&e.hasChildren())return Da(e,t,n);let r=YF(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==ae)&&e.children[ae]&&e.numberOfChildren===1&&e.children[ae].segments.length===0){let o=Da(e.children[ae],t,n);return new Ne(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=rb(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new Ne(e.segments,i)}}function YF(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=e.segments[i],a=n[r];if(ba(a))break;let c=`${a}`,l=r0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!$w(c,l,s))return o;r+=2}else{if(!$w(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Sm(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Sm(new Ne([],{}),0,r))}),t}function Bw(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function $w(e,t,n){return e==n.path&&or(t,n.parameters)}var Ea="imperative",It=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(It||{}),Dn=class{constructor(t,n){this.id=t,this.url=n}},Ia=class extends Dn{constructor(t,n,r="imperative",i=null){super(t,n),this.type=It.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ji=class extends Dn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=It.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ln=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(ln||{}),Tm=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Tm||{}),Yr=class extends Dn{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=It.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Vi=class extends Dn{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=It.NavigationSkipped}},Ca=class extends Dn{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=It.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fu=class extends Dn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=It.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Am=class extends Dn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=It.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Om=class extends Dn{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=It.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Nm=class extends Dn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=It.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xm=class extends Dn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=It.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pm=class{constructor(t){this.route=t,this.type=It.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rm=class{constructor(t){this.route=t,this.type=It.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Fm=class{constructor(t){this.snapshot=t,this.type=It.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lm=class{constructor(t){this.snapshot=t,this.type=It.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},km=class{constructor(t){this.snapshot=t,this.type=It.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jm=class{constructor(t){this.snapshot=t,this.type=It.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ma=class{},Sa=class{constructor(t){this.url=t}};var Vm=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Bu,this.attachRef=null}},Bu=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(r,i){let o=this.getOrCreateContext(r);o.outlet=i,this.contexts.set(r,o)}onChildOutletDestroyed(r){let i=this.getContext(r);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let i=this.getContext(r);return i||(i=new Vm,this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Lu=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Um(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Um(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Bm(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return Bm(t,this._root).map(n=>n.value)}};function Um(e,t){if(e===t.value)return t;for(let n of t.children){let r=Um(e,n);if(r)return r}return null}function Bm(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Bm(e,n);if(r.length)return r.unshift(t),r}return[]}var cn=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Go(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var ku=class extends Lu{constructor(t,n){super(t),this.snapshot=n,Xm(this,t)}toString(){return this.snapshot.toString()}};function ib(e){let t=KF(e),n=new We([new Li("",{})]),r=new We({}),i=new We({}),o=new We({}),s=new We(""),a=new Ko(n,r,o,s,i,ae,e,t.root);return a.snapshot=t.root,new ku(new cn(a,[]),t)}function KF(e){let t={},n={},r={},i="",o=new Ta([],t,r,i,n,ae,e,null,{});return new ju("",new cn(o,[]))}var Ko=class{constructor(t,n,r,i,o,s,a,c){var l;this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=((l=this.dataSubject)==null?void 0:l.pipe(b(u=>u[Na])))??S(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??(this._paramMap=this.params.pipe(b(t=>Yo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=this.queryParams.pipe(b(t=>Yo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Qm(e,t,n="emptyOnly"){var o;let r,{routeConfig:i}=e;return t!==null&&(n==="always"||(i==null?void 0:i.path)===""||!t.component&&!((o=t.routeConfig)!=null&&o.loadComponent))?r={params:T(T({},t.params),e.params),data:T(T({},t.data),e.data),resolve:T(T(T(T({},e.data),t.data),i==null?void 0:i.data),e._resolvedData)}:r={params:T({},e.params),data:T({},e.data),resolve:T(T({},e.data),e._resolvedData??{})},i&&sb(i)&&(r.resolve[Na]=i.title),r}var Ta=class{get title(){var t;return(t=this.data)==null?void 0:t[Na]}constructor(t,n,r,i,o,s,a,c,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??(this._paramMap=Yo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=Yo(this.queryParams)),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},ju=class extends Lu{constructor(t,n){super(n),this.url=t,Xm(this,n)}toString(){return ob(this._root)}};function Xm(e,t){t.value._routerState=e,t.children.forEach(n=>Xm(e,n))}function ob(e){let t=e.children.length>0?` { ${e.children.map(ob).join(", ")} } `:"";return`${e.value}${t}`}function Em(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,or(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),or(t.params,n.params)||e.paramsSubject.next(n.params),CF(t.url,n.url)||e.urlSubject.next(n.url),or(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function $m(e,t){let n=or(e.params,t.params)&&AF(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||$m(e.parent,t.parent))}function sb(e){return typeof e.title=="string"||e.title===null}var QF=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=ae,this.activateEvents=new st,this.deactivateEvents=new st,this.attachEvents=new st,this.detachEvents=new st,this.parentContexts=g(Bu),this.location=g(Ft),this.changeDetector=g(dt),this.environmentInjector=g(fn),this.inputBinder=g(Jm,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:i,previousValue:o}=r.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){var r;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(r=this.inputBinder)==null||r.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){var i;return((i=this.parentContexts.getContext(r))==null?void 0:i.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r!=null&&r.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,i){var o;this.activated=r,this._activatedRoute=i,this.location.insert(r.hostView),(o=this.inputBinder)==null||o.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,i){var u;if(this.isActivated)throw new I(4013,!1);this._activatedRoute=r;let o=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new Hm(r,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),(u=this.inputBinder)==null||u.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=z({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[mn]});let e=t;return e})(),Hm=class{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r,this.__ngOutletInjector=!0}get(t,n){return t===Ko?this.route:t===Bu?this.childContexts:this.parent.get(t,n)}},Jm=new E("");function XF(e,t,n){let r=Aa(e,t._root,n?n._root:void 0);return new ku(r,t)}function Aa(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=JF(e,t,n);return new cn(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Aa(e,a)),s}}let r=e1(t.value),i=t.children.map(o=>Aa(e,o));return new cn(r,i)}}function JF(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Aa(e,r,i);return Aa(e,r)})}function e1(e){return new Ko(new We(e.url),new We(e.params),new We(e.queryParams),new We(e.fragment),new We(e.data),e.outlet,e.component,e)}var ab="ngNavigationCancelingError";function cb(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Zo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=lb(!1,ln.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function lb(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[ab]=!0,n.cancellationCode=t,n}function t1(e){return ub(e)&&Zo(e.url)}function ub(e){return!!e&&e[ab]}var n1=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=lt({type:t,selectors:[["ng-component"]],standalone:!0,features:[YD],decls:1,vars:0,template:function(i,o){i&1&&je(0,"router-outlet")},dependencies:[QF],encapsulation:2});let e=t;return e})();function r1(e,t){return e.providers&&!e._injector&&(e._injector=Vh(e.providers,t,`Route: ${e.path}`)),e._injector??t}function eg(e){let t=e.children&&e.children.map(eg),n=t?Ve(T({},e),{children:t}):T({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==ae&&(n.component=n1),n}function sr(e){return e.outlet||ae}function i1(e,t){let n=e.filter(r=>sr(r)===t);return n.push(...e.filter(r=>sr(r)!==t)),n}function xa(e){var t;if(!e)return null;if((t=e.routeConfig)!=null&&t._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){let r=n.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var o1=(e,t,n,r)=>b(i=>(new zm(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),zm=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Em(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=Go(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Go(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Go(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=Go(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new jm(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Lm(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(Em(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Em(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=xa(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}},Vu=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},qo=class{constructor(t,n){this.component=t,this.route=n}};function s1(e,t,n){let r=e._root,i=t?t._root:null;return ya(r,i,n,[r.value])}function a1(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Xo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!my(e)?e:t.get(e):r}function ya(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Go(t);return e.children.forEach(s=>{c1(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>wa(a,n.getContext(s),i)),i}function c1(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=l1(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Vu(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ya(e,t,a?a.children:null,r,i):ya(e,t,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new qo(a.outlet.component,s))}else s&&wa(t,a,i),i.canActivateChecks.push(new Vu(r)),o.component?ya(e,null,a?a.children:null,r,i):ya(e,null,n,r,i);return i}function l1(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!ki(e.url,t.url);case"pathParamsOrQueryParamsChange":return!ki(e.url,t.url)||!or(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$m(e,t)||!or(e.queryParams,t.queryParams);case"paramsChange":default:return!$m(e,t)}}function wa(e,t,n){let r=Go(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?wa(s,t.children.getContext(o),n):wa(s,null,n):wa(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new qo(t.outlet.component,i)):n.canDeactivateChecks.push(new qo(null,i)):n.canDeactivateChecks.push(new qo(null,i))}function Pa(e){return typeof e=="function"}function u1(e){return typeof e=="boolean"}function d1(e){return e&&Pa(e.canLoad)}function f1(e){return e&&Pa(e.canActivate)}function h1(e){return e&&Pa(e.canActivateChild)}function p1(e){return e&&Pa(e.canDeactivate)}function m1(e){return e&&Pa(e.canMatch)}function db(e){return e instanceof hr||(e==null?void 0:e.name)==="EmptyError"}var Tu=Symbol("INITIAL_VALUE");function Qo(){return ce(e=>gc(e.map(t=>t.pipe(Qe(1),Ce(Tu)))).pipe(b(t=>{for(let n of t)if(n!==!0){if(n===Tu)return Tu;if(n===!1||n instanceof qr)return n}return!0}),Ie(t=>t!==Tu),Qe(1)))}function g1(e,t){return Ke(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?S(Ve(T({},n),{guardsResult:!0})):v1(s,r,i,e).pipe(Ke(a=>a&&u1(a)?y1(r,o,e,t):S(a)),b(a=>Ve(T({},n),{guardsResult:a})))})}function v1(e,t,n,r){return Pe(e).pipe(Ke(i=>b1(i.component,i.route,n,t,r)),bn(i=>i!==!0,!0))}function y1(e,t,n,r){return Pe(t).pipe(si(i=>$t(D1(i.route.parent,r),_1(i.route,r),w1(e,i.path,n),E1(e,i.route,n))),bn(i=>i!==!0,!0))}function _1(e,t){return e!==null&&t&&t(new km(e)),S(!0)}function D1(e,t){return e!==null&&t&&t(new Fm(e)),S(!0)}function E1(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return S(!0);let i=r.map(o=>Bn(()=>{let s=xa(t)??n,a=Xo(o,s),c=f1(a)?a.canActivate(t,e):Fr(s,()=>a(t,e));return Zr(c).pipe(bn())}));return S(i).pipe(Qo())}function w1(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>a1(s)).filter(s=>s!==null).map(s=>Bn(()=>{let a=s.guards.map(c=>{let l=xa(s.node)??n,u=Xo(c,l),d=h1(u)?u.canActivateChild(r,e):Fr(l,()=>u(r,e));return Zr(d).pipe(bn())});return S(a).pipe(Qo())}));return S(o).pipe(Qo())}function b1(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return S(!0);let s=o.map(a=>{let c=xa(t)??i,l=Xo(a,c),u=p1(l)?l.canDeactivate(e,t,n,r):Fr(c,()=>l(e,t,n,r));return Zr(u).pipe(bn())});return S(s).pipe(Qo())}function I1(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return S(!0);let o=i.map(s=>{let a=Xo(s,e),c=d1(a)?a.canLoad(t,n):Fr(e,()=>a(t,n));return Zr(c)});return S(o).pipe(Qo(),fb(r))}function fb(e){return ni(Be(t=>{if(Zo(t))throw cb(e,t)}),b(t=>t===!0))}function C1(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return S(!0);let o=i.map(s=>{let a=Xo(s,e),c=m1(a)?a.canMatch(t,n):Fr(e,()=>a(t,n));return Zr(c)});return S(o).pipe(Qo(),fb(r))}var Oa=class{constructor(t){this.segmentGroup=t||null}},Uu=class extends Error{constructor(t){super(),this.urlTree=t}};function zo(e){return oo(new Oa(e))}function M1(e){return oo(new I(4e3,!1))}function S1(e){return oo(lb(!1,ln.GuardRejected))}var Gm=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return S(r);if(i.numberOfChildren>1||!i.children[ae])return M1(t.redirectTo);i=i.children[ae]}}applyRedirectCommands(t,n,r){let i=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n.startsWith("/"))throw new Uu(i);return i}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new qr(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,i)}),new Ne(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new I(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},Wm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function T1(e,t,n,r,i){let o=tg(e,t,n);return o.matched?(r=r1(t,r),C1(r,t,n,i).pipe(b(s=>s===!0?o:T({},Wm)))):S(o)}function tg(e,t,n){if(t.path==="**")return A1(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?T({},Wm):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||IF)(n,e,t);if(!i)return T({},Wm);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?T(T({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function A1(e){return{matched:!0,parameters:e.length>0?Gw(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Hw(e,t,n,r){return n.length>0&&x1(e,n,r)?{segmentGroup:new Ne(t,N1(r,new Ne(n,e.children))),slicedSegments:[]}:n.length===0&&P1(e,n,r)?{segmentGroup:new Ne(e.segments,O1(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new Ne(e.segments,e.children),slicedSegments:n}}function O1(e,t,n,r){let i={};for(let o of n)if($u(e,t,o)&&!r[sr(o)]){let s=new Ne([],{});i[sr(o)]=s}return T(T({},r),i)}function N1(e,t){let n={};n[ae]=t;for(let r of e)if(r.path===""&&sr(r)!==ae){let i=new Ne([],{});n[sr(r)]=i}return n}function x1(e,t,n){return n.some(r=>$u(e,t,r)&&sr(r)!==ae)}function P1(e,t,n){return n.some(r=>$u(e,t,r))}function $u(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function R1(e,t,n,r){return sr(e)!==r&&(r===ae||!$u(t,n,e))?!1:tg(t,e,n).matched}function F1(e,t,n){return t.length===0&&!e.children[n]}var qm=class{};function L1(e,t,n,r,i,o,s="emptyOnly"){return new Ym(e,t,n,r,i,s,o).recognize()}var k1=31,Ym=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Gm(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new I(4002,`'${t.segmentGroup}'`)}recognize(){let t=Hw(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(b(n=>{let r=new Ta([],Object.freeze({}),Object.freeze(T({},this.urlTree.queryParams)),this.urlTree.fragment,{},ae,this.rootComponentType,null,{}),i=new cn(r,n),o=new ju("",i),s=HF(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,ae).pipe(wn(r=>{if(r instanceof Uu)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Oa?this.noMatchError(r):r}))}inheritParamsAndData(t,n){let r=t.value,i=Qm(r,n,this.paramsInheritanceStrategy);r.params=Object.freeze(i.params),r.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o,r))}processSegmentGroup(t,n,r,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,i,!0).pipe(b(o=>o instanceof cn?[o]:[]))}processChildren(t,n,r){let i=[];for(let o of Object.keys(r.children))o==="primary"?i.unshift(o):i.push(o);return Pe(i).pipe(si(o=>{let s=r.children[o],a=i1(n,o);return this.processSegmentGroup(t,a,s,o)}),_c((o,s)=>(o.push(...s),o)),Ar(null),Td(),Ke(o=>{if(o===null)return zo(r);let s=hb(o);return j1(s),S(s)}))}processSegment(t,n,r,i,o,s){return Pe(n).pipe(si(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,i,o,s).pipe(wn(c=>{if(c instanceof Oa)return S(null);throw c}))),bn(a=>!!a),wn(a=>{if(db(a))return F1(r,i,o)?S(new qm):zo(r);throw a}))}processSegmentAgainstRoute(t,n,r,i,o,s,a){return R1(r,i,o,s)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s):zo(i):zo(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){let{matched:a,consumedSegments:c,positionalParamSegments:l,remainingSegments:u}=tg(n,i,o);if(!a)return zo(n);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>k1&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,i.redirectTo,l);return this.applyRedirects.lineralizeSegments(i,d).pipe(Ke(f=>this.processSegment(t,r,n,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){let s=T1(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),s.pipe(ce(a=>a.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(ce(({routes:c})=>{let l=r._loadedInjector??t,{consumedSegments:u,remainingSegments:d,parameters:f}=a,m=new Ta(u,f,Object.freeze(T({},this.urlTree.queryParams)),this.urlTree.fragment,U1(r),sr(r),r.component??r._loadedComponent??null,r,B1(r)),{segmentGroup:v,slicedSegments:_}=Hw(n,u,d,c);if(_.length===0&&v.hasChildren())return this.processChildren(l,c,v).pipe(b(x=>x===null?null:new cn(m,x)));if(c.length===0&&_.length===0)return S(new cn(m,[]));let N=sr(r)===o;return this.processSegment(l,c,v,_,N?ae:o,!0).pipe(b(x=>new cn(m,x instanceof cn?[x]:[])))}))):zo(n)))}getChildConfig(t,n,r){return n.children?S({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?S({routes:n._loadedRoutes,injector:n._loadedInjector}):I1(t,n,r,this.urlSerializer).pipe(Ke(i=>i?this.configLoader.loadChildren(t,n).pipe(Be(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):S1(n))):S({routes:[],injector:t})}};function j1(e){e.sort((t,n)=>t.value.outlet===ae?-1:n.value.outlet===ae?1:t.value.outlet.localeCompare(n.value.outlet))}function V1(e){let t=e.value.routeConfig;return t&&t.path===""}function hb(e){let t=[],n=new Set;for(let r of e){if(!V1(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=hb(r.children);t.push(new cn(r.value,i))}return t.filter(r=>!n.has(r))}function U1(e){return e.data||{}}function B1(e){return e.resolve||{}}function $1(e,t,n,r,i,o){return Ke(s=>L1(e,t,n,r,s.extractedUrl,i,o).pipe(b(({state:a,tree:c})=>Ve(T({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function H1(e,t){return Ke(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return S(n);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of pb(c))s.add(l);let a=0;return Pe(s).pipe(si(c=>o.has(c)?z1(c,r,e,t):(c.data=Qm(c,c.parent,e).resolve,S(void 0))),Be(()=>a++),co(1),Ke(c=>a===s.size?S(n):xe))})}function pb(e){let t=e.children.map(n=>pb(n)).flat();return[e,...t]}function z1(e,t,n,r){let i=e.routeConfig,o=e._resolve;return(i==null?void 0:i.title)!==void 0&&!sb(i)&&(o[Na]=i.title),G1(o,e,t,r).pipe(b(s=>(e._resolvedData=s,e.data=Qm(e,e.parent,n).resolve,null)))}function G1(e,t,n,r){let i=Im(e);if(i.length===0)return S({});let o={};return Pe(i).pipe(Ke(s=>W1(e[s],t,n,r).pipe(bn(),Be(a=>{o[s]=a}))),co(1),fs(o),wn(s=>db(s)?xe:oo(s)))}function W1(e,t,n,r){let i=xa(t)??r,o=Xo(e,i),s=o.resolve?o.resolve(t,n):Fr(i,()=>o(t,n));return Zr(s)}function wm(e){return ce(t=>{let n=e(t);return n?Pe(n).pipe(b(()=>t)):S(t)})}var mb=(()=>{let t=class t{buildTitle(r){let i,o=r.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===ae);return i}getResolvedTitleForRoute(r){return r.data[Na]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(q1),providedIn:"root"});let e=t;return e})(),q1=(()=>{let t=class t extends mb{constructor(r){super(),this.title=r}updateTitle(r){let i=this.buildTitle(r);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(M(x0))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ng=new E("",{providedIn:"root",factory:()=>({})}),rg=new E(""),Y1=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Gh)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return S(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=Zr(r.loadComponent()).pipe(b(gb),Be(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Or(()=>{this.componentLoaders.delete(r)})),o=new to(i,()=>new Oe).pipe(eo());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return S({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=Z1(i,this.compiler,r,this.onLoadEndListener).pipe(Or(()=>{this.childrenLoaders.delete(i)})),a=new to(s,()=>new Oe).pipe(eo());return this.childrenLoaders.set(i,a),a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Z1(e,t,n,r){return Zr(e.loadChildren()).pipe(b(gb),Ke(i=>i instanceof Ss||Array.isArray(i)?S(i):Pe(t.compileModuleAsync(i))),b(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(rg,[],{optional:!0,self:!0}).flat()),{routes:s.map(eg),injector:o}}))}function K1(e){return e&&typeof e=="object"&&"default"in e}function gb(e){return K1(e)?e.default:e}var ig=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(Q1),providedIn:"root"});let e=t;return e})(),Q1=(()=>{let t=class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,i){return r}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),X1=new E("");var J1=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Oe,this.transitionAbortSubject=new Oe,this.configLoader=g(Y1),this.environmentInjector=g(fn),this.urlSerializer=g(Km),this.rootContexts=g(Bu),this.location=g(Gs),this.inputBindingEnabled=g(Jm,{optional:!0})!==null,this.titleStrategy=g(mb),this.options=g(ng,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(ig),this.createViewTransition=g(X1,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>S(void 0),this.rootComponentType=null;let r=o=>this.events.next(new Pm(o)),i=o=>this.events.next(new Rm(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=r}complete(){var r;(r=this.transitions)==null||r.complete()}handleNavigationRequest(r){var o;let i=++this.navigationId;(o=this.transitions)==null||o.next(Ve(T(T({},this.transitions.value),r),{id:i}))}setupNavigations(r,i,o){return this.transitions=new We({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ea,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ie(s=>s.id!==0),b(s=>Ve(T({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ce(s=>{let a=!1,c=!1;return S(s).pipe(ce(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",ln.SupersededByNewNavigation),xe;this.currentTransition=s,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?Ve(T({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!u&&d!=="reload"){let f="";return this.events.next(new Vi(l.id,this.urlSerializer.serialize(l.rawUrl),f,Tm.IgnoredSameUrlNavigation)),l.resolve(null),xe}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return S(l).pipe(ce(f=>{var v,_;let m=(v=this.transitions)==null?void 0:v.getValue();return this.events.next(new Ia(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),m!==((_=this.transitions)==null?void 0:_.getValue())?xe:Promise.resolve(f)}),$1(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),Be(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=Ve(T({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let m=new Fu(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(m)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:f,extractedUrl:m,source:v,restoredState:_,extras:N}=l,x=new Ia(f,this.urlSerializer.serialize(m),v,_);this.events.next(x);let ge=ib(this.rootComponentType).snapshot;return this.currentTransition=s=Ve(T({},l),{targetSnapshot:ge,urlAfterRedirects:m,extras:Ve(T({},N),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,S(s)}else{let f="";return this.events.next(new Vi(l.id,this.urlSerializer.serialize(l.extractedUrl),f,Tm.IgnoredByUrlHandlingStrategy)),l.resolve(null),xe}}),Be(l=>{let u=new Am(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),b(l=>(this.currentTransition=s=Ve(T({},l),{guards:s1(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),g1(this.environmentInjector,l=>this.events.next(l)),Be(l=>{if(s.guardsResult=l.guardsResult,Zo(l.guardsResult))throw cb(this.urlSerializer,l.guardsResult);let u=new Om(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),Ie(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",ln.GuardRejected),!1)),wm(l=>{if(l.guards.canActivateChecks.length)return S(l).pipe(Be(u=>{let d=new Nm(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),ce(u=>{let d=!1;return S(u).pipe(H1(this.paramsInheritanceStrategy,this.environmentInjector),Be({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",ln.NoDataFromResolver)}}))}),Be(u=>{let d=new xm(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),wm(l=>{let u=d=>{var m;let f=[];(m=d.routeConfig)!=null&&m.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(Be(v=>{d.component=v}),b(()=>{})));for(let v of d.children)f.push(...u(v));return f};return gc(u(l.targetSnapshot.root)).pipe(Ar(null),Qe(1))}),wm(()=>this.afterPreactivation()),ce(()=>{var f;let{currentSnapshot:l,targetSnapshot:u}=s,d=(f=this.createViewTransition)==null?void 0:f.call(this,this.environmentInjector,l.root,u.root);return d?Pe(d).pipe(b(()=>s)):S(s)}),b(l=>{let u=XF(r.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=Ve(T({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),Be(()=>{this.events.next(new Ma)}),o1(this.rootContexts,r.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Qe(1),Be({next:l=>{var u;a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ji(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),(u=this.titleStrategy)==null||u.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Ae(this.transitionAbortSubject.pipe(Be(l=>{throw l}))),Or(()=>{var l;!a&&!c&&this.cancelNavigationTransition(s,"",ln.SupersededByNewNavigation),((l=this.currentTransition)==null?void 0:l.id)===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),wn(l=>{if(c=!0,ub(l))this.events.next(new Yr(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),t1(l)?this.events.next(new Sa(l.url)):s.resolve(!1);else{this.events.next(new Ca(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(r.errorHandler(l))}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return xe}))}))}cancelNavigationTransition(r,i,o){let s=new Yr(r.id,this.urlSerializer.serialize(r.extractedUrl),i,o);this.events.next(s),r.resolve(!1)}isUpdatingInternalState(){var r,i;return((r=this.currentTransition)==null?void 0:r.extractedUrl.toString())!==((i=this.currentTransition)==null?void 0:i.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,o;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==((i=this.currentTransition)==null?void 0:i.extractedUrl.toString())&&!((o=this.currentTransition)!=null&&o.extras.skipLocationChange)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function eL(e){return e!==Ea}var tL=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(nL),providedIn:"root"});let e=t;return e})(),Zm=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},nL=(()=>{let t=class t extends Zm{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=ke(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),vb=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(rL),providedIn:"root"});let e=t;return e})(),rL=(()=>{let t=class t extends vb{constructor(){super(...arguments),this.location=g(Gs),this.urlSerializer=g(Km),this.options=g(ng,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(ig),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new qr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ib(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var r;return this.canceledNavigationResolution!=="computed"?this.currentPageId:((r=this.restoredState())==null?void 0:r.\u0275routerPageId)??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(i=>{i.type==="popstate"&&r(i.url,i.state)})}handleRouterEvent(r,i){if(r instanceof Ia)this.stateMemento=this.createStateMemento();else if(r instanceof Vi)this.rawUrlTree=i.initialUrl;else if(r instanceof Fu){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else r instanceof Ma?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):r instanceof Yr&&(r.code===ln.GuardRejected||r.code===ln.NoDataFromResolver)?this.restoreHistory(i):r instanceof Ca?this.restoreHistory(i,!0):r instanceof ji&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,i){let o=this.urlSerializer.serialize(r);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=T(T({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=T(T({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(r,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===r.finalUrl&&s===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,i){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:i}:{navigationId:r}}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=ke(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),_a=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(_a||{});function iL(e,t){e.events.pipe(Ie(n=>n instanceof ji||n instanceof Yr||n instanceof Ca||n instanceof Vi),b(n=>n instanceof ji||n instanceof Vi?_a.COMPLETE:(n instanceof Yr?n.code===ln.Redirect||n.code===ln.SupersededByNewNavigation:!1)?_a.REDIRECTING:_a.FAILED),Ie(n=>n!==_a.REDIRECTING),Qe(1)).subscribe(()=>{t()})}function oL(e){throw e}var sL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},aL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},yb=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var r;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=g(Nl),this.stateManager=g(vb),this.options=g(ng,{optional:!0})||{},this.pendingTasks=g(Vs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(J1),this.urlSerializer=g(Km),this.location=g(Gs),this.urlHandlingStrategy=g(ig),this._events=new Oe,this.errorHandler=this.options.errorHandler||oL,this.navigated=!1,this.routeReuseStrategy=g(tL),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=((r=g(rg,{optional:!0}))==null?void 0:r.flat())??[],this.componentInputBindingEnabled=!!g(Jm,{optional:!0}),this.eventsSubscription=new ot,this.isNgZoneEnabled=g(fe)instanceof fe&&fe.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Yr&&i.code!==ln.Redirect&&i.code!==ln.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ji)this.navigated=!0;else if(i instanceof Sa){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),c={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||eL(o.source)};this.scheduleNavigation(a,Ea,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}lL(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ea,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",i)},0)}))}navigateToSyncWithBrowser(r,i,o){let s={replaceUrl:!0},a=o!=null&&o.navigationId?o:null;if(o){let l=T({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(r);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(eg),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=i,u=l?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=T(T({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let m=o?o.snapshot:this.routerState.snapshot.root;f=eb(m)}catch{(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),f=this.currentUrlTree.root}return tb(f,r,d,u??null)}navigateByUrl(r,i={skipLocationChange:!1}){let o=Zo(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Ea,null,i)}navigate(r,i={skipLocationChange:!1}){return cL(r),this.navigateByUrl(this.createUrlTree(r,i),i)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,i){let o;if(i===!0?o=T({},sL):i===!1?o=T({},aL):o=i,Zo(r))return Vw(this.currentUrlTree,r,o);let s=this.parseUrl(r);return Vw(this.currentUrlTree,s,o)}removeEmptyProps(r){return Object.entries(r).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(r,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,l,u;a?(c=a.resolve,l=a.reject,u=a.promise):u=new Promise((f,m)=>{c=f,l=m});let d=this.pendingTasks.add();return iL(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(f=>Promise.reject(f))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function cL(e){for(let t=0;tn.\u0275providers)])}function dL(e){return e.routerState.root}function fL(){let e=g(qt);return t=>{var o,s;let n=e.get(Vr);if(t!==n.components[0])return;let r=e.get(yb),i=e.get(hL);e.get(pL)===1&&r.initialNavigation(),(o=e.get(mL,null,le.Optional))==null||o.setUpPreloading(),(s=e.get(uL,null,le.Optional))==null||s.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var hL=new E("",{factory:()=>new Oe}),pL=new E("",{providedIn:"root",factory:()=>1});var mL=new E("");var gY=(()=>{class e extends R{constructor(n,r,i){super(o=>this.stream$.subscribe(o)),this.media=n,this.ngZone=r,this.size$=i,this.sorted=Object.values(this.media).sort((o,s)=>o-s),this.invert=Object.keys(this.media).reduce((o,s)=>Object.assign(Object.assign({},o),{[this.media[s]]:s}),{}),this.stream$=this.size$.pipe(b(({width:o})=>this.sorted.find(s=>s>o)),b(o=>this.invert[o||this.sorted[this.sorted.length-1]]),qe(),rr(this.ngZone),Jt({bufferSize:1,refCount:!0}))}}return e.\u0275fac=function(n){return new(n||e)(M(gm),M(fe),M(nm))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_b=(()=>{class e{constructor(n){this.locale=n}format(n){return S(new Date(n).toLocaleTimeString(this.locale,{hour:"numeric",minute:"2-digit"}))}}return e.\u0275fac=function(n){return new(n||e)(M(Hs))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),vY=(()=>{class e extends We{constructor(){super([])}add(n){this.next(this.value.concat(n))}remove(n){this.value.includes(n)&&this.next(this.value.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var yY=(()=>{class e extends R{constructor(n,r,i,o){super(s=>r.pipe(b(()=>n.nativeElement.getBoundingClientRect()),b(a=>o.getPosition(a)),nr(i),Or(()=>o.getPosition(iE))).subscribe(s))}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(Rn),M(fe),M(Wr))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var Db=(()=>{class e{constructor(n,r,i){this.tuiSanitizer=n,this.sanitizer=r,this.originals={},this.items$=new We(new Map),this.define(i)}define(n){let{value:r}=this.items$;Object.keys(n).forEach(i=>{this.defineIcon(i,n[i],r)}),this.items$.next(r)}getOriginal(n){return this.originals[n]||null}defineIcon(n,r,i){if(i.has(n))return;let o=this.parseSrc(n,r);o&&(i.set(n,o),this.originals=Object.assign(Object.assign({},this.originals),{[n]:r}))}parseSrc(n,r){return this.sanitize(Aw(r,n))}sanitize(n){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(Dt.HTML,n):this.sanitizer.sanitize(Dt.HTML,n))||"")}}return e.\u0275fac=function(n){return new(n||e)(M(Iu,8),M(Zs),M(Fw))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_Y=(()=>{class e{constructor(n,r){this.win=n,this.isWebkit=r}correct(n){var r,i,o,s;return this.isWebkit?[n[0]+((i=(r=this.win.visualViewport)===null||r===void 0?void 0:r.offsetTop)!==null&&i!==void 0?i:0),n[1]+((s=(o=this.win.visualViewport)===null||o===void 0?void 0:o.offsetLeft)!==null&&s!==void 0?s:0)]:n}}return e.\u0275fac=function(n){return new(n||e)(M(pe),M(dw))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function vL(e,t){if(e&1&&je(0,"div",3),e&2){let n=me().tuiLet;V("innerHTML",n,To)}}function yL(e,t){if(e&1){let n=Qn();ul(),De(0,"svg",4),Xe("error",function(){On(n);let i=me(2);return Nn(i.onError())}),je(1,"use"),ye()}if(e&2){let n=me(2);oe(),ut("href",n.use,null,"xlink")}}function _L(e,t){if(e&1&&(xn(0),Se(1,vL,1,1,"div",2)(2,yL,2,1,"ng-template",null,0,Ol),Pn()),e&2){let n=Sl(3),r=me();oe(),V("ngIf",r.isInnerHTML)("ngIfElse",n)}}var DL={tuiIconAttach:"tuiIconPaperclip",tuiIconAttention:"tuiIconAlertCircle",tuiIconBackCircle:"tuiIconArrowLeftCircle",tuiIconCall:"tuiIconPhone",tuiIconCallIn:"tuiIconPhoneIncoming",tuiIconCallOut:"tuiIconPhoneOutgoing",tuiIconCallTransfer:"tuiIconPhoneForwarded",tuiIconCancel:"tuiIconXCircle",tuiIconCancelCircle:"tuiIconSlash",tuiIconCard:"tuiIconCreditCard",tuiIconCards:"tuiIconCreditCard",tuiIconChartBar:"tuiIconBarChart",tuiIconChart:"tuiIconBarChart",tuiIconCheckList:"tuiIconClipboard",tuiIconCloseCircle:"tuiIconXCircle",tuiIconCollapse:"tuiIconMinimize",tuiIconComment:"tuiIconMessageSquare",tuiIconCommentFw:"tuiIconMessageForward",tuiIconCompany:"tuiIconBriefcase",tuiIconDefaultDoc:"tuiIconFile",tuiIconDesktop:"tuiIconMonitor",tuiIconDesktopOff:"tuiIconMonitorOff",tuiIconDislike:"tuiIconThumbsDown",tuiIconDone:"tuiIconCheckCircle",tuiIconDraft:"tuiIconEdit2",tuiIconEyeOpen:"tuiIconEye",tuiIconEyeClosed:"tuiIconEyeOff",tuiIconExpand:"tuiIconMaximize",tuiIconExternal:"tuiIconExternalLink",tuiIconFrame:"tuiIconLayout",tuiIconGeo:"tuiIconMapPin",tuiIconHeartFilled:"tuiIconHeart",tuiIconHide:"tuiIconEyeOff",tuiIconImg:"tuiIconImage",tuiIconInfoCircle:"tuiIconInfo",tuiIconLike:"tuiIconThumbsUp",tuiIconLockOpen:"tuiIconUnlock",tuiIconMobile:"tuiIconSmartphone",tuiIconMoreHor:"tuiIconMoreHorizontal",tuiIconMoreVer:"tuiIconMoreVertical",tuiIconMoreVert:"tuiIconMoreVertical",tuiIconPicture:"tuiIconImage",tuiIconPin:"tuiIconMapPin",tuiIconPrint:"tuiIconPrinter",tuiIconRefresh:"tuiIconRefreshCw",tuiIconRemove:"tuiIconX",tuiIconShow:"tuiIconEye",tuiIconSound:"tuiIconVolume",tuiIconSoundOff:"tuiIconVolumeX",tuiIconStarFilled:"tuiIconStar",tuiIconStop:"tuiIconSquare",tuiIconStructure:"tuiIconGrid",tuiIconTime:"tuiIconClock",tuiIconTooltip:"tuiIconHelpCircle",tuiIconViewList:"tuiIconList",tuiIconWifiOn:"tuiIconWifi"},EL={iconsPlace:bu,path:Du(bu),srcProcessor:Je,contentProcessor:Zl,deprecated:e=>{let t=e.replace("Large","").replace("Outline",""),n=DL[t];return n?`${t}/(Large|Outline) is deprecated, use ${n}/(Large|Outline) instead`:""}},wL=se(()=>({iconsPlace:g(mm),path:g(Lw),deprecated:EL.deprecated,srcProcessor:g(jw),contentProcessor:g(kw)})),bL=new E("[TUI_SVG_SRC_INTERCEPTORS]");var IL="Attempted to use undefined named icon",CL="External icon is missing on the given URL",ML="Failed to load external SVG",Jo=(()=>{class e{constructor(n,r,i,o,s,a,c,l,u,d){this.doc=n,this.win=r,this.options=i,this.srcInterceptors=o,this.tuiSanitizer=s,this.svgService=a,this.staticRequestService=c,this.sanitizer=l,this.el=u,this.baseHref=d,this.src$=new fr(1),this.icon="",this.innerHTML$=this.src$.pipe(ce(()=>Fn(this.icon)?this.isExternal?this.getExternalIcon(this.icon):S(this.getSafeHtml(this.icon)):S(this.icon)),Ce(""))}set src(n){var r;let i=this.options.deprecated(String(n));this.icon=((r=this.srcInterceptors)!==null&&r!==void 0?r:[]).reduce((o,s)=>s(o,this.options),this.options.srcProcessor(n||"")),this.src$.next()}get src(){return this.icon}get use(){return Fn(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!Fn(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return ko(this.el.nativeElement)!==this.doc}get isUse(){return this.use.replace(pa,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return Fn(this.icon)&&this.icon.replace(pa,"").endsWith(".svg")}get isSrc(){return Fn(this.icon)&&Nw(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){let{use:n,isUse:r,win:i}=this;return r&&n.startsWith("http")&&!!i.origin&&!n.startsWith(i.origin)}onError(n=CL){let{icon:r}=this,i=new CustomEvent(Mw,{bubbles:!0,detail:{message:n,icon:r}});this.el.nativeElement.dispatchEvent(i)}resolveName(n,r){return r(n,this.baseHref)}getSafeHtml(n){return this.isSrc?this.sanitize(n):this.process(n)}process(n){let r=this.svgService.getOriginal(n);return this.isName&&!r&&n&&this.onError(IL),!this.isShadowDOM||!this.isName?"":this.sanitize(r||"")}sanitize(n){return n=this.options.contentProcessor(n),this.tuiSanitizer&&Fn(n)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(Dt.HTML,n)||""):n}getExternalIcon(n){let r=n.includes(".svg")?n:this.use;return this.staticRequestService.request(r).pipe(wn(()=>(this.onError(ML),S(""))),b(i=>this.sanitize(i.replace("{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({imports:[[kt,bw]]}),e})();var q="{{duration}}ms ease-in-out",we={params:{duration:300}},Tt=300,wb=Ge("tuiHeightCollapse",[ue(":enter",[w({height:0}),W(q,w({height:"*"}))],we),ue(":leave",[w({height:"*"}),W(q,w({height:0}))],we)]),BY=Ge("tuiHeightCollapseList",[ue("* => *",[ft(":enter",[w({height:0}),bt(Tt,[W(q,w({height:"*"}))])],{optional:!0}),ft(":leave",[w({height:"*"}),bt(Tt,[W(q,w({height:0}))])],{optional:!0})],we)]),$Y=Ge("tuiWidthCollapse",[ue(":enter",[w({width:0}),W(q,w({width:"*"}))],we),ue(":leave",[w({width:"*"}),W(q,w({width:0}))],we)]),HY=Ge("tuiWidthCollapseList",[ue("* => *",[ft(":enter",[w({width:0}),bt(Tt,[W(q,w({width:"*"}))])],{optional:!0}),ft(":leave",[w({width:"*"}),bt(Tt,[W(q,w({width:0}))])],{optional:!0})],we)]),Hu=Ge("tuiFadeIn",[ue(":enter",[w({opacity:0}),W(q,w({opacity:1}))],we),ue(":leave",[w({opacity:1}),W(q,w({opacity:0}))],we)]),zY=Ge("tuiFadeInList",[ue("* => *",[ft(":enter",[w({opacity:0}),bt(Tt,[W(q,w({opacity:1}))])],{optional:!0}),ft(":leave",[w({opacity:1}),bt(Tt,[W(q,w({opacity:0}))])],{optional:!0})],we)]),GY=Ge("tuiFadeInTop",[ue(":enter",[w({transform:"translateY(-10px)",opacity:0}),W(q,w({transform:"translateY(0)",opacity:1}))],we),ue(":leave",[w({transform:"translateY(0)",opacity:1}),W(q,w({transform:"translateY(-10px)",opacity:0}))],we)]),WY=Ge("tuiFadeInBottom",[ue(":enter",[w({transform:"translateY(10px)",opacity:0}),W(q,w({transform:"translateY(0)",opacity:1}))],we),ue(":leave",[w({transform:"translateY(0)",opacity:1}),W(q,w({transform:"translateY(10px)",opacity:0}))],we)]),qY=Ge("tuiDropdownAnimation",[ue(":enter",[w({transform:"translateY(-10px)",opacity:0}),W(q,w({transform:"translateY(0)",opacity:1}))],we),ue(":leave",[w({transform:"translateY(0)",opacity:1}),W(q,w({transform:"translateY(-10px)",opacity:0}))],we)]),YY=Ge("tuiScaleIn",[ue(":enter",[w({transform:"scale(0)"}),W(q,w({transform:"scale(1)"}))],we),ue(":leave",[w({transform:"scale(1)"}),W(q,w({transform:"scale(0)"}))],we)]),ZY=Ge("tuiPop",[ue(":enter",[w({transform:"scale(0)"}),W(q,w({transform:"scale(1.1)"})),W(q,w({transform:"scale(1)"}))],we),ue(":leave",[w({transform:"scale(1)"}),W(q,w({transform:"scale(1.1)"})),W(q,w({transform:"scale(0)"}))],we)]),KY=Ge("tuiScaleInList",[ue("* => *",[ft(":enter",[w({transform:"scale(0)"}),bt(Tt,[W(q,w({transform:"scale(1)"}))])],{optional:!0}),ft(":leave",[w({transform:"scale(1)"}),bt(Tt,[W(q,w({transform:"scale(0)"}))])],{optional:!0})],we)]),QY=Ge("tuiSlideIn",[ue("* => left",[w({transform:"translateX(-100%)"}),W(q,w({transform:"translateX(0)"}))],we),ue("left => *",[w({transform:"translateX(0)"}),W(q,w({transform:"translateX(-100%)"}))],we),ue("* => right",[w({transform:"translateX(100%)"}),W(q,w({transform:"translateX(0)"}))],we),ue("right => *",[w({transform:"translateX(0)"}),W(q,w({transform:"translateX(100%)"}))],we)]),XY=Ge("tuiSlideInLeft",[ue(":enter",[w({transform:"translateX(-100%)"}),W(q,w({transform:"translateX(0)"}))],we),ue(":leave",[w({transform:"translateX(0)"}),W(q,w({transform:"translateX(-100%)"}))],we)]),JY=Ge("tuiSlideInLeftList",[ue("* => *",[ft(":enter",[w({transform:"translateX(-100%)"}),bt(Tt,[W(q,w({transform:"translateX(0)"}))])],{optional:!0}),ft(":leave",[w({transform:"translateX(0)"}),bt(Tt,[W(q,w({transform:"translateX(-100%)"}))])],{optional:!0})],we)]),bb=Ge("tuiSlideInRight",[ue(":enter",[w({transform:"translateX(100%)"}),W(q,w({transform:"translateX(0)"}))],we),ue(":leave",[w({transform:"translateX(0)"}),W(q,w({transform:"translateX(100%)"}))],we)]),e9=Ge("tuiSlideInRightList",[ue("* => *",[ft(":enter",[w({transform:"translateX(100%)"}),bt(Tt,[W(q,w({transform:"translateX(0)"}))])],{optional:!0}),ft(":leave",[w({transform:"translateX(0)"}),bt(Tt,[W(q,w({transform:"translateX(100%)"}))])],{optional:!0})],we)]),Ib=Ge("tuiSlideInTop",[ue(":enter",[w({transform:"translate3d(0,{{start}},0)"}),W(q,w({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),ue(":leave",[w({transform:"translate3d(0,{{end}},0)"}),W(q,w({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]),t9=Ge("tuiSlideInTopList",[ue("* => *",[ft(":enter",[w({transform:"translateY(100%)"}),bt(Tt,[W(q,w({transform:"translateY(0)"}))])],{optional:!0}),ft(":leave",[w({transform:"translateY(0)"}),bt(Tt,[W(q,w({transform:"translateY(100%)"}))])],{optional:!0})],we)]),n9=Ge("tuiSlideInBottom",[ue(":enter",[w({transform:"translateY(-100%)"}),W(q,w({transform:"translateY(0)"}))],we),ue(":leave",[w({transform:"translateY(0)"}),W(q,w({transform:"translateY(-100%)"}))],we)]),r9=Ge("tuiSlideInBottomList",[ue("* => *",[ft(":enter",[w({transform:"translateY(-100%)"}),bt(Tt,[W(q,w({transform:"translateY(0)"}))])],{optional:!0}),ft(":leave",[w({transform:"translateY(0)"}),bt(Tt,[W(q,w({transform:"translateY(-100%)"}))])],{optional:!0})],we)]);var Kr=(()=>{class e extends mw{constructor(){super(...arguments),this.mode=null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275dir=z({type:e,selectors:[["","tuiMode",""]],inputs:{mode:[Ye.None,"tuiMode","mode"]},features:[He]}),e})();var f9={provide:vm,deps:[[new Wn,vm],Q],useFactory:(e,{nativeElement:t})=>(t["$.class._mobile"]=e,e)},zu={provide:Ho,deps:[[new nn,Kr],Q],useFactory:(e,{nativeElement:t})=>{let n=e?e.change$.pipe(Ce(null),b(()=>e.mode)):S(null);return t["$.data-mode.attr"]=n,n}};function SL(e){return e.replace(/[a-z][A-Z]/g,t=>`${t[0]}-${t[1].toLowerCase()}`)}var Tr=class{supports(t){return t.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(t){return t.split(".").filter(n=>!this.modifier.includes(n)).join(".")}},TL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier="$"}addEventListener(n,r){n[r]=n[r]||xe;let i=this.getMethod(n,r),o=this.manager.getZone().onStable,s=$t(o.pipe(Dc(()=>n[r]===xe)),Bn(()=>n[r])).subscribe(i);return()=>s.unsubscribe()}getMethod(n,r){let[,i,o,s=""]=r.split(".");return r.endsWith(".attr")?a=>a===null?n.removeAttribute(i):n.setAttribute(i,String(a)):i==="class"?a=>n.classList.toggle(o,!!a):i==="style"?a=>n.style.setProperty(SL(o),`${a}${s}`):a=>n[i]=a}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),AL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(n){return n.includes(".")&&!this.unwrap(n).includes(".")}addEventListener(n,r,i){return n.addEventListener(this.unwrap(r),i,{once:r.includes(".once"),passive:r.includes(".passive"),capture:r.includes(".capture")}),()=>n.removeEventListener(this.unwrap(r),i,r.includes(".capture"))}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),OL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(n,r,i){let o=s=>{s.preventDefault(),i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),NL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier=".self"}addEventListener(n,r,i){let o=s=>{s.target===s.currentTarget&&i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),Gu=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(n,r,i){return e.ngZone=this.manager.getZone(),e.ngZone.runOutsideAngular(()=>this.manager.addEventListener(n,this.unwrap(r),i))}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),xL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(n,r,i){let o=s=>{s.stopPropagation(),i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),PL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier=".init"}addEventListener(){return console.warn(".init plugin is no longer necessary as of v3.1.0"),()=>{}}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),RL=[Gu,TL,AL,OL,NL,xL,PL],FL=RL.map(e=>({provide:No,multi:!0,useClass:e}));function v9(e){return(t,n,r)=>{let{value:i}=r;r.value=function(...o){e.apply(this,o)&&(Gu.ngZone?Gu.ngZone.run(()=>i.apply(this,o)):i.apply(this,o))}}}var y9=(()=>{class e{constructor([n]){console.assert(!(n instanceof Gu)||e.initialized,"EventPluginsModule must come after BrowserModule in imports"),e.initialized=!0}}return e.initialized=!1,e.\u0275fac=function(n){return new(n||e)(M(No))},e.\u0275mod=K({type:e}),e.\u0275inj=Z({providers:FL}),e})();var Cb=(()=>{class e{constructor(n){this.mode$=n,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?$o.Disabled:this.readOnly?$o.Readonly:this.active?$o.Active:this.hover?$o.Hover:null}get noHover(){return this.readOnly||this.hover===!1}get noActive(){return this.readOnly||this.active===!1}}return e.\u0275fac=function(n){return new(n||e)(y(Ho))},e.\u0275dir=z({type:e,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(n,r){n&1&&Xe("$.data-mode.attr",function(){return r.mode$}),n&2&&(ut("data-appearance",r.appearance)("data-state",r.interactiveState),tt("_invalid",r.computedInvalid)("_focused",r.computedFocused)("_no-hover",r.noHover)("_no-active",r.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"},features:[ze([zu])]}),e})(),Mb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var kL=["*"];function jL(e,t){if(e&1&&(xn(0),Jn(1),Pn()),e&2){let n=t.polymorpheusOutlet;oe(),gn(" ",n," ")}}function VL(e,t){if(e&1&&(De(0,"div",6),Se(1,jL,2,1,"ng-container",7),ye()),e&2){let n=me(2);tt("t-text_horizontal",n.isHorizontal),oe(),V("polymorpheusOutlet",n.textContent)}}function UL(e,t){if(e&1&&(De(0,"div",2),ul(),De(1,"svg",3),je(2,"circle",4),ye(),Se(3,VL,2,3,"div",5),ye()),e&2){let n=me();tt("t-loader_horizontal",n.isHorizontal)("t-loader_inherit-color",n.inheritColor),ut("data-size",n.size),oe(3),V("ngIf",n.hasText)}}var BL={size:"m",inheritColor:!1,overlay:!1},$L=Te(BL);var Sb=(()=>{class e{constructor(n,r,i,o){this.doc=n,this.el=r,this.isIos=i,this.options=o,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay,this.loading=!0,this.isApple=lE(this.el.nativeElement)||this.isIos}set showLoader(n){n&&this.focused&&mE(this.doc),this.loading=n}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!xw(this.size)}get focused(){return vE(this.el.nativeElement)}}return e.\u0275fac=function(n){return new(n||e)(y(he),y(Q),y(ua),y($L))},e.\u0275cmp=lt({type:e,selectors:[["tui-loader"]],hostVars:2,hostBindings:function(n,r){n&2&&tt("_loading",r.loading)},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},ngContentSelectors:kL,decls:3,vars:7,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(n,r){n&1&&(Xn(),De(0,"fieldset",0),Zt(1),ye(),Se(2,UL,4,6,"div",1)),n&2&&(tt("t-content_has-overlay",r.hasOverlay)("t-content_loading",r.loading),V("disabled",r.loading&&!r.isApple),ut("inert",r.loading||null),oe(2),V("ngIf",r.loading))},dependencies:[Lt,Hr],styles:["@keyframes _ngcontent-%COMP%_tuiLoaderDashOffset{0%{stroke-dashoffset:-66}50%{stroke-dashoffset:-314}to{stroke-dashoffset:-66}}@keyframes _ngcontent-%COMP%_tuiLoaderRotate{0%{transform:rotate(0)}50%{transform:rotate(1turn)}to{transform:rotate(3turn)}}[_nghost-%COMP%]{position:relative;display:flex;min-width:1.5rem}._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-size=xs][_ngcontent-%COMP%]{font-size:.75rem;stroke-width:38}.t-loader[data-size=s][_ngcontent-%COMP%]{font-size:1rem;stroke-width:25}.t-loader[data-size=m][_ngcontent-%COMP%]{font-size:1.5rem;stroke-width:17}.t-loader[data-size=l][_ngcontent-%COMP%]{font-size:2.5rem;stroke-width:15}.t-loader[data-size=xl][_ngcontent-%COMP%]{font-size:3.5rem;stroke-width:14}.t-loader[data-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:_ngcontent-%COMP%_tuiLoaderRotate 3s linear infinite}@supports (-webkit-hyphens: none){.t-icon[_ngcontent-%COMP%]{overflow:visible}}.t-circle[_ngcontent-%COMP%]{fill:none;stroke:inherit;stroke-width:inherit;animation:_ngcontent-%COMP%_tuiLoaderDashOffset 3s linear infinite}"],changeDetection:0}),e})(),Tb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({imports:[[kt,zr]]}),e})();var zL=["tuiButton",""],GL=["*"];function WL(e,t){e&1&&Ci(0)}function qL(e,t){if(e&1&&je(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;V("src",n)}}function YL(e,t){if(e&1&&(De(0,"span",6),Se(1,qL,1,1,"tui-svg",7),ye()),e&2){let n=me();oe(),V("polymorpheusOutlet",n.icon)}}function ZL(e,t){if(e&1&&je(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;V("src",n)}}function KL(e,t){if(e&1&&(De(0,"span",9),Se(1,ZL,1,1,"tui-svg",7),ye()),e&2){let n=me();oe(),V("polymorpheusOutlet",n.iconRight)}}function QL(e,t){if(e&1&&je(0,"tui-loader",10),e&2){let n=me();V("inheritColor",!0)("size",n.loaderSize)}}var XL={size:"l",shape:null,appearance:ma.Primary},og=Te(XL);var Ra=(()=>{class e extends om{constructor(n,r,i){var o;super(),this.mode=n,this.el=r,this.options=i,this.mode$=((o=this.mode)===null||o===void 0?void 0:o.change$)||xe,this.appearance=null,this.disabled=!1,this.shape=this.options.shape,this.showLoader=!1,this.size=this.options.size,this.appearance$=this.mode$.pipe(Ce(null),b(()=>this.computedAppearance),qe())}get nativeFocusableElement(){return this.nativeDisabled?null:this.el.nativeElement}get focused(){return!this.showLoader&&jo(this.el.nativeElement)}get loaderSize(){return this.size==="l"||this.size==="xl"?"m":"s"}get computedAppearance(){var n;return(n=this.appearance)!==null&&n!==void 0?n:this.options.appearance||""}get nativeDisabled(){return this.computedDisabled||this.showLoader?"":null}get tabIndex(){return this.focusable?0:-1}onFocused(n){this.updateFocused(n)}}return e.\u0275fac=function(n){return new(n||e)(y(Kr,8),y(Q),y(og))},e.\u0275cmp=lt({type:e,selectors:[["button","tuiButton",""],["button","tuiIconButton",""],["a","tuiButton",""],["a","tuiIconButton",""]],hostVars:7,hostBindings:function(n,r){n&1&&Xe("focusin",function(){return r.onFocused(!0)})("focusout",function(){return r.onFocused(!1)}),n&2&&(Uh("tabIndex",r.tabIndex),ut("data-shape",r.shape)("data-size",r.size)("data-appearance",r.computedAppearance)("disabled",r.nativeDisabled),tt("_loading",r.showLoader))},inputs:{appearance:"appearance",disabled:"disabled",icon:"icon",iconRight:"iconRight",shape:"shape",showLoader:"showLoader",size:"size"},features:[ze([pu(e),Ze]),He],attrs:zL,ngContentSelectors:GL,decls:8,vars:10,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"active","appearance","disabled","hover"],[1,"t-content"],["class","t-left",4,"ngIf"],["class","t-right",4,"ngIf"],["class","t-loader",3,"inheritColor","size",4,"ngIf"],[1,"t-left"],["class","t-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-icon",3,"src"],[1,"t-right"],[1,"t-loader",3,"inheritColor","size"]],template:function(n,r){n&1&&(Xn(),Se(0,WL,1,0,"ng-container",0),vn(1,"async"),De(2,"div",1)(3,"span",2),Se(4,YL,2,1,"span",3),Zt(5),Se(6,KL,2,1,"span",4),ye(),Se(7,QL,1,2,"tui-loader",5),ye()),n&2&&(V("ngIf",yn(1,8,r.appearance$)),oe(2),V("active",r.pseudoActive)("appearance",r.computedAppearance)("disabled",r.computedDisabled)("hover",r.pseudoHover),oe(2),V("ngIf",r.icon),oe(2),V("ngIf",r.iconRight),oe(),V("ngIf",r.showLoader))},dependencies:[Jo,Sb,Lt,Cb,Hr,er],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;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;user-select:none;outline:none;color:inherit}[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%]{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%]{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%]{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%]{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%]{width:3.75rem}[tuiIconButton][_nghost-%COMP%]{font-size:0!important}[tuiIconButton][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0!important}.t-loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:default}.t-left[_ngcontent-%COMP%]{margin-right:.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.375rem}[data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.25rem}.t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .25rem}[data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .375rem}[data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.125rem 0 .25rem}.t-icon[_ngcontent-%COMP%]{display:flex;max-width:100%;max-height:100%;align-items:center;justify-content:center}.t-left[_ngcontent-%COMP%], .t-right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1rem;height:1rem}[tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%], [tuiIconButton][data-appearance=link][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=link][data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.t-wrapper[_ngcontent-%COMP%]{box-sizing:border-box;cursor:pointer;isolation:isolate}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .375rem)}[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}),e})(),Wu=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({imports:[[kt,zr,Mb,es,Tb]]}),e})();var ek=["tuiLink",""],tk=["*"];function nk(e,t){if(e&1&&je(0,"tui-svg",3),e&2){let n=me();V("src",n.icon||"")}}function rk(e,t){if(e&1&&je(0,"tui-svg",4),e&2){let n=me();V("src",n.icon||"")}}var Ab=(()=>{class e{constructor(n,r,i){this.el=n,this.mode$=r,this.pseudo=!1,this.icon="",this.iconAlign="right",this.iconRotated=!1,this.mode=null,this.focusVisible=!1,this.focusedChange=Ue(J(this.el.nativeElement,"focusin").pipe(b(Ro)),J(this.el.nativeElement,"focusout").pipe(b(Br))),i.subscribe(o=>{this.focusVisible=o})}get nativeFocusableElement(){return this.el.nativeElement}get focused(){return jo(this.nativeFocusableElement)}get hasIcon(){return!!this.icon}get iconAlignLeft(){return this.hasIcon&&this.iconAlign==="left"}get iconAlignRight(){return this.hasIcon&&this.iconAlign==="right"}}return e.\u0275fac=function(n){return new(n||e)(y(Q),y(Ho),y(rm))},e.\u0275cmp=lt({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostVars:7,hostBindings:function(n,r){n&1&&Xe("$.data-mode.attr",function(){return r.mode$}),n&2&&(ut("data-host-mode",r.mode),tt("_pseudo",r.pseudo)("_icon-rotated",r.iconRotated)("_focus-visible",r.focusVisible))},inputs:{pseudo:"pseudo",icon:"icon",iconAlign:"iconAlign",iconRotated:"iconRotated",mode:"mode"},exportAs:["tuiLink"],features:[ze([pu(e),rm,Ze,zu])],attrs:ek,ngContentSelectors:tk,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(n,r){n&1&&(Xn(),Se(0,nk,1,1,"tui-svg",0),De(1,"span",1),Zt(2),ye(),Se(3,rk,1,1,"tui-svg",2)),n&2&&(V("ngIf",r.iconAlignLeft),oe(3),V("ngIf",r.iconAlignRight))},dependencies:[Jo,Lt],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);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:#0000007a}[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:#ffffff7a}[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:#de4c1e7a}[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:#3aa9817a}._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;width:var(--tui-link-icon-size, 1.5rem);height:var(--tui-link-icon-size, 1.5rem);margin-top:-.125rem}.t-icon_left[_ngcontent-%COMP%]{margin-right:.25rem}.t-icon_right[_ngcontent-%COMP%]{margin-left:.25rem}._icon-rotated[_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),e})(),Ob=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({imports:[[kt,es]]}),e})();function ik(e,t){if(e&1&&(xn(0),Jn(1),Pn()),e&2){let n=t.polymorpheusOutlet;oe(),gn(" ",n," ")}}function ok(e,t){if(e&1&&(De(0,"header",6),Se(1,ik,2,1,"ng-container",3),ye()),e&2){let n=me();oe(),V("polymorpheusOutlet",n.header)("polymorpheusOutletContext",n.context)}}function sk(e,t){if(e&1){let n=Qn();xn(0),je(1,"div",7),De(2,"div",8)(3,"button",9),Xe("click",function(){On(n);let i=me();return Nn(i.context.$implicit.complete())}),Jn(4),ye()(),Pn()}if(e&2){let n=t.polymorpheusOutlet,r=me();oe(),V("innerHTML",n,To),oe(3),gn(" ",(r.context.data==null?null:r.context.data.button)||"OK"," ")}}function ak(e,t){if(e&1){let n=Qn();De(0,"div",10)(1,"button",11),vn(2,"async"),Xe("click",function(){On(n);let i=me();return Nn(i.close$.next())})("mousedown.prevent.silent",function(){return On(n),Nn(0)}),ye()()}if(e&2){let n=me();oe(),V("appearance",n.fullscreen?"secondary":"")("icon",n.icons.close)("title",yn(2,3,n.closeWord$))}}var ck={size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""},lk=Te(xe),uk=Te(ck);var dk=17,Nb=(()=>{class e extends R{constructor(n,r,i){super(o=>Ue(this.esc$,this.mousedown$).subscribe(o)),this.win=n,this.doc=r,this.el=i,this.esc$=J(this.doc,"keydown").pipe(Ie(o=>{let s=$r(o);return o.key==="Escape"&&!o.defaultPrevented&&(this.element.contains(s)||this.isOutside(s))})),this.mousedown$=J(this.doc,"mousedown").pipe(Ie(o=>_u(this.win)-o.clientX>dk&&this.isOutside($r(o))),ce(()=>J(this.doc,"mouseup").pipe(Qe(1),b($r),Ie(o=>this.isOutside(o)))))}get element(){return this.el.nativeElement}isOutside(n){return Wl(n)&&(!pE(this.element,n)||n===this.element)}}return e.\u0275fac=function(n){return new(n||e)(M(pe),M(he),M(Q))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),fk=new Error("Required dialog was dismissed");function xb(e){return oi(e)?e:S(e)}var hk=(()=>{class e{constructor(n,r,i,o,s,a,c,l){this.duration=n,this.isMobile=r,this.context=i,this.closeWord$=c,this.icons=l,this.animation={value:"",params:{start:"40px",duration:this.duration}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:this.duration}},this.close$=new Oe,Ue(this.close$.pipe(ce(()=>xb(i.closeable))),s.pipe(ce(()=>xb(i.dismissible))),a.pipe(b(Ro))).pipe(Ie(Boolean),Ae(o)).subscribe(()=>{this.close()})}get size(){return this.context.size}get header(){return this.context.header}get slideInTop(){return this.fullscreen||this.isMobile?this.fullscreenAnimation:this.animation}get fullscreen(){return!this.isMobile&&(this.size==="fullscreen"||this.size==="page")}close(){this.context.required?this.context.$implicit.error(fk):this.context.$implicit.complete()}}return e.\u0275fac=function(n){return new(n||e)(y(pm),y(tm),y(na),y(Ze,2),y(Nb),y(lk),y(wu),y(Eu))},e.\u0275cmp=lt({type:e,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(n,r){n&2&&($s("@tuiSlideInTop",r.slideInTop)("@tuiFadeIn",r.slideInTop),ut("data-appearance",r.context.appearance)("data-size",r.size),tt("_centered",r.header))},features:[ze([Ze,Nb])],decls:7,vars:6,consts:[["class","t-header",4,"ngIf"],[1,"t-content"],[1,"t-heading",3,"id","textContent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-filler"],["class","t-wrapper",4,"ngIf"],[1,"t-header"],[3,"innerHTML"],[1,"t-buttons"],["size","m","tuiAutoFocus","","tuiButton","","type","button",3,"click"],[1,"t-wrapper"],["automation-id","tui-dialog__close","shape","rounded","size","s","tuiIconButton","","type","button",1,"t-close",3,"click","mousedown.prevent.silent","appearance","icon","title"]],template:function(n,r){n&1&&(Se(0,ok,2,2,"header",0),De(1,"div",1),je(2,"h2",2),De(3,"section"),Se(4,sk,5,2,"ng-container",3),ye()(),je(5,"div",4),Se(6,ak,3,5,"div",5)),n&2&&(V("ngIf",r.header),oe(2),V("id",r.context.id)("textContent",r.context.label),oe(2),V("polymorpheusOutlet",r.context.content)("polymorpheusOutletContext",r.context),oe(2),V("ngIf",r.context.closeable))},dependencies:[Ra,Lt,Hr,Dw,er],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%;content:"";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-modal)}[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%]{min-width:100vw;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-elevation-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;z-index:1;order:-1}.t-filler[_ngcontent-%COMP%]{flex-grow: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;display:none;color:var(--tui-base-01)}.t-dialog:last-of-type[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], .t-dialog:last-of-type [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]{animation:tuiFadeIn var(--tui-duration);background:rgba(104,104,104,.96)}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]:hover{background:rgba(159,159,159,.86)}[_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!important;color:var(--tui-text-01);opacity:.5}.t-buttons[_ngcontent-%COMP%]{margin-top:1.25rem;text-align:right}'],data:{animation:[Ib,Hu]}}),e})(),pk=new Ni(hk),mk=(()=>{class e extends mu{constructor(){super(...arguments),this.component=pk,this.defaultOptions=Object.assign(Object.assign({},g(uk)),{data:void 0})}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var RZ=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({providers:[uw(mk)],imports:[[zr,Wu,kt,Ew]]}),e})();var Pb=(()=>{class e{constructor(n){this.service=n}transform(n){return this.service.format(n.valueOf())}}return e.\u0275fac=function(n){return new(n||e)(y(_b,16))},e.\u0275pipe=yi({name:"tuiFormatDate",type:e,pure:!0}),e})(),Rb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var gk=[[["img"]],[["tui-svg"]],"*",[["","tuiButton",""]],[["","tuiLink",""]]],vk=["img","tui-svg","*","[tuiButton]","[tuiLink]"];function yk(e,t){if(e&1){let n=Qn();De(0,"button",10),vn(1,"async"),Xe("click",function(){On(n);let i=me();return Nn(i.close.emit())}),ye()}if(e&2){let n=me();V("icon",n.icons.close)("title",yn(1,2,n.closeWord$))}}function _k(e,t){if(e&1&&(je(0,"span",11),vn(1,"tuiFormatDate"),vn(2,"async")),e&2){let n=me();V("textContent",n.isString(n.timestamp)?n.timestamp:yn(2,3,yn(1,1,n.timestamp)))}}function Dk(e,t){if(e&1&&je(0,"img",8),e&2){let n=me(2);V("src",n.context.image,H_)}}function Ek(e,t){if(e&1&&je(0,"tui-svg",9),e&2){let n=me(2);Ii("color",n.context.iconColor),V("src",n.context.icon)}}function wk(e,t){if(e&1&&je(0,"div",10),e&2){let n=t.polymorpheusOutlet;V("innerHTML",n,To)}}function bk(e,t){if(e&1){let n=Qn();De(0,"button",11),Xe("click",function(){On(n);let i=me(2);return Nn(i.context.$implicit.next(i.context.buttons[0]))}),Jn(1),ye()}if(e&2){let n=me(2);oe(),gn(" ",n.context.buttons[0]," ")}}function Ik(e,t){if(e&1){let n=Qn();De(0,"button",12),Xe("click",function(){On(n);let i=me(2);return Nn(i.context.$implicit.next(i.context.buttons[i.context.buttons.length-1]))}),Jn(1),ye()}if(e&2){let n=me(2);oe(),gn(" ",n.context.buttons[n.context.buttons.length-1]," ")}}function Ck(e,t){if(e&1){let n=Qn();De(0,"tui-push",2),Xe("close",function(){On(n);let i=me();return Nn(i.context.$implicit.complete())}),Se(1,Dk,1,1,"img",3)(2,Ek,1,3,"tui-svg",4)(3,wk,1,1,"div",5)(4,bk,2,1,"button",6)(5,Ik,2,1,"button",7),ye()}if(e&2){let n=me();V("heading",n.context.heading)("timestamp",n.context.timestamp)("type",n.context.type),oe(),V("ngIf",n.context.image),oe(),V("ngIf",n.context.icon),oe(),V("polymorpheusOutlet",n.context.content)("polymorpheusOutletContext",n.context),oe(),V("ngIf",n.context.buttons.length>1),oe(),V("ngIf",n.context.buttons.length)}}function Mk(e,t){e&1&&Ci(0)}function Sk(e,t){if(e&1&&Se(0,Mk,1,0,"ng-container",13),e&2){let n=me();V("polymorpheusOutlet",n.context.content)}}var Tk=(()=>{class e{constructor(n,r){this.closeWord$=n,this.icons=r,this.heading="",this.type="",this.lines=2,this.timestamp="",this.close=new st,this.isString=Fn}get closeable(){return CE(this.close)}}return e.\u0275fac=function(n){return new(n||e)(y(wu),y(Eu))},e.\u0275cmp=lt({type:e,selectors:[["tui-push"]],hostVars:2,hostBindings:function(n,r){n&2&&Ii("--t-lines",r.lines)},inputs:{heading:"heading",type:"type",lines:"lines",timestamp:"timestamp"},outputs:{close:"close"},ngContentSelectors:vk,decls:17,vars:4,consts:[[1,"t-image"],["appearance","","shape","rounded","size","xs","tuiIconButton","","type","button","class","t-close",3,"icon","title","click",4,"ngIf"],[1,"t-top"],[1,"t-icon"],["class","t-time",3,"textContent",4,"ngIf"],["automation-id","tui-push__heading",1,"t-heading"],[1,"t-content"],[1,"t-actions"],[1,"t-button"],[1,"t-link"],["appearance","","shape","rounded","size","xs","tuiIconButton","","type","button",1,"t-close",3,"click","icon","title"],[1,"t-time",3,"textContent"]],template:function(n,r){n&1&&(Xn(gk),De(0,"div",0),Zt(1),ye(),Se(2,yk,2,4,"button",1),De(3,"div",2)(4,"span",3),Zt(5,1),ye(),Jn(6),Se(7,_k,3,5,"span",4),ye(),De(8,"h3",5),Jn(9),ye(),De(10,"div",6),Zt(11,2),ye(),De(12,"div",7)(13,"span",8),Zt(14,3),ye(),De(15,"span",9),Zt(16,4),ye()()),n&2&&(oe(2),V("ngIf",r.closeable),oe(4),gn(" ",r.type," "),oe(),V("ngIf",r.timestamp),oe(2),gn(" ",r.heading,` -`))},dependencies:[Ra,Lt,er,Pb],styles:['[_nghost-%COMP%]{position:relative;display:block;width:22.5rem;max-width:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-xl);background:var(--tui-elevation-02);box-shadow:var(--tui-shadow)}.t-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem;color:#0000008a;background:rgba(242,242,242,.32);-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}.t-top[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-02)}.t-icon[_ngcontent-%COMP%]{height:1.25rem;margin-right:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-link)}.t-time[_ngcontent-%COMP%]:before{content:"\\2022";display:inline-block;width:1rem;text-align:center}.t-heading[_ngcontent-%COMP%]{line-height:1.25rem;font-weight:bold;margin:.75rem 0 .25rem}.t-heading[_ngcontent-%COMP%], .t-content[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--t-lines);word-break:break-word;overflow:hidden}.t-actions[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button[_ngcontent-%COMP%]:not(:empty){margin:.75rem .75rem .75rem 0}.t-link[_ngcontent-%COMP%]{margin:.75rem 0}.t-link[_ngcontent-%COMP%]:empty{margin:.5rem}'],changeDetection:0}),e})(),Ak=(()=>{class e extends Kr{constructor(n){var r;super(),this.modeDirective=n,this.size="s",this.shape=null,this.change$=((r=this.modeDirective)===null||r===void 0?void 0:r.change$)||new Oe}get appearance(){var n;return((n=this.modeDirective)===null||n===void 0?void 0:n.mode)==="onDark"?"accent":"secondary"}}return e.\u0275fac=function(n){return new(n||e)(y(Kr,12))},e.\u0275dir=z({type:e,selectors:[["tui-push"]],features:[ze([{provide:Kr,useExisting:e},{provide:og,useExisting:e}]),He]}),e})(),Ok={heading:"",type:"",timestamp:"",image:"",icon:"",iconColor:"",buttons:[]},Nk=Te(Ok);var xk=(()=>{class e extends bp{constructor(n,r,i,o){super(n,r),this.show$=new Oe,this.show$.pipe(IE(()=>o.open(this)),Ae(i)).subscribe()}set tuiPush(n){this.show$.next(n)}}return e.\u0275fac=function(n){return new(n||e)(y(_t),y(dt),y(Ze,2),y(wr(()=>Fb)))},e.\u0275dir=z({type:e,selectors:[["","tuiPush",""]],inputs:{tuiPush:"tuiPush"},features:[ze([Ze]),He]}),e})(),Pk=(()=>{class e{constructor(n,r){this.animation=n,this.context=r}get isDirective(){return this.context.content instanceof xk}}return e.\u0275fac=function(n){return new(n||e)(y(Rw),y(na))},e.\u0275cmp=lt({type:e,selectors:[["tui-push-alert"]],hostAttrs:["role","alert"],hostVars:3,hostBindings:function(n,r){n&2&&$s("@tuiFadeIn",r.animation)("@tuiSlideInRight",r.animation)("@tuiHeightCollapse",r.animation)},decls:3,vars:2,consts:[["directive",""],[3,"heading","timestamp","type","close",4,"ngIf","ngIfElse"],[3,"close","heading","timestamp","type"],["alt","",3,"src",4,"ngIf"],[3,"src","color",4,"ngIf"],[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiButton","","type","button",3,"click",4,"ngIf"],["tuiLink","","type","button",3,"click",4,"ngIf"],["alt","",3,"src"],[3,"src"],[3,"innerHTML"],["tuiButton","","type","button",3,"click"],["tuiLink","","type","button",3,"click"],[4,"polymorpheusOutlet"]],template:function(n,r){if(n&1&&Se(0,Ck,6,9,"tui-push",1)(1,Sk,1,1,"ng-template",null,0,Ol),n&2){let i=Sl(2);V("ngIf",!r.isDirective)("ngIfElse",i)}},dependencies:[Tk,Jo,Ra,Ab,Lt,Ak,Hr],styles:["[_nghost-%COMP%]{max-width:calc(100% - 2rem);margin:0 1rem 1rem auto}[_nghost-%COMP%]:first-child{margin-top:auto}"],data:{animation:[Hu,bb,wb]},changeDetection:0}),e})(),Fb=(()=>{class e extends mu{constructor(){super(...arguments),this.component=new Ni(Pk),this.defaultOptions=g(Nk)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),rK=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({providers:[{provide:cw,useExisting:Fb,multi:!0}],imports:[[kt,zr,Wu,Ob,es,Rb]]}),e})();var kb=yI(Lb());var Rk=new E("Config for DOMPurify",{factory:()=>({}),providedIn:"root"}),Fk=new E("Hooks for DOMPurify",{factory:()=>[],providedIn:"root"}),Lk=new E("A function that sanitizes value for a CSS rule",{factory:()=>e=>e,providedIn:"root"}),kk=kb.default,dK=(()=>{class e{constructor(n,r,{defaultView:i},o){this.config=n,this.sanitizeStyle=r,this.domPurify=kk(i),o.forEach(({name:s,hook:a})=>{this.domPurify.addHook(s,a)})}sanitize(n,r,i=this.config){if(n===Dt.SCRIPT)throw new Error("DOMPurify does not support SCRIPT context");return n===Dt.STYLE?this.sanitizeStyle(String(r)):this.domPurify.sanitize(String(r||""),i)}}return e.\u0275fac=function(n){return new(n||e)(M(Rk),M(Lk),M(he),M(Fk))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var fK=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();export{Hg as a,Je as b,R as c,Oe as d,We as e,fr as f,xe as g,tc as h,nc as i,S as j,b as k,gc as l,$n as m,vt as n,Ue as o,ZI as p,Ie as q,XI as r,bv as s,Qe as t,hs as u,qe as v,yc as w,Ht as x,Nd as y,Ce as z,ce as A,Ae as B,Be as C,Nr as D,wr as E,C as F,Z as G,E as H,M as I,g as J,nn as K,Ey as L,Wn as M,wo as N,Ye as O,lt as P,K as Q,z as R,yi as S,zC as T,mn as U,On as V,Nn as W,ul as X,ke as Y,qt as Z,Q as _,st as $,Yt as aa,fG as ba,Dt as ca,To as da,hG as ea,G_ as fa,oe as ga,y as ha,_t as ia,Tf as ja,gi as ka,Ir as la,js as ma,fe as na,Ft as oa,He as pa,Se as qa,ut as ra,V as sa,Ii as ta,tt as ua,De as va,ye as wa,je as xa,xn as ya,Pn as za,Ci as Aa,Qn as Ba,Uh as Ca,$s as Da,Xe as Ea,me as Fa,Xn as Ga,Zt as Ha,xO as Ia,GD as Ja,Bh as Ka,$h as La,Sl as Ma,Jn as Na,LO as Oa,gn as Pa,kO as Qa,gG as Ra,jO as Sa,ze as Ta,YD as Ua,vG as Va,yG as Wa,_G as Xa,vn as Ya,yn as Za,DG as _a,EG as $a,wG as ab,Ol as bb,dt as cb,he as db,zG as eb,GG as fb,Lt as gb,er as hb,kt as ib,Si as jb,C0 as kb,_3 as lb,x0 as mb,D3 as nb,QF as ob,J6 as pb,hp as qb,H0 as rb,Ai as sb,j3 as tb,zl as ub,Ax as vb,xx as wb,U3 as xb,Ge as yb,w as zb,ue as Ab,nE as Bb,ft as Cb,Br as Db,Ro as Eb,lW as Fb,uW as Gb,iE as Hb,dW as Ib,fW as Jb,hW as Kb,sE as Lb,mW as Mb,vW as Nb,yW as Ob,Mr as Pb,DW as Qb,EW as Rb,wW as Sb,uE as Tb,Te as Ub,se as Vb,Oi as Wb,CW as Xb,pE as Yb,Wl as Zb,Lo as _b,$r as $b,AW as ac,OW as bc,NW as cc,xW as dc,PW as ec,yp as fc,mE as gc,gE as hc,kW as ic,jo as jc,vE as kc,Vo as lc,_E as mc,DE as nc,EE as oc,QW as pc,J as qc,IE as rc,XW as sc,Xx as tc,SE as uc,nr as vc,rr as wc,na as xc,Ni as yc,bp as zc,Hr as Ac,zr as Bc,pe as Cc,Y3 as Dc,Z3 as Ec,mp as Fc,LP as Gc,xE as Hc,Np as Ic,RE as Jc,du as Kc,GE as Lc,WE as Mc,cw as Nc,TR as Oc,la as Pc,pu as Qc,S4 as Rc,ua as Sc,tm as Tc,T4 as Uc,da as Vc,k4 as Wc,Ze as Xc,oq as Yc,rm as Zc,RR as _c,sq as $c,aq as ad,om as bd,fa as cd,Cq as dd,mw as ed,Mq as fd,Sq as gd,Oq as hd,Nq as id,Zq as jd,Kq as kd,Qq as ld,yu as md,m8 as nd,g8 as od,ww as pd,bw as qd,K8 as rd,Q8 as sd,tF as td,e5 as ud,t5 as vd,cm as wd,nF as xd,Cu as yd,E6 as zd,Mu as Ad,w6 as Bd,b6 as Cd,I6 as Dd,Wr as Ed,C6 as Fd,M6 as Gd,ga as Hd,S6 as Id,T6 as Jd,A6 as Kd,Hu as Ld,qY as Md,h as Nd,Fi as Od,dF as Pd,o5 as Qd,s5 as Rd,a5 as Sd,M5 as Td,S5 as Ud,T5 as Vd,A5 as Wd,xw as Xd,ma as Yd,$o as Zd,hF as _d,pF as $d,pm as ae,Rw as be,Eu as ce,W5 as de,q5 as ee,yF as fe,K5 as ge,J5 as he,_F as ie,Ho as je,Iu as ke,a6 as le,c6 as me,bF as ne,l6 as oe,u6 as pe,d6 as qe,f6 as re,gY as se,vY as te,yY as ue,Db as ve,_Y as we,Jo as xe,es as ye,Kr as ze,zu as Ae,v9 as Be,y9 as Ce,Cb as De,Mb as Ee,Sb as Fe,Tb as Ge,Ra as He,Wu as Ie,Ab as Je,Ob as Ke,mk as Le,RZ as Me,Tk as Ne,Ak as Oe,xk as Pe,rK as Qe,dK as Re,fK as Se}; -//# sourceMappingURL=chunk-ZMRV6PSF.js.map + `)}`}var nn=eh(Xf("Optional"),8),Ey=eh(Xf("Self"),2),Wn=eh(Xf("SkipSelf"),4);function ci(e,t){let n=e.hasOwnProperty(Fc);return n?e[Fc]:null}function EC(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?th(n,t):t(n))}function wy(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function kc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function bC(e,t){let n=[];for(let r=0;rt;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function CC(e,t,n){let r=Ns(e,t);return r>=0?e[r|1]=n:(r=~r,IC(e,r,t,n)),r}function Rd(e,t){let n=Ns(e,t);if(n>=0)return e[n|1]}function Ns(e,t){return MC(e,t,1)}function MC(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<t?i=o:r=o+1}return~(i<t){s=o-1;break}}}for(;o-1){let o;for(;++io?d="":d=i[l+1].toLowerCase(),r&2&&u!==d){if(In(r))return!1;s=!0}}}}return In(r)||s}function In(e){return(e&1)===0}function PC(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!In(s)&&(t+=xv(o,i),i=""),r=s,o=o||!In(r);n++}return i!==""&&(t+=xv(o,i)),t}function VC(e){return e.map(jC).join(",")}function UC(e){let t=[],n=[],r=1,i=2;for(;r{let t=Ny(e),n=Ve(T({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Iy.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Gn.Emulated,styles:e.styles||en,_:null,schemas:e.schemas||null,tView:null,id:""});xy(n);let r=e.dependencies;return n.directiveDefs=Rv(r,!1),n.pipeDefs=Rv(r,!0),n.id=HC(n),n})}function BC(e){return li(e)||Sy(e)}function $C(e){return e!==null}function K(e){return As(()=>({type:e.type,bootstrap:e.bootstrap||en,declarations:e.declarations||en,imports:e.imports||en,exports:e.exports||en,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Pv(e,t){if(e==null)return go;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=Ye.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==Ye.None?[r,a]:r,t[o]=s):n[o]=r}return n}function z(e){return As(()=>{let t=Ny(e);return xy(t),t})}function yi(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function li(e){return e[sC]||null}function Sy(e){return e[aC]||null}function Ty(e){return e[cC]||null}function Ay(e){let t=li(e)||Sy(e)||Ty(e);return t!==null?t.standalone:!1}function Oy(e,t){let n=e[uC]||null;if(!n&&t===!0)throw new Error(`Type ${Pt(e)} does not have '\u0275mod' property.`);return n}function Ny(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||go,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||en,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Pv(e.inputs,t),outputs:Pv(e.outputs),debugInfo:null}}function xy(e){var t;(t=e.features)==null||t.forEach(n=>n(e))}function Rv(e,t){if(!e)return null;let n=t?Ty:BC;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter($C)}function HC(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function _i(e){return{\u0275providers:e}}function zC(...e){return{\u0275providers:Py(!0,e),\u0275fromNgModule:!0}}function Py(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return th(t,s=>{let a=s;tf(a,o,[],r)&&(i||(i=[]),i.push(a))}),i!==void 0&&Ry(i,o),n}function Ry(e,t){for(let n=0;n{t(o,r)})}}function tf(e,t,n,r){if(e=xt(e),!e)return!1;let i=null,o=Sv(e),s=!o&&li(e);if(!o&&!s){let c=e.ngModule;if(o=Sv(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)tf(u,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let u;try{th(o.imports,l=>{tf(l,t,n,r)&&(u||(u=[]),u.push(l))})}finally{}u!==void 0&&Ry(u,t)}if(!a){let u=ci(i)||(()=>new i);t({provide:i,useFactory:u,deps:en},i),t({provide:by,useValue:i,multi:!0},i),t({provide:ui,useValue:()=>M(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=e;rh(c,l=>{t(l,u)})}}else return!1;return i!==e&&e.providers!==void 0}function rh(e,t){for(let n of e)yy(n)&&(n=n.\u0275providers),Array.isArray(n)?rh(n,t):t(n)}var GC=Le({provide:String,useValue:Le});function Fy(e){return e!==null&&typeof e=="object"&&GC in e}function WC(e){return!!(e&&e.useExisting)}function qC(e){return!!(e&&e.useFactory)}function vo(e){return typeof e=="function"}function YC(e){return!!e.useClass}var au=new E(""),Ac={},ZC={},Fd;function ih(){return Fd===void 0&&(Fd=new jc),Fd}var fn=class{},_s=class extends fn{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,rf(t,s=>this.processProvider(s)),this.records.set(wo,lo(void 0,this)),i.has("environment")&&this.records.set(fn,lo(void 0,this));let o=this.records.get(au);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(by,en,ue.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=be(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),be(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=xr(this),r=zt(void 0),i;try{return t()}finally{xr(n),zt(r)}}get(t,n=vs,r=ue.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Av))return t[Av](this);r=su(r);let i,o=xr(this),s=zt(void 0);try{if(!(r&ue.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=eM(t)&&ou(t);u&&this.injectableDefInScope(u)?c=lo(nf(t),Ac):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&ue.Self?ih():this.parent;return n=r&ue.Optional&&n===vs?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Lc]=a[Lc]||[]).unshift(Pt(t)),o)throw a;return _C(a,t,"R3InjectorError",this.source)}else throw a}finally{zt(s),xr(o)}}resolveInjectorInitializers(){let t=be(null),n=xr(this),r=zt(void 0),i;try{let o=this.get(ui,en,ue.Self);for(let s of o)s()}finally{xr(n),zt(r),be(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Pt(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(t){t=xt(t);let n=vo(t)?t:xt(t&&t.provide),r=QC(t);if(!vo(t)&&t.multi===!0){let i=this.records.get(n);i||(i=lo(void 0,Ac,!0),i.factory=()=>Jd(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=be(null);try{return n.value===Ac&&(n.value=ZC,n.value=n.factory()),typeof n.value=="object"&&n.value&&JC(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{be(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=xt(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function nf(e){let t=ou(e),n=t!==null?t.factory:ci(e);if(n!==null)return n;if(e instanceof E)throw new I(204,!1);if(e instanceof Function)return KC(e);throw new I(204,!1)}function KC(e){if(e.length>0)throw new I(204,!1);let n=iC(e);return n!==null?()=>n.factory(e):()=>new e}function QC(e){if(Fy(e))return lo(void 0,e.useValue);{let t=Ly(e);return lo(t,Ac)}}function Ly(e,t,n){let r;if(vo(e)){let i=xt(e);return ci(i)||nf(i)}else if(Fy(e))r=()=>xt(e.useValue);else if(qC(e))r=()=>e.useFactory(...Jd(e.deps||[]));else if(WC(e))r=()=>M(xt(e.useExisting));else{let i=xt(e&&(e.useClass||e.provide));if(XC(e))r=()=>new i(...Jd(e.deps));else return ci(i)||nf(i)}return r}function lo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function XC(e){return!!e.deps}function JC(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function eM(e){return typeof e=="function"||typeof e=="object"&&e instanceof E}function rf(e,t){for(let n of e)Array.isArray(n)?rf(n,t):n&&yy(n)?rf(n.\u0275providers,t):t(n)}function Fr(e,t){e instanceof _s&&e.assertNotDestroyed();let n,r=xr(e),i=zt(void 0);try{return t()}finally{xr(r),zt(i)}}function tM(){return _y()!==void 0||gC()!=null}function nM(e){return typeof e=="function"}var Wt=0,te=1,G=2,yt=3,Cn=4,rn=5,hn=6,Ds=7,Sn=8,yo=9,Tn=10,Re=11,Es=12,Fv=13,bo=14,tn=15,xs=16,fo=17,Mn=18,cu=19,ky=20,Pr=21,Ld=22,di=23,at=25,oh=1,ws=6,gr=7,Vc=8,_o=9,Gt=10,sh=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(sh||{});function mr(e){return Array.isArray(e)&&typeof e[oh]=="object"}function qn(e){return Array.isArray(e)&&e[oh]===!0}function ah(e){return(e.flags&4)!==0}function Ps(e){return e.componentOffset>-1}function uu(e){return(e.flags&1)===1}function vr(e){return!!e.template}function jy(e){return(e[G]&512)!==0}var of=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Vy(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function mn(){return Uy}function Uy(e){return e.type.prototype.ngOnChanges&&(e.setInput=iM),rM}mn.ngInherit=!0;function rM(){let e=$y(this),t=e==null?void 0:e.current;if(t){let n=e.previous;if(n===go)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function iM(e,t,n,r,i){let o=this.declaredInputs[r],s=$y(e)||oM(e,{previous:go,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new of(u&&u.currentValue,n,c===go),Vy(e,t,i,n)}var By="__ngSimpleChanges__";function $y(e){return e[By]||null}function oM(e,t){return e[By]=t}var Lv=null;var Hn=function(e,t,n){Lv!=null&&Lv(e,t,n)},Hy="svg",sM="math",aM=!1;function cM(){return aM}function An(e){for(;Array.isArray(e);)e=e[Wt];return e}function uM(e){for(;Array.isArray(e);){if(typeof e[oh]=="object")return e;e=e[Wt]}return null}function zy(e,t){return An(t[e])}function on(e,t){return An(t[e.index])}function Gy(e,t){return e.data[t]}function Rs(e,t){return e[t]}function Lr(e,t){let n=t[e];return mr(n)?n:n[Wt]}function lM(e){return(e[G]&4)===4}function ch(e){return(e[G]&128)===128}function dM(e){return qn(e[yt])}function Do(e,t){return t==null?null:e[t]}function Wy(e){e[fo]=0}function fM(e){e[G]&1024||(e[G]|=1024,ch(e)&&bs(e))}function hM(e,t){for(;e>0;)t=t[bo],e--;return t}function uh(e){var t;return!!(e[G]&9216||(t=e[di])!=null&&t.dirty)}function sf(e){var t,n;(t=e[Tn].changeDetectionScheduler)==null||t.notify(1),uh(e)?bs(e):e[G]&64&&(cM()?(e[G]|=1024,bs(e)):(n=e[Tn].changeDetectionScheduler)==null||n.notify())}function bs(e){var n;(n=e[Tn].changeDetectionScheduler)==null||n.notify();let t=Is(e);for(;t!==null&&!(t[G]&8192||(t[G]|=8192,!ch(t)));)t=Is(t)}function qy(e,t){if((e[G]&256)===256)throw new I(911,!1);e[Pr]===null&&(e[Pr]=[]),e[Pr].push(t)}function pM(e,t){if(e[Pr]===null)return;let n=e[Pr].indexOf(t);n!==-1&&e[Pr].splice(n,1)}function Is(e){let t=e[yt];return qn(t)?t[yt]:t}var ie={lFrame:e_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function mM(){return ie.lFrame.elementDepthCount}function gM(){ie.lFrame.elementDepthCount++}function vM(){ie.lFrame.elementDepthCount--}function Yy(){return ie.bindingsEnabled}function Io(){return ie.skipHydrationRootTNode!==null}function yM(e){return ie.skipHydrationRootTNode===e}function _M(e){ie.skipHydrationRootTNode=e}function DM(){ie.skipHydrationRootTNode=null}function ne(){return ie.lFrame.lView}function et(){return ie.lFrame.tView}function On(e){return ie.lFrame.contextLView=e,e[Sn]}function Nn(e){return ie.lFrame.contextLView=null,e}function Rt(){let e=Zy();for(;e!==null&&e.type===64;)e=e.parent;return e}function Zy(){return ie.lFrame.currentTNode}function EM(){let e=ie.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Di(e,t){let n=ie.lFrame;n.currentTNode=e,n.isParent=t}function lh(){return ie.lFrame.isParent}function dh(){ie.lFrame.isParent=!1}function wM(){return ie.lFrame.contextLView}function Ei(){let e=ie.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function bM(e){return ie.lFrame.bindingIndex=e}function Co(){return ie.lFrame.bindingIndex++}function IM(e){let t=ie.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function CM(){return ie.lFrame.inI18n}function MM(e,t){let n=ie.lFrame;n.bindingIndex=n.bindingRootIndex=e,af(t)}function SM(){return ie.lFrame.currentDirectiveIndex}function af(e){ie.lFrame.currentDirectiveIndex=e}function Ky(e){let t=ie.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Qy(){return ie.lFrame.currentQueryIndex}function fh(e){ie.lFrame.currentQueryIndex=e}function TM(e){let t=e[te];return t.type===2?t.declTNode:t.type===1?e[rn]:null}function Xy(e,t,n){if(n&ue.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&ue.Host);)if(i=TM(o),i===null||(o=o[bo],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=ie.lFrame=Jy();return r.currentTNode=t,r.lView=e,!0}function hh(e){let t=Jy(),n=e[te];ie.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Jy(){let e=ie.lFrame,t=e===null?null:e.child;return t===null?e_(e):t}function e_(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function t_(){let e=ie.lFrame;return ie.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var n_=t_;function ph(){let e=t_();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 AM(e){return(ie.lFrame.contextLView=hM(e,ie.lFrame.contextLView))[Sn]}function Mo(){return ie.lFrame.selectedIndex}function fi(e){ie.lFrame.selectedIndex=e}function Fs(){let e=ie.lFrame;return Gy(e.tView,e.selectedIndex)}function lu(){ie.lFrame.currentNamespace=Hy}function r_(){return ie.lFrame.currentNamespace}var i_=!0;function du(){return i_}function Yn(e){i_=e}function OM(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=Uy(t);(n.preOrderHooks??(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,s)}i&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-e,i),o&&((n.preOrderHooks??(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(e,o))}function fu(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[fo]+=65536),(a>14>16&&(e[G]&3)===t&&(e[G]+=16384,kv(a,o)):kv(a,o)}var mo=-1,hi=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function xM(e){return e instanceof hi}function PM(e){return(e.flags&8)!==0}function RM(e){return(e.flags&16)!==0}function s_(e){return e!==mo}function Uc(e){return e&32767}function FM(e){return e>>16}function Bc(e,t){let n=FM(e),r=t;for(;n>0;)r=r[bo],n--;return r}var cf=!0;function $c(e){let t=cf;return cf=e,t}var LM=256,a_=LM-1,c_=5,kM=0,zn={};function jM(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(gs)&&(r=n[gs]),r==null&&(r=n[gs]=kM++);let i=r&a_,o=1<>c_)]|=o}function Hc(e,t){let n=u_(e,t);if(n!==-1)return n;let r=t[te];r.firstCreatePass&&(e.injectorIndex=t.length,jd(r.data,e),jd(t,null),jd(r.blueprint,null));let i=mh(e,t),o=e.injectorIndex;if(s_(i)){let s=Uc(i),a=Bc(i,t),c=a[te].data;for(let u=0;u<8;u++)t[o+u]=a[s+u]|c[s+u]}return t[o+8]=i,o}function jd(e,t){e.push(0,0,0,0,0,0,0,0,t)}function u_(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function mh(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=p_(i),r===null)return mo;if(n++,i=i[bo],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return mo}function uf(e,t,n){jM(e,t,n)}function l_(e,t,n){if(n&ue.Optional||e!==void 0)return e;Jf(t,"NodeInjector")}function d_(e,t,n,r){if(n&ue.Optional&&r===void 0&&(r=null),!(n&(ue.Self|ue.Host))){let i=e[yo],o=zt(void 0);try{return i?i.get(t,r,n&ue.Optional):Dy(t,r,n&ue.Optional)}finally{zt(o)}}return l_(r,t,n)}function f_(e,t,n,r=ue.Default,i){if(e!==null){if(t[G]&2048&&!(r&ue.Self)){let s=$M(e,t,n,r,zn);if(s!==zn)return s}let o=h_(e,t,n,r,zn);if(o!==zn)return o}return d_(t,n,r,i)}function h_(e,t,n,r,i){let o=UM(n);if(typeof o=="function"){if(!Xy(t,e,r))return r&ue.Host?l_(i,n,r):d_(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&ue.Optional))Jf(n);else return s}finally{n_()}}else if(typeof o=="number"){let s=null,a=u_(e,t),c=mo,u=r&ue.Host?t[tn][rn]:null;for((a===-1||r&ue.SkipSelf)&&(c=a===-1?mh(e,t):t[a+8],c===mo||!Vv(r,!1)?a=-1:(s=t[te],a=Uc(c),t=Bc(c,t)));a!==-1;){let l=t[te];if(jv(o,a,l.data)){let d=VM(a,t,n,s,r,u);if(d!==zn)return d}c=t[a+8],c!==mo&&Vv(r,t[te].data[a+8]===u)&&jv(o,a,t)?(s=l,a=Uc(c),t=Bc(c,t)):a=-1}}return i}function VM(e,t,n,r,i,o){let s=t[te],a=s.data[e+8],c=r==null?Ps(a)&&cf:r!=s&&(a.type&3)!==0,u=i&ue.Host&&o===a,l=xc(a,s,n,c,u);return l!==null?pi(t,s,l,a):zn}function xc(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,c=e.directiveStart,u=e.directiveEnd,l=o>>20,d=r?a:a+l,f=i?a+l:u;for(let m=d;m=c&&v.type===n)return m}if(i){let m=s[c];if(m&&vr(m)&&m.type===n)return c}return null}function pi(e,t,n,r){let i=e[n],o=t.data;if(xM(i)){let s=i;s.resolving&&dC(lC(o[n]));let a=$c(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?zt(s.injectImpl):null,l=Xy(e,r,ue.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&OM(n,o[n],t)}finally{u!==null&&zt(u),$c(a),s.resolving=!1,n_()}}return i}function UM(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(gs)?e[gs]:void 0;return typeof t=="number"?t>=0?t&a_:BM:t}function jv(e,t,n){let r=1<>c_)]&r)}function Vv(e,t){return!(e&ue.Self)&&!(e&ue.Host&&t)}var ai=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return f_(this._tNode,this._lView,t,su(r),n)}};function BM(){return new ai(Rt(),ne())}function ke(e){return As(()=>{let t=e.prototype.constructor,n=t[Fc]||lf(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[Fc]||lf(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function lf(e){return py(e)?()=>{let t=lf(xt(e));return t&&t()}:ci(e)}function $M(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[G]&2048&&!(s[G]&512);){let a=h_(o,s,n,r|ue.Self,zn);if(a!==zn)return a;let c=o.parent;if(!c){let u=s[ky];if(u){let l=u.get(n,zn,r);if(l!==zn)return l}c=p_(s),s=s[bo]}o=c}return i}function p_(e){let t=e[te],n=t.type;return n===2?t.declTNode:n===1?e[rn]:null}function Uv(e,t=null,n=null,r){let i=m_(e,t,n,r);return i.resolveInjectorInitializers(),i}function m_(e,t=null,n=null,r,i=new Set){let o=[n||en,zC(e)];return r=r||(typeof e=="object"?void 0:Pt(e)),new _s(o,t||ih(),r||null,i)}var qt=(()=>{let t=class t{static create(r,i){if(Array.isArray(r))return Uv({name:""},i,r,"");{let o=r.name??"";return Uv({name:o},r.parent,r.providers,o)}}};t.THROW_IF_NOT_FOUND=vs,t.NULL=new jc,t.\u0275prov=C({token:t,providedIn:"any",factory:()=>M(wo)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var HM="ngOriginalError";function Vd(e){return e[HM]}var yr=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Vd(t);for(;n&&Vd(n);)n=Vd(n);return n||null}},g_=new E("",{providedIn:"root",factory:()=>g(yr).handleError.bind(void 0)}),v_=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=zM,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),df=class extends v_{constructor(t){super(),this._lView=t}onDestroy(t){return qy(this._lView,t),()=>pM(this._lView,t)}};function zM(){return new df(ne())}function GM(){return So(Rt(),ne())}function So(e,t){return new Q(on(e,t))}var Q=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=GM;let e=t;return e})();function WM(e){return e instanceof Q?e.nativeElement:e}var ff=class extends Oe{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,tM()&&(this.destroyRef=g(v_,{optional:!0})??void 0)}emit(t){let n=be(null);try{super.next(t)}finally{be(n)}}subscribe(t,n,r){var c,u,l;let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let d=t;i=(c=d.next)==null?void 0:c.bind(d),o=(u=d.error)==null?void 0:u.bind(d),s=(l=d.complete)==null?void 0:l.bind(d)}this.__isAsync&&(o=Ud(o),i&&(i=Ud(i)),s&&(s=Ud(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof ot&&t.add(a),a}};function Ud(e){return t=>{setTimeout(e,void 0,t)}}var st=ff;function qM(){return this._results[Symbol.iterator]()}var Cs=class e{get changes(){return this._changes??(this._changes=new st)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=qM)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=wC(t);(this._changesDetected=!EC(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){var t;this.dirty=!0,(t=this._onDirty)==null||t.call(this)}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},YM="ngSkipHydration",ZM="ngskiphydration";function y_(e){let t=e.mergedAttrs;if(t===null)return!1;for(let n=0;ntS}),tS="ng",gh=new E(""),Yt=new E("",{providedIn:"platform",factory:()=>"unknown"});var fG=new E(""),vh=new E("",{providedIn:"root",factory:()=>{var e,t;return((t=(e=Ls().body)==null?void 0:e.querySelector("[ngCspNonce]"))==null?void 0:t.getAttribute("ngCspNonce"))||null}});function nS(){let e=new wi;return g(Yt)==="browser"&&(e.store=rS(Ls(),g(hu))),e}var wi=(()=>{let t=class t{constructor(){this.store={},this.onSerializeCallbacks={}}get(r,i){return this.store[r]!==void 0?this.store[r]:i}set(r,i){this.store[r]=i}remove(r){delete this.store[r]}hasKey(r){return this.store.hasOwnProperty(r)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(r,i){this.onSerializeCallbacks[r]=i}toJson(){for(let r in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(r))try{this.store[r]=this.onSerializeCallbacks[r]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/null;function dS(e,t,n=!1){let r=e.getAttribute(Bd);if(r==null)return null;let[i,o]=r.split("|");if(r=n?o:i,!r)return null;let s=o?`|${o}`:"",a=n?i:s,c={};if(r!==""){let l=t.get(wi,null,{optional:!0});l!==null&&(c=l.get(T_,[])[Number(r)])}let u={data:c,firstChild:e.firstChild??null};return n&&(u.firstChild=e,pu(u,0,e.nextSibling)),a?e.setAttribute(Bd,a):e.removeAttribute(Bd),u}function fS(){A_=dS}function _h(e,t,n=!1){return A_(e,t,n)}function hS(e){let t=e._lView;return t[te].type===2?null:(jy(t)&&(t=t[at]),t)}function pS(e){var t;return(t=e.textContent)==null?void 0:t.replace(/\s/gm,"")}function mS(e){let t=Ls(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(o){let s=pS(o);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,i=[];for(;r=n.nextNode();)i.push(r);for(let o of i)o.textContent==="ngetn"?o.replaceWith(t.createTextNode("")):o.remove()}function pu(e,t,n){e.segmentHeads??(e.segmentHeads={}),e.segmentHeads[t]=n}function mf(e,t){var n;return((n=e.segmentHeads)==null?void 0:n[t])??null}function gS(e,t){var i,o;let n=e.data,r=((i=n[iS])==null?void 0:i[t])??null;return r===null&&((o=n[yh])!=null&&o[t])&&(r=Dh(e,t)),r}function O_(e,t){var n;return((n=e.data[yh])==null?void 0:n[t])??null}function Dh(e,t){let n=O_(e,t)??[],r=0;for(let i of n)r+=i[Gc]*(i[S_]??1);return r}function mu(e,t){var n;if(typeof e.disconnectedNodes>"u"){let r=e.data[cS];e.disconnectedNodes=r?new Set(r):null}return!!((n=e.disconnectedNodes)!=null&&n.has(t))}var wc=new E(""),N_=!1,x_=new E("",{providedIn:"root",factory:()=>N_}),vS=new E(""),bc;function yS(){if(bc===void 0&&(bc=null,pr.trustedTypes))try{bc=pr.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return bc}function gu(e){var t;return((t=yS())==null?void 0:t.createHTML(e))||e}var Ic;function _S(){if(Ic===void 0&&(Ic=null,pr.trustedTypes))try{Ic=pr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ic}function $v(e){var t;return((t=_S())==null?void 0:t.createHTML(e))||e}var _r=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${hy})`}},gf=class extends _r{getTypeName(){return"HTML"}},vf=class extends _r{getTypeName(){return"Style"}},yf=class extends _r{getTypeName(){return"Script"}},_f=class extends _r{getTypeName(){return"URL"}},Df=class extends _r{getTypeName(){return"ResourceURL"}};function Zn(e){return e instanceof _r?e.changingThisBreaksApplicationSecurity:e}function kr(e,t){let n=DS(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${hy})`)}return n===t}function DS(e){return e instanceof _r&&e.getTypeName()||null}function P_(e){return new gf(e)}function R_(e){return new vf(e)}function F_(e){return new yf(e)}function L_(e){return new _f(e)}function k_(e){return new Df(e)}function ES(e){let t=new wf(e);return wS()?new Ef(t):t}var Ef=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(gu(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},wf=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=gu(t),n}};function wS(){try{return!!new window.DOMParser().parseFromString(gu(""),"text/html")}catch{return!1}}var bS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function vu(e){return e=String(e),e.match(bS)?e:"unsafe:"+e}function br(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function ks(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var j_=br("area,br,col,hr,img,wbr"),V_=br("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),U_=br("rp,rt"),IS=ks(U_,V_),CS=ks(V_,br("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),MS=ks(U_,br("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Hv=ks(j_,CS,MS,IS),B_=br("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),SS=br("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),TS=br("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),AS=ks(B_,SS,TS),OS=br("script,style,template"),bf=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=PS(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=xS(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(t){let n=zv(t).toLowerCase();if(!Hv.hasOwnProperty(n))return this.sanitizedSomething=!0,!OS.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let i=0;i"),!0}endElement(t){let n=zv(t).toLowerCase();Hv.hasOwnProperty(n)&&!j_.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Gv(t))}};function NS(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function xS(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw $_(t);return t}function PS(e){let t=e.firstChild;if(t&&NS(e,t))throw $_(t);return t}function zv(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function $_(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var RS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,FS=/([^\#-~ |!])/g;function Gv(e){return e.replace(/&/g,"&").replace(RS,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(FS,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Cc;function Eh(e,t){let n=null;try{Cc=Cc||ES(e);let r=t?String(t):"";n=Cc.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Cc.getInertBodyElement(r)}while(r!==o);let a=new bf().sanitizeChildren(Wv(n)||n);return gu(a)}finally{if(n){let r=Wv(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Wv(e){return"content"in e&&LS(e)?e.content:null}function LS(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Dt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Dt||{});function To(e){let t=z_();return t?$v(t.sanitize(Dt.HTML,e)||""):kr(e,"HTML")?$v(Zn(e)):Eh(Ls(),Os(e))}function H_(e){let t=z_();return t?t.sanitize(Dt.URL,e)||"":kr(e,"URL")?Zn(e):vu(Os(e))}function z_(){let e=ne();return e&&e[Tn].sanitizer}var kS=/^>|^->||--!>|)/g,VS="\u200B$1\u200B";function US(e){return e.replace(kS,t=>t.replace(jS,VS))}function hG(e){return e.ownerDocument.defaultView}function G_(e){return e.ownerDocument}function BS(e){return e.ownerDocument.body}function W_(e){return e instanceof Function?e():e}function Mc(e){return(e??g(qt)).get(Yt)==="browser"}var Dr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Dr||{}),$S;function wh(e,t){return $S(e,t)}function ho(e,t,n,r,i){if(r!=null){let o,s=!1;qn(r)?o=r:mr(r)&&(s=!0,r=r[Wt]);let a=An(r);e===0&&n!==null?i==null?Q_(t,n,a):Wc(t,n,a,i||null,!0):e===1&&n!==null?Wc(t,n,a,i||null,!0):e===2?Mh(t,a,s):e===3&&t.destroyNode(a),o!=null&&rT(t,e,o,n,i)}}function bh(e,t){return e.createText(t)}function HS(e,t,n){e.setValue(t,n)}function Ih(e,t){return e.createComment(US(t))}function yu(e,t,n){return e.createElement(t,n)}function zS(e,t){q_(e,t),t[Wt]=null,t[rn]=null}function GS(e,t,n,r,i,o){r[Wt]=i,r[rn]=t,Du(e,r,n,1,i,o)}function q_(e,t){var n;(n=t[Tn].changeDetectionScheduler)==null||n.notify(1),Du(e,t,t[Re],2,null,null)}function WS(e){let t=e[Es];if(!t)return $d(e[te],e);for(;t;){let n=null;if(mr(t))n=t[Es];else{let r=t[Gt];r&&(n=r)}if(!n){for(;t&&!t[Cn]&&t!==e;)mr(t)&&$d(t[te],t),t=t[yt];t===null&&(t=e),mr(t)&&$d(t[te],t),n=t&&t[Cn]}t=n}}function qS(e,t,n,r){let i=Gt+r,o=n.length;r>0&&(n[i-1][Cn]=t),r0&&(e[n-1][Cn]=r[Cn]);let o=kc(e,Gt+t);zS(r[te],r);let s=o[Mn];s!==null&&s.detachView(o[te]),r[yt]=null,r[Cn]=null,r[G]&=-129}return r}function Z_(e,t){if(!(t[G]&256)){let n=t[Re];n.destroyNode&&Du(e,t,n,3,null,null),WS(t)}}function $d(e,t){if(t[G]&256)return;let n=be(null);try{t[G]&=-129,t[G]|=256,t[di]&&Yg(t[di]),KS(e,t),ZS(e,t),t[te].type===1&&t[Re].destroy();let r=t[xs];if(r!==null&&qn(t[yt])){r!==t[yt]&&Y_(r,t);let i=t[Mn];i!==null&&i.detachView(e)}eS(t)}finally{be(n)}}function ZS(e,t){let n=e.cleanup,r=t[Ds];if(n!==null)for(let o=0;o=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[Ds]=null);let i=t[Pr];if(i!==null){t[Pr]=null;for(let o=0;o-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===Gn.None||o===Gn.Emulated)return null}return on(r,n)}}function Wc(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Q_(e,t,n){e.appendChild(t,n)}function qv(e,t,n,r,i){r!==null?Wc(e,t,n,r,i):Q_(e,t,n)}function XS(e,t,n,r){e.removeChild(t,n,r)}function Ch(e,t){return e.parentNode(t)}function JS(e,t){return e.nextSibling(t)}function X_(e,t,n){return tT(e,t,n)}function eT(e,t,n){return e.type&40?on(e,n):null}var tT=eT,Yv;function _u(e,t,n,r){let i=K_(e,r,t),o=t[Re],s=r.parent||t[rn],a=X_(s,r,t);if(i!=null)if(Array.isArray(n))for(let c=0;cat&&iD(e,t,at,!1),Hn(s?2:0,i),n(r,i)}finally{fi(o),Hn(s?3:1,i)}}function Ah(e,t,n){if(ah(t)){let r=be(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;snull;function dT(e){__(e)?eD(e):mS(e)}function fT(){uD=dT}function hT(e,t,n,r){let i=pD(t);i.push(n),e.firstCreatePass&&mD(e).push(r,i.length-1)}function pT(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return Io()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Zv(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??(r={});let a,c=Ye.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(i!==null){if(!i.hasOwnProperty(o))continue;u=i[o]}e===0?Kv(r,n,u,a,c):Kv(r,n,u,a)}return r}function Kv(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function mT(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function DT(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;Ps(n)&&ST(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Hc(n,t),Rr(r,t);let s=n.initialInputs;for(let a=i;a{bs(e.lView)},consumerOnSignalRead(){this.lView[di]=this}}),yD=100;function _D(e,t=!0,n=0){var s,a,c;let r=e[Tn],i=r.rendererFactory,o=!1;o||(s=i.begin)==null||s.call(i);try{zT(e,n)}catch(u){throw t&&gD(e,u),u}finally{o||((a=i.end)==null||a.call(i),(c=r.inlineEffectRunner)==null||c.flush())}}function zT(e,t){Tf(e,t);let n=0;for(;uh(e);){if(n===yD)throw new I(103,!1);n++,Tf(e,1)}}function GT(e,t,n,r){var c;let i=t[G];if((i&256)===256)return;let o=!1;!o&&((c=t[Tn].inlineEffectRunner)==null||c.flush()),hh(t);let s=null,a=null;!o&&WT(e)&&(a=UT(t),s=Wg(a));try{Wy(t),bM(e.bindingStartIndex),n!==null&&aD(e,t,n,2,r);let u=(i&3)===3;if(!o)if(u){let f=e.preOrderCheckHooks;f!==null&&Oc(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Nc(t,f,0,null),kd(t,0)}if(qT(t),DD(t,0),e.contentQueries!==null&&hD(e,t),!o)if(u){let f=e.contentCheckHooks;f!==null&&Oc(t,f)}else{let f=e.contentHooks;f!==null&&Nc(t,f,1),kd(t,1)}sT(e,t);let l=e.components;l!==null&&wD(t,l,0);let d=e.viewQuery;if(d!==null&&Sf(2,d,r),!o)if(u){let f=e.viewCheckHooks;f!==null&&Oc(t,f)}else{let f=e.viewHooks;f!==null&&Nc(t,f,2),kd(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ld]){for(let f of t[Ld])f();t[Ld]=null}o||(t[G]&=-73)}catch(u){throw bs(t),u}finally{a!==null&&(qg(a,s),$T(a)),ph()}}function WT(e){return e.type!==2}function DD(e,t){for(let n=E_(e);n!==null;n=w_(n))for(let r=Gt;r-1&&(If(t,r),kc(n,r))}this._attachedToViewContainer=!1}Z_(this._lView[te],this._lView)}onDestroy(t){qy(this._lView,t)}markForCheck(){Lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[G]&=-129}reattach(){sf(this._lView),this._lView[G]|=128}detectChanges(){this._lView[G]|=1024,_D(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,q_(this._lView[te],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=t,sf(this._lView)}},_t=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=QT;let e=t;return e})(),ZT=_t,KT=class extends ZT{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var t;return((t=this._declarationTContainer.tView)==null?void 0:t.ssrId)||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let i=kT(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new mi(i)}};function QT(){return Iu(Rt(),ne())}function Iu(e,t){return e.type&4?new KT(t,e,So(e,t)):null}function bD(e){let t=e[ws]??[],r=e[yt][Re];for(let i of t)XT(i,r);e[ws]=en}function XT(e,t){let n=0,r=e.firstChild;if(r){let i=e.data[Gc];for(;n0&&(o.firstChild=e,e=Mu(r[Gc],e)),n.push(o)}return[e,n]}var CD=()=>null;function cA(e,t){let n=e[ws];return!t||n===null||n.length===0?null:n[0].data[sS]===t?n.shift():(bD(e),null)}function uA(){CD=cA}function Xv(e,t){return CD(e,t)}var Af=class{},Of=class{},Zc=class{};function lA(e){let t=Error(`No component factory found for ${Pt(e)}.`);return t[dA]=e,t}var dA="ngComponent";var Nf=class{resolveComponentFactory(t){throw lA(t)}},Kn=(()=>{let t=class t{};t.NULL=new Nf;let e=t;return e})(),gi=class{},Ir=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>fA();let e=t;return e})();function fA(){let e=ne(),t=Rt(),n=Lr(t.index,e);return(mr(n)?n:e)[Re]}var hA=(()=>{let t=class t{};t.\u0275prov=C({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),zd={};var Jv=new Set;function js(e){var t;Jv.has(e)||(Jv.add(e),(t=performance==null?void 0:performance.mark)==null||t.call(performance,"mark_feature_usage",{detail:{feature:e}}))}function ey(...e){}function pA(){let e=typeof pr.requestAnimationFrame=="function",t=pr[e?"requestAnimationFrame":"setTimeout"],n=pr[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var fe=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new st(!1),this.onMicrotaskEmpty=new st(!1),this.onStable=new st(!1),this.onError=new st(!1),typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=pA().nativeRequestAnimationFrame,vA(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new I(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,mA,ey,ey);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},mA={};function kh(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function gA(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(pr,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,xf(e),e.isCheckStableRunning=!0,kh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),xf(e))}function vA(e){let t=()=>{gA(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(yA(a))return n.invokeTask(i,o,s,a);try{return ty(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),ny(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return ty(e),n.invoke(i,o,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),ny(e)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&(o.change=="microTask"?(e._hasPendingMicrotasks=o.microTask,xf(e),kh(e)):o.change=="macroTask"&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}function xf(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function ty(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ny(e){e._nesting--,kh(e)}function yA(e){var t;return!Array.isArray(e)||e.length!==1?!1:((t=e[0].data)==null?void 0:t.__ignore_ng_zone__)===!0}var MD=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var r;this.executeInternalCallbacks(),(r=this.handler)==null||r.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of r)i()}ngOnDestroy(){var r;(r=this.handler)==null||r.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=C({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Kc(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s0&&nD(e,n,o.join(" "))}}function CA(e,t,n){let r=e.projection=[];for(let i=0;i{let t=class t{};t.__NG_ELEMENT_ID__=SA;let e=t;return e})();function SA(){let e=Rt();return TD(e,ne())}var TA=Ft,SD=class extends TA{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return So(this._hostTNode,this._hostLView)}get injector(){return new ai(this._hostTNode,this._hostLView)}get parentInjector(){let t=mh(this._hostTNode,this._hostLView);if(s_(t)){let n=Bc(t,this._hostLView),r=Uc(t),i=n[te].data[r+8];return new ai(i,n)}else return new ai(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=iy(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Gt}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=Xv(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Qv(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!nM(t),a;if(s)a=n;else{let v=n||{};a=v.index,r=v.injector,i=v.projectableNodes,o=v.environmentInjector||v.ngModuleRef}let c=s?t:new Ms(li(t)),u=r||this.parentInjector;if(!o&&c.ngModule==null){let _=(s?u:this.parentInjector).get(fn,null);_&&(o=_)}let l=li(c.componentType??{}),d=Xv(this._lContainer,(l==null?void 0:l.id)??null),f=(d==null?void 0:d.firstChild)??null,m=c.create(u,i,f,o);return this.insertImpl(m.hostView,a,Qv(this._hostTNode,d)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(dM(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=i[yt],u=new SD(c,c[rn],c[yt]);u.detach(u.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return jT(s,i,o,r),t.attachToViewContainerRef(),wy(Gd(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=iy(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=If(this._lContainer,n);r&&(kc(Gd(this._lContainer),n),Z_(r[te],r))}detach(t){let n=this._adjustIndex(t,-1),r=If(this._lContainer,n);return r&&kc(Gd(this._lContainer),n)!=null?new mi(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function iy(e){return e[Vc]}function Gd(e){return e[Vc]||(e[Vc]=[])}function TD(e,t){let n,r=t[e.index];return qn(r)?n=r:(n=fD(r,t,null,e),t[e.index]=n,bu(t,n)),AD(n,t,e,r),new SD(n,e,t)}function AA(e,t){let n=e[Re],r=n.createComment(""),i=on(t,e),o=Ch(n,i);return Wc(n,o,r,JS(n,i),!1),r}var AD=OD,jh=()=>!1;function OA(e,t,n){return jh(e,t,n)}function OD(e,t,n,r){if(e[gr])return;let i;n.type&8?i=An(r):i=AA(t,n),e[gr]=i}function NA(e,t,n){var l;if(e[gr]&&e[ws])return!0;let r=n[hn],i=t.index-at;if(!r||KM(t)||mu(r,i))return!1;let s=mf(r,i),a=(l=r.data[yh])==null?void 0:l[i],[c,u]=aA(s,a);return e[gr]=c,e[ws]=u,!0}function xA(e,t,n,r){jh(e,n,t)||OD(e,t,n,r)}function PA(){AD=xA,jh=NA}var Ff=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Lf=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let u=o[a+1],l=t[-c];for(let d=Gt;dt.trim())}function PD(e,t,n){e.queries===null&&(e.queries=new kf),e.queries.track(new jf(t,n))}function $A(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Vh(e,t){return e.queries.getByIndex(t)}function HA(e,t){let n=e[te],r=Vh(n,t);return r.crossesNgTemplate?Vf(n,e,t,[]):ND(n,e,r,t)}function zA(e){return typeof e=="function"&&e[hd]!==void 0}function RD(e){return zA(e)&&typeof e.set=="function"}function GA(e){return Object.getPrototypeOf(e.prototype).constructor}function He(e){let t=GA(e.type),n=!0,r=[e];for(;t;){let i;if(vr(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new I(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Sc(e.inputs),s.inputTransforms=Sc(e.inputTransforms),s.declaredInputs=Sc(e.declaredInputs),s.outputs=Sc(e.outputs);let a=i.hostBindings;a&&KA(e,a);let c=i.viewQuery,u=i.contentQueries;if(c&&YA(e,c),u&&ZA(e,u),WA(e,i),nC(e.outputs,i.outputs),vr(i)&&i.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=ys(i.hostAttrs,n=ys(n,i.hostAttrs))}}function Sc(e){return e===go?{}:e===en?[]:e}function YA(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function ZA(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function KA(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}var Er=class{},Ss=class{};function FD(e,t){return new Jc(e,t??null,[])}var Jc=class extends Er{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Qc(this);let i=Oy(t);this._bootstrapComponents=W_(i.bootstrap),this._r3Injector=m_(t,n,[{provide:Er,useValue:this},{provide:Kn,useValue:this.componentFactoryResolver},...r],Pt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Uf=class extends Ss{constructor(t){super(),this.moduleType=t}create(t){return new Jc(this.moduleType,t,[])}};var eu=class extends Er{constructor(t){super(),this.componentFactoryResolver=new Qc(this),this.instance=null;let n=new _s([...t.providers,{provide:Er,useValue:this},{provide:Kn,useValue:this.componentFactoryResolver}],t.parent||ih(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Uh(e,t,n=null){return new eu({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Vs=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new We(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function LD(e){return XA(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function QA(e,t){if(Array.isArray(e))for(let n=0;n>17&32767}function iO(e){return(e&2)==2}function oO(e,t){return e&131071|t<<17}function $f(e){return e|2}function Eo(e){return(e&131068)>>2}function Wd(e,t){return e&-131069|t<<2}function sO(e){return(e&1)===1}function Hf(e){return e|1}function aO(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=vi(s),c=Eo(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Ns(d,l)>0)&&(u=!0)}else l=n;if(i)if(c!==0){let f=vi(e[a+1]);e[r+1]=Tc(f,a),f!==0&&(e[f+1]=Wd(e[f+1],r)),e[a+1]=oO(e[a+1],r)}else e[r+1]=Tc(a,0),a!==0&&(e[a+1]=Wd(e[a+1],r)),a=r;else e[r+1]=Tc(c,0),a===0?a=r:e[c+1]=Wd(e[c+1],r),c=r;u&&(e[r+1]=$f(e[r+1])),oy(e,l,r,!0),oy(e,l,r,!1),cO(t,l,e,r,o),s=Tc(a,c),o?t.classBindings=s:t.styleBindings=s}function cO(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Ns(o,t)>=0&&(n[r+1]=Hf(n[r+1]))}function oy(e,t,n,r){let i=e[n+1],o=t===null,s=r?vi(i):Eo(i),a=!1;for(;s!==0&&(a===!1||o);){let c=e[s],u=e[s+1];uO(c,t)&&(a=!0,e[s+1]=r?Hf(u):$f(u)),s=r?vi(u):Eo(u)}a&&(e[n+1]=r?$f(i):Hf(i))}function uO(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ns(e,t)>=0:!1}function V(e,t,n){let r=ne(),i=Co();if(pn(r,i,t)){let o=et(),s=Fs();wu(o,s,r,e,t,r[Re],n,!1)}return V}function sy(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";Rh(e,n,o[s],s,r)}function Ii(e,t,n){return UD(e,t,n,!1),Ii}function tt(e,t){return UD(e,t,null,!0),tt}function UD(e,t,n,r){let i=ne(),o=et(),s=IM(2);if(o.firstUpdatePass&&dO(o,e,s,r),t!==bi&&pn(i,s,t)){let a=o.data[Mo()];gO(o,a,i,i[Re],e,i[s+1]=vO(t,n),r,s)}}function lO(e,t){return t>=e.expandoStartIndex}function dO(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[Mo()],s=lO(e,n);yO(o,r)&&t===null&&!s&&(t=!1),t=fO(i,o,t,r),aO(i,o,t,n,s,r)}}function fO(e,t,n,r){let i=Ky(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=qd(null,e,t,n,r),n=Ts(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=qd(i,e,t,n,r),o===null){let c=hO(e,t,r);c!==void 0&&Array.isArray(c)&&(c=qd(null,e,t,c[1],r),c=Ts(c,t.attrs,r),pO(e,t,r,c))}else o=mO(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function hO(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Eo(r)!==0)return e[vi(r)]}function pO(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[vi(i)]=r}function mO(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0;){let c=e[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=n[i+1];f===bi&&(f=d?en:void 0);let m=d?Rd(f,r):l===r?f:void 0;if(u&&!tu(m)&&(m=Rd(c,r)),tu(m)&&(a=m,s))return a;let v=e[i+1];i=s?vi(v):Eo(v)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=Rd(c,r))}return a}function tu(e){return e!==void 0}function vO(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Pt(Zn(e)))),e}function yO(e,t){return(e.flags&(t?8:16))!==0}function _O(e,t,n,r,i,o){let s=t.consts,a=Do(s,i),c=Ao(t,e,2,r,a);return Ph(t,n,c,Do(s,o)),c.attrs!==null&&Kc(c,c.attrs,!1),c.mergedAttrs!==null&&Kc(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function De(e,t,n,r){let i=ne(),o=et(),s=at+e,a=i[Re],c=o.firstCreatePass?_O(s,o,i,t,n,r):o.data[s],u=BD(o,i,c,a,t,e);i[s]=u;let l=uu(c);return Di(c,!0),rD(a,u,c),!Bs(c)&&du()&&_u(o,i,u,c),mM()===0&&Rr(u,i),gM(),l&&(Oh(o,i,c),Ah(o,c,i)),r!==null&&Nh(i,c),De}function ye(){let e=Rt();lh()?dh():(e=e.parent,Di(e,!1));let t=e;yM(t)&&DM(),vM();let n=et();return n.firstCreatePass&&(fu(n,e),ah(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&PM(t)&&sy(n,t,ne(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&RM(t)&&sy(n,t,ne(),t.stylesWithoutHost,!1),ye}function je(e,t,n,r){return De(e,t,n,r),ye(),je}var BD=(e,t,n,r,i,o)=>(Yn(!0),yu(r,i,r_()));function DO(e,t,n,r,i,o){let s=t[hn],a=!s||Io()||Bs(n)||mu(s,o);if(Yn(a),a)return yu(r,i,r_());let c=Cu(s,e,t,n);return O_(s,o)&&pu(s,o,c.nextSibling),s&&(y_(n)||__(c))&&Ps(n)&&(_M(n),eD(c)),c}function EO(){BD=DO}function wO(e,t,n,r,i){let o=t.consts,s=Do(o,r),a=Ao(t,e,8,"ng-container",s);s!==null&&Kc(a,s,!0);let c=Do(o,i);return Ph(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function xn(e,t,n){let r=ne(),i=et(),o=e+at,s=i.firstCreatePass?wO(o,i,r,t,n):i.data[o];Di(s,!0);let a=$D(i,r,s,e);return r[o]=a,du()&&_u(i,r,a,s),Rr(a,r),uu(s)&&(Oh(i,r,s),Ah(i,s,r)),n!=null&&Nh(r,s),xn}function Pn(){let e=Rt(),t=et();return lh()?dh():(e=e.parent,Di(e,!1)),t.firstCreatePass&&(fu(t,e),ah(e)&&t.queries.elementEnd(e)),Pn}function Ci(e,t,n){return xn(e,t,n),Pn(),Ci}var $D=(e,t,n,r)=>(Yn(!0),Ih(t[Re],""));function bO(e,t,n,r){let i,o=t[hn],s=!o||Io()||Bs(n);if(Yn(s),s)return Ih(t[Re],"");let a=Cu(o,e,t,n),c=gS(o,r);return pu(o,r,a),i=Mu(c,a),i}function IO(){$D=bO}function Qn(){return ne()}function Bh(e,t,n){let r=ne(),i=Co();if(pn(r,i,t)){let o=et(),s=Fs();wu(o,s,r,e,t,r[Re],n,!0)}return Bh}function $s(e,t,n){let r=ne(),i=Co();if(pn(r,i,t)){let o=et(),s=Fs(),a=Ky(o.data),c=xT(a,s,r);wu(o,s,r,e,t,c,n,!0)}return $s}var nu="en-US";var CO=nu;function MO(e){typeof e=="string"&&(CO=e.toLowerCase().replace(/_/g,"-"))}function HD(e,t,n){let r=e[Re];switch(n){case Node.COMMENT_NODE:return Ih(r,t);case Node.TEXT_NODE:return bh(r,t);case Node.ELEMENT_NODE:return yu(r,t,null)}}var SO=(e,t,n,r)=>(Yn(!0),HD(e,n,r));function TO(e,t,n,r){return Yn(!0),HD(e,n,r)}function AO(){SO=TO}function Xe(e,t,n,r){let i=ne(),o=et(),s=Rt();return zD(o,i,i[Re],s,e,t,r),Xe}function OO(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function zD(e,t,n,r,i,o,s){let a=uu(r),u=e.firstCreatePass&&mD(e),l=t[Sn],d=pD(t),f=!0;if(r.type&3||s){let _=on(r,t),N=s?s(_):_,x=d.length,ge=s?H=>s(An(H[r.index])):r.index,ee=null;if(!s&&a&&(ee=OO(e,t,i,r.index)),ee!==null){let H=ee.__ngLastListenerFn__||ee;H.__ngNextListenerFn__=o,ee.__ngLastListenerFn__=o,f=!1}else{o=uy(r,t,l,o,!1);let H=n.listen(N,i,o);d.push(o,H),u&&u.push(i,ge,x,x+1)}}else o=uy(r,t,l,o,!1);let m=r.outputs,v;if(f&&m!==null&&(v=m[i])){let _=v.length;if(_)for(let N=0;N<_;N+=2){let x=v[N],ge=v[N+1],Et=t[x][ge].subscribe(o),nt=d.length;d.push(o,Et),u&&u.push(i,r.index,nt,-(nt+1))}}}function cy(e,t,n,r){let i=be(null);try{return Hn(6,t,n),n(r)!==!1}catch(o){return gD(e,o),!1}finally{Hn(7,t,n),be(i)}}function uy(e,t,n,r,i){return function o(s){if(s===Function)return r;let a=e.componentOffset>-1?Lr(e.index,t):t;Lh(a);let c=cy(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)c=cy(t,n,u,s)&&c,u=u.__ngNextListenerFn__;return i&&c===!1&&s.preventDefault(),c}}function me(e=1){return AM(e)}function NO(e,t){let n=null,r=RC(e);for(let i=0;i=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Su(e){let t=wM();return Rs(t,at+e)}function Jn(e,t=""){let n=ne(),r=et(),i=e+at,o=r.firstCreatePass?Ao(r,i,1,t,null):r.data[i],s=WD(r,n,o,t,e);n[i]=s,du()&&_u(r,n,s,o),Di(o,!1)}var WD=(e,t,n,r,i)=>(Yn(!0),bh(t[Re],r));function RO(e,t,n,r,i){let o=t[hn],s=!o||Io()||Bs(n)||mu(o,i);return Yn(s),s?bh(t[Re],r):Cu(o,e,t,n)}function FO(){WD=RO}function LO(e){return gn("",e,""),LO}function gn(e,t,n){let r=ne(),i=rO(r,e,t,n);return i!==bi&&PT(r,Mo(),i),gn}function kO(e,t,n){RD(t)&&(t=t());let r=ne(),i=Co();if(pn(r,i,t)){let o=et(),s=Fs();wu(o,s,r,e,t,r[Re],n,!1)}return kO}function gG(e,t){let n=RD(e);return n&&e.set(t),n}function jO(e,t){let n=ne(),r=et(),i=Rt();return zD(r,n,n[Re],i,e,t),jO}function VO(e,t,n){let r=et();if(r.firstCreatePass){let i=vr(e);zf(n,r.data,r.blueprint,i,!0),zf(t,r.data,r.blueprint,i,!1)}}function zf(e,t,n,r,i){if(e=xt(e),Array.isArray(e))for(let o=0;o>20;if(vo(e)||!e.multi){let m=new hi(u,i,y),v=Zd(c,t,i?l:l+f,d);v===-1?(uf(Hc(a,s),o,c),Yd(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(m),s.push(m)):(n[v]=m,s[v]=m)}else{let m=Zd(c,t,l+f,d),v=Zd(c,t,l,l+f),_=m>=0&&n[m],N=v>=0&&n[v];if(i&&!N||!i&&!_){uf(Hc(a,s),o,c);let x=$O(i?BO:UO,n.length,i,r,u);!i&&N&&(n[v].providerFactory=x),Yd(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(x),s.push(x)}else{let x=qD(n[i?v:m],u,!i&&r);Yd(o,e,m>-1?m:v,x)}!i&&r&&N&&n[v].componentProviders++}}}function Yd(e,t,n,r){let i=vo(t),o=YC(t);if(i||o){let c=(o?xt(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function qD(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Zd(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>VO(r,i?i(e):e,t)}}var HO=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let i=Py(!1,r.type),o=i.length>0?Uh([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=C({token:t,providedIn:"environment",factory:()=>new t(M(fn))});let e=t;return e})();function YD(e){js("NgStandalone"),e.getStandaloneInjector=t=>t.get(HO).getOrCreateStandaloneInjector(e)}function vG(e,t,n,r){return ZD(ne(),Ei(),e,t,n,r)}function yG(e,t,n,r,i){return KD(ne(),Ei(),e,t,n,r,i)}function _G(e,t,n,r,i,o,s,a){let c=Ei()+e,u=ne(),l=kD(u,c,n,r,i,o);return pn(u,c+4,s)||l?Us(u,c+5,a?t.call(a,n,r,i,o,s):t(n,r,i,o,s)):JA(u,c+5)}function Tu(e,t){let n=e[t];return n===bi?void 0:n}function ZD(e,t,n,r,i,o){let s=t+n;return pn(e,s,i)?Us(e,s+1,o?r.call(o,i):r(i)):Tu(e,s+1)}function KD(e,t,n,r,i,o,s){let a=t+n;return Bf(e,a,i,o)?Us(e,a+2,s?r.call(s,i,o):r(i,o)):Tu(e,a+2)}function zO(e,t,n,r,i,o,s,a,c){let u=t+n;return kD(e,u,i,o,s,a)?Us(e,u+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):Tu(e,u+4)}function GO(e,t,n,r,i,o){let s=t+n,a=!1;for(let c=0;c=0;n--){let r=t[n];if(e===r.name)return r}}function yn(e,t,n){let r=e+at,i=ne(),o=Rs(i,r);return Au(i,r)?ZD(i,Ei(),t,o.transform,n,o):o.transform(n)}function DG(e,t,n,r){let i=e+at,o=ne(),s=Rs(o,i);return Au(o,i)?KD(o,Ei(),t,s.transform,n,r,s):s.transform(n,r)}function EG(e,t,n,r,i,o){let s=e+at,a=ne(),c=Rs(a,s);return Au(a,s)?zO(a,Ei(),t,c.transform,n,r,i,o,c):c.transform(n,r,i,o)}function wG(e,t,n){let r=e+at,i=ne(),o=Rs(i,r);return Au(i,r)?GO(i,Ei(),t,o.transform,n,o):o.transform.apply(o,n)}function Au(e,t){return e[te].data[t].pure}function Ou(e,t){return Iu(e,t)}var Nu=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var QD=new E("");function jr(e){return!!e&&typeof e.then=="function"}function zh(e){return!!e&&typeof e.subscribe=="function"}var XD=new E(""),JD=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=g(XD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let o of this.appInits){let s=o();if(jr(s))r.push(s);else if(zh(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});r.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),r.length===0&&i(),this.initialized=!0}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Oo=new E("");function qO(){Zg(()=>{throw new I(600,!1)})}function YO(e){return e.isBoundToModule}function ZO(e,t,n){try{let r=n();return jr(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Vr=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(g_),this.afterRenderEffectManager=g(MD),this.externalTestViews=new Set,this.beforeRender=new Oe,this.afterTick=new Oe,this.componentTypes=[],this.components=[],this.isStable=g(Vs).hasPendingTasks.pipe(b(r=>!r)),this._injector=g(fn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){let o=r instanceof Zc;if(!this._injector.get(JD).done){let m=!o&&Ay(r),v=!1;throw new I(405,v)}let a;o?a=r:a=this._injector.get(Kn).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=YO(a)?void 0:this._injector.get(Er),u=i||a.selector,l=a.create(qt.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(QD,null);return f==null||f.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Kd(this.components,l),f==null||f.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new I(101,!1);let i=be(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,be(i)}}detectChangesInAttachedViews(r){let i=0,o=this.afterRenderEffectManager;for(;;){if(i===yD)throw new I(103,!1);if(r){let s=i===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:c}of this._views)KO(a,s,c)}if(i++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Wf(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Wf(s))))break}}attachView(r){let i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){let i=r;Kd(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let i=this._injector.get(Oo,[]);[...this._bootstrapListeners,...i].forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Kd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new I(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Kd(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var uo;function Gh(e){uo??(uo=new WeakMap);let t=uo.get(e);if(t)return t;let n=e.isStable.pipe(bn(r=>r)).toPromise().then(()=>{});return uo.set(e,n),e.onDestroy(()=>uo==null?void 0:uo.delete(e)),n}function KO(e,t,n){!t&&!Wf(e)||QO(e,n,t)}function Wf(e){return uh(e)}function QO(e,t,n){let r;n?(r=0,e[G]|=1024):e[G]&64?r=0:r=1,_D(e,t,r)}var qf=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Wh=(()=>{let t=class t{compileModuleSync(r){return new Uf(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let i=this.compileModuleSync(r),o=Oy(r),s=W_(o.declarations).reduce((a,c)=>{let u=li(c);return u&&a.push(new Ms(u)),a},[]);return new qf(i,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var XO=(()=>{let t=class t{constructor(){this.zone=g(fe),this.applicationRef=g(Vr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;(r=this._onMicrotaskEmptySubscription)==null||r.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function JO(e){return[{provide:fe,useFactory:e},{provide:ui,multi:!0,useFactory:()=>{let t=g(XO,{optional:!0});return()=>t.initialize()}},{provide:ui,multi:!0,useFactory:()=>{let t=g(rN);return()=>{t.initialize()}}},{provide:g_,useFactory:eN}]}function eN(){let e=g(fe),t=g(yr);return n=>e.runOutsideAngular(()=>t.handleError(n))}function tN(e){let t=JO(()=>new fe(nN(e)));return _i([[],t])}function nN(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(e==null?void 0:e.eventCoalescing)??!1,shouldCoalesceRunChangeDetection:(e==null?void 0:e.runCoalescing)??!1}}var rN=(()=>{let t=class t{constructor(){this.subscription=new ot,this.initialized=!1,this.zone=g(fe),this.pendingTasks=g(Vs)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{fe.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{fe.assertInAngularZone(),r??(r=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function iN(){return typeof $localize<"u"&&$localize.locale||nu}var Hs=new E("",{providedIn:"root",factory:()=>g(Hs,ue.Optional|ue.SkipSelf)||iN()});var e0=new E("");var Rc=null;function oN(e=[],t){return qt.create({name:t,providers:[{provide:au,useValue:"platform"},{provide:e0,useValue:new Set([()=>Rc=null])},...e]})}function sN(e=[]){if(Rc)return Rc;let t=oN(e);return Rc=t,qO(),aN(t),t}function aN(e){let t=e.get(gh,null);t==null||t.forEach(n=>n())}function t0(){return!1}var dt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=cN;let e=t;return e})();function cN(e){return uN(Rt(),ne(),(e&16)===16)}function uN(e,t,n){if(Ps(e)&&!n){let r=Lr(e.index,t);return new mi(r,r)}else if(e.type&47){let r=t[tn];return new mi(r,t)}return null}var Yf=class{constructor(){}supports(t){return LD(t)}create(t){return new Zf(t)}},lN=(e,t)=>t,Zf=class{constructor(t){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=t||lN}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let o;return t===null?o=this._itTail:(o=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,i),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):t=this._addAfter(new Kf(n,r),o,i)),t}_verifyReinsertion(t,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let i=t._prevRemoved,o=t._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let i=n===null?this._itHead:n._next;return t._next=i,t._prev=n,i===null?this._itTail=t:i._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new ru),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ru),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Kf=class{constructor(t,n){this.item=t,this.trackById=n,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}},Qf=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},ru=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Qf,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,i=this.map.get(r);return i?i.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function ly(e,t,n){let r=e.previousIndex;if(r===null)return r;let i=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,i){if(i!=null){let o=i.factories.slice();r=r.concat(o)}return new t(r)}static extend(r){return{provide:t,useFactory:i=>t.create(r,i||dy()),deps:[[t,new Wn,new nn]]}}find(r){let i=this.factories.find(o=>o.supports(r));if(i!=null)return i;throw new I(901,!1)}};t.\u0275prov=C({token:t,providedIn:"root",factory:dy});let e=t;return e})();function n0(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=sN(r),o=[tN(),...n||[]],a=new eu({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(fe);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(yr,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:m=>{u.handleError(m)}})});let d=()=>a.destroy(),f=i.get(e0);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),ZO(u,c,()=>{let m=a.get(JD);return m.runInitializers(),m.donePromise.then(()=>{let v=a.get(Hs,nu);MO(v||nu);let _=a.get(Vr);return t!==void 0&&_.bootstrap(t),_})})})}catch(t){return Promise.reject(t)}}var fy=!1,dN=!1;function fN(){fy||(fy=!0,fS(),EO(),FO(),IO(),nO(),PA(),uA(),fT(),AO())}function hN(e,t){return Gh(e)}function r0(){return _i([{provide:wc,useFactory:()=>{let e=!0;if(Mc()){let t=g(wi,{optional:!0});e=!!(t!=null&&t.get(T_,null))}return e&&js("NgHydration"),e}},{provide:ui,useValue:()=>{dN=!!g(vS,{optional:!0}),Mc()&&g(wc)&&(pN(),fN())},multi:!0},{provide:x_,useFactory:()=>Mc()&&g(wc)},{provide:Oo,useFactory:()=>{if(Mc()&&g(wc)){let e=g(Vr),t=g(qt);return()=>{hN(e,t).then(()=>{eA(e)})}}return()=>{}},multi:!0}])}function pN(){var n;let e=Ls(),t;for(let r of e.body.childNodes)if(r.nodeType===Node.COMMENT_NODE&&((n=r.textContent)==null?void 0:n.trim())===lS){t=r;break}if(!t)throw new I(-507,!1)}function zs(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Yh(e){let t=be(null);try{return e()}finally{be(t)}}var u0=null;function Cr(){return u0}function l0(e){u0??(u0=e)}var xu=class{};var he=new E(""),d0=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(vN),providedIn:"platform"});let e=t;return e})();var vN=(()=>{let t=class t extends d0{constructor(){super(),this._doc=g(he),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Cr().getBaseHref(this._doc)}onPopState(r){let i=Cr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",r,!1),()=>i.removeEventListener("popstate",r)}onHashChange(r){let i=Cr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",r,!1),()=>i.removeEventListener("hashchange",r)}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(r){this._location.pathname=r}pushState(r,i,o){this._history.pushState(r,i,o)}replaceState(r,i,o){this._history.replaceState(r,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(r=0){this._history.go(r)}getState(){return this._history.state}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>new t,providedIn:"platform"});let e=t;return e})();function f0(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function i0(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function Mi(e){return e&&e[0]!=="?"?"?"+e:e}var Ru=(()=>{let t=class t{historyGo(r){throw new Error("")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(h0),providedIn:"root"});let e=t;return e})(),yN=new E(""),h0=(()=>{let t=class t extends Ru{constructor(r,i){var o;super(),this._platformLocation=r,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??((o=g(he).location)==null?void 0:o.origin)??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(r){this._removeListenerFns.push(this._platformLocation.onPopState(r),this._platformLocation.onHashChange(r))}getBaseHref(){return this._baseHref}prepareExternalUrl(r){return f0(this._baseHref,r)}path(r=!1){let i=this._platformLocation.pathname+Mi(this._platformLocation.search),o=this._platformLocation.hash;return o&&r?`${i}${o}`:i}pushState(r,i,o,s){let a=this.prepareExternalUrl(o+Mi(s));this._platformLocation.pushState(r,i,a)}replaceState(r,i,o,s){let a=this.prepareExternalUrl(o+Mi(s));this._platformLocation.replaceState(r,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(r=0){var i,o;(o=(i=this._platformLocation).historyGo)==null||o.call(i,r)}};t.\u0275fac=function(i){return new(i||t)(M(d0),M(yN,8))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Gs=(()=>{let t=class t{constructor(r){this._subject=new st,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=r;let i=this._locationStrategy.getBaseHref();this._basePath=EN(i0(o0(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){var r;(r=this._urlChangeSubscription)==null||r.unsubscribe(),this._urlChangeListeners=[]}path(r=!1){return this.normalize(this._locationStrategy.path(r))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(r,i=""){return this.path()==this.normalize(r+Mi(i))}normalize(r){return t.stripTrailingSlash(DN(this._basePath,o0(r)))}prepareExternalUrl(r){return r&&r[0]!=="/"&&(r="/"+r),this._locationStrategy.prepareExternalUrl(r)}go(r,i="",o=null){this._locationStrategy.pushState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Mi(i)),o)}replaceState(r,i="",o=null){this._locationStrategy.replaceState(o,"",r,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(r+Mi(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(r=0){var i,o;(o=(i=this._locationStrategy).historyGo)==null||o.call(i,r)}onUrlChange(r){return this._urlChangeListeners.push(r),this._urlChangeSubscription??(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var o;let i=this._urlChangeListeners.indexOf(r);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&((o=this._urlChangeSubscription)==null||o.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(r="",i){this._urlChangeListeners.forEach(o=>o(r,i))}subscribe(r,i,o){return this._subject.subscribe({next:r,error:i,complete:o})}};t.normalizeQueryParams=Mi,t.joinWithSlash=f0,t.stripTrailingSlash=i0,t.\u0275fac=function(i){return new(i||t)(M(Ru))},t.\u0275prov=C({token:t,factory:()=>_N(),providedIn:"root"});let e=t;return e})();function _N(){return new Gs(M(Ru))}function DN(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function o0(e){return e.replace(/\/index.html$/,"")}function EN(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function ep(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var zG=(()=>{let t=class t{constructor(r){this._viewContainerRef=r,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(r){return r.ngComponentOutletNgModule!==void 0||r.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(r){return r.ngComponentOutlet!==void 0||r.ngComponentOutletContent!==void 0||r.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(r)}ngOnChanges(r){var i;if(this._needToReCreateComponentInstance(r)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let o=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(r)&&((i=this._moduleRef)==null||i.destroy(),this.ngComponentOutletNgModule?this._moduleRef=FD(this.ngComponentOutletNgModule,s0(o)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(s0(o)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:o,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let r of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(r,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){var r;(r=this._moduleRef)==null||r.destroy()}_applyInputStateDiff(r){for(let[i,o]of this._inputsUsed)o?(r.setInput(i,this.ngComponentOutletInputs[i]),this._inputsUsed.set(i,!1)):(r.setInput(i,void 0),this._inputsUsed.delete(i))}};t.\u0275fac=function(i){return new(i||t)(y(Ft))},t.\u0275dir=z({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[mn]});let e=t;return e})();function s0(e){return e.get(Er).injector}var Zh=class{constructor(t,n,r,i){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},GG=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,i,o){this._viewContainer=r,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let i=this._viewContainer;r.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new Zh(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let c=i.get(s);i.move(c,a),a0(c,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);a0(s,o)})}static ngTemplateContextGuard(r,i){return!0}};t.\u0275fac=function(i){return new(i||t)(y(Ft),y(_t),y(qh))},t.\u0275dir=z({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function a0(e,t){e.context.$implicit=t.item}var Lt=(()=>{let t=class t{constructor(r,i){this._viewContainer=r,this._context=new Kh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){c0("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){c0("ngIfElse",r),this._elseTemplateRef=r,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(r,i){return!0}};t.\u0275fac=function(i){return new(i||t)(y(Ft),y(_t))},t.\u0275dir=z({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Kh=class{constructor(){this.$implicit=null,this.ngIf=null}};function c0(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${Pt(t)}'.`)}function wN(e,t){return new I(2100,!1)}var Qh=class{createSubscription(t,n){return Yh(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){Yh(()=>t.unsubscribe())}},Xh=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},bN=new Xh,IN=new Qh,er=(()=>{let t=class t{constructor(r){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=r}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(r){if(!this._obj){if(r)try{this.markForCheckOnValueUpdate=!1,this._subscribe(r)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return r!==this._obj?(this._dispose(),this.transform(r)):this._latestValue}_subscribe(r){this._obj=r,this._strategy=this._selectStrategy(r),this._subscription=this._strategy.createSubscription(r,i=>this._updateLatestValue(r,i))}_selectStrategy(r){if(jr(r))return bN;if(zh(r))return IN;throw wN(t,r)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(r,i){var o;r===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&((o=this._ref)==null||o.markForCheck()))}};t.\u0275fac=function(i){return new(i||t)(y(dt,16))},t.\u0275pipe=yi({name:"async",type:t,pure:!1,standalone:!0});let e=t;return e})();var kt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=Z({});let e=t;return e})(),tp="browser",CN="server";function p0(e){return e===tp}function Si(e){return e===CN}var Pu=class{};var Lu=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var w0=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(w0||{}),np=class{constructor(t,n=b0.Ok,r="OK"){this.headers=t.headers||new Lu,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}};var ku=class e extends np{constructor(t={}){super(t),this.type=w0.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}};var b0=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(b0||{});var SN=new E("");var m0="b",g0="h",v0="s",y0="st",_0="u",D0="rt",Fu=new E(""),TN=["GET","HEAD"];function AN(e,t){var f;let d=g(Fu),{isCacheActive:n}=d,r=za(d,["isCacheActive"]),{transferCache:i,method:o}=e;if(!n||o==="POST"&&!r.includePostRequests&&!i||o!=="POST"&&!TN.includes(o)||i===!1||((f=r.filter)==null?void 0:f.call(r,e))===!1)return t(e);let s=g(wi),a=NN(e),c=s.get(a,null),u=r.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(u=i.includeHeaders),c){let{[m0]:m,[D0]:v,[g0]:_,[v0]:N,[y0]:x,[_0]:ge}=c,ee=m;switch(v){case"arraybuffer":ee=new TextEncoder().encode(m).buffer;break;case"blob":ee=new Blob([m]);break}let H=new Lu(_);return S(new ku({body:ee,headers:H,status:N,statusText:x,url:ge}))}let l=Si(g(Yt));return t(e).pipe(Be(m=>{m instanceof ku&&l&&s.set(a,{[m0]:m.body,[g0]:ON(m.headers,u),[v0]:m.status,[y0]:m.statusText,[_0]:m.url||"",[D0]:e.responseType})}))}function ON(e,t){if(!t)return{};let n={};for(let r of t){let i=e.getAll(r);i!==null&&(n[r]=i)}return n}function E0(e){return[...e.keys()].sort().map(t=>`${t}=${e.getAll(t)}`).join("&")}function NN(e){let{params:t,method:n,responseType:r,url:i}=e,o=E0(t),s=e.serializeBody();s instanceof URLSearchParams?s=E0(s):typeof s!="string"&&(s="");let a=[n,r,i,s,o].join("|"),c=xN(a);return c}function xN(e){let t=0;for(let n of e)t=Math.imul(31,t)+n.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function I0(e){return[{provide:Fu,useFactory:()=>(js("NgHttpTransferCache"),T({isCacheActive:!0},e))},{provide:SN,useValue:AN,multi:!0,deps:[wi,Fu]},{provide:Oo,multi:!0,useFactory:()=>{let t=g(Vr),n=g(Fu);return()=>{Gh(t).then(()=>{n.isCacheActive=!1})}}}]}var op=class extends xu{constructor(){super(...arguments),this.supportsDOMEvents=!0}},sp=class e extends op{static makeCurrent(){l0(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=PN();return n==null?null:RN(n)}resetBaseElement(){Ws=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ep(document.cookie,t)}},Ws=null;function PN(){return Ws=Ws||document.querySelector("base"),Ws?Ws.getAttribute("href"):null}function RN(e){return new URL(e,document.baseURI).pathname}var FN=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),No=new E(""),T0=(()=>{let t=class t{constructor(r,i){this._zone=i,this._eventNameToPlugin=new Map,r.forEach(o=>{o.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,i,o){return this._findPluginFor(i).addEventListener(r,i,o)}getZone(){return this._zone}_findPluginFor(r){let i=this._eventNameToPlugin.get(r);if(i)return i;if(i=this._plugins.find(s=>s.supports(r)),!i)throw new I(5101,!1);return this._eventNameToPlugin.set(r,i),i}};t.\u0275fac=function(i){return new(i||t)(M(No),M(fe))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),ju=class{constructor(t){this._doc=t}},rp="ng-app-id",A0=(()=>{let t=class t{constructor(r,i,o,s={}){this.doc=r,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Si(s),this.resetHostNodes()}addStyles(r){for(let i of r)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(r){for(let i of r)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(i=>i.remove()),r.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let i of this.getAllStyles())this.addStyleToHost(r,i)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let i of this.hostNodes)this.addStyleToHost(i,r)}onStyleRemoved(r){var o,s;let i=this.styleRef;(s=(o=i.get(r))==null?void 0:o.elements)==null||s.forEach(a=>a.remove()),i.delete(r)}collectServerRenderedStyles(){var i;let r=(i=this.doc.head)==null?void 0:i.querySelectorAll(`style[${rp}="${this.appId}"]`);if(r!=null&&r.length){let o=new Map;return r.forEach(s=>{s.textContent!=null&&o.set(s.textContent,s)}),o}return null}changeUsageCount(r,i){let o=this.styleRef;if(o.has(r)){let s=o.get(r);return s.usage+=i,s.usage}return o.set(r,{usage:i,elements:[]}),i}getStyleElement(r,i){let o=this.styleNodesInDOM,s=o==null?void 0:o.get(i);if((s==null?void 0:s.parentNode)===r)return o.delete(i),s.removeAttribute(rp),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(rp,this.appId),r.appendChild(a),a}}addStyleToHost(r,i){var c;let o=this.getStyleElement(r,i),s=this.styleRef,a=(c=s.get(i))==null?void 0:c.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(M(he),M(hu),M(vh,8),M(Yt))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),ip={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/"},up=/%COMP%/g,O0="%COMP%",LN=`_nghost-${O0}`,kN=`_ngcontent-${O0}`,jN=!0,VN=new E("",{providedIn:"root",factory:()=>jN});function UN(e){return kN.replace(up,e)}function BN(e){return LN.replace(up,e)}function N0(e,t){return t.map(n=>n.replace(up,e))}var C0=(()=>{let t=class t{constructor(r,i,o,s,a,c,u,l=null){this.eventManager=r,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Si(c),this.defaultRenderer=new qs(r,a,u,this.platformIsServer)}createRenderer(r,i){if(!r||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Gn.ShadowDom&&(i=Ve(T({},i),{encapsulation:Gn.Emulated}));let o=this.getOrCreateRenderer(r,i);return o instanceof Vu?o.applyToHost(r):o instanceof Ys&&o.applyStyles(),o}getOrCreateRenderer(r,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case Gn.Emulated:s=new Vu(u,l,i,this.appId,d,a,c,f);break;case Gn.ShadowDom:return new ap(u,l,r,i,a,c,this.nonce,f);default:s=new Ys(u,l,i,d,a,c,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(M(T0),M(A0),M(hu),M(VN),M(he),M(Yt),M(fe),M(vh))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),qs=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(ip[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(M0(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(M0(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new I(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=ip[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=ip[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(Dr.DashCase|Dr.Important)?t.style.setProperty(n,r,i&Dr.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Dr.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Cr().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function M0(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var ap=class extends qs{constructor(t,n,r,i,o,s,a,c){super(t,o,s,c),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=N0(i.id,i.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ys=class extends qs{constructor(t,n,r,i,o,s,a,c){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=c?N0(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Vu=class extends Ys{constructor(t,n,r,i,o,s,a,c){let u=i+"-"+r.id;super(t,n,r,o,s,a,c,u),this.contentAttr=UN(u),this.hostAttr=BN(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},$N=(()=>{let t=class t extends ju{constructor(r){super(r)}supports(r){return!0}addEventListener(r,i,o){return r.addEventListener(i,o,!1),()=>this.removeEventListener(r,i,o)}removeEventListener(r,i,o){return r.removeEventListener(i,o)}};t.\u0275fac=function(i){return new(i||t)(M(he))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),S0=["alt","control","meta","shift"],HN={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},zN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},GN=(()=>{let t=class t extends ju{constructor(r){super(r)}supports(r){return t.parseEventName(r)!=null}addEventListener(r,i,o){let s=t.parseEventName(i),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Cr().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let i=r.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=t._normalizeKey(i.pop()),a="",c=i.indexOf("code");if(c>-1&&(i.splice(c,1),a="code."),S0.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(r,i){let o=HN[r.key]||r.key,s="";return i.indexOf("code.")>-1&&(o=r.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),S0.forEach(a=>{if(a!==o){let c=zN[a];c(r)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(r,i,o){return s=>{t.matchEventFullKeyCode(s,r)&&o.runGuarded(()=>i(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};t.\u0275fac=function(i){return new(i||t)(M(he))},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})();function _3(e,t){return n0(T({rootComponent:e},WN(t)))}function WN(e){return{appProviders:[...QN,...(e==null?void 0:e.providers)??[]],platformProviders:KN}}function qN(){sp.makeCurrent()}function YN(){return new yr}function ZN(){return I_(document),document}var KN=[{provide:Yt,useValue:tp},{provide:gh,useValue:qN,multi:!0},{provide:he,useFactory:ZN,deps:[]}];var QN=[{provide:au,useValue:"root"},{provide:yr,useFactory:YN,deps:[]},{provide:No,useClass:$N,multi:!0,deps:[he,fe,Yt]},{provide:No,useClass:GN,multi:!0,deps:[he]},C0,A0,T0,{provide:gi,useExisting:C0},{provide:Pu,useClass:FN,deps:[]},[]];var x0=(()=>{let t=class t{constructor(r){this._doc=r}getTitle(){return this._doc.title}setTitle(r){this._doc.title=r||""}};t.\u0275fac=function(i){return new(i||t)(M(he))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Zs=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:function(i){let o=null;return i?o=new(i||t):o=M(XN),o},providedIn:"root"});let e=t;return e})(),XN=(()=>{let t=class t extends Zs{constructor(r){super(),this._doc=r}sanitize(r,i){if(i==null)return null;switch(r){case Dt.NONE:return i;case Dt.HTML:return kr(i,"HTML")?Zn(i):Eh(this._doc,String(i)).toString();case Dt.STYLE:return kr(i,"Style")?Zn(i):i;case Dt.SCRIPT:if(kr(i,"Script"))return Zn(i);throw new I(5200,!1);case Dt.URL:return kr(i,"URL")?Zn(i):vu(String(i));case Dt.RESOURCE_URL:if(kr(i,"ResourceURL"))return Zn(i);throw new I(5201,!1);default:throw new I(5202,!1)}}bypassSecurityTrustHtml(r){return P_(r)}bypassSecurityTrustStyle(r){return R_(r)}bypassSecurityTrustScript(r){return F_(r)}bypassSecurityTrustUrl(r){return L_(r)}bypassSecurityTrustResourceUrl(r){return k_(r)}};t.\u0275fac=function(i){return new(i||t)(M(he))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),cp=function(e){return e[e.NoHttpTransferCache=0]="NoHttpTransferCache",e[e.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",e}(cp||{});function D3(...e){let t=[],n=new Set,r=n.has(cp.HttpTransferCacheOptions);for(let{\u0275providers:i,\u0275kind:o}of e)n.add(o),i.length&&t.push(i);return _i([[],r0(),n.has(cp.NoHttpTransferCache)||r?[]:I0({}),t])}var B0=(()=>{let t=class t{constructor(r,i){this._renderer=r,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(r,i){this._renderer.setProperty(this._elementRef.nativeElement,r,i)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}};t.\u0275fac=function(i){return new(i||t)(y(Ir),y(Q))},t.\u0275dir=z({type:t});let e=t;return e})(),$0=(()=>{let t=class t extends B0{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=ke(t)))(o||t)}})(),t.\u0275dir=z({type:t,features:[He]});let e=t;return e})(),pp=new E("");var ex={provide:pp,useExisting:wr(()=>H0),multi:!0};function tx(){let e=Cr()?Cr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var nx=new E(""),H0=(()=>{let t=class t extends B0{constructor(r,i,o){super(r,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!tx())}writeValue(r){let i=r??"";this.setProperty("value",i)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}};t.\u0275fac=function(i){return new(i||t)(y(Ir),y(Q),y(nx,8))},t.\u0275dir=z({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&Xe("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[ze([ex]),He]});let e=t;return e})();function rx(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}var z0=new E(""),ix=new E("");function ox(e){return rx(e.value)?{required:!0}:null}function P0(e){return null}function G0(e){return e!=null}function W0(e){return jr(e)?Pe(e):e}function q0(e){let t={};return e.forEach(n=>{t=n!=null?T(T({},t),n):t}),Object.keys(t).length===0?null:t}function Y0(e,t){return t.map(n=>n(e))}function sx(e){return!e.validate}function Z0(e){return e.map(t=>sx(t)?t:n=>t.validate(n))}function ax(e){if(!e)return null;let t=e.filter(G0);return t.length==0?null:function(n){return q0(Y0(n,t))}}function K0(e){return e!=null?ax(Z0(e)):null}function cx(e){if(!e)return null;let t=e.filter(G0);return t.length==0?null:function(n){let r=Y0(n,t).map(W0);return Md(r).pipe(b(q0))}}function Q0(e){return e!=null?cx(Z0(e)):null}function R0(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function ux(e){return e._rawValidators}function lx(e){return e._rawAsyncValidators}function lp(e){return e?Array.isArray(e)?e:[e]:[]}function Bu(e,t){return Array.isArray(e)?e.includes(t):e===t}function F0(e,t){let n=lp(t);return lp(e).forEach(i=>{Bu(n,i)||n.push(i)}),n}function L0(e,t){return lp(t).filter(n=>!Bu(e,n))}var $u=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=K0(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Q0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},dp=class extends $u{get formDirective(){return null}get path(){return null}},Ai=class extends $u{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},fp=class{constructor(t){this._cd=t}get isTouched(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.touched)}get isUntouched(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.untouched)}get isPristine(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.pristine)}get isDirty(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.dirty)}get isValid(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.valid)}get isInvalid(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.invalid)}get isPending(){var t,n;return!!((n=(t=this._cd)==null?void 0:t.control)!=null&&n.pending)}get isSubmitted(){var t;return!!((t=this._cd)!=null&&t.submitted)}},dx={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},k3=Ve(T({},dx),{"[class.ng-submitted]":"isSubmitted"}),j3=(()=>{let t=class t extends fp{constructor(r){super(r)}};t.\u0275fac=function(i){return new(i||t)(y(Ai,2))},t.\u0275dir=z({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&tt("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[He]});let e=t;return e})();var Ks="VALID",Uu="INVALID",xo="PENDING",Qs="DISABLED";function fx(e){return(Hu(e)?e.validators:e)||null}function hx(e){return Array.isArray(e)?K0(e):e||null}function px(e,t){return(Hu(t)?t.asyncValidators:e)||null}function mx(e){return Array.isArray(e)?Q0(e):e||null}function Hu(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var hp=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Ks}get invalid(){return this.status===Uu}get pending(){return this.status==xo}get disabled(){return this.status===Qs}get enabled(){return this.status!==Qs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(F0(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(F0(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(L0(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(L0(t,this._rawAsyncValidators))}hasValidator(t){return Bu(this._rawValidators,t)}hasAsyncValidator(t){return Bu(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=xo,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Qs,this.errors=null,this._forEachChild(r=>{r.disable(Ve(T({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ve(T({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Ks,this._forEachChild(r=>{r.enable(Ve(T({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Ve(T({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ks||this.status===xo)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qs:Ks}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=xo,this._hasOwnPendingAsyncValidator=!0;let n=W0(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new st,this.statusChanges=new st}_calculateStatus(){return this._allControlsDisabled()?Qs:this.errors?Uu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xo)?xo:this._anyControlsHaveStatus(Uu)?Uu:Ks}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Hu(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=hx(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=mx(this._rawAsyncValidators)}};var X0=new E("CallSetDisabledState",{providedIn:"root",factory:()=>mp}),mp="always";function gx(e,t){return[...t.path,e]}function vx(e,t,n=mp){var r,i;_x(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&((i=(r=t.valueAccessor).setDisabledState)==null||i.call(r,e.disabled)),Dx(e,t),wx(e,t),Ex(e,t),yx(e,t)}function k0(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function yx(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function _x(e,t){let n=ux(e);t.validator!==null?e.setValidators(R0(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=lx(e);t.asyncValidator!==null?e.setAsyncValidators(R0(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();k0(t._rawValidators,i),k0(t._rawAsyncValidators,i)}function Dx(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&J0(e,t)})}function Ex(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&J0(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function J0(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function wx(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function bx(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Ix(e){return Object.getPrototypeOf(e.constructor)===$0}function Cx(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===H0?n=o:Ix(o)?r=o:i=o}),i||r||n||null}function j0(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function V0(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Mx=class extends hp{constructor(t=null,n,r){super(fx(n),px(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Hu(n)&&(n.nonNullable||n.initialValueIsDefault)&&(V0(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){j0(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){j0(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){V0(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Sx={provide:Ai,useExisting:wr(()=>zu)},U0=Promise.resolve(),zu=(()=>{let t=class t extends Ai{constructor(r,i,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Mx,this._registered=!1,this.name="",this.update=new st,this._parent=r,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Cx(this,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){let i=r.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),bx(r,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(r){this.viewModel=r,this.update.emit(r)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){vx(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(r){U0.then(()=>{var i;this.control.setValue(r,{emitViewToModelChange:!1}),(i=this._changeDetectorRef)==null||i.markForCheck()})}_updateDisabled(r){let i=r.isDisabled.currentValue,o=i!==0&&zs(i);U0.then(()=>{var s;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),(s=this._changeDetectorRef)==null||s.markForCheck()})}_getPath(r){return this._parent?gx(r,this._parent):[r]}};t.\u0275fac=function(i){return new(i||t)(y(dp,9),y(z0,10),y(ix,10),y(pp,10),y(dt,8),y(X0,8))},t.\u0275dir=z({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ye.None,"disabled","isDisabled"],model:[Ye.None,"ngModel","model"],options:[Ye.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ze([Sx]),He,mn]});let e=t;return e})();var Tx={provide:pp,useExisting:wr(()=>Ax),multi:!0},Ax=(()=>{let t=class t extends $0{writeValue(r){this.setProperty("value",parseFloat(r))}registerOnChange(r){this.onChange=i=>{r(i==""?null:parseFloat(i))}}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=ke(t)))(o||t)}})(),t.\u0275dir=z({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(i,o){i&1&&Xe("change",function(a){return o.onChange(a.target.value)})("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[ze([Tx]),He]});let e=t;return e})();var Ox=(()=>{let t=class t{constructor(){this._validator=P0}ngOnChanges(r){if(this.inputName in r){let i=this.normalizeInput(r[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):P0,this._onChange&&this._onChange()}}validate(r){return this._validator(r)}registerOnValidatorChange(r){this._onChange=r}enabled(r){return r!=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=z({type:t,features:[mn]});let e=t;return e})();var Nx={provide:z0,useExisting:wr(()=>xx),multi:!0};var xx=(()=>{let t=class t extends Ox{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=zs,this.createValidator=r=>ox}enabled(r){return r}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=ke(t)))(o||t)}})(),t.\u0275dir=z({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){i&2&<("required",o._enabled?"":null)},inputs:{required:"required"},features:[ze([Nx]),He]});let e=t;return e})();var Px=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=Z({});let e=t;return e})();var U3=(()=>{let t=class t{static withConfig(r){return{ngModule:t,providers:[{provide:X0,useValue:r.callSetDisabledState??mp}]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=K({type:t}),t.\u0275inj=Z({imports:[Px]});let e=t;return e})();var pe=new E("An abstraction over global window object",{factory:()=>{let{defaultView:e}=g(he);if(!e)throw new Error("Window is not available");return e}}),Rn=new E("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{let{requestAnimationFrame:e,cancelAnimationFrame:t}=g(pe);return new R(r=>{let i=NaN,o=s=>{r.next(s),i=e(o)};return i=e(o),()=>{t(i)}}).pipe(Ht())}}),W3=new E("An abstraction over window.caches object",{factory:()=>g(pe).caches}),q3=new E("An abstraction over window.crypto object",{factory:()=>g(pe).crypto}),Y3=new E("An abstraction over window.CSS object",{factory:()=>g(pe).CSS||{escape:e=>e,supports:()=>!1}}),Z3=new E("An abstraction over window.history object",{factory:()=>g(pe).history}),K3=new E("An abstraction over window.localStorage object",{factory:()=>g(pe).localStorage}),Q3=new E("An abstraction over window.location object",{factory:()=>g(pe).location}),Po=new E("An abstraction over window.navigator object",{factory:()=>g(pe).navigator}),X3=new E("An abstraction over window.navigator.mediaDevices object",{factory:()=>g(Po).mediaDevices}),J3=new E("An abstraction over window.navigator.connection object",{factory:()=>g(Po).connection||null}),eW=new E("Shared Observable based on `document visibility changed`",{factory:()=>{let e=g(he);return $n(e,"visibilitychange").pipe(Ce(0),b(()=>e.visibilityState!=="hidden"),qe(),Jt({refCount:!1,bufferSize:1}))}}),eE=new E("An abstraction over window.performance object",{factory:()=>g(pe).performance}),tW=new E("An abstraction over window.screen object",{factory:()=>g(pe).screen}),nW=new E("An abstraction over window.sessionStorage object",{factory:()=>g(pe).sessionStorage}),rW=new E("An abstraction over SpeechRecognition class",{factory:()=>{let e=g(pe);return e.speechRecognition||e.webkitSpeechRecognition||null}}),iW=new E("An abstraction over window.speechSynthesis object",{factory:()=>g(pe).speechSynthesis}),gp=new E("An abstraction over window.navigator.userAgent object",{factory:()=>g(Po).userAgent});var X=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(X||{}),tr="*";function Ge(e,t){return{type:X.Trigger,name:e,definitions:t,options:{}}}function W(e,t=null){return{type:X.Animate,styles:t,timings:e}}function tE(e,t=null){return{type:X.Sequence,steps:e,options:t}}function w(e){return{type:X.Style,styles:e,offset:null}}function le(e,t,n=null){return{type:X.Transition,expr:e,animation:t,options:n}}function nE(e=null){return{type:X.AnimateChild,options:e}}function ft(e,t,n=null){return{type:X.Query,selector:e,animation:t,options:n}}function bt(e,t){return{type:X.Stagger,timings:e,animation:t}}var Ur=class{constructor(t=0,n=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=t+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Xs=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,r=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++n==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let n=t*this.totalTime;this.players.forEach(r=>{let i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){let t=this.players.reduce((n,r)=>n===null||r.totalTime>n.totalTime?r:n,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let n=t=="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},Gu="!";var Br=()=>!1,Ro=()=>!0,uW=79,rE={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},lW=new Cs,vp=[],yp=()=>{},iE=Object.assign(Object.assign({},rE),{toJSON(){return rE}}),dW=e=>String(e);function Fx(e,t){return Array.isArray(e)&&Array.isArray(t)&&!e.length&&!t.length}var fW=(e,t)=>e===t||Fx(e,t),hW=Ge("tuiParentAnimation",[le(":leave",[ft(":scope > *",[nE()],{optional:!0})])]),pW=Ge("tuiParentStop",[le(":enter",[])]),Fo=1e3/15,oE=e=>"ownerSVGElement"in e?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,sE="\xA0",mW="\u2013";var aE="3.74.0";var cE="edge/";function vW(e,t){return parseInt(t.slice(t.toLowerCase().indexOf(cE)+cE.length),10)=t&&e=n?n:Math.round(e)}var Lx=292;function kx(e,t,n){if(e===1/0)return e;t=Math.min(t,Lx);let r=`${e}e`.split("e"),o=`${n(+`${r[0]}e${Number(r[1])+t}`)}e`.split("e");return+`${o[0]}e${Number(o[1])-t}`}function wW(e,t=0){return kx(e,t,Math.round)}function lE(e,t){return e.slice(0,Math.max(t,0)).concat(e.slice(Math.max(t+1,0)))}function Fn(e){return typeof e=="string"}function Te(e){return se(()=>e)}function se(e){return new E("",{factory:e})}function dE(e){return e<.5?2*e*e:-1+(4-2*e)*e}function fE(e){return!e}function Oi(e){return e!=null}function CW(e,t,n){return e===null?t===null:t===null?!1:n(e,t)}function jx(e,t,n){let r=e;for(;r!==t.parentElement;){if(Math.floor(r.scrollTop)>0&&!n||Math.ceil(r.scrollTop+r.clientHeight)0&&!n||Math.ceil(r.scrollLeft+r.clientWidth)!e.contains(_));return v.length===4?v:null}function OW(e,t){let{offsetTop:n,offsetLeft:r,offsetParent:i}=t;for(;Lo(i)&&i!==e;)n+=i.offsetTop,r+=i.offsetLeft,i=i.offsetParent;return{offsetTop:n,offsetLeft:r}}function Yu(e,t=!0){return e===null?null:t&&e.scrollHeight>e.clientHeight||!t&&e.scrollWidth>e.clientWidth?e:Yu(e.parentElement,t)}function NW(e){return $x(e)&&!e.readOnly||!!e.isContentEditable}function xW(e=0,t=0){let n={x:e,y:t,left:e,right:e,top:t,bottom:t,width:0,height:0};return Object.assign(Object.assign({},n),{toJSON(){return n}})}function PW(e){return"explicitOriginalTarget"in e?(e==null?void 0:e.explicitOriginalTarget)!==e.target:"pointerId"in e?e.pointerId===-1:"detail"in e&&"webkitForce"in e?(e==null?void 0:e.detail)===0:!1}function _p({activeElement:e}){if(!(e!=null&&e.shadowRoot))return e;let t=e.shadowRoot.activeElement;for(;t!=null&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function mE(e){let t=_p(e);Lo(t)&&t.blur()}function gE(e){if(e.hasAttribute("disabled")||e.getAttribute("tabIndex")==="-1")return!1;if(Lo(e)&&e.isContentEditable||e.getAttribute("tabIndex")==="0")return!0;switch(e.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return e.hasAttribute("controls");case"INPUT":return e.getAttribute("type")!=="hidden";case"A":case"LINK":return e.hasAttribute("href");default:return!1}}function Hx(e){return!e.hasAttribute("disabled")&&(e.getAttribute("tabIndex")==="-1"||gE(e))}function kW({initial:e,root:t,previous:n=!1,keyboard:r=!0}){if(!t.ownerDocument)return null;let i=r?gE:Hx,o=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,oE);for(o.currentNode=e;n?o.previousNode():o.nextNode();)if(Lo(o.currentNode)&&(e=o.currentNode),Lo(e)&&i(e))return e;return null}function jo(e){return!!(e!=null&&e.ownerDocument)&&_p(e.ownerDocument)===e&&e.ownerDocument.hasFocus()}function vE(e){if(!e.ownerDocument||!e.contains)return!1;let t=_p(e.ownerDocument);return t!==null&&e.contains(t)&&e.ownerDocument.hasFocus()}function Vo(e){return`${e}px`}function zx(e){return e.platform.startsWith("Mac")||e.platform==="iPhone"}var Gx=/ipad|iphone|ipod/;function Dp(e){return Gx.test(e.userAgent.toLowerCase())||zx(e)&&e.maxTouchPoints>1}var Wx=/^((?!chrome|android).)*safari/i;function yE(e){return Dp(e)||Wx.test(e.userAgent.toLowerCase())}function qx(){return Math.floor(Math.random()*Date.now())}function Yx(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Zx(e){var t;let n=((t=e.match(/url\(("?)('*)#(.*?)('*)\)/g))!==null&&t!==void 0?t:[]).map(r=>r.slice(4,r.length-1).replace(/['"#]+/g,""));return Array.from(new Set(n))}function Kx(e,t){try{let n=new DOMParser().parseFromString(e,"text/html");return n.body.querySelectorAll("[fill^=url]").forEach(r=>r.setAttribute("fill",`${r.getAttribute("fill")} ${t}`.trim())),n.body.innerHTML.trim()}catch{return e}}function Zu(e,t=qx(),n="rgba(0, 0, 0, 0.7)"){if(Fn(e)){let i=Zx(e).reduce((o,s)=>{let a=Yx(s),c=`id_${t}_${s}`;return o.replace(new RegExp(`"${a}"`,"g"),`"${c}"`).replace(new RegExp(`'${a}'`,"g"),`'${c}'`).replace(new RegExp(`url\\('#${a}'\\)`,"g"),`url('#${c}')`).replace(new RegExp(`url\\("#${a}"\\)`,"g"),`url("#${c}")`).replace(new RegExp(`url\\(#${a}\\)`,"g"),`url(#${c})`)},e);return Kx(i,n)}return e}var _E=class extends Error{constructor(t){super("")}},DE=class extends Error{constructor(t){super("")}},EE=class extends Error{constructor(t){super("")}},Ku=class extends Error{constructor(){super("")}},ea=class extends Error{constructor(){super("")}},ta=class extends Error{constructor(){super("")}};var Qu=class extends Error{constructor(){super("")}};function QW(e){return new R(t=>{if(!e.valueChanges)throw new Qu;return e.valueChanges.pipe(Ce(e.value)).subscribe(t)})}function J(e,t,n={}){return $n(e,t,n)}function Qx(e){return Ue(J(e,"mouseup"),J(e,"dragend"))}function wE(e=0){return ni(ce(()=>vt(e).pipe(b(Br),Ce(!0))),qe())}var Ep,wp;function bE(e){let t=J(e,"blur"),{ownerDocument:n}=e;if(!n)throw new ea;return(!wp||!Ep)&&(Ep=J(n,"mouseup",{capture:!0}).pipe(wE(),Ce(!1),Jt({bufferSize:1,refCount:!0})),wp=J(n,"mousedown",{capture:!0}).pipe(wE(),Ce(!1),Jt({bufferSize:1,refCount:!0}))),Ue($t(J(e,"focus").pipe(Qe(1)),t.pipe(Ie(()=>!jo(e)),Qe(1),ao())).pipe(yc(),ms(wp,Ep,(r,i,o)=>i||o),Ie(fE))).pipe(ce(()=>t.pipe(b(Br),Qe(1),Ce(!0))),qe())}function IE(e,t=Boolean){return ni(ce(n=>t(n)?e(n):xe))}function CE(e){var t,n;return"observed"in e?e.observed:!!(!((n=(t=e)===null||t===void 0?void 0:t.observers)===null||n===void 0)&&n.length)}function XW(e,{onlyTrusted:t}={onlyTrusted:!0}){let{ownerDocument:n}=e;if(!n)throw new ea;return J(e,"mousedown").pipe(Ie(({isTrusted:r})=>r||!t),ce(()=>Qx(n).pipe(b(Br),Qe(1),Ce(!0))))}function Xx(){return Be(e=>e.preventDefault())}function ME(e){return J(e===e.ownerDocument.documentElement?e.ownerDocument:e,"scroll")}function SE(e){return Be(()=>{e.markForCheck()})}function Jx(e){return t=>new R(n=>t.subscribe({next:r=>e.run(()=>n.next(r)),error:r=>e.run(()=>n.error(r)),complete:()=>e.run(()=>n.complete())}))}function nr(e){return t=>new R(n=>e.runOutsideAngular(()=>t.subscribe(n)))}function rr(e){return ni(nr(e),Jx(e))}var na=new E("POLYMORPHEUS_CONTEXT"),Ni=class{constructor(t,n){this.component=t,this.i=n}createInjector(t,n){return qt.create({parent:this.i||t,providers:[{provide:na,useValue:n}]})}},Ip=(()=>{class e{constructor(n,r){this.template=n,this.cdr=r,this.polymorpheus=""}check(){this.cdr.markForCheck()}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(y(_t,2),y(dt))},e.\u0275dir=z({type:e,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"]}),e})(),Xu=class{constructor(t){this.$implicit=t}get polymorpheusOutlet(){return this.$implicit}};var Hr=(()=>{class e{constructor(n,r,i){this.vcr=n,this.i=r,this.t=i,this.content=""}get template(){return bp(this.content)?this.content.template:this.content instanceof _t?this.content:this.t}ngOnChanges({content:n}){var r;let i=this.getContext();if((r=this.c)===null||r===void 0||r.injector.get(dt).markForCheck(),!n)return;this.vcr.clear();let o=i&&new Proxy(i,{get:(s,a)=>{var c;return(c=this.getContext())===null||c===void 0?void 0:c[a]}});TE(this.content)?this.process(this.content,o):(i instanceof Xu&&i.$implicit)!=null&&this.vcr.createEmbeddedView(this.template,o)}ngDoCheck(){bp(this.content)&&this.content.check()}static ngTemplateContextGuard(n,r){return!0}getContext(){return eP(this.content)||TE(this.content)?this.context:new Xu(typeof this.content=="function"?this.content(this.context):this.content)}process(n,r){let i=n.createInjector(this.i,r);this.c=this.vcr.createComponent(i.get(Kn).resolveComponentFactory(n.component),0,i)}}return e.\u0275fac=function(n){return new(n||e)(y(Ft),y(qt),y(_t))},e.\u0275dir=z({type:e,selectors:[["","polymorpheusOutlet",""]],inputs:{content:[Ye.None,"polymorpheusOutlet","content"],context:[Ye.None,"polymorpheusOutletContext","context"]},features:[mn]}),e})();function bp(e){return e instanceof Ip}function TE(e){return e instanceof Ni}function eP(e){return bp(e)||e instanceof _t}var zr=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();function Cp(e,t={}){let{selector:n}=t,r=sv(t,["selector"]);return new R(i=>{let o=new AbortController,{signal:s}=o,a=!0,{signal:c}=r;if(c)if(c.aborted)o.abort();else{let d=()=>{s.aborted||o.abort()};c.addEventListener("abort",d),i.add(()=>c.removeEventListener("abort",d))}let u=Object.assign(Object.assign({},r),{signal:s}),l=d=>{a=!1,i.error(d)};return fetch(e,u).then(d=>{n?Y(n(d)).subscribe(A(i,void 0,()=>{a=!1,i.complete()},l)):(a=!1,i.next(d),i.complete())}).catch(l),()=>{a&&o.abort()}})}function AE(e){return new I(3e3,!1)}function tP(){return new I(3100,!1)}function nP(){return new I(3101,!1)}function rP(e){return new I(3001,!1)}function iP(e){return new I(3003,!1)}function oP(e){return new I(3004,!1)}function sP(e,t){return new I(3005,!1)}function aP(){return new I(3006,!1)}function cP(){return new I(3007,!1)}function uP(e,t){return new I(3008,!1)}function lP(e){return new I(3002,!1)}function dP(e,t,n,r,i){return new I(3010,!1)}function fP(){return new I(3011,!1)}function hP(){return new I(3012,!1)}function pP(){return new I(3200,!1)}function mP(){return new I(3202,!1)}function gP(){return new I(3013,!1)}function vP(e){return new I(3014,!1)}function yP(e){return new I(3015,!1)}function _P(e){return new I(3016,!1)}function DP(e,t){return new I(3404,!1)}function EP(e){return new I(3502,!1)}function wP(e){return new I(3503,!1)}function bP(){return new I(3300,!1)}function IP(e){return new I(3504,!1)}function CP(e){return new I(3301,!1)}function MP(e,t){return new I(3302,!1)}function SP(e){return new I(3303,!1)}function TP(e,t){return new I(3400,!1)}function AP(e){return new I(3401,!1)}function OP(e){return new I(3402,!1)}function NP(e,t){return new I(3505,!1)}function Gr(e){switch(e.length){case 0:return new Ur;case 1:return e[0];default:return new Xs(e)}}function qE(e,t,n=new Map,r=new Map){let i=[],o=[],s=-1,a=null;if(t.forEach(c=>{let u=c.get("offset"),l=u==s,d=l&&a||new Map;c.forEach((f,m)=>{let v=m,_=f;if(m!=="offset")switch(v=e.normalizePropertyName(v,i),_){case Gu:_=n.get(m);break;case tr:_=r.get(m);break;default:_=e.normalizeStyleValue(m,v,_,i);break}d.set(v,_)}),l||o.push(d),a=d,s=u}),i.length)throw EP(i);return o}function Zp(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&Mp(n,"start",e)));break;case"done":e.onDone(()=>r(n&&Mp(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&Mp(n,"destroy",e)));break}}function Mp(e,t,n){let r=n.totalTime,i=!!n.disabled,o=Kp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,r??e.totalTime,i),s=e._data;return s!=null&&(o._data=s),o}function Kp(e,t,n,r,i="",o=0,s){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function an(e,t,n){let r=e.get(t);return r||e.set(t,r=n),r}function OE(e){let t=e.indexOf(":"),n=e.substring(1,t),r=e.slice(t+1);return[n,r]}var xP=typeof document>"u"?null:document.documentElement;function Qp(e){let t=e.parentNode||e.host||null;return t===xP?null:t}function PP(e){return e.substring(1,6)=="ebkit"}var xi=null,NE=!1;function RP(e){xi||(xi=FP()||{},NE=xi.style?"WebkitAppearance"in xi.style:!1);let t=!0;return xi.style&&!PP(e)&&(t=e in xi.style,!t&&NE&&(t="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in xi.style)),t}function FP(){return typeof document<"u"?document.body:null}function YE(e,t){for(;t;){if(t===e)return!0;t=Qp(t)}return!1}function ZE(e,t,n){if(n)return Array.from(e.querySelectorAll(t));let r=e.querySelector(t);return r?[r]:[]}var LP=(()=>{let t=class t{validateStyleProperty(r){return RP(r)}matchesElement(r,i){return!1}containsElement(r,i){return YE(r,i)}getParentElement(r){return Qp(r)}query(r,i,o){return ZE(r,i,o)}computeStyle(r,i,o){return o||""}animate(r,i,o,s,a,c=[],u){return new Ur(o,s)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac});let e=t;return e})(),tm=class tm{};tm.NOOP=new LP;var xE=tm,xp=class{};var kP=1e3,KE="{{",jP="}}",QE="ng-enter",Pp="ng-leave",el="ng-trigger",ol=".ng-trigger",PE="ng-animating",Rp=".ng-animating";function Sr(e){if(typeof e=="number")return e;let t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Fp(parseFloat(t[1]),t[2])}function Fp(e,t){switch(t){case"s":return e*kP;default:return e}}function sl(e,t,n){return e.hasOwnProperty("duration")?e:VP(e,t,n)}function VP(e,t,n){let r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,o=0,s="";if(typeof e=="string"){let a=e.match(r);if(a===null)return t.push(AE(e)),{duration:0,delay:0,easing:""};i=Fp(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=Fp(parseFloat(c),a[4]));let u=a[5];u&&(s=u)}else i=e;if(!n){let a=!1,c=t.length;i<0&&(t.push(tP()),a=!0),o<0&&(t.push(nP()),a=!0),a&&t.splice(c,0,AE(e))}return{duration:i,delay:o,easing:s}}function UP(e){return e.length?e[0]instanceof Map?e:e.map(t=>new Map(Object.entries(t))):[]}function ir(e,t,n){t.forEach((r,i)=>{let o=Xp(i);n&&!n.has(i)&&n.set(i,e.style[o]),e.style[o]=r})}function Ri(e,t){t.forEach((n,r)=>{let i=Xp(r);e.style[i]=""})}function ra(e){return Array.isArray(e)?e.length==1?e[0]:tE(e):e}function BP(e,t,n){let r=t.params||{},i=XE(e);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(rP(o))})}var Lp=new RegExp(`${KE}\\s*(.+?)\\s*${jP}`,"g");function XE(e){let t=[];if(typeof e=="string"){let n;for(;n=Lp.exec(e);)t.push(n[1]);Lp.lastIndex=0}return t}function oa(e,t,n){let r=`${e}`,i=r.replace(Lp,(o,s)=>{let a=t[s];return a==null&&(n.push(iP(s)),a=""),a.toString()});return i==r?e:i}var $P=/-+([a-z0-9])/g;function Xp(e){return e.replace($P,(...t)=>t[1].toUpperCase())}function HP(e,t){return e===0||t===0}function zP(e,t,n){if(n.size&&t.length){let r=t[0],i=[];if(n.forEach((o,s)=>{r.has(s)||i.push(s),r.set(s,o)}),i.length)for(let o=1;os.set(a,Jp(e,a)))}}return t}function sn(e,t,n){switch(t.type){case X.Trigger:return e.visitTrigger(t,n);case X.State:return e.visitState(t,n);case X.Transition:return e.visitTransition(t,n);case X.Sequence:return e.visitSequence(t,n);case X.Group:return e.visitGroup(t,n);case X.Animate:return e.visitAnimate(t,n);case X.Keyframes:return e.visitKeyframes(t,n);case X.Style:return e.visitStyle(t,n);case X.Reference:return e.visitReference(t,n);case X.AnimateChild:return e.visitAnimateChild(t,n);case X.AnimateRef:return e.visitAnimateRef(t,n);case X.Query:return e.visitQuery(t,n);case X.Stagger:return e.visitStagger(t,n);default:throw oP(t.type)}}function Jp(e,t){return window.getComputedStyle(e)[t]}var GP=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"]),RE=class extends xp{normalizePropertyName(t,n){return Xp(t)}normalizeStyleValue(t,n,r,i){let o="",s=r.toString().trim();if(GP.has(n)&&r!==0&&r!=="0")if(typeof r=="number")o="px";else{let a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(sP(t,r))}return s+o}};var al="*";function WP(e,t){let n=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(r=>qP(r,n,t)):n.push(e),n}function qP(e,t,n){if(e[0]==":"){let c=YP(e,n);if(typeof c=="function"){t.push(c);return}e=c}let r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(r==null||r.length<4)return n.push(yP(e)),t;let i=r[1],o=r[2],s=r[3];t.push(FE(i,s));let a=i==al&&s==al;o[0]=="<"&&!a&&t.push(FE(s,i))}function YP(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r) *"}}var tl=new Set(["true","1"]),nl=new Set(["false","0"]);function FE(e,t){let n=tl.has(e)||nl.has(e),r=tl.has(t)||nl.has(t);return(i,o)=>{let s=e==al||e==i,a=t==al||t==o;return!s&&n&&typeof i=="boolean"&&(s=i?tl.has(e):nl.has(e)),!a&&r&&typeof o=="boolean"&&(a=o?tl.has(t):nl.has(t)),s&&a}}var JE=":self",ZP=new RegExp(`s*${JE}s*,?`,"g");function ew(e,t,n,r){return new kp(e).build(t,n,r)}var LE="",kp=class{constructor(t){this._driver=t}build(t,n,r){let i=new jp(n);return this._resetContextStyleTimingState(i),sn(this,ra(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector=LE,t.collectedStyles=new Map,t.collectedStyles.set(LE,new Map),t.currentTime=0}visitTrigger(t,n){let r=n.queryCount=0,i=n.depCount=0,o=[],s=[];return t.name.charAt(0)=="@"&&n.errors.push(aP()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),a.type==X.State){let c=a,u=c.name;u.toString().split(/\s*,\s*/).forEach(l=>{c.name=l,o.push(this.visitState(c,n))}),c.name=u}else if(a.type==X.Transition){let c=this.visitTransition(a,n);r+=c.queryCount,i+=c.depCount,s.push(c)}else n.errors.push(cP())}),{type:X.Trigger,name:t.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}}visitState(t,n){let r=this.visitStyle(t.styles,n),i=t.options&&t.options.params||null;if(r.containsDynamicStyles){let o=new Set,s=i||{};r.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{XE(c).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}),o.size&&n.errors.push(uP(t.name,[...o.values()]))}return{type:X.State,name:t.name,style:r,options:i?{params:i}:null}}visitTransition(t,n){n.queryCount=0,n.depCount=0;let r=sn(this,ra(t.animation),n),i=WP(t.expr,n.errors);return{type:X.Transition,matchers:i,animation:r,queryCount:n.queryCount,depCount:n.depCount,options:Pi(t.options)}}visitSequence(t,n){return{type:X.Sequence,steps:t.steps.map(r=>sn(this,r,n)),options:Pi(t.options)}}visitGroup(t,n){let r=n.currentTime,i=0,o=t.steps.map(s=>{n.currentTime=r;let a=sn(this,s,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:X.Group,steps:o,options:Pi(t.options)}}visitAnimate(t,n){let r=JP(t.timings,n.errors);n.currentAnimateTimings=r;let i,o=t.styles?t.styles:w({});if(o.type==X.Keyframes)i=this.visitKeyframes(o,n);else{let s=t.styles,a=!1;if(!s){a=!0;let u={};r.easing&&(u.easing=r.easing),s=w(u)}n.currentTime+=r.duration+r.delay;let c=this.visitStyle(s,n);c.isEmptyStep=a,i=c}return n.currentAnimateTimings=null,{type:X.Animate,timings:r,style:i,options:null}}visitStyle(t,n){let r=this._makeStyleAst(t,n);return this._validateStyleAst(r,n),r}_makeStyleAst(t,n){let r=[],i=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of i)typeof a=="string"?a===tr?r.push(a):n.errors.push(lP(a)):r.push(new Map(Object.entries(a)));let o=!1,s=null;return r.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(KE)>=0){o=!0;break}}}),{type:X.Style,styles:r,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,n){let r=n.currentAnimateTimings,i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let u=n.collectedStyles.get(n.currentQuerySelector),l=u.get(c),d=!0;l&&(o!=i&&o>=l.startTime&&i<=l.endTime&&(n.errors.push(dP(c,l.startTime,l.endTime,o,i)),d=!1),o=l.startTime),d&&u.set(c,{startTime:o,endTime:i}),n.options&&BP(a,n.options,n.errors)})})}visitKeyframes(t,n){let r={type:X.Keyframes,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(fP()),r;let i=1,o=0,s=[],a=!1,c=!1,u=0,l=t.steps.map(x=>{let ge=this._makeStyleAst(x,n),ee=ge.offset!=null?ge.offset:XP(ge.styles),H=0;return ee!=null&&(o++,H=ge.offset=ee),c=c||H<0||H>1,a=a||H0&&o{let ee=f>0?ge==m?1:f*ge:s[ge],H=ee*N;n.currentTime=v+_.delay+H,_.duration=H,this._validateStyleAst(x,n),x.offset=ee,r.styles.push(x)}),r}visitReference(t,n){return{type:X.Reference,animation:sn(this,ra(t.animation),n),options:Pi(t.options)}}visitAnimateChild(t,n){return n.depCount++,{type:X.AnimateChild,options:Pi(t.options)}}visitAnimateRef(t,n){return{type:X.AnimateRef,animation:this.visitReference(t.animation,n),options:Pi(t.options)}}visitQuery(t,n){let r=n.currentQuerySelector,i=t.options||{};n.queryCount++,n.currentQuery=t;let[o,s]=KP(t.selector);n.currentQuerySelector=r.length?r+" "+o:o,an(n.collectedStyles,n.currentQuerySelector,new Map);let a=sn(this,ra(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:X.Query,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Pi(t.options)}}visitStagger(t,n){n.currentQuery||n.errors.push(gP());let r=t.timings==="full"?{duration:0,delay:0,easing:"full"}:sl(t.timings,n.errors,!0);return{type:X.Stagger,animation:sn(this,ra(t.animation),n),timings:r,options:null}}};function KP(e){let t=!!e.split(/\s*,\s*/).find(n=>n==JE);return t&&(e=e.replace(ZP,"")),e=e.replace(/@\*/g,ol).replace(/@\w+/g,n=>ol+"-"+n.slice(1)).replace(/:animating/g,Rp),[e,t]}function QP(e){return e?T({},e):null}var jp=class{constructor(t){this.errors=t,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 XP(e){if(typeof e=="string")return null;let t=null;if(Array.isArray(e))e.forEach(n=>{if(n instanceof Map&&n.has("offset")){let r=n;t=parseFloat(r.get("offset")),r.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let n=e;t=parseFloat(n.get("offset")),n.delete("offset")}return t}function JP(e,t){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let o=sl(e,t).duration;return Sp(o,0,"")}let n=e;if(n.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Sp(0,0,"");return o.dynamic=!0,o.strValue=n,o}let i=sl(n,t);return Sp(i.duration,i.delay,i.easing)}function Pi(e){return e?(e=T({},e),e.params&&(e.params=QP(e.params))):e={},e}function Sp(e,t,n){return{duration:e,delay:t,easing:n}}function em(e,t,n,r,i,o,s=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}var sa=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,n){let r=this._map.get(t);r||this._map.set(t,r=[]),r.push(...n)}has(t){return this._map.has(t)}clear(){this._map.clear()}},eR=1,tR=":enter",nR=new RegExp(tR,"g"),rR=":leave",iR=new RegExp(rR,"g");function tw(e,t,n,r,i,o=new Map,s=new Map,a,c,u=[]){return new Vp().buildKeyframes(e,t,n,r,i,o,s,a,c,u)}var Vp=class{buildKeyframes(t,n,r,i,o,s,a,c,u,l=[]){u=u||new sa;let d=new Up(t,n,u,i,o,l,[]);d.options=c;let f=c.delay?Sr(c.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,c),sn(this,r,d);let m=d.timelines.filter(v=>v.containsAnimation());if(m.length&&a.size){let v;for(let _=m.length-1;_>=0;_--){let N=m[_];if(N.element===n){v=N;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([a],null,d.errors,c)}return m.length?m.map(v=>v.buildKeyframes()):[em(n,[],[],[],0,f,"",!1)]}visitTrigger(t,n){}visitState(t,n){}visitTransition(t,n){}visitAnimateChild(t,n){let r=n.subInstructions.get(n.element);if(r){let i=n.createSubContext(t.options),o=n.currentTimeline.currentTime,s=this._visitSubInstructions(r,i,i.options);o!=s&&n.transformIntoNewTimeline(s)}n.previousNode=t}visitAnimateRef(t,n){let r=n.createSubContext(t.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],n,r),this.visitReference(t.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=t}_applyAnimationRefDelays(t,n,r){for(let i of t){let o=i==null?void 0:i.delay;if(o){let s=typeof o=="number"?o:Sr(oa(o,(i==null?void 0:i.params)??{},n.errors));r.delayNextStep(s)}}}_visitSubInstructions(t,n,r){let o=n.currentTimeline.currentTime,s=r.duration!=null?Sr(r.duration):null,a=r.delay!=null?Sr(r.delay):null;return s!==0&&t.forEach(c=>{let u=n.appendInstructionToTimeline(c,s,a);o=Math.max(o,u.duration+u.delay)}),o}visitReference(t,n){n.updateOptions(t.options,!0),sn(this,t.animation,n),n.previousNode=t}visitSequence(t,n){let r=n.subContextCount,i=n,o=t.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),o.delay!=null)){i.previousNode.type==X.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=cl);let s=Sr(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>sn(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=t}visitGroup(t,n){let r=[],i=n.currentTimeline.currentTime,o=t.options&&t.options.delay?Sr(t.options.delay):0;t.steps.forEach(s=>{let a=n.createSubContext(t.options);o&&a.delayNextStep(o),sn(this,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(s=>n.currentTimeline.mergeTimelineCollectedStyles(s)),n.transformIntoNewTimeline(i),n.previousNode=t}_visitTiming(t,n){if(t.dynamic){let r=t.strValue,i=n.params?oa(r,n.params,n.errors):r;return sl(i,n.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,n){let r=n.currentAnimateTimings=this._visitTiming(t.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());let o=t.style;o.type==X.Keyframes?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t}visitStyle(t,n){let r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.hasCurrentStyleProperties()&&r.forwardFrame();let o=i&&i.easing||t.easing;t.isEmptyStep?r.applyEmptyStep(o):r.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t}visitKeyframes(t,n){let r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,t.styles.forEach(c=>{let u=c.offset||0;a.forwardTime(u*o),a.setStyles(c.styles,c.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+o),n.previousNode=t}visitQuery(t,n){let r=n.currentTimeline.currentTime,i=t.options||{},o=i.delay?Sr(i.delay):0;o&&(n.previousNode.type===X.Style||r==0&&n.currentTimeline.hasCurrentStyleProperties())&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=cl);let s=r,a=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let c=null;a.forEach((u,l)=>{n.currentQueryIndex=l;let d=n.createSubContext(t.options,u);o&&d.delayNextStep(o),u===n.element&&(c=d.currentTimeline),sn(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe();let f=d.currentTimeline.currentTime;s=Math.max(s,f)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(s),c&&(n.currentTimeline.mergeTimelineCollectedStyles(c),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t}visitStagger(t,n){let r=n.parentContext,i=n.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(n.currentQueryTotal-1),c=s*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime;break}let l=n.currentTimeline;c&&l.delayNextStep(c);let d=l.currentTime;sn(this,t.animation,n),n.previousNode=t,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}},cl={},Up=class e{constructor(t,n,r,i,o,s,a,c){this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new ul(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,n){if(!t)return;let r=t,i=this.options;r.duration!=null&&(i.duration=Sr(r.duration)),r.delay!=null&&(i.delay=Sr(r.delay));let o=r.params;if(o){let s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!n||!s.hasOwnProperty(a))&&(s[a]=oa(o[a],s,this.errors))})}}_copyOptions(){let t={};if(this.options){let n=this.options.params;if(n){let r=t.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return t}createSubContext(t=null,n,r){let i=n||this.element,o=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=cl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,n,r){let i={duration:n??t.duration,delay:this.currentTimeline.currentTime+(r??0)+t.delay,easing:""},o=new Bp(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,n,r,i,o,s){let a=[];if(i&&a.push(this.element),t.length>0){t=t.replace(nR,"."+this._enterClassName),t=t.replace(iR,"."+this._leaveClassName);let c=r!=1,u=this._driver.query(this.element,t,c);r!==0&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!o&&a.length==0&&s.push(vP(n)),a}},ul=class e{constructor(t,n,r,i){this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this.easing=null,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,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(t){let n=this._keyframes.size===1&&this._pendingStyles.size;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||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+=eR,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,n){this._localTimelineStyles.set(t,n),this._globalTimelineStyles.set(t,n),this._styleSummary.set(t,{time:this.currentTime,value:n})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[n,r]of this._globalTimelineStyles)this._backFill.set(n,r||tr),this._currentKeyframe.set(n,tr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,n,r,i){n&&this._previousKeyframe.set("easing",n);let o=i&&i.params||{},s=oR(t,this._globalTimelineStyles);for(let[a,c]of s){let u=oa(c,o,r);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??tr),this._updateStyle(a,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,n)=>{this._currentKeyframe.set(n,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,n)=>{this._currentKeyframe.has(n)||this._currentKeyframe.set(n,t)}))}snapshotCurrentStyles(){for(let[t,n]of this._localTimelineStyles)this._pendingStyles.set(t,n),this._updateStyle(t,n)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let n in this._currentKeyframe)t.push(n);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((n,r)=>{let i=this._styleSummary.get(r);(!i||n.time>i.time)&&this._updateStyle(r,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,n=new Set,r=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,c)=>{let u=new Map([...this._backFill,...a]);u.forEach((l,d)=>{l===Gu?t.add(d):l===tr&&n.add(d)}),r||u.set("offset",c/this.duration),i.push(u)});let o=[...t.values()],s=[...n.values()];if(r){let a=i[0],c=new Map(a);a.set("offset",0),c.set("offset",1),i=[a,c]}return em(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)}},Bp=class extends ul{constructor(t,n,r,i,o,s,a=!1){super(t,n,s.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){let o=[],s=r+n,a=n/s,c=new Map(t[0]);c.set("offset",0),o.push(c);let u=new Map(t[0]);u.set("offset",kE(a)),o.push(u);let l=t.length-1;for(let d=1;d<=l;d++){let f=new Map(t[d]),m=f.get("offset"),v=n+m*r;f.set("offset",kE(v/s)),o.push(f)}r=s,n=0,i="",t=o}return em(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}};function kE(e,t=3){let n=Math.pow(10,t-1);return Math.round(e*n)/n}function oR(e,t){let n=new Map,r;return e.forEach(i=>{if(i==="*"){r??(r=t.keys());for(let o of r)n.set(o,tr)}else for(let[o,s]of i)n.set(o,s)}),n}function jE(e,t,n,r,i,o,s,a,c,u,l,d,f){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:d,errors:f}}var Tp={},ll=class{constructor(t,n,r){this._triggerName=t,this.ast=n,this._stateStyles=r}match(t,n,r,i){return sR(this.ast.matchers,t,n,r,i)}buildStyles(t,n,r){let i=this._stateStyles.get("*");return t!==void 0&&(i=this._stateStyles.get(t==null?void 0:t.toString())||i),i?i.buildStyles(n,r):new Map}build(t,n,r,i,o,s,a,c,u,l){var ct;let d=[],f=this.ast.options&&this.ast.options.params||Tp,m=a&&a.params||Tp,v=this.buildStyles(r,m,d),_=c&&c.params||Tp,N=this.buildStyles(i,_,d),x=new Set,ge=new Map,ee=new Map,H=i==="void",Et={params:nw(_,f),delay:(ct=this.ast.options)==null?void 0:ct.delay},nt=l?[]:tw(t,n,this.ast.animation,o,s,v,N,Et,u,d),de=0;return nt.forEach(B=>{de=Math.max(B.duration+B.delay,de)}),d.length?jE(n,this._triggerName,r,i,H,v,N,[],[],ge,ee,de,d):(nt.forEach(B=>{let Kt=B.element,ln=an(ge,Kt,new Set);B.preStyleProps.forEach(jn=>ln.add(jn));let kn=an(ee,Kt,new Set);B.postStyleProps.forEach(jn=>kn.add(jn)),Kt!==n&&x.add(Kt)}),jE(n,this._triggerName,r,i,H,v,N,nt,[...x.values()],ge,ee,de))}};function sR(e,t,n,r,i){return e.some(o=>o(t,n,r,i))}function nw(e,t){let n=T({},t);return Object.entries(e).forEach(([r,i])=>{i!=null&&(n[r]=i)}),n}var $p=class{constructor(t,n,r){this.styles=t,this.defaultParams=n,this.normalizer=r}buildStyles(t,n){let r=new Map,i=nw(t,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=oa(s,i,n));let c=this.normalizer.normalizePropertyName(a,n);s=this.normalizer.normalizeStyleValue(a,c,s,n),r.set(a,s)})}),r}};function aR(e,t,n){return new Hp(e,t,n)}var Hp=class{constructor(t,n,r){this.name=t,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states=new Map,n.states.forEach(i=>{let o=i.options&&i.options.params||{};this.states.set(i.name,new $p(i.style,o,r))}),VE(this.states,"true","1"),VE(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new ll(t,i,this.states))}),this.fallbackTransition=cR(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,n,r,i){return this.transitionFactories.find(s=>s.match(t,n,r,i))||null}matchStyles(t,n,r){return this.fallbackTransition.buildStyles(t,n,r)}};function cR(e,t,n){let r=[(s,a)=>!0],i={type:X.Sequence,steps:[],options:null},o={type:X.Transition,animation:i,matchers:r,options:null,queryCount:0,depCount:0};return new ll(e,o,t)}function VE(e,t,n){e.has(t)?e.has(n)||e.set(n,e.get(t)):e.has(n)&&e.set(t,e.get(n))}var uR=new sa,zp=class{constructor(t,n,r){this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,n){let r=[],i=[],o=ew(this._driver,n,r,i);if(r.length)throw wP(r);i.length&&void 0,this._animations.set(t,o)}_buildPlayer(t,n,r){let i=t.element,o=qE(this._normalizer,t.keyframes,n,r);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)}create(t,n,r={}){let i=[],o=this._animations.get(t),s,a=new Map;if(o?(s=tw(this._driver,n,o,QE,Pp,new Map,new Map,r,uR,i),s.forEach(l=>{let d=an(a,l.element,new Map);l.postStyleProps.forEach(f=>d.set(f,null))})):(i.push(bP()),s=[]),i.length)throw IP(i);a.forEach((l,d)=>{l.forEach((f,m)=>{l.set(m,this._driver.computeStyle(d,m,tr))})});let c=s.map(l=>{let d=a.get(l.element);return this._buildPlayer(l,new Map,d)}),u=Gr(c);return this._playersById.set(t,u),u.onDestroy(()=>this.destroy(t)),this.players.push(u),u}destroy(t){let n=this._getPlayer(t);n.destroy(),this._playersById.delete(t);let r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(t){let n=this._playersById.get(t);if(!n)throw CP(t);return n}listen(t,n,r,i){let o=Kp(n,"","","");return Zp(this._getPlayer(t),r,o,i),()=>{}}command(t,n,r,i){if(r=="register"){this.register(t,i[0]);return}if(r=="create"){let s=i[0]||{};this.create(t,n,s);return}let o=this._getPlayer(t);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t);break}}},UE="ng-animate-queued",lR=".ng-animate-queued",Ap="ng-animate-disabled",dR=".ng-animate-disabled",fR="ng-star-inserted",hR=".ng-star-inserted",pR=[],rw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},mR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ln="__ng_removed",aa=class{get params(){return this.options.params}constructor(t,n=""){this.namespaceId=n;let r=t&&t.hasOwnProperty("value"),i=r?t.value:t;if(this.value=vR(i),r){let o=t,{value:s}=o,a=za(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let n=t.params;if(n){let r=this.options.params;Object.keys(n).forEach(i=>{r[i]==null&&(r[i]=n[i])})}}},ia="void",Op=new aa(ia),Gp=class{constructor(t,n,r){this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,_n(n,this._hostClassName)}listen(t,n,r,i){if(!this._triggers.has(n))throw MP(r,n);if(r==null||r.length==0)throw SP(n);if(!yR(r))throw TP(r,n);let o=an(this._elementListeners,t,[]),s={name:n,phase:r,callback:i};o.push(s);let a=an(this._engine.statesByElement,t,new Map);return a.has(n)||(_n(t,el),_n(t,el+"-"+n),a.set(n,Op)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(n)||a.delete(n)})}}register(t,n){return this._triggers.has(t)?!1:(this._triggers.set(t,n),!0)}_getTrigger(t){let n=this._triggers.get(t);if(!n)throw AP(t);return n}trigger(t,n,r,i=!0){let o=this._getTrigger(n),s=new ca(this.id,n,t),a=this._engine.statesByElement.get(t);a||(_n(t,el),_n(t,el+"-"+n),this._engine.statesByElement.set(t,a=new Map));let c=a.get(n),u=new aa(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&u.absorbOptions(c.options),a.set(n,u),c||(c=Op),!(u.value===ia)&&c.value===u.value){if(!ER(c.params,u.params)){let _=[],N=o.matchStyles(c.value,c.params,_),x=o.matchStyles(u.value,u.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{Ri(t,N),ir(t,x)})}return}let f=an(this._engine.playersByElement,t,[]);f.forEach(_=>{_.namespaceId==this.id&&_.triggerName==n&&_.queued&&_.destroy()});let m=o.matchTransition(c.value,u.value,t,u.params),v=!1;if(!m){if(!i)return;m=o.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:m,fromState:c,toState:u,player:s,isFallbackTransition:v}),v||(_n(t,UE),s.onStart(()=>{Uo(t,UE)})),s.onDone(()=>{let _=this.players.indexOf(s);_>=0&&this.players.splice(_,1);let N=this._engine.playersByElement.get(t);if(N){let x=N.indexOf(s);x>=0&&N.splice(x,1)}}),this.players.push(s),f.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(n=>n.delete(t)),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let n=this._engine.playersByElement.get(t);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,n){let r=this._engine.driver.query(t,ol,!0);r.forEach(i=>{if(i[Ln])return;let o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(s=>s.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(t,n,r,i){let o=this._engine.statesByElement.get(t),s=new Map;if(o){let a=[];if(o.forEach((c,u)=>{if(s.set(u,c.value),this._triggers.has(u)){let l=this.trigger(t,u,ia,i);l&&a.push(l)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,n,s),r&&Gr(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let n=this._elementListeners.get(t),r=this._engine.statesByElement.get(t);if(n&&r){let i=new Set;n.forEach(o=>{let s=o.name;if(i.has(s))return;i.add(s);let c=this._triggers.get(s).fallbackTransition,u=r.get(s)||Op,l=new aa(ia),d=new ca(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:c,fromState:u,toState:l,player:d,isFallbackTransition:!0})})}}removeNode(t,n){let r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n),this.triggerLeaveAnimation(t,n,!0))return;let i=!1;if(r.totalAnimations){let o=r.players.length?r.playersByQueriedElement.get(t):[];if(o&&o.length)i=!0;else{let s=t;for(;s=s.parentNode;)if(r.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,n);else{let o=t[Ln];(!o||o===rw)&&(r.afterFlush(()=>this.clearElementCache(t)),r.destroyInnerAnimations(t),r._onRemovalComplete(t,n))}}insertNode(t,n){_n(t,this._hostClassName)}drainQueuedTransitions(t){let n=[];return this._queue.forEach(r=>{let i=r.player;if(i.destroyed)return;let o=r.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==r.triggerName){let c=Kp(o,r.triggerName,r.fromState.value,r.toState.value);c._data=t,Zp(r.player,a.phase,c,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{let o=r.transition.ast.depCount,s=i.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(t){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},Wp=class{_onRemovalComplete(t,n){this.onRemovalComplete(t,n)}constructor(t,n,r,i){this.bodyNode=t,this.driver=n,this._normalizer=r,this.scheduler=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,s)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&t.push(r)})}),t}createNamespace(t,n){let r=new Gp(t,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[t]=r}_balanceNamespaceList(t,n){let r=this._namespaceList,i=this.namespacesByHostElement;if(r.length-1>=0){let s=!1,a=this.driver.getParentElement(n);for(;a;){let c=i.get(a);if(c){let u=r.indexOf(c);r.splice(u+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||r.unshift(t)}else r.push(t);return i.set(n,t),t}register(t,n){let r=this._namespaceLookup[t];return r||(r=this.createNamespace(t,n)),r}registerTrigger(t,n,r){let i=this._namespaceLookup[t];i&&i.register(n,r)&&this.totalAnimations++}destroy(t,n){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let r=this._fetchNamespace(t);this.namespacesByHostElement.delete(r.hostElement);let i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1),r.destroy(n),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let n=new Set,r=this.statesByElement.get(t);if(r){for(let i of r.values())if(i.namespaceId){let o=this._fetchNamespace(i.namespaceId);o&&n.add(o)}}return n}trigger(t,n,r,i){if(rl(n)){let o=this._fetchNamespace(t);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(t,n,r,i){if(!rl(n))return;let o=n[Ln];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(n);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){let s=this._fetchNamespace(t);s&&s.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),_n(t,Ap)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Uo(t,Ap))}removeNode(t,n,r){var i;if(rl(n)){(i=this.scheduler)==null||i.notify();let o=t?this._fetchNamespace(t):null;o?o.removeNode(n,r):this.markElementAsRemoved(t,n,!1,r);let s=this.namespacesByHostElement.get(n);s&&s.id!==t&&s.removeNode(n,r)}else this._onRemovalComplete(n,r)}markElementAsRemoved(t,n,r,i,o){this.collectedLeaveElements.push(n),n[Ln]={namespaceId:t,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,n,r,i,o){return rl(n)?this._fetchNamespace(t).listen(n,r,i,o):()=>{}}_buildInstruction(t,n,r,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,r,i,t.fromState.options,t.toState.options,n,o)}destroyInnerAnimations(t){let n=this.driver.query(t,ol,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),this.playersByQueriedElement.size!=0&&(n=this.driver.query(t,Rp,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(t){let n=this.playersByElement.get(t);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(t){let n=this.playersByQueriedElement.get(t);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Gr(this.players).onDone(()=>t());t()})}processLeaveNode(t){var r;let n=t[Ln];if(n&&n.setForRemoval){if(t[Ln]=rw,n.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}(r=t.classList)!=null&&r.contains(Ap)&&this.markElementAsDisabled(t,!1),this.driver.query(t,dR,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){let r=this._whenQuietFns;this._whenQuietFns=[],n.length?Gr(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(t){throw OP(t)}_flushAnimations(t,n){let r=new sa,i=[],o=new Map,s=[],a=new Map,c=new Map,u=new Map,l=new Set;this.disabledNodes.forEach(O=>{l.add(O);let F=this.driver.query(O,lR,!0);for(let U=0;U{let U=QE+_++;v.set(F,U),O.forEach(ve=>_n(ve,U))});let N=[],x=new Set,ge=new Set;for(let O=0;Ox.add(ve)):ge.add(F))}let ee=new Map,H=HE(f,Array.from(x));H.forEach((O,F)=>{let U=Pp+_++;ee.set(F,U),O.forEach(ve=>_n(ve,U))}),t.push(()=>{m.forEach((O,F)=>{let U=v.get(F);O.forEach(ve=>Uo(ve,U))}),H.forEach((O,F)=>{let U=ee.get(F);O.forEach(ve=>Uo(ve,U))}),N.forEach(O=>{this.processLeaveNode(O)})});let Et=[],nt=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(n).forEach(U=>{let ve=U.player,rt=U.element;if(Et.push(ve),this.collectedEnterElements.length){let ht=rt[Ln];if(ht&&ht.setForMove){if(ht.previousTriggersValues&&ht.previousTriggersValues.has(U.triggerName)){let ar=ht.previousTriggersValues.get(U.triggerName),At=this.statesByElement.get(U.element);if(At&&At.has(U.triggerName)){let $i=At.get(U.triggerName);$i.value=ar,At.set(U.triggerName,$i)}}ve.destroy();return}}let jt=!d||!this.driver.containsElement(d,rt),Ct=ee.get(rt),Qt=v.get(rt),$e=this._buildInstruction(U,r,Qt,Ct,jt);if($e.errors&&$e.errors.length){nt.push($e);return}if(jt){ve.onStart(()=>Ri(rt,$e.fromStyles)),ve.onDestroy(()=>ir(rt,$e.toStyles)),i.push(ve);return}if(U.isFallbackTransition){ve.onStart(()=>Ri(rt,$e.fromStyles)),ve.onDestroy(()=>ir(rt,$e.toStyles)),i.push(ve);return}let Fa=[];$e.timelines.forEach(ht=>{ht.stretchStartingKeyframe=!0,this.disabledNodes.has(ht.element)||Fa.push(ht)}),$e.timelines=Fa,r.append(rt,$e.timelines);let ql={instruction:$e,player:ve,element:rt};s.push(ql),$e.queriedElements.forEach(ht=>an(a,ht,[]).push(ve)),$e.preStyleProps.forEach((ht,ar)=>{if(ht.size){let At=c.get(ar);At||c.set(ar,At=new Set),ht.forEach(($i,ts)=>At.add(ts))}}),$e.postStyleProps.forEach((ht,ar)=>{let At=u.get(ar);At||u.set(ar,At=new Set),ht.forEach(($i,ts)=>At.add(ts))})});if(nt.length){let O=[];nt.forEach(F=>{O.push(NP(F.triggerName,F.errors))}),Et.forEach(F=>F.destroy()),this.reportError(O)}let de=new Map,ct=new Map;s.forEach(O=>{let F=O.element;r.has(F)&&(ct.set(F,F),this._beforeAnimationBuild(O.player.namespaceId,O.instruction,de))}),i.forEach(O=>{let F=O.element;this._getPreviousPlayers(F,!1,O.namespaceId,O.triggerName,null).forEach(ve=>{an(de,F,[]).push(ve),ve.destroy()})});let B=N.filter(O=>zE(O,c,u)),Kt=new Map;$E(Kt,this.driver,ge,u,tr).forEach(O=>{zE(O,c,u)&&B.push(O)});let kn=new Map;m.forEach((O,F)=>{$E(kn,this.driver,new Set(O),c,Gu)}),B.forEach(O=>{let F=Kt.get(O),U=kn.get(O);Kt.set(O,new Map([...(F==null?void 0:F.entries())??[],...(U==null?void 0:U.entries())??[]]))});let jn=[],Ui=[],Bi={};s.forEach(O=>{let{element:F,player:U,instruction:ve}=O;if(r.has(F)){if(l.has(F)){U.onDestroy(()=>ir(F,ve.toStyles)),U.disabled=!0,U.overrideTotalTime(ve.totalTime),i.push(U);return}let rt=Bi;if(ct.size>1){let Ct=F,Qt=[];for(;Ct=Ct.parentNode;){let $e=ct.get(Ct);if($e){rt=$e;break}Qt.push(Ct)}Qt.forEach($e=>ct.set($e,rt))}let jt=this._buildAnimation(U.namespaceId,ve,de,o,kn,Kt);if(U.setRealPlayer(jt),rt===Bi)jn.push(U);else{let Ct=this.playersByElement.get(rt);Ct&&Ct.length&&(U.parentPlayer=Gr(Ct)),i.push(U)}}else Ri(F,ve.fromStyles),U.onDestroy(()=>ir(F,ve.toStyles)),Ui.push(U),l.has(F)&&i.push(U)}),Ui.forEach(O=>{let F=o.get(O.element);if(F&&F.length){let U=Gr(F);O.setRealPlayer(U)}}),i.forEach(O=>{O.parentPlayer?O.syncPlayerEvents(O.parentPlayer):O.destroy()});for(let O=0;O!jt.destroyed);rt.length?_R(this,F,rt):this.processLeaveNode(F)}return N.length=0,jn.forEach(O=>{this.players.push(O),O.onDone(()=>{O.destroy();let F=this.players.indexOf(O);this.players.splice(F,1)}),O.play()}),jn}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,n,r,i,o){let s=[];if(n){let a=this.playersByQueriedElement.get(t);a&&(s=a)}else{let a=this.playersByElement.get(t);if(a){let c=!o||o==ia;a.forEach(u=>{u.queued||!c&&u.triggerName!=i||s.push(u)})}}return(r||i)&&(s=s.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),s}_beforeAnimationBuild(t,n,r){let i=n.triggerName,o=n.element,s=n.isRemovalTransition?void 0:t,a=n.isRemovalTransition?void 0:i;for(let c of n.timelines){let u=c.element,l=u!==o,d=an(r,u,[]);this._getPreviousPlayers(u,l,s,a,n.toState).forEach(m=>{let v=m.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),m.destroy(),d.push(m)})}Ri(o,n.fromStyles)}_buildAnimation(t,n,r,i,o,s){let a=n.triggerName,c=n.element,u=[],l=new Set,d=new Set,f=n.timelines.map(v=>{let _=v.element;l.add(_);let N=_[Ln];if(N&&N.removedBeforeQueried)return new Ur(v.duration,v.delay);let x=_!==c,ge=DR((r.get(_)||pR).map(de=>de.getRealPlayer())).filter(de=>{let ct=de;return ct.element?ct.element===_:!1}),ee=o.get(_),H=s.get(_),Et=qE(this._normalizer,v.keyframes,ee,H),nt=this._buildPlayer(v,Et,ge);if(v.subTimeline&&i&&d.add(_),x){let de=new ca(t,a,_);de.setRealPlayer(nt),u.push(de)}return nt});u.forEach(v=>{an(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>gR(this.playersByQueriedElement,v.element,v))}),l.forEach(v=>_n(v,PE));let m=Gr(f);return m.onDestroy(()=>{l.forEach(v=>Uo(v,PE)),ir(c,n.toStyles)}),d.forEach(v=>{an(i,v,[]).push(m)}),m}_buildPlayer(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new Ur(t.duration,t.delay)}},ca=class{constructor(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new Ur,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((n,r)=>{n.forEach(i=>Zp(t,r,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let n=this._player;n.triggerCallback&&t.onStart(()=>n.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,n){an(this._queuedCallbacks,t,[]).push(n)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let n=this._player;n.triggerCallback&&n.triggerCallback(t)}};function gR(e,t,n){let r=e.get(t);if(r){if(r.length){let i=r.indexOf(n);r.splice(i,1)}r.length==0&&e.delete(t)}return r}function vR(e){return e??null}function rl(e){return e&&e.nodeType===1}function yR(e){return e=="start"||e=="done"}function BE(e,t){let n=e.style.display;return e.style.display=t??"none",n}function $E(e,t,n,r,i){let o=[];n.forEach(c=>o.push(BE(c)));let s=[];r.forEach((c,u)=>{let l=new Map;c.forEach(d=>{let f=t.computeStyle(u,d,i);l.set(d,f),(!f||f.length==0)&&(u[Ln]=mR,s.push(u))}),e.set(u,l)});let a=0;return n.forEach(c=>BE(c,o[a++])),s}function HE(e,t){let n=new Map;if(e.forEach(a=>n.set(a,[])),t.length==0)return n;let r=1,i=new Set(t),o=new Map;function s(a){if(!a)return r;let c=o.get(a);if(c)return c;let u=a.parentNode;return n.has(u)?c=u:i.has(u)?c=r:c=s(u),o.set(a,c),c}return t.forEach(a=>{let c=s(a);c!==r&&n.get(c).push(a)}),n}function _n(e,t){var n;(n=e.classList)==null||n.add(t)}function Uo(e,t){var n;(n=e.classList)==null||n.remove(t)}function _R(e,t,n){Gr(n).onDone(()=>e.processLeaveNode(t))}function DR(e){let t=[];return iw(e,t),t}function iw(e,t){for(let n=0;ni.add(o)):t.set(e,r),n.delete(e),!0}var dl=class{constructor(t,n,r,i){this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Wp(t.body,n,r,i),this._timelineEngine=new zp(t.body,n,r),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(t,n,r,i,o){let s=t+"-"+i,a=this._triggerCache[s];if(!a){let c=[],u=[],l=ew(this._driver,o,c,u);if(c.length)throw DP(i,c);u.length&&void 0,a=aR(i,l,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(n,i,a)}register(t,n){this._transitionEngine.register(t,n)}destroy(t,n){this._transitionEngine.destroy(t,n)}onInsert(t,n,r,i){this._transitionEngine.insertNode(t,n,r,i)}onRemove(t,n,r){this._transitionEngine.removeNode(t,n,r)}disableAnimations(t,n){this._transitionEngine.markElementAsDisabled(t,n)}process(t,n,r,i){if(r.charAt(0)=="@"){let[o,s]=OE(r),a=i;this._timelineEngine.command(o,n,s,a)}else this._transitionEngine.trigger(t,n,r,i)}listen(t,n,r,i,o){if(r.charAt(0)=="@"){let[s,a]=OE(r);return this._timelineEngine.listen(s,n,a,o)}return this._transitionEngine.listen(t,n,r,i,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function wR(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=Np(t[0]),t.length>1&&(r=Np(t[t.length-1]))):t instanceof Map&&(n=Np(t)),n||r?new qp(e,n,r):null}var Bo=class Bo{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let i=Bo.initialStylesByElement.get(t);i||Bo.initialStylesByElement.set(t,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ir(this._element,this._initialStyles),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Bo.initialStylesByElement.delete(this._element),this._startStyles&&(Ri(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ri(this._element,this._endStyles),this._endStyles=null),ir(this._element,this._initialStyles),this._state=3)}};Bo.initialStylesByElement=new WeakMap;var qp=Bo;function Np(e){let t=null;return e.forEach((n,r)=>{bR(r)&&(t=t||new Map,t.set(r,n))}),t}function bR(e){return e==="display"||e==="position"}var fl=class{constructor(t,n,r,i){this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let n=()=>this._onFinish();this.domPlayer.addEventListener("finish",n),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",n)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let n=[];return t.forEach(r=>{n.push(Object.fromEntries(r))}),n}_triggerWebAnimation(t,n,r){return t.animate(this._convertKeyframesToObject(n),r)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,i)=>{i!=="offset"&&t.set(i,this._finished?r:Jp(this.element,i))}),this.currentSnapshot=t}triggerCallback(t){let n=t==="start"?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}},GE=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,n){return!1}containsElement(t,n){return YE(t,n)}getParentElement(t){return Qp(t)}query(t,n,r){return ZE(t,n,r)}computeStyle(t,n,r){return Jp(t,n)}animate(t,n,r,i,o,s=[]){let a=i==0?"both":"forwards",c={duration:r,delay:i,fill:a};o&&(c.easing=o);let u=new Map,l=s.filter(m=>m instanceof fl);HP(r,i)&&l.forEach(m=>{m.currentSnapshot.forEach((v,_)=>u.set(_,v))});let d=UP(n).map(m=>new Map(m));d=zP(t,d,u);let f=wR(t,d);return new fl(t,d,c,f)}};var il="@",ow="@.disabled",hl=class{constructor(t,n,r,i){this.namespaceId=t,this.delegate=n,this.engine=r,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){var n,r;(r=(n=this.delegate).destroyNode)==null||r.call(n,t)}destroy(){var t;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),(t=this._onDestroy)==null||t.call(this)}createElement(t,n){return this.delegate.createElement(t,n)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,n){this.delegate.appendChild(t,n),this.engine.onInsert(this.namespaceId,n,t,!1)}insertBefore(t,n,r,i=!0){this.delegate.insertBefore(t,n,r),this.engine.onInsert(this.namespaceId,n,t,i)}removeChild(t,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate)}selectRootElement(t,n){return this.delegate.selectRootElement(t,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,n,r,i){this.delegate.setAttribute(t,n,r,i)}removeAttribute(t,n,r){this.delegate.removeAttribute(t,n,r)}addClass(t,n){this.delegate.addClass(t,n)}removeClass(t,n){this.delegate.removeClass(t,n)}setStyle(t,n,r,i){this.delegate.setStyle(t,n,r,i)}removeStyle(t,n,r){this.delegate.removeStyle(t,n,r)}setProperty(t,n,r){n.charAt(0)==il&&n==ow?this.disableAnimations(t,!!r):this.delegate.setProperty(t,n,r)}setValue(t,n){this.delegate.setValue(t,n)}listen(t,n,r){return this.delegate.listen(t,n,r)}disableAnimations(t,n){this.engine.disableAnimations(t,n)}},Yp=class extends hl{constructor(t,n,r,i,o){super(n,r,i,o),this.factory=t,this.namespaceId=n}setProperty(t,n,r){n.charAt(0)==il?n.charAt(1)=="."&&n==ow?(r=r===void 0?!0:!!r,this.disableAnimations(t,r)):this.engine.process(this.namespaceId,t,n.slice(1),r):this.delegate.setProperty(t,n,r)}listen(t,n,r){if(n.charAt(0)==il){let i=IR(t),o=n.slice(1),s="";return o.charAt(0)!=il&&([o,s]=CR(o)),this.engine.listen(this.namespaceId,i,o,s,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,r,a)})}return this.delegate.listen(t,n,r)}};function IR(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function CR(e){let t=e.indexOf("."),n=e.substring(0,t),r=e.slice(t+1);return[n,r]}var WE=class{constructor(t,n,r){this.delegate=t,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(i,o)=>{let s=o==null?void 0:o.parentNode(i);s&&o.removeChild(s,i)}}createRenderer(t,n){var u;let r="",i=this.delegate.createRenderer(t,n);if(!t||!((u=n==null?void 0:n.data)!=null&&u.animation)){let l=this._rendererCache,d=l.get(i);if(!d){let f=()=>l.delete(i);d=new hl(r,i,this.engine,f),l.set(i,d)}return d}let o=n.id,s=n.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,t,l.name,l)};return n.data.animation.forEach(a),new Yp(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,n,r){if(t>=0&&tn(r));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),i.push([n,r])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var MR=se(()=>{let e={onRemovalComplete:()=>{}},t=new We(null),n=g(dl,ue.Optional)||e,{onRemovalComplete:r=e.onRemovalComplete}=n;return n.onRemovalComplete=(i,o)=>{t.next(i),r.call(n,i,o)},t.pipe(ce(i=>vt(0).pipe(b(()=>null),Ce(i))),Ht())});function sw(e,t=null){return ko(e).activeElement!==e&&!e.matches(":disabled")&&!(t!=null&&t.contains(e))}function SR(e){return Ue(J(e,"focusin").pipe(b(({target:t})=>t)),J(e,"focusout").pipe(Ie(({target:t,relatedTarget:n})=>!!n&&sw(t)),b(({relatedTarget:t})=>t)))}var aw=se(()=>{let e=g(MR),t=g(pe),n=g(he),r=J(t,"focusout"),i=J(t,"focusin"),o=J(t,"blur"),s=J(t,"mousedown"),a=J(t,"mouseup");return Ue(r.pipe(Ae(s),Od(()=>a),ms(e),Ie(([c,u])=>sw($r(c),u)),b(([{relatedTarget:c}])=>c)),o.pipe(b(()=>n.activeElement),Ie(c=>!!(c!=null&&c.matches("iframe")))),i.pipe(ce(c=>{let u=$r(c),l=ko(u);return l===n?S(u):SR(l).pipe(Ce(u))})),s.pipe(ce(c=>{let u=$r(c);return!n.activeElement||n.activeElement===n.body?S(u):r.pipe(Qe(1),b(()=>u),Ae(vt(0)))}))).pipe(qe(),Ht())}),cw=Te([]);var uw=se(()=>{var e,t;return(t=(e=g(he).querySelector("base"))===null||e===void 0?void 0:e.href)!==null&&t!==void 0?t:""}),C4=se(()=>g(gi).createRenderer(null,null)),TR=Te([]);function lw(e){return{provide:TR,multi:!0,useExisting:e}}var M4=se(()=>{var e;let t=(e=g(he).querySelector("base"))===null||e===void 0?void 0:e.href;if(t)return t;let n=g(he).createElement("a");return n.href="",n.pathname}),ua=new E("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function pl(e){return{provide:ua,useExisting:e}}var S4=new E("[TUI_FONTS_READY]",{factory:()=>{var e;return Pe(((e=g(he).fonts)===null||e===void 0?void 0:e.ready)||xe).pipe(Jt({bufferSize:1,refCount:!1}))}}),la=se(()=>Dp(g(Po))),AR=/(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/,OR=/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-/,nm=se(()=>AR.test(g(gp).toLowerCase())||OR.test(g(gp).slice(0,4).toLowerCase())),T4=se(()=>g(nm)&&!g(la)),A4=se(()=>yE(g(Po))),O4=se(()=>!!g(pe).chrome),NR=se(()=>!!g(pe).Cypress),xR=se(Br),N4=se(()=>g(NR)||g(xR)),x4=se(()=>{var e;return typeof((e=g(pe))===null||e===void 0?void 0:e.mozCancelFullScreen)<"u"}),P4=se(()=>g(pe).location.host.endsWith("stackblitz.io")),dw=se(()=>{var e;return!!(!((e=g(pe))===null||e===void 0)&&e.webkitConvertPointFromNodeToPage)}),R4=Te("web");var F4=se(()=>p0(g(Yt))?new Range:{}),da=se(()=>new Q(g(he).documentElement)),L4=Te({timeout:500,threshold:30}),k4=se(Ro),j4=se(()=>g(pe).matchMedia("(any-pointer: coarse)").matches),rm=new E("[TUI_WINDOW_SIZE]",{factory:()=>{let e=g(pe);return J(e,"resize").pipe(Ce(null),b(()=>{var t,n;let r=Math.max(e.document.documentElement.clientWidth||0,e.innerWidth||0,((t=e.visualViewport)===null||t===void 0?void 0:t.width)||0),i=Math.max(e.document.documentElement.clientHeight||0,e.innerHeight||0,((n=e.visualViewport)===null||n===void 0?void 0:n.height)||0);return{width:r,height:i,top:0,left:0,right:r,bottom:i}}),Jt({bufferSize:1,refCount:!0}))}}),V4=se(()=>g(rm).pipe(b(({height:e})=>e))),U4=Te({wheelSensitivity:.01});var Ze=(()=>{class e extends fr{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),oq=(()=>{class e{constructor(n,r){this.resolver=n,this.injector=r,this.map=new Map}addComponent(n){this.map.has(n)||this.map.set(n,this.resolver.resolveComponentFactory(n).create(this.injector))}ngOnDestroy(){this.map.forEach(n=>n.destroy())}}return e.\u0275fac=function(n){return new(n||e)(M(Kn),M(wo))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),im=(()=>{class e extends R{constructor({nativeElement:n},r,i){super(o=>this.focusVisible$.subscribe(o)),this.focusVisible$=bE(n).pipe(SE(r),Ae(i))}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(dt),M(Ze,2))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),PR="tui_",hw=(()=>{class e{generate(){return`${PR}${e.autoId++}${Date.now()}`}}return e.autoId=0,e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),RR=(()=>{class e extends R{constructor(n,r){super(i=>this.callback$.subscribe(i)),this.callback$=Bn(()=>{let{nativeElement:i}=n,o=[r,i];for(;i.parentElement;)i=i.parentElement,o.push(i);return Ue(...o.map(s=>J(s,"scroll")))})}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(pe))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),sq=(()=>{class e extends R{constructor(n,{nativeElement:r},i,o,s,a){super(c=>this.obscured$.subscribe(c)),this.obscured$=Ue(Ue(n,$n(o,"resize")).pipe(hs(0)),a.pipe(Nr(Fo))).pipe(b(()=>qu(r)),Ce(null),qe(),rr(i),Ae(s))}}return e.\u0275fac=function(n){return new(n||e)(M(RR,2),M(Q),M(fe),M(pe),M(Ze,2),M(Rn))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var FR=300;function fw(e){return"scrollX"in e?e.scrollX:e.scrollLeft}function LR(e){return"scrollY"in e?e.scrollY:e.scrollTop}var aq=(()=>{class e{constructor(n,r){this.performanceRef=n,this.animationFrame$=r}scroll$(n,r,i=fw(n),o=FR){let s=LR(n),a=fw(n),c=r-s,u=i-a;return(o?Bn(()=>S(this.performanceRef.now())).pipe(ce(d=>this.animationFrame$.pipe(b(f=>f-d))),b(d=>dE(Mr(d/o,0,1))),b(d=>[s+c*d,a+u*d]),Ae(vt(o)),ps([r,i])):S([r,i])).pipe(Be(([d,f])=>{var m;(m=n.scrollTo)===null||m===void 0||m.call(n,f,d)}))}}return e.\u0275fac=function(n){return new(n||e)(M(eE),M(Rn))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),pw=(()=>{class e{constructor(n,r){this.win=n,this.platformId=r,this.cache=new Map}request(n){let r=this.cache.get(n);if(r)return r;let o=("AbortController"in this.win||Si(this.platformId)?Cp(n):Bn(()=>Pe(fetch(n)))).pipe(ce(s=>nc(this,void 0,void 0,function*(){if(s.ok)return s.text();throw new Error(`Failed to load ${n} (${s.statusText})`)})),Jt({bufferSize:1,refCount:!1}));return this.cache.set(n,o),o}}return e.\u0275fac=function(n){return new(n||e)(M(pe),M(Yt))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var kR=["viewContainer"],jR="tui_interactive_",sm=(()=>{class e{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new st,this.focusVisibleChange=new st,this.focusVisible=!1,this.autoIdString=`${jR}${e.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get computedFocused(){var n;return!this.computedDisabled&&((n=this.pseudoFocus)!==null&&n!==void 0?n:this.focused)}get computedFocusVisible(){var n;return!this.computedDisabled&&((n=this.pseudoFocus)!==null&&n!==void 0?n:this.focusVisible)}get id(){return this.nativeId||this.autoIdString}updateFocused(n){this.focusedChange.emit(n)}updateFocusVisible(n){this.focusVisible!==n&&(this.focusVisible=n,this.focusVisibleChange.emit(n))}}return e.autoId=0,e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=z({type:e,hostVars:7,hostBindings:function(n,r){n&2&&(lt("data-focused",r.pseudoFocus),tt("_disabled",r.computedDisabled)("_focused",r.computedFocused)("_focus-visible",r.computedFocusVisible))},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}}),e})(),om=class{},fa=(()=>{class e extends sm{constructor(n,r,i){super(),this.ngControl=n,this.cdr=r,this.valueTransformer=i,this.refresh$=new Oe,this.onTouched=yp,this.onChange=yp,this.fallbackValue=this.getFallbackValue(),this.destroy$=new Oe,this.readOnly=!1,this.pseudoInvalid=null,this.ngControl&&(this.ngControl.valueAccessor=this)}get computedInvalid(){return this.interactive&&(this.pseudoInvalid!==null?this.pseudoInvalid:this.touched&&this.invalid)}get value(){var n;return(n=this.previousInternalValue)!==null&&n!==void 0?n:this.fallbackValue}set value(n){this.updateValue(n)}get safeCurrentValue(){var n;return(n=this.rawValue)!==null&&n!==void 0?n:this.fallbackValue}get invalid(){return this.safeNgControlData(({invalid:n})=>n,!1)}get valid(){return this.safeNgControlData(({valid:n})=>n,!1)}get touched(){return this.safeNgControlData(({touched:n})=>n,!1)}get disabled(){return this.safeNgControlData(({disabled:n})=>n,!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData(({control:n})=>n,null)}get computedName(){var n,r;return(r=(n=this.controlName)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:null}get controlName(){var n,r,i;return(i=(r=(n=this.ngControl)===null||n===void 0?void 0:n.name)===null||r===void 0?void 0:r.toString())!==null&&i!==void 0?i:null}get rawValue(){let{ngControl:n}=this;if(n===null)return;let r=n instanceof zu&&this.previousInternalValue===void 0?n.viewModel:n.value;return this.fromControlValue(r)}ngOnInit(){this.refresh$.pipe(hs(0),Ce(null),b(()=>{var n;return(n=this.ngControl)===null||n===void 0?void 0:n.control}),Ie(Oi),qe(),ce(n=>Ue(n.valueChanges,n.statusChanges)),Ae(this.destroy$)).subscribe(()=>{this.refreshLocalValue(this.safeCurrentValue)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(n){this.onChange=r=>{n(this.toControlValue(r))},this.refresh$.next()}registerOnTouched(n){this.onTouched=n}setDisabledState(){this.checkControlUpdate()}writeValue(n){let r=this.ngControl instanceof zu&&this.previousInternalValue===void 0?this.ngControl.model:n;this.refreshLocalValue(this.fromControlValue(r))}updateFocused(n){n||this.controlMarkAsTouched(),super.updateFocused(n)}updateValue(n){this.disabled||this.valueIdenticalComparator(this.value,n)||(this.previousInternalValue=n,this.controlSetValue(n))}valueIdenticalComparator(n,r){return n===r}safeNgControlData(n,r){var i;return(i=this.ngControl&&n(this.ngControl))!==null&&i!==void 0?i:r}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(n){this.onChange(n),this.checkControlUpdate()}refreshLocalValue(n){this.previousInternalValue=n,this.checkControlUpdate()}fromControlValue(n){return this.valueTransformer?this.valueTransformer.fromControlValue(n):n}toControlValue(n){return this.valueTransformer?this.valueTransformer.toControlValue(n):n}}return e.\u0275fac=function(n){return new(n||e)(y(Ai,8),y(dt),y(om,8))},e.\u0275dir=z({type:e,hostVars:4,hostBindings:function(n,r){n&2&&tt("_readonly",r.readOnly)("_invalid",r.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[He]}),e})();function Cq(e){return{provide:fa,useExisting:e}}var mw=(()=>{class e{constructor(){this.change$=new Oe}ngOnChanges(){this.change$.next()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=z({type:e,features:[mn]}),e})(),ml=(()=>{class e extends R{constructor(n){super(r=>this.dialogs$.subscribe(r)),this.idService=n,this.dialogs$=new We([])}open(n,r={}){return new R(i=>{let o=a=>{i.next(a),i.complete()},s=Object.assign(Object.assign(Object.assign({},this.defaultOptions),r),{content:n,completeWith:o,$implicit:i,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(n){return new(n||e)(M(hw))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var Mq=(()=>{class e extends fa{clear(){this.value=[]}getFallbackValue(){return[]}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275dir=z({type:e,features:[He]}),e})(),Sq=(()=>{class e extends fa{getFallbackValue(){return null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275dir=z({type:e,features:[He]}),e})(),gl=(()=>{class e{get safeHost(){if(!this.host)throw new Ku;return this.host}attach(n){this.host=n}add(n){return this.safeHost.addComponentChild(n)}remove({hostView:n}){n.destroyed||n.destroy()}addTemplate(n,r){return this.safeHost.addTemplateChild(n,r)}removeTemplate(n){n.destroyed||n.destroy()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),am=(()=>{class e{constructor(n,r,i){this.injector=n,this.el=r,i.attach(this)}get clientRect(){return this.el.nativeElement.getBoundingClientRect()}addComponentChild(n){let r=n.createInjector(this.injector),o=r.get(Kn).resolveComponentFactory(n.component),s=[{provide:e,useValue:this}],a=qt.create({parent:r,providers:s}),c=this.vcr.createComponent(o,void 0,a);return c.changeDetectorRef.detectChanges(),c}addTemplateChild(n,r){return this.vcr.createEmbeddedView(n,r)}}return e.\u0275fac=function(n){return new(n||e)(y(wo),y(Q),y(gl))},e.\u0275dir=z({type:e,viewQuery:function(n,r){if(n&1&&GD(kR,5,Ft),n&2){let i;$h(i=Hh())&&(r.vcr=i.first)}}}),e})();function gw(e){return e!==null&&typeof e<"u"&&`${e}`!="false"}var Oq=(()=>{class e{transform(n,r,...i){return r(n,...i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=yi({name:"tuiMapper",type:e,pure:!0}),e})(),Nq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();function VR(e,t){if(e&1&&(De(0,"div",3),je(1,"div",4),ye()),e&2){let n=me().ngIf;tt("t-bar_has-horizontal",n[1])}}function UR(e,t){if(e&1&&(De(0,"div",5),je(1,"div",6),ye()),e&2){let n=me().ngIf;tt("t-bar_has-vertical",n[0])}}function BR(e,t){if(e&1&&(xn(0),Se(1,VR,2,2,"div",1)(2,UR,2,2,"div",2),Pn()),e&2){let n=t.ngIf;oe(),V("ngIf",n[0]),oe(),V("ngIf",n[1])}}var vl=24;function $R({clientY:e},{top:t,height:n}){return(e-t)/n}function HR({clientX:e},{left:t,width:n}){return(e-t)/n}var zR=(()=>{class e{constructor(n,r,i,o,s,a){this.container=o,this.doc=s,this.el=a,this.tuiScrollbar="vertical";let{nativeElement:c}=this.el,u=J(c,"mousedown"),l=J(this.doc,"mousemove"),d=J(this.doc,"mouseup"),f=J(this.wrapper,"mousedown");Ue(f.pipe(b(m=>this.getScrolled(m,.5,.5))),u.pipe(ce(m=>{let v=c.getBoundingClientRect(),_=$R(m,v),N=HR(m,v);return l.pipe(b(x=>this.getScrolled(x,_,N)),Ae(d))}))).pipe(nr(n),Ae(r)).subscribe(([m,v])=>{this.tuiScrollbar==="vertical"?this.element.scrollTop=m:this.element.scrollLeft=v}),Ue(i.pipe(Nr(Fo)),ME(this.element)).pipe(nr(n),Ae(r)).subscribe(()=>{this.tuiScrollbar==="vertical"?(c.style.top=`${this.thumb*100}%`,c.style.height=`${this.view*100}%`):(c.style.left=`${this.thumb*100}%`,c.style.width=`${this.view*100}%`)})}get wrapper(){return this.el.nativeElement.parentElement}get scrolled(){let{scrollTop:n,scrollHeight:r,clientHeight:i,scrollLeft:o,scrollWidth:s,clientWidth:a}=this.element;return this.tuiScrollbar==="vertical"?n/(r-i):o/(s-a)}get compensation(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.element;return n*n/r>vl&&this.tuiScrollbar==="vertical"||i*i/o>vl&&this.tuiScrollbar==="horizontal"?0:this.tuiScrollbar==="vertical"?vl/n:vl/i}get thumb(){let n=this.compensation||this.view;return this.scrolled*(1-n)}get view(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.element;return this.tuiScrollbar==="vertical"?Math.ceil(n/r*100)/100:Math.ceil(i/o*100)/100}get element(){return this.container.nativeElement}getScrolled({clientY:n,clientX:r},i,o){let{offsetHeight:s,offsetWidth:a}=this.el.nativeElement,{top:c,left:u,width:l,height:d}=this.wrapper.getBoundingClientRect(),f=this.element.scrollHeight-d,m=this.element.scrollWidth-l,v=(n-c-s*i)/(d-s),_=(r-u-a*o)/(l-a);return[f*v,m*_]}}return e.\u0275fac=function(n){return new(n||e)(y(fe),y(Ze,2),y(Rn),y(da),y(he),y(Q))},e.\u0275dir=z({type:e,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[ze([Ze])]}),e})(),Zq=(()=>{class e{constructor(n,r,i){this.zone=n,this.scrollRef=r,this.animationFrame$=i,this.refresh$=this.animationFrame$.pipe(Nr(300),b(()=>this.scrollbars),Ce([!1,!1]),qe((o,s)=>o[0]===s[0]&&o[1]===s[1]),rr(this.zone))}get scrollbars(){let{clientHeight:n,scrollHeight:r,clientWidth:i,scrollWidth:o}=this.scrollRef.nativeElement;return[Math.ceil(n/r*100)<100,Math.ceil(i/o*100)<100]}}return e.\u0275fac=function(n){return new(n||e)(y(fe),y(da),y(Rn))},e.\u0275cmp=ut({type:e,selectors:[["tui-scroll-controls"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],[1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],[1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(n,r){n&1&&(Se(0,BR,3,2,"ng-container",0),vn(1,"async")),n&2&&V("ngIf",yn(1,1,r.refresh$))},dependencies:[Lt,zR,er],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);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;-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;animation:tuiFadeIn var(--tui-duration, .3s) ease-in-out}.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%]{position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition:all var(--tui-duration, .3s) ease-in-out;transition-property:width,height,opacity;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}.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}"],changeDetection:0}),e})();var Kq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=z({type:e,selectors:[["","tuiScrollRef",""]],features:[ze([{provide:da,useExisting:Q}])]}),e})(),Qq=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({imports:[[kt]]}),e})();function GR(e){let t=[],n=!1,r;return function(...o){return n&&t.length===o.length&&o.every((a,c)=>a===t[c])||(t=o,r=e.apply(this,o),n=!0),r}}function vw(e,t,n=!0){return function(){let i=e.call(this);return Object.defineProperty(this,t,{enumerable:n,value:i}),i}}function yl(e,t,n){if(typeof e=="function"){let c=t;if(c.kind==="getter")return vw(e,c.name);if(c.kind==="method")return GR(e);throw new ta}let{get:r,enumerable:i,value:o}=n,s=t;if(r)return{configurable:!0,enumerable:i,get:vw(r,s,i)};if(typeof o!="function")throw new ta;let a=o;return{configurable:!0,enumerable:i,get(){let c=[],u=!1,l,d=(...f)=>(u&&c.length===f.length&&f.every((v,_)=>v===c[_])||(c=f,l=a.apply(this,f),u=!0),l);return Object.defineProperty(this,s,{configurable:!0,value:d}),d}}}var m8=(()=>{class e{constructor(n,r,i,o){var s;this.active$=n,this.zone=r,this.el=i,this.directParentActiveZone=o,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe(b(a=>!!a&&this.contains(a)),Ce(!1),qe(),xd(1),rr(this.zone)),(s=this.directParentActiveZone)===null||s===void 0||s.addSubActiveZone(this)}set tuiActiveZoneParentSetter(n){this.setZone(n)}ngOnDestroy(){var n,r;(n=this.directParentActiveZone)===null||n===void 0||n.removeSubActiveZone(this),(r=this.tuiActiveZoneParent)===null||r===void 0||r.removeSubActiveZone(this)}contains(n){return this.el.nativeElement.contains(n)||this.subActiveZones.some((r,i,o)=>o.indexOf(r)===i&&r.contains(n))}setZone(n){var r;(r=this.tuiActiveZoneParent)===null||r===void 0||r.removeSubActiveZone(this),n==null||n.addSubActiveZone(this),this.tuiActiveZoneParent=n}addSubActiveZone(n){this.subActiveZones=[...this.subActiveZones,n]}removeSubActiveZone(n){this.subActiveZones=lE(this.subActiveZones,this.subActiveZones.indexOf(n))}}return e.\u0275fac=function(n){return new(n||e)(y(aw),y(fe),y(Q),y(e,12))},e.\u0275dir=z({type:e,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],hostBindings:function(n,r){n&1&&Xe("mousedown.silent",function(){return 0},!1,G_)},inputs:{tuiActiveZoneParentSetter:[Ye.None,"tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"]}),tc([yl],e.prototype,"setZone",null),e})(),g8=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var yw=(()=>{class e{constructor(n,r){this.focusable=n,this.el=r}get element(){var n;return((n=this.focusable)===null||n===void 0?void 0:n.nativeFocusableElement)||this.el.nativeElement}get isTextFieldElement(){return this.element.matches("input, textarea, [contenteditable]")}}return e.\u0275fac=function(n){Th()},e.\u0275dir=z({type:e}),e})(),WR=1e3,qR=".ng-animating",YR=(()=>{class e extends yw{constructor(n,r,i){super(n,r),this.animationFrame$=i}setFocus(){this.isTextFieldElement?Sd(vt(WR),this.animationFrame$.pipe(Nr(Fo),b(()=>this.element.closest(qR)),Pd(Boolean),Qe(1))).subscribe(()=>this.element.focus({preventScroll:!0})):this.element.focus({preventScroll:!0})}}return e.\u0275fac=function(n){return new(n||e)(y(ua,10),y(Q),y(Rn))},e.\u0275dir=z({type:e,features:[He]}),e})(),ZR=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"],KR=(()=>{class e extends yw{constructor(n,r,i,o,s){super(n,r),this.renderer=i,this.zone=o,this.win=s,this.patchCssStyles()}setFocus(){this.isTextFieldElement?this.zone.runOutsideAngular(()=>this.iosWebkitAutofocus()):this.element.focus({preventScroll:!0})}iosWebkitAutofocus(){var n;let r=this.makeFakeInput(),i=this.getDurationTimeBeforeFocus(),o=0,s=0,a=()=>r.focus({preventScroll:!0}),c=()=>{clearTimeout(o),o=this.win.setTimeout(()=>{clearTimeout(s),r.removeEventListener("blur",a),r.removeEventListener("focus",c),s=this.win.setTimeout(()=>{this.element.focus({preventScroll:!1}),r.remove()},i)})};r.addEventListener("blur",a,{once:!0}),r.addEventListener("focus",c),this.insideDialog()?this.win.document.body.appendChild(r):(n=this.element.parentElement)===null||n===void 0||n.appendChild(r),r.focus({preventScroll:!0})}makeFakeInput(){let n=this.renderer.createElement("input"),r=this.element.getBoundingClientRect();return this.patchFakeInputFromFocusableElement(n),n.style.height=Vo(r.height),n.style.width=Vo(r.width/2),n.style.position="fixed",n.style.zIndex="-99999999",n.style.caretColor="transparent",n.style.border="none",n.style.outline="none",n.style.color="transparent",n.style.background="transparent",n.style.cursor="none",n.style.fontSize=Vo(16),n.style.top=Vo(r.top),n.style.left=Vo(r.left),n}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){[this.win.document.documentElement,this.win.document.body].forEach(n=>{n.style.setProperty("overflow","auto"),n.style.setProperty("height","100%")})}patchFakeInputFromFocusableElement(n){ZR.forEach(r=>{let i=this.element.getAttribute(r);Oi(i)&&n.setAttribute(r,i)})}}return e.\u0275fac=function(n){return new(n||e)(y(ua,10),y(Q),y(Ir),y(fe),y(pe))},e.\u0275dir=z({type:e,features:[He]}),e})(),QR={delay:NaN},XR=Te(QR);var _w=new E("[TUI_AUTOFOCUS_HANDLER]"),JR=[{provide:_w,useFactory:(e,t,n,r,i,o,s)=>s?new KR(e,t,r,i,o):new YR(e,t,n),deps:[[new nn,new Ey,ua],Q,Rn,Ir,fe,pe,la]},Ze],Dw=(()=>{class e{constructor(n,r,i){this.handler=n,this.options=r,this.destroy$=i,this.autoFocus=!0}ngAfterViewInit(){gw(this.autoFocus)&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then(()=>this.handler.setFocus()):vt(this.options.delay).pipe(Ae(this.destroy$)).subscribe(()=>this.handler.setFocus())}}return e.\u0275fac=function(n){return new(n||e)(y(_w),y(XR),y(Ze,2))},e.\u0275dir=z({type:e,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:[Ye.None,"tuiAutoFocus","autoFocus"]},features:[ze(JR)]}),e})(),Ew=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var cm=class{constructor(t){this.internalDirectiveInstance=t}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}},ww=(()=>{class e{constructor(n,r){n.createEmbeddedView(r,new cm(this))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(y(Ft),y(_t))},e.\u0275dir=z({type:e,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"}}),e})(),bw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var K8=(()=>{class e{constructor({nativeElement:n},r,i){this.mode="scroll",J(n,"wheel",{passive:!1}).pipe(Ie(()=>this.enabled),nr(r),Ae(i)).subscribe(o=>{this.processEvent(o,!!o.deltaY,o.deltaY?o.deltaY<0:o.deltaX<0)}),J(n,"touchstart",{passive:!0}).pipe(ce(({touches:o})=>{let{clientX:s,clientY:a}=o[0],c=0,u=0,l;return J(n,"touchmove",{passive:!1}).pipe(Ie(()=>this.enabled),Be(d=>{let f=d.changedTouches[0];c=s-f.clientX,u=a-f.clientY,s=f.clientX,a=f.clientY,l===void 0&&(l=Math.abs(u)>Math.abs(c)),this.processEvent(d,l,l?u<0:c<0)}))}),nr(r),Ae(i)).subscribe()}get enabled(){return this.mode!=="none"}get overscrollBehavior(){return this.enabled?"contain":null}processEvent(n,r,i){var o;let{target:s,currentTarget:a,cancelable:c}=n;if(!(!c||!Wu(s)||((o=s)===null||o===void 0?void 0:o.type)==="range")){if(this.mode==="all"&&(r&&!a.contains(Yu(s))||!r&&!a.contains(Yu(s,!1)))){n.preventDefault();return}if(r&&(i&&!Js(s,a,!0,!1)||!i&&!Js(s,a,!0,!0))){n.preventDefault();return}!r&&(i&&!Js(s,a,!1,!1)||!i&&!Js(s,a,!1,!0))&&n.preventDefault()}}}return e.\u0275fac=function(n){return new(n||e)(y(Q),y(fe),y(Ze,2))},e.\u0275dir=z({type:e,selectors:[["","tuiOverscroll",""]],hostVars:2,hostBindings:function(n,r){n&2&&Ii("overscroll-behavior",r.overscrollBehavior)},inputs:{mode:[Ye.None,"tuiOverscroll","mode"]},features:[ze([Ze])]}),e})(),Q8=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var eF=["*"],tF=(()=>{class e extends gl{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),e5=(()=>{class e extends am{}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275cmp=ut({type:e,selectors:[["tui-dropdown-host"]],features:[ze([{provide:gl,useExisting:tF},{provide:am,useExisting:e}]),He],ngContentSelectors:eF,decls:3,vars:0,consts:[["viewContainer",""]],template:function(n,r){n&1&&(Xn(),Zt(0),Ci(1,null,0))},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})(),t5=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var um=function(e){return e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e}(um||{}),nF=function(e){return e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December",e}(nF||{});var pa=`?v=${aE}`;var Iw=e=>e.includes(".svg#")?e:`#${e}`,o5=()=>vp,lm={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:sE,zeroPadding:!0,rounding:"truncate",decimal:"not-zero"},Cw=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"];var s5="tui-scroll-into-view";var Mw="tui-icon-error",a5=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"];var h=function(e){return e.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.CA="CA",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.NC="NC",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.US="US",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}(h||{});var rF={cardNumber:["Number","Card number"],cardExpiry:["Expires","Valid through"]},iF={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"}},oF={previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}},sF={showHideText:"Show/Hide",paginationTexts:{pages:"Pages",linesPerPage:"Lines per page",of:"of"}},aF={[h.AD]:"Andorra",[h.AE]:"United Arab Emirates",[h.AF]:"Afghanistan",[h.AG]:"Antigua and Barbuda",[h.BL]:"Saint Barth\xE9lemy",[h.AI]:"Anguilla",[h.AL]:"Albania",[h.AM]:"Armenia",[h.AO]:"Angola",[h.AR]:"Argentina",[h.AT]:"Austria",[h.AU]:"Australia",[h.AW]:"Aruba",[h.AZ]:"Azerbaijan",[h.BA]:"Bosnia and Herzegovina",[h.BB]:"Barbados",[h.BD]:"Bangladesh",[h.BE]:"Belgium",[h.BF]:"Burkina Faso",[h.BG]:"Bulgaria",[h.BH]:"Bahrain",[h.BI]:"Burundi",[h.BJ]:"Benin",[h.GF]:"Guyana",[h.BM]:"Bermuda",[h.BN]:"Brunei Darussalam",[h.BO]:"Bolivia",[h.BQ]:"Bonaire, Sint Eustatius and Saba",[h.BR]:"Brazil",[h.BS]:"Bahamas",[h.BT]:"Bhutan",[h.BW]:"Botswana",[h.BY]:"Belarus",[h.BZ]:"Belize",[h.CA]:"Canada",[h.CD]:"Dem. Rep. Congo (Kinshasa)",[h.CF]:"Central African Republic",[h.CG]:"Congo (Brazzaville)",[h.CH]:"Switzerland",[h.CI]:"Ivory Coast",[h.CL]:"Chile",[h.CM]:"Cameroon",[h.CN]:"China",[h.CO]:"Colombia",[h.CR]:"Costa Rica",[h.CU]:"Cuba",[h.CV]:"Cape Verde",[h.CW]:"Cura\xE7ao",[h.CY]:"Cyprus",[h.CZ]:"Czech Republic",[h.DE]:"Germany",[h.DJ]:"Djibouti",[h.DK]:"Denmark",[h.DM]:"Dominica",[h.DO]:"Dominican Republic",[h.DZ]:"Algeria",[h.EC]:"Ecuador",[h.EE]:"Estonia",[h.EG]:"Egypt",[h.ER]:"Eritrea",[h.ES]:"Spain",[h.ET]:"Ethiopia",[h.FI]:"Finland",[h.FJ]:"Fiji",[h.FK]:"Falkland Islands",[h.FM]:"F.S. of Micronesia",[h.FR]:"France",[h.GA]:"Gabon",[h.GB]:"United Kingdom",[h.GD]:"Grenada",[h.GE]:"Georgia",[h.GP]:"Guadeloupe",[h.GH]:"Ghana",[h.GI]:"Gibraltar",[h.GL]:"Greenland",[h.GM]:"Gambia",[h.GN]:"Guinea",[h.MF]:"Saint-Martin",[h.GQ]:"Equatorial Guinea",[h.GR]:"Greece",[h.GT]:"Guatemala",[h.GW]:"Guinea-Bissau",[h.GY]:"Guyana",[h.HK]:"Hong Kong",[h.HN]:"Honduras",[h.HR]:"Croatia",[h.HT]:"Haiti",[h.HU]:"Hungary",[h.ID]:"Indonesia",[h.IE]:"Ireland",[h.IL]:"Israel",[h.IN]:"India",[h.IQ]:"Iraq",[h.IR]:"Iran",[h.IS]:"Iceland",[h.IT]:"Italy",[h.JM]:"Jamaica",[h.JO]:"Jordan",[h.JP]:"Japan",[h.KE]:"Kenya",[h.KG]:"Kyrgyzstan",[h.KH]:"Cambodia",[h.KM]:"Comoros",[h.KN]:"Saint Kitts and Nevis",[h.KP]:"Korean PDR",[h.KR]:"Rep. Korea",[h.KW]:"Kuwait",[h.KY]:"Cayman Islands",[h.KZ]:"Kazakhstan",[h.LA]:"Laos",[h.LB]:"Lebanon",[h.LC]:"Saint Lucia",[h.LI]:"Liechtenstein",[h.LK]:"Sri Lanka",[h.LR]:"Liberia",[h.LS]:"Lesotho",[h.LT]:"Lithuania",[h.LU]:"Luxembourg",[h.LV]:"Latvia",[h.LY]:"Libya",[h.MA]:"Morocco",[h.MC]:"Monaco",[h.MD]:"Moldova",[h.ME]:"Montenegro",[h.MQ]:"Martinique",[h.MG]:"Madagascar",[h.MK]:"Rep. of North Macedonia",[h.ML]:"Mali",[h.MM]:"Burma (Myanmar)",[h.MN]:"Mongolia",[h.MO]:"Macau",[h.RE]:"R\xE9union",[h.MR]:"Mauritania",[h.MS]:"Montserrat",[h.MT]:"Malta",[h.MU]:"Mauritius",[h.MV]:"Maldives",[h.MW]:"Malawi",[h.MX]:"Mexico",[h.MY]:"Malaysia",[h.MZ]:"Mozambique",[h.NA]:"Namibia",[h.NC]:"New Caledonia",[h.NE]:"Niger",[h.NG]:"Nigeria",[h.NI]:"Nicaragua",[h.NL]:"Netherlands",[h.NO]:"Norway",[h.NP]:"Nepal",[h.NZ]:"New Zealand",[h.OM]:"Oman",[h.PA]:"Panama",[h.PE]:"Peru",[h.PF]:"French Polynesia (Tahiti)",[h.PG]:"Papua New Guinea",[h.PH]:"Philippines",[h.PK]:"Pakistan",[h.PL]:"Poland",[h.PT]:"Portugal",[h.PW]:"Palau",[h.PY]:"Paraguay",[h.QA]:"Qatar",[h.YT]:"Mayotte",[h.RO]:"Romania",[h.RS]:"Serbia",[h.RU]:"Russia",[h.RW]:"Rwanda",[h.SA]:"Saudi Arabia",[h.SB]:"Solomon Islands",[h.SC]:"Seychelles",[h.SD]:"Sudan",[h.SE]:"Sweden",[h.SG]:"Singapore",[h.SH]:"Saint Helena",[h.SI]:"Slovenia",[h.SK]:"Slovakia",[h.SL]:"Sierra Leone",[h.SM]:"San Marino",[h.SN]:"Senegal",[h.SO]:"Somalia",[h.SR]:"Suriname",[h.ST]:"Sao Tome and Principe",[h.SV]:"El Salvador",[h.SX]:"Sint Maarten",[h.SY]:"Syrian Arab Republic",[h.SZ]:"Swaziland",[h.TC]:"Turks and Caicos",[h.TD]:"Chad",[h.TG]:"Togo",[h.TH]:"Thailand",[h.TJ]:"Tajikistan",[h.TL]:"East Timor",[h.TM]:"Turkmenistan",[h.TN]:"Tunisia",[h.TO]:"Tonga",[h.TR]:"Turkey",[h.TT]:"Trinidad and Tobago",[h.TW]:"Taiwan",[h.TZ]:"Tanzania",[h.UA]:"Ukraine",[h.UG]:"Uganda",[h.US]:"USA",[h.UY]:"Uruguay",[h.UZ]:"Uzbekistan",[h.VC]:"Saint Vincent and the Grenadines",[h.VE]:"Venezuela",[h.VG]:"British Virgin Islands",[h.VN]:"Vietnam",[h.VU]:"Vanuatu",[h.WS]:"Samoa",[h.XK]:"Kosovo",[h.YE]:"Yemen",[h.ZA]:"South Africa",[h.ZM]:"Zambia",[h.ZW]:"Zimbabwe"},cF={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:aF},uF={cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range","Choose days"],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","KiB","MiB"],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 larger than ",formatRejectionReason:"Wrong file type",drop:"Drop file here",dropMultiple:"Drop files here"},multiSelectTexts:{all:"Select all",none:"Select none"},prompt:{yes:"Yes",no:"No"}},Sw=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},cF),uF),sF),rF),iF),oF);var lF=new E("[TUI_DEFAULT_LANGUAGE]",{factory:()=>Sw}),Tw=new E("[TUI_LANGUAGE]",{factory:()=>S(g(lF))}),m5=new E("[TUI_LANGUAGE_LOADER]"),g5=new E("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});function Fi(e){return()=>g(Tw).pipe(ce(t=>oi(t)?t:S(t)),b(t=>t[e]))}function dF(e){return!e||typeof getComputedStyle>"u"?!1:getComputedStyle(e).getPropertyValue("position")==="fixed"||dF(e.parentElement)}function _l({document:e,innerWidth:t}){return Math.max(e.documentElement.clientWidth||0,t||0)}var dm='width="',fm='height="',hm="")));if(!(r!=null&&r.includes(dm))||!r.includes(fm))return`${n.replace(hm,``;let i=r.indexOf(dm),o=r.indexOf(fm),s=i+dm.length,a=o+fm.length,c=r.slice(s,r.indexOf('"',s)),u=r.slice(a,r.indexOf('"',a));if(!u||!c||c.includes("%")||u.includes("%")||c.includes("em")||u.includes("em"))return n.replace(hm,`${n}`}var pm=1.5,fF=2.5;function M5(e,t=!1,n=!1,r=!1,i="m"){let o=i==="s"?0:.25,s=0;return e&&(s+=pm+o),t&&(s+=pm+o),n&&(s+=pm+o),r&&(s+=fF+o),s}function Dl(e){let t=e.endsWith("/")?e:`${e}/`;return n=>n.startsWith("tuiIcon")?`${t}${n}.svg${pa}#${n}`:Iw(n)}function S5(e){return e.length===1||Cw.includes(e)}function T5(e,t="tui-hints-host"){var n;return!!(!((n=qu(e))===null||n===void 0)&&n.some(r=>!r.closest(t)))}function Nw(e){let t=e.trim();return t.startsWith("<")&&t.endsWith(">")}function A5(e,t){return(n,r)=>{let i=n||Object.assign({},r||t);return Object.keys(e).forEach(o=>{i[o]=e[o]}),i}}var Ow={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function xw(e,t="s"){return Ow[e]>Ow[t]}function Pw(e,{mobile:t}){return _l(e){var e,t,n;return(n=(t=(e=g(he).defaultView)===null||e===void 0?void 0:e.matchMedia)===null||t===void 0?void 0:t.call(e,"(prefers-reduced-motion: reduce)").matches)!==null&&n!==void 0?n:!1}),mF=300,mm=se(()=>g(pF)?0:mF),Rw=se(()=>({value:"",params:{duration:g(mm)}})),z5=se(()=>t0()),gF={check:"tuiIconCheck",close:"tuiIconClose",error:"tuiIconAlertCircle",more:"tuiIconChevronRight"},El=Te(gF);var G5=new E("[TUI_DATA_LIST_ACCESSOR]");var vF=new E("[TUI_DATA_LIST_HOST]");function W5(e){return{provide:vF,useExisting:e}}var q5=Te(e=>e.isWeekend?"weekend":"weekday"),Y5=new E("[TUI_DOCUMENT_OR_SHADOW_ROOT]"),Z5=new E("[TUI_ELEMENT_REF]"),yF=Te(um.Monday),K5=se(Fi("months")),wl=se(Fi("close")),Q5=se(Fi("nothingFoundMessage")),X5=se(Fi("defaultErrorMessage")),J5=se(Fi("spinTexts")),_F=se(Fi("shortWeekDays")),bl="assets/taiga-ui/icons",gm=Te(bl),Fw=Te({}),Lw=se(()=>Dl(g(gm))),vm=Te({mobile:768,desktopSmall:1024,desktopLarge:1280}),ym=se(()=>{let e=g(pe),t=g(vm);return J(e,"resize").pipe(Ht(),Ce(null),b(()=>Pw(e,t)),qe(),rr(g(fe)))}),e6=new E("[TUI_LEGACY_MASK]"),Ho=new E("[TUI_MODE]"),DF={info:"tuiIconInfo",success:"tuiIconCheckCircle",error:"tuiIconXCircle",warning:"tuiIconAlertCircle",neutral:"tuiIconInfo"},EF={autoClose:3e3,label:"",status:"info",hasCloseButton:!0,icon:({$implicit:e})=>DF[e],size:"m",hasIcon:!0,defaultAutoCloseTime:3e3},t6=Te(EF);var n6=Te(lm);var r6=Te(S(Object.assign(Object.assign({},lm),{decimalLimit:NaN}))),i6=new E("[TUI_OPTION_CONTENT]");var wF=e=>{let t=e.length-1;return[e[t],...e.slice(0,t)]},o6=se(()=>{let e=g(yF);return g(_F).pipe(b(wF),b(t=>[...t.slice(e),...t.slice(0,e)]))}),Il=new E("[TUI_SANITIZER]");var s6=se(()=>{let e=g(he);return Ue(J(e,"selectionchange"),J(e,"mouseup"),J(e,"mousedown").pipe(ce(()=>J(e,"mousemove").pipe(Ae(J(e,"mouseup"))))),J(e,"keydown"),J(e,"keyup")).pipe(Ht())}),a6=Te({decrement:"tuiIconChevronLeft",increment:"tuiIconChevronRight"}),kw=Te(Zu),jw=Te(Je),c6=Te(ma.Textfield),bF=new E("[TUI_TEXTFIELD_HOST]");function u6(e){return{provide:bF,useExisting:e}}var l6=Te("Taiga"),d6=new E("[TUI_VALUE_ACCESSOR]"),f6=se(()=>{let e=g(pe);return{type:"viewport",getClientRect(){return{top:0,left:0,right:e.innerWidth,bottom:e.innerHeight,width:e.innerWidth,height:e.innerHeight}}}});var Cl=class extends R{};function E6(e){return{provide:Cl,multi:!0,useExisting:e}}var Ml=class{};function w6(e){return{provide:Ml,multi:!0,useExisting:e}}var b6=(()=>{class e{constructor(n,r,i){this.destroy$=n,this.drivers=r,this.vehicles=i}ngOnInit(){let n=this.vehicles.find(({type:r})=>r===this.type);Ue(...this.drivers.filter(({type:r})=>r===this.type)).pipe(qe(),Ae(this.destroy$)).subscribe(r=>{n==null||n.toggle(r)})}}return e.\u0275fac=function(n){return new(n||e)(y(Ze,2),y(Cl),y(Ml))},e.\u0275dir=z({type:e}),e})(),I6=(()=>{class e{constructor(n){this.host=n}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 inputMode(){return"text"}get value(){var n;return((n=this.host.value)===null||n===void 0?void 0:n.toString())||""}process(n){}}return e.\u0275fac=function(n){return new(n||e)(y(fa))},e.\u0275dir=z({type:e}),e})();function _m(e){return(t,n)=>(t==null?void 0:t.find(r=>r!==n&&r.type===e))||n}var Wr=class{};function C6(e,t){return{provide:Wr,deps:t?[[new Wn,new nn,Wr],t]:[[new Wn,new nn,Wr]],useFactory:_m(e)}}function M6(e){return{provide:Wr,multi:!0,useExisting:e}}var ga=class{};function S6(e,t){return{provide:ga,deps:[[new Wn,new nn,ga],t],useFactory:_m(e)}}var T6=_m;function A6(e){return{provide:ga,multi:!0,useExisting:e}}var ae="primary",Na=Symbol("RouteTitle"),Im=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Yo(e){return new Im(e)}function IF(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[o]===i)}else return e===t}function Gw(e){return e.length>0?e[e.length-1]:null}function Zr(e){return oi(e)?e:jr(e)?Pe(Promise.resolve(e)):S(e)}var MF={exact:qw,subset:Yw},Ww={exact:SF,subset:TF,ignored:()=>!0};function Vw(e,t,n){return MF[n.paths](e.root,t.root,n.matrixParams)&&Ww[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function SF(e,t){return or(e,t)}function qw(e,t,n){if(!ki(e.segments,t.segments)||!Al(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!qw(e.children[r],t.children[r],n))return!1;return!0}function TF(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>zw(e[n],t[n]))}function Yw(e,t,n){return Zw(e,t,t.segments,n)}function Zw(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!ki(i,n)||t.hasChildren()||!Al(i,n,r))}else if(e.segments.length===n.length){if(!ki(e.segments,n)||!Al(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!Yw(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!ki(e.segments,i)||!Al(e.segments,i,r)||!e.children[ae]?!1:Zw(e.children[ae],t,o,r)}}function Al(e,t,n){return t.every((r,i)=>Ww[n](e[i].parameters,r.parameters))}var qr=class{constructor(t=new Ne([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=Yo(this.queryParams)),this._queryParamMap}toString(){return NF.serialize(this)}},Ne=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ol(this)}},Li=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??(this._parameterMap=Yo(this.parameters)),this._parameterMap}toString(){return Qw(this)}};function AF(e,t){return ki(e,t)&&e.every((n,r)=>or(n.parameters,t[r].parameters))}function ki(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function OF(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===ae&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==ae&&(n=n.concat(t(i,r)))}),n}var Qm=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>new xl,providedIn:"root"});let e=t;return e})(),xl=class{parse(t){let n=new Sm(t);return new qr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${va(t.root,!0)}`,r=RF(t.queryParams),i=typeof t.fragment=="string"?`#${xF(t.fragment)}`:"";return`${n}${r}${i}`}},NF=new xl;function Ol(e){return e.segments.map(t=>Qw(t)).join("/")}function va(e,t){if(!e.hasChildren())return Ol(e);if(t){let n=e.children[ae]?va(e.children[ae],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==ae&&r.push(`${i}:${va(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=OF(e,(r,i)=>i===ae?[va(e.children[ae],!1)]:[`${i}:${va(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[ae]!=null?`${Ol(e)}/${n[0]}`:`${Ol(e)}/(${n.join("//")})`}}function Kw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Sl(e){return Kw(e).replace(/%3B/gi,";")}function xF(e){return encodeURI(e)}function Mm(e){return Kw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nl(e){return decodeURIComponent(e)}function Uw(e){return Nl(e.replace(/\+/g,"%20"))}function Qw(e){return`${Mm(e.path)}${PF(e.parameters)}`}function PF(e){return Object.entries(e).map(([t,n])=>`;${Mm(t)}=${Mm(n)}`).join("")}function RF(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${Sl(n)}=${Sl(i)}`).join("&"):`${Sl(n)}=${Sl(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var FF=/^[^\/()?;#]+/;function Dm(e){let t=e.match(FF);return t?t[0]:""}var LF=/^[^\/()?;=#]+/;function kF(e){let t=e.match(LF);return t?t[0]:""}var jF=/^[^=?&#]+/;function VF(e){let t=e.match(jF);return t?t[0]:""}var UF=/^[^&#]+/;function BF(e){let t=e.match(UF);return t?t[0]:""}var Sm=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ne([],{}):new Ne([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[ae]=new Ne(t,n)),r}parseSegment(){let t=Dm(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new Li(Nl(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=kF(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=Dm(this.remaining);i&&(r=i,this.capture(r))}t[Nl(n)]=Nl(r)}parseQueryParam(t){let n=VF(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=BF(this.remaining);s&&(r=s,this.capture(r))}let i=Uw(n),o=Uw(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Dm(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new I(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=ae);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[ae]:new Ne([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new I(4011,!1)}};function Xw(e){return e.segments.length>0?new Ne([],{[ae]:e}):e}function Jw(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=Jw(i);if(r===ae&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new Ne(e.segments,t);return $F(n)}function $F(e){if(e.numberOfChildren===1&&e.children[ae]){let t=e.children[ae];return new Ne(e.segments.concat(t.segments),t.children)}return e}function Zo(e){return e instanceof qr}function HF(e,t,n=null,r=null){let i=eb(e);return tb(i,t,n,r)}function eb(e){let t;function n(o){let s={};for(let c of o.children){let u=n(c);s[c.outlet]=u}let a=new Ne(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=Xw(r);return t??i}function tb(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Em(i,i,i,n,r);let o=zF(t);if(o.toRoot())return Em(i,i,new Ne([],{}),n,r);let s=GF(o,i,e),a=s.processChildren?Da(s.segmentGroup,s.index,o.commands):rb(s.segmentGroup,s.index,o.commands);return Em(i,s.segmentGroup,a,n,r)}function Pl(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ba(e){return typeof e=="object"&&e!=null&&e.outlets}function Em(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=nb(e,t,n);let a=Xw(Jw(s));return new qr(a,o,i)}function nb(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=nb(o,t,n)}),new Ne(e.segments,r)}var Rl=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Pl(r[0]))throw new I(4003,!1);let i=r.find(ba);if(i&&i!==Gw(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function zF(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Rl(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Rl(n,t,r)}var Wo=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function GF(e,t,n){if(e.isAbsolute)return new Wo(t,!0,0);if(!n)return new Wo(t,!1,NaN);if(n.parent===null)return new Wo(n,!0,0);let r=Pl(e.commands[0])?0:1,i=n.segments.length-1+r;return WF(n,i,e.numberOfDoubleDots)}function WF(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new I(4005,!1);i=r.segments.length}return new Wo(r,!1,i-o)}function qF(e){return ba(e[0])?e[0].outlets:{[ae]:e}}function rb(e,t,n){if(e??(e=new Ne([],{})),e.segments.length===0&&e.hasChildren())return Da(e,t,n);let r=YF(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndexo!==ae)&&e.children[ae]&&e.numberOfChildren===1&&e.children[ae].segments.length===0){let o=Da(e.children[ae],t,n);return new Ne(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=rb(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new Ne(e.segments,i)}}function YF(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;let s=e.segments[i],a=n[r];if(ba(a))break;let c=`${a}`,u=r0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!$w(c,u,s))return o;r+=2}else{if(!$w(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Tm(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Tm(new Ne([],{}),0,r))}),t}function Bw(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function $w(e,t,n){return e==n.path&&or(t,n.parameters)}var Ea="imperative",It=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(It||{}),Dn=class{constructor(t,n){this.id=t,this.url=n}},Ia=class extends Dn{constructor(t,n,r="imperative",i=null){super(t,n),this.type=It.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ji=class extends Dn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=It.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},un=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(un||{}),Am=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Am||{}),Yr=class extends Dn{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=It.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Vi=class extends Dn{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=It.NavigationSkipped}},Ca=class extends Dn{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=It.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fl=class extends Dn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=It.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Om=class extends Dn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=It.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nm=class extends Dn{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=It.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},xm=class extends Dn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=It.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pm=class extends Dn{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=It.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rm=class{constructor(t){this.route=t,this.type=It.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Fm=class{constructor(t){this.route=t,this.type=It.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Lm=class{constructor(t){this.snapshot=t,this.type=It.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},km=class{constructor(t){this.snapshot=t,this.type=It.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jm=class{constructor(t){this.snapshot=t,this.type=It.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vm=class{constructor(t){this.snapshot=t,this.type=It.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ma=class{},Sa=class{constructor(t){this.url=t}};var Um=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Bl,this.attachRef=null}},Bl=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(r,i){let o=this.getOrCreateContext(r);o.outlet=i,this.contexts.set(r,o)}onChildOutletDestroyed(r){let i=this.getContext(r);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let i=this.getContext(r);return i||(i=new Um,this.contexts.set(r,i)),i}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ll=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Bm(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Bm(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=$m(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return $m(t,this._root).map(n=>n.value)}};function Bm(e,t){if(e===t.value)return t;for(let n of t.children){let r=Bm(e,n);if(r)return r}return null}function $m(e,t){if(e===t.value)return[t];for(let n of t.children){let r=$m(e,n);if(r.length)return r.unshift(t),r}return[]}var cn=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Go(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var kl=class extends Ll{constructor(t,n){super(t),this.snapshot=n,Jm(this,t)}toString(){return this.snapshot.toString()}};function ib(e){let t=KF(e),n=new We([new Li("",{})]),r=new We({}),i=new We({}),o=new We({}),s=new We(""),a=new Ko(n,r,o,s,i,ae,e,t.root);return a.snapshot=t.root,new kl(new cn(a,[]),t)}function KF(e){let t={},n={},r={},i="",o=new Ta([],t,r,i,n,ae,e,null,{});return new jl("",new cn(o,[]))}var Ko=class{constructor(t,n,r,i,o,s,a,c){var u;this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=((u=this.dataSubject)==null?void 0:u.pipe(b(l=>l[Na])))??S(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??(this._paramMap=this.params.pipe(b(t=>Yo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=this.queryParams.pipe(b(t=>Yo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Xm(e,t,n="emptyOnly"){var o;let r,{routeConfig:i}=e;return t!==null&&(n==="always"||(i==null?void 0:i.path)===""||!t.component&&!((o=t.routeConfig)!=null&&o.loadComponent))?r={params:T(T({},t.params),e.params),data:T(T({},t.data),e.data),resolve:T(T(T(T({},e.data),t.data),i==null?void 0:i.data),e._resolvedData)}:r={params:T({},e.params),data:T({},e.data),resolve:T(T({},e.data),e._resolvedData??{})},i&&sb(i)&&(r.resolve[Na]=i.title),r}var Ta=class{get title(){var t;return(t=this.data)==null?void 0:t[Na]}constructor(t,n,r,i,o,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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=Yo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap??(this._queryParamMap=Yo(this.queryParams)),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},jl=class extends Ll{constructor(t,n){super(n),this.url=t,Jm(this,n)}toString(){return ob(this._root)}};function Jm(e,t){t.value._routerState=e,t.children.forEach(n=>Jm(e,n))}function ob(e){let t=e.children.length>0?` { ${e.children.map(ob).join(", ")} } `:"";return`${e.value}${t}`}function wm(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,or(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),or(t.params,n.params)||e.paramsSubject.next(n.params),CF(t.url,n.url)||e.urlSubject.next(n.url),or(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Hm(e,t){let n=or(e.params,t.params)&&AF(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Hm(e.parent,t.parent))}function sb(e){return typeof e.title=="string"||e.title===null}var QF=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=ae,this.activateEvents=new st,this.deactivateEvents=new st,this.attachEvents=new st,this.detachEvents=new st,this.parentContexts=g(Bl),this.location=g(Ft),this.changeDetector=g(dt),this.environmentInjector=g(fn),this.inputBinder=g(eg,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:i,previousValue:o}=r.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){var r;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),(r=this.inputBinder)==null||r.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){var i;return((i=this.parentContexts.getContext(r))==null?void 0:i.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r!=null&&r.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,i){var o;this.activated=r,this._activatedRoute=i,this.location.insert(r.hostView),(o=this.inputBinder)==null||o.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,i){var l;if(this.isActivated)throw new I(4013,!1);this._activatedRoute=r;let o=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new zm(r,c,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),(l=this.inputBinder)==null||l.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=z({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[mn]});let e=t;return e})(),zm=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Ko?this.route:t===Bl?this.childContexts:this.parent.get(t,n)}},eg=new E("");function XF(e,t,n){let r=Aa(e,t._root,n?n._root:void 0);return new kl(r,t)}function Aa(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=JF(e,t,n);return new cn(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Aa(e,a)),s}}let r=e1(t.value),i=t.children.map(o=>Aa(e,o));return new cn(r,i)}}function JF(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return Aa(e,r,i);return Aa(e,r)})}function e1(e){return new Ko(new We(e.url),new We(e.params),new We(e.queryParams),new We(e.fragment),new We(e.data),e.outlet,e.component,e)}var ab="ngNavigationCancelingError";function cb(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Zo(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=ub(!1,un.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function ub(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[ab]=!0,n.cancellationCode=t,n}function t1(e){return lb(e)&&Zo(e.url)}function lb(e){return!!e&&e[ab]}var n1=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ut({type:t,selectors:[["ng-component"]],standalone:!0,features:[YD],decls:1,vars:0,template:function(i,o){i&1&&je(0,"router-outlet")},dependencies:[QF],encapsulation:2});let e=t;return e})();function r1(e,t){return e.providers&&!e._injector&&(e._injector=Uh(e.providers,t,`Route: ${e.path}`)),e._injector??t}function tg(e){let t=e.children&&e.children.map(tg),n=t?Ve(T({},e),{children:t}):T({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==ae&&(n.component=n1),n}function sr(e){return e.outlet||ae}function i1(e,t){let n=e.filter(r=>sr(r)===t);return n.push(...e.filter(r=>sr(r)!==t)),n}function xa(e){var t;if(!e)return null;if((t=e.routeConfig)!=null&&t._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){let r=n.routeConfig;if(r!=null&&r._loadedInjector)return r._loadedInjector;if(r!=null&&r._injector)return r._injector}return null}var o1=(e,t,n,r)=>b(i=>(new Gm(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),Gm=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),wm(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=Go(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Go(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Go(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=Go(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Vm(o.value.snapshot))}),t.children.length&&this.forwardEvent(new km(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(wm(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),wm(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=xa(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}},Vl=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},qo=class{constructor(t,n){this.component=t,this.route=n}};function s1(e,t,n){let r=e._root,i=t?t._root:null;return ya(r,i,n,[r.value])}function a1(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Xo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!my(e)?e:t.get(e):r}function ya(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Go(t);return e.children.forEach(s=>{c1(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>wa(a,n.getContext(s),i)),i}function c1(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=u1(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Vl(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ya(e,t,a?a.children:null,r,i):ya(e,t,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new qo(a.outlet.component,s))}else s&&wa(t,a,i),i.canActivateChecks.push(new Vl(r)),o.component?ya(e,null,a?a.children:null,r,i):ya(e,null,n,r,i);return i}function u1(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!ki(e.url,t.url);case"pathParamsOrQueryParamsChange":return!ki(e.url,t.url)||!or(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hm(e,t)||!or(e.queryParams,t.queryParams);case"paramsChange":default:return!Hm(e,t)}}function wa(e,t,n){let r=Go(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?wa(s,t.children.getContext(o),n):wa(s,null,n):wa(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new qo(t.outlet.component,i)):n.canDeactivateChecks.push(new qo(null,i)):n.canDeactivateChecks.push(new qo(null,i))}function Pa(e){return typeof e=="function"}function l1(e){return typeof e=="boolean"}function d1(e){return e&&Pa(e.canLoad)}function f1(e){return e&&Pa(e.canActivate)}function h1(e){return e&&Pa(e.canActivateChild)}function p1(e){return e&&Pa(e.canDeactivate)}function m1(e){return e&&Pa(e.canMatch)}function db(e){return e instanceof hr||(e==null?void 0:e.name)==="EmptyError"}var Tl=Symbol("INITIAL_VALUE");function Qo(){return ce(e=>gc(e.map(t=>t.pipe(Qe(1),Ce(Tl)))).pipe(b(t=>{for(let n of t)if(n!==!0){if(n===Tl)return Tl;if(n===!1||n instanceof qr)return n}return!0}),Ie(t=>t!==Tl),Qe(1)))}function g1(e,t){return Ke(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?S(Ve(T({},n),{guardsResult:!0})):v1(s,r,i,e).pipe(Ke(a=>a&&l1(a)?y1(r,o,e,t):S(a)),b(a=>Ve(T({},n),{guardsResult:a})))})}function v1(e,t,n,r){return Pe(e).pipe(Ke(i=>b1(i.component,i.route,n,t,r)),bn(i=>i!==!0,!0))}function y1(e,t,n,r){return Pe(t).pipe(si(i=>$t(D1(i.route.parent,r),_1(i.route,r),w1(e,i.path,n),E1(e,i.route,n))),bn(i=>i!==!0,!0))}function _1(e,t){return e!==null&&t&&t(new jm(e)),S(!0)}function D1(e,t){return e!==null&&t&&t(new Lm(e)),S(!0)}function E1(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return S(!0);let i=r.map(o=>Bn(()=>{let s=xa(t)??n,a=Xo(o,s),c=f1(a)?a.canActivate(t,e):Fr(s,()=>a(t,e));return Zr(c).pipe(bn())}));return S(i).pipe(Qo())}function w1(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>a1(s)).filter(s=>s!==null).map(s=>Bn(()=>{let a=s.guards.map(c=>{let u=xa(s.node)??n,l=Xo(c,u),d=h1(l)?l.canActivateChild(r,e):Fr(u,()=>l(r,e));return Zr(d).pipe(bn())});return S(a).pipe(Qo())}));return S(o).pipe(Qo())}function b1(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return S(!0);let s=o.map(a=>{let c=xa(t)??i,u=Xo(a,c),l=p1(u)?u.canDeactivate(e,t,n,r):Fr(c,()=>u(e,t,n,r));return Zr(l).pipe(bn())});return S(s).pipe(Qo())}function I1(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return S(!0);let o=i.map(s=>{let a=Xo(s,e),c=d1(a)?a.canLoad(t,n):Fr(e,()=>a(t,n));return Zr(c)});return S(o).pipe(Qo(),fb(r))}function fb(e){return ni(Be(t=>{if(Zo(t))throw cb(e,t)}),b(t=>t===!0))}function C1(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return S(!0);let o=i.map(s=>{let a=Xo(s,e),c=m1(a)?a.canMatch(t,n):Fr(e,()=>a(t,n));return Zr(c)});return S(o).pipe(Qo(),fb(r))}var Oa=class{constructor(t){this.segmentGroup=t||null}},Ul=class extends Error{constructor(t){super(),this.urlTree=t}};function zo(e){return oo(new Oa(e))}function M1(e){return oo(new I(4e3,!1))}function S1(e){return oo(ub(!1,un.GuardRejected))}var Wm=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return S(r);if(i.numberOfChildren>1||!i.children[ae])return M1(t.redirectTo);i=i.children[ae]}}applyRedirectCommands(t,n,r){let i=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n.startsWith("/"))throw new Ul(i);return i}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new qr(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,i)}),new Ne(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new I(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},qm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function T1(e,t,n,r,i){let o=ng(e,t,n);return o.matched?(r=r1(t,r),C1(r,t,n,i).pipe(b(s=>s===!0?o:T({},qm)))):S(o)}function ng(e,t,n){if(t.path==="**")return A1(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?T({},qm):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||IF)(n,e,t);if(!i)return T({},qm);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?T(T({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function A1(e){return{matched:!0,parameters:e.length>0?Gw(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Hw(e,t,n,r){return n.length>0&&x1(e,n,r)?{segmentGroup:new Ne(t,N1(r,new Ne(n,e.children))),slicedSegments:[]}:n.length===0&&P1(e,n,r)?{segmentGroup:new Ne(e.segments,O1(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new Ne(e.segments,e.children),slicedSegments:n}}function O1(e,t,n,r){let i={};for(let o of n)if($l(e,t,o)&&!r[sr(o)]){let s=new Ne([],{});i[sr(o)]=s}return T(T({},r),i)}function N1(e,t){let n={};n[ae]=t;for(let r of e)if(r.path===""&&sr(r)!==ae){let i=new Ne([],{});n[sr(r)]=i}return n}function x1(e,t,n){return n.some(r=>$l(e,t,r)&&sr(r)!==ae)}function P1(e,t,n){return n.some(r=>$l(e,t,r))}function $l(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function R1(e,t,n,r){return sr(e)!==r&&(r===ae||!$l(t,n,e))?!1:ng(t,e,n).matched}function F1(e,t,n){return t.length===0&&!e.children[n]}var Ym=class{};function L1(e,t,n,r,i,o,s="emptyOnly"){return new Zm(e,t,n,r,i,s,o).recognize()}var k1=31,Zm=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Wm(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new I(4002,`'${t.segmentGroup}'`)}recognize(){let t=Hw(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(b(n=>{let r=new Ta([],Object.freeze({}),Object.freeze(T({},this.urlTree.queryParams)),this.urlTree.fragment,{},ae,this.rootComponentType,null,{}),i=new cn(r,n),o=new jl("",i),s=HF(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,ae).pipe(wn(r=>{if(r instanceof Ul)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Oa?this.noMatchError(r):r}))}inheritParamsAndData(t,n){let r=t.value,i=Xm(r,n,this.paramsInheritanceStrategy);r.params=Object.freeze(i.params),r.data=Object.freeze(i.data),t.children.forEach(o=>this.inheritParamsAndData(o,r))}processSegmentGroup(t,n,r,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,i,!0).pipe(b(o=>o instanceof cn?[o]:[]))}processChildren(t,n,r){let i=[];for(let o of Object.keys(r.children))o==="primary"?i.unshift(o):i.push(o);return Pe(i).pipe(si(o=>{let s=r.children[o],a=i1(n,o);return this.processSegmentGroup(t,a,s,o)}),_c((o,s)=>(o.push(...s),o)),Ar(null),Ad(),Ke(o=>{if(o===null)return zo(r);let s=hb(o);return j1(s),S(s)}))}processSegment(t,n,r,i,o,s){return Pe(n).pipe(si(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,i,o,s).pipe(wn(c=>{if(c instanceof Oa)return S(null);throw c}))),bn(a=>!!a),wn(a=>{if(db(a))return F1(r,i,o)?S(new Ym):zo(r);throw a}))}processSegmentAgainstRoute(t,n,r,i,o,s,a){return R1(r,i,o,s)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s):zo(i):zo(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s){let{matched:a,consumedSegments:c,positionalParamSegments:u,remainingSegments:l}=ng(n,i,o);if(!a)return zo(n);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>k1&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(c,i.redirectTo,u);return this.applyRedirects.lineralizeSegments(i,d).pipe(Ke(f=>this.processSegment(t,r,n,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,i,o){let s=T1(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),s.pipe(ce(a=>a.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(ce(({routes:c})=>{let u=r._loadedInjector??t,{consumedSegments:l,remainingSegments:d,parameters:f}=a,m=new Ta(l,f,Object.freeze(T({},this.urlTree.queryParams)),this.urlTree.fragment,U1(r),sr(r),r.component??r._loadedComponent??null,r,B1(r)),{segmentGroup:v,slicedSegments:_}=Hw(n,l,d,c);if(_.length===0&&v.hasChildren())return this.processChildren(u,c,v).pipe(b(x=>x===null?null:new cn(m,x)));if(c.length===0&&_.length===0)return S(new cn(m,[]));let N=sr(r)===o;return this.processSegment(u,c,v,_,N?ae:o,!0).pipe(b(x=>new cn(m,x instanceof cn?[x]:[])))}))):zo(n)))}getChildConfig(t,n,r){return n.children?S({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?S({routes:n._loadedRoutes,injector:n._loadedInjector}):I1(t,n,r,this.urlSerializer).pipe(Ke(i=>i?this.configLoader.loadChildren(t,n).pipe(Be(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):S1(n))):S({routes:[],injector:t})}};function j1(e){e.sort((t,n)=>t.value.outlet===ae?-1:n.value.outlet===ae?1:t.value.outlet.localeCompare(n.value.outlet))}function V1(e){let t=e.value.routeConfig;return t&&t.path===""}function hb(e){let t=[],n=new Set;for(let r of e){if(!V1(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=hb(r.children);t.push(new cn(r.value,i))}return t.filter(r=>!n.has(r))}function U1(e){return e.data||{}}function B1(e){return e.resolve||{}}function $1(e,t,n,r,i,o){return Ke(s=>L1(e,t,n,r,s.extractedUrl,i,o).pipe(b(({state:a,tree:c})=>Ve(T({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function H1(e,t){return Ke(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return S(n);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let u of pb(c))s.add(u);let a=0;return Pe(s).pipe(si(c=>o.has(c)?z1(c,r,e,t):(c.data=Xm(c,c.parent,e).resolve,S(void 0))),Be(()=>a++),co(1),Ke(c=>a===s.size?S(n):xe))})}function pb(e){let t=e.children.map(n=>pb(n)).flat();return[e,...t]}function z1(e,t,n,r){let i=e.routeConfig,o=e._resolve;return(i==null?void 0:i.title)!==void 0&&!sb(i)&&(o[Na]=i.title),G1(o,e,t,r).pipe(b(s=>(e._resolvedData=s,e.data=Xm(e,e.parent,n).resolve,null)))}function G1(e,t,n,r){let i=Cm(e);if(i.length===0)return S({});let o={};return Pe(i).pipe(Ke(s=>W1(e[s],t,n,r).pipe(bn(),Be(a=>{o[s]=a}))),co(1),fs(o),wn(s=>db(s)?xe:oo(s)))}function W1(e,t,n,r){let i=xa(t)??r,o=Xo(e,i),s=o.resolve?o.resolve(t,n):Fr(i,()=>o(t,n));return Zr(s)}function bm(e){return ce(t=>{let n=e(t);return n?Pe(n).pipe(b(()=>t)):S(t)})}var mb=(()=>{let t=class t{buildTitle(r){let i,o=r.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===ae);return i}getResolvedTitleForRoute(r){return r.data[Na]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(q1),providedIn:"root"});let e=t;return e})(),q1=(()=>{let t=class t extends mb{constructor(r){super(),this.title=r}updateTitle(r){let i=this.buildTitle(r);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(M(x0))},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),rg=new E("",{providedIn:"root",factory:()=>({})}),ig=new E(""),Y1=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Wh)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return S(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=Zr(r.loadComponent()).pipe(b(gb),Be(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Or(()=>{this.componentLoaders.delete(r)})),o=new to(i,()=>new Oe).pipe(eo());return this.componentLoaders.set(r,o),o}loadChildren(r,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return S({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=Z1(i,this.compiler,r,this.onLoadEndListener).pipe(Or(()=>{this.childrenLoaders.delete(i)})),a=new to(s,()=>new Oe).pipe(eo());return this.childrenLoaders.set(i,a),a}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Z1(e,t,n,r){return Zr(e.loadChildren()).pipe(b(gb),Ke(i=>i instanceof Ss||Array.isArray(i)?S(i):Pe(t.compileModuleAsync(i))),b(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(ig,[],{optional:!0,self:!0}).flat()),{routes:s.map(tg),injector:o}}))}function K1(e){return e&&typeof e=="object"&&"default"in e}function gb(e){return K1(e)?e.default:e}var og=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(Q1),providedIn:"root"});let e=t;return e})(),Q1=(()=>{let t=class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,i){return r}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),X1=new E("");var J1=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Oe,this.transitionAbortSubject=new Oe,this.configLoader=g(Y1),this.environmentInjector=g(fn),this.urlSerializer=g(Qm),this.rootContexts=g(Bl),this.location=g(Gs),this.inputBindingEnabled=g(eg,{optional:!0})!==null,this.titleStrategy=g(mb),this.options=g(rg,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(og),this.createViewTransition=g(X1,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>S(void 0),this.rootComponentType=null;let r=o=>this.events.next(new Rm(o)),i=o=>this.events.next(new Fm(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=r}complete(){var r;(r=this.transitions)==null||r.complete()}handleNavigationRequest(r){var o;let i=++this.navigationId;(o=this.transitions)==null||o.next(Ve(T(T({},this.transitions.value),r),{id:i}))}setupNavigations(r,i,o){return this.transitions=new We({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ea,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ie(s=>s.id!==0),b(s=>Ve(T({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),ce(s=>{let a=!1,c=!1;return S(s).pipe(ce(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",un.SupersededByNewNavigation),xe;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Ve(T({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new Vi(u.id,this.urlSerializer.serialize(u.rawUrl),f,Am.IgnoredSameUrlNavigation)),u.resolve(null),xe}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return S(u).pipe(ce(f=>{var v,_;let m=(v=this.transitions)==null?void 0:v.getValue();return this.events.next(new Ia(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),m!==((_=this.transitions)==null?void 0:_.getValue())?xe:Promise.resolve(f)}),$1(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),Be(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=Ve(T({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let m=new Fl(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(m)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:f,extractedUrl:m,source:v,restoredState:_,extras:N}=u,x=new Ia(f,this.urlSerializer.serialize(m),v,_);this.events.next(x);let ge=ib(this.rootComponentType).snapshot;return this.currentTransition=s=Ve(T({},u),{targetSnapshot:ge,urlAfterRedirects:m,extras:Ve(T({},N),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,S(s)}else{let f="";return this.events.next(new Vi(u.id,this.urlSerializer.serialize(u.extractedUrl),f,Am.IgnoredByUrlHandlingStrategy)),u.resolve(null),xe}}),Be(u=>{let l=new Om(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),b(u=>(this.currentTransition=s=Ve(T({},u),{guards:s1(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),g1(this.environmentInjector,u=>this.events.next(u)),Be(u=>{if(s.guardsResult=u.guardsResult,Zo(u.guardsResult))throw cb(this.urlSerializer,u.guardsResult);let l=new Nm(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Ie(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",un.GuardRejected),!1)),bm(u=>{if(u.guards.canActivateChecks.length)return S(u).pipe(Be(l=>{let d=new xm(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),ce(l=>{let d=!1;return S(l).pipe(H1(this.paramsInheritanceStrategy,this.environmentInjector),Be({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",un.NoDataFromResolver)}}))}),Be(l=>{let d=new Pm(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),bm(u=>{let l=d=>{var m;let f=[];(m=d.routeConfig)!=null&&m.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(Be(v=>{d.component=v}),b(()=>{})));for(let v of d.children)f.push(...l(v));return f};return gc(l(u.targetSnapshot.root)).pipe(Ar(null),Qe(1))}),bm(()=>this.afterPreactivation()),ce(()=>{var f;let{currentSnapshot:u,targetSnapshot:l}=s,d=(f=this.createViewTransition)==null?void 0:f.call(this,this.environmentInjector,u.root,l.root);return d?Pe(d).pipe(b(()=>s)):S(s)}),b(u=>{let l=XF(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=Ve(T({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),Be(()=>{this.events.next(new Ma)}),o1(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Qe(1),Be({next:u=>{var l;a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new ji(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),(l=this.titleStrategy)==null||l.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Ae(this.transitionAbortSubject.pipe(Be(u=>{throw u}))),Or(()=>{var u;!a&&!c&&this.cancelNavigationTransition(s,"",un.SupersededByNewNavigation),((u=this.currentTransition)==null?void 0:u.id)===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),wn(u=>{if(c=!0,lb(u))this.events.next(new Yr(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),t1(u)?this.events.next(new Sa(u.url)):s.resolve(!1);else{this.events.next(new Ca(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0));try{s.resolve(r.errorHandler(u))}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return xe}))}))}cancelNavigationTransition(r,i,o){let s=new Yr(r.id,this.urlSerializer.serialize(r.extractedUrl),i,o);this.events.next(s),r.resolve(!1)}isUpdatingInternalState(){var r,i;return((r=this.currentTransition)==null?void 0:r.extractedUrl.toString())!==((i=this.currentTransition)==null?void 0:i.currentUrlTree.toString())}isUpdatedBrowserUrl(){var i,o;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==((i=this.currentTransition)==null?void 0:i.extractedUrl.toString())&&!((o=this.currentTransition)!=null&&o.extras.skipLocationChange)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function eL(e){return e!==Ea}var tL=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(nL),providedIn:"root"});let e=t;return e})(),Km=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},nL=(()=>{let t=class t extends Km{};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=ke(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),vb=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>g(rL),providedIn:"root"});let e=t;return e})(),rL=(()=>{let t=class t extends vb{constructor(){super(...arguments),this.location=g(Gs),this.urlSerializer=g(Qm),this.options=g(rg,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(og),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new qr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ib(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var r;return this.canceledNavigationResolution!=="computed"?this.currentPageId:((r=this.restoredState())==null?void 0:r.\u0275routerPageId)??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(r){return this.location.subscribe(i=>{i.type==="popstate"&&r(i.url,i.state)})}handleRouterEvent(r,i){if(r instanceof Ia)this.stateMemento=this.createStateMemento();else if(r instanceof Vi)this.rawUrlTree=i.initialUrl;else if(r instanceof Fl){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else r instanceof Ma?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):r instanceof Yr&&(r.code===un.GuardRejected||r.code===un.NoDataFromResolver)?this.restoreHistory(i):r instanceof Ca?this.restoreHistory(i,!0):r instanceof ji&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,i){let o=this.urlSerializer.serialize(r);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=T(T({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=T(T({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(r,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===r.finalUrl&&s===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,i){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:i}:{navigationId:r}}};t.\u0275fac=(()=>{let r;return function(o){return(r||(r=ke(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),_a=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(_a||{});function iL(e,t){e.events.pipe(Ie(n=>n instanceof ji||n instanceof Yr||n instanceof Ca||n instanceof Vi),b(n=>n instanceof ji||n instanceof Vi?_a.COMPLETE:(n instanceof Yr?n.code===un.Redirect||n.code===un.SupersededByNewNavigation:!1)?_a.REDIRECTING:_a.FAILED),Ie(n=>n!==_a.REDIRECTING),Qe(1)).subscribe(()=>{t()})}function oL(e){throw e}var sL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},aL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},yb=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var r;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=g(Nu),this.stateManager=g(vb),this.options=g(rg,{optional:!0})||{},this.pendingTasks=g(Vs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(J1),this.urlSerializer=g(Qm),this.location=g(Gs),this.urlHandlingStrategy=g(og),this._events=new Oe,this.errorHandler=this.options.errorHandler||oL,this.navigated=!1,this.routeReuseStrategy=g(tL),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=((r=g(ig,{optional:!0}))==null?void 0:r.flat())??[],this.componentInputBindingEnabled=!!g(eg,{optional:!0}),this.eventsSubscription=new ot,this.isNgZoneEnabled=g(fe)instanceof fe&&fe.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Yr&&i.code!==un.Redirect&&i.code!==un.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof ji)this.navigated=!0;else if(i instanceof Sa){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),c={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||eL(o.source)};this.scheduleNavigation(a,Ea,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}uL(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ea,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",i)},0)}))}navigateToSyncWithBrowser(r,i,o){let s={replaceUrl:!0},a=o!=null&&o.navigationId?o:null;if(o){let u=T({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(tg),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(r,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=i,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=T(T({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let m=o?o.snapshot:this.routerState.snapshot.root;f=eb(m)}catch{(typeof r[0]!="string"||!r[0].startsWith("/"))&&(r=[]),f=this.currentUrlTree.root}return tb(f,r,d,l??null)}navigateByUrl(r,i={skipLocationChange:!1}){let o=Zo(r)?r:this.parseUrl(r),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Ea,null,i)}navigate(r,i={skipLocationChange:!1}){return cL(r),this.navigateByUrl(this.createUrlTree(r,i),i)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,i){let o;if(i===!0?o=T({},sL):i===!1?o=T({},aL):o=i,Zo(r))return Vw(this.currentUrlTree,r,o);let s=this.parseUrl(r);return Vw(this.currentUrlTree,s,o)}removeEmptyProps(r){return Object.entries(r).reduce((i,[o,s])=>(s!=null&&(i[o]=s),i),{})}scheduleNavigation(r,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((f,m)=>{c=f,u=m});let d=this.pendingTasks.add();return iL(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function cL(e){for(let t=0;tn.\u0275providers)])}function dL(e){return e.routerState.root}function fL(){let e=g(qt);return t=>{var o,s;let n=e.get(Vr);if(t!==n.components[0])return;let r=e.get(yb),i=e.get(hL);e.get(pL)===1&&r.initialNavigation(),(o=e.get(mL,null,ue.Optional))==null||o.setUpPreloading(),(s=e.get(lL,null,ue.Optional))==null||s.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var hL=new E("",{factory:()=>new Oe}),pL=new E("",{providedIn:"root",factory:()=>1});var mL=new E("");var gY=(()=>{class e extends R{constructor(n,r,i){super(o=>this.stream$.subscribe(o)),this.media=n,this.ngZone=r,this.size$=i,this.sorted=Object.values(this.media).sort((o,s)=>o-s),this.invert=Object.keys(this.media).reduce((o,s)=>Object.assign(Object.assign({},o),{[this.media[s]]:s}),{}),this.stream$=this.size$.pipe(b(({width:o})=>this.sorted.find(s=>s>o)),b(o=>this.invert[o||this.sorted[this.sorted.length-1]]),qe(),rr(this.ngZone),Jt({bufferSize:1,refCount:!0}))}}return e.\u0275fac=function(n){return new(n||e)(M(vm),M(fe),M(rm))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_b=(()=>{class e{constructor(n){this.locale=n}format(n){return S(new Date(n).toLocaleTimeString(this.locale,{hour:"numeric",minute:"2-digit"}))}}return e.\u0275fac=function(n){return new(n||e)(M(Hs))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),vY=(()=>{class e extends We{constructor(){super([])}add(n){this.next(this.value.concat(n))}remove(n){this.value.includes(n)&&this.next(this.value.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var yY=(()=>{class e extends R{constructor(n,r,i,o){super(s=>r.pipe(b(()=>n.nativeElement.getBoundingClientRect()),b(a=>o.getPosition(a)),nr(i),Or(()=>o.getPosition(iE))).subscribe(s))}}return e.\u0275fac=function(n){return new(n||e)(M(Q),M(Rn),M(fe),M(Wr))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})();var Db=(()=>{class e{constructor(n,r,i){this.tuiSanitizer=n,this.sanitizer=r,this.originals={},this.items$=new We(new Map),this.define(i)}define(n){let{value:r}=this.items$;Object.keys(n).forEach(i=>{this.defineIcon(i,n[i],r)}),this.items$.next(r)}getOriginal(n){return this.originals[n]||null}defineIcon(n,r,i){if(i.has(n))return;let o=this.parseSrc(n,r);o&&(i.set(n,o),this.originals=Object.assign(Object.assign({},this.originals),{[n]:r}))}parseSrc(n,r){return this.sanitize(Aw(r,n))}sanitize(n){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(Dt.HTML,n):this.sanitizer.sanitize(Dt.HTML,n))||"")}}return e.\u0275fac=function(n){return new(n||e)(M(Il,8),M(Zs),M(Fw))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_Y=(()=>{class e{constructor(n,r){this.win=n,this.isWebkit=r}correct(n){var r,i,o,s;return this.isWebkit?[n[0]+((i=(r=this.win.visualViewport)===null||r===void 0?void 0:r.offsetTop)!==null&&i!==void 0?i:0),n[1]+((s=(o=this.win.visualViewport)===null||o===void 0?void 0:o.offsetLeft)!==null&&s!==void 0?s:0)]:n}}return e.\u0275fac=function(n){return new(n||e)(M(pe),M(dw))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function vL(e,t){if(e&1&&je(0,"div",3),e&2){let n=me().tuiLet;V("innerHTML",n,To)}}function yL(e,t){if(e&1){let n=Qn();lu(),De(0,"svg",4),Xe("error",function(){On(n);let i=me(2);return Nn(i.onError())}),je(1,"use"),ye()}if(e&2){let n=me(2);oe(),lt("href",n.use,null,"xlink")}}function _L(e,t){if(e&1&&(xn(0),Se(1,vL,1,1,"div",2)(2,yL,2,1,"ng-template",null,0,Ou),Pn()),e&2){let n=Su(3),r=me();oe(),V("ngIf",r.isInnerHTML)("ngIfElse",n)}}var DL={tuiIconAttach:"tuiIconPaperclip",tuiIconAttention:"tuiIconAlertCircle",tuiIconBackCircle:"tuiIconArrowLeftCircle",tuiIconCall:"tuiIconPhone",tuiIconCallIn:"tuiIconPhoneIncoming",tuiIconCallOut:"tuiIconPhoneOutgoing",tuiIconCallTransfer:"tuiIconPhoneForwarded",tuiIconCancel:"tuiIconXCircle",tuiIconCancelCircle:"tuiIconSlash",tuiIconCard:"tuiIconCreditCard",tuiIconCards:"tuiIconCreditCard",tuiIconChartBar:"tuiIconBarChart",tuiIconChart:"tuiIconBarChart",tuiIconCheckList:"tuiIconClipboard",tuiIconCloseCircle:"tuiIconXCircle",tuiIconCollapse:"tuiIconMinimize",tuiIconComment:"tuiIconMessageSquare",tuiIconCommentFw:"tuiIconMessageForward",tuiIconCompany:"tuiIconBriefcase",tuiIconDefaultDoc:"tuiIconFile",tuiIconDesktop:"tuiIconMonitor",tuiIconDesktopOff:"tuiIconMonitorOff",tuiIconDislike:"tuiIconThumbsDown",tuiIconDone:"tuiIconCheckCircle",tuiIconDraft:"tuiIconEdit2",tuiIconEyeOpen:"tuiIconEye",tuiIconEyeClosed:"tuiIconEyeOff",tuiIconExpand:"tuiIconMaximize",tuiIconExternal:"tuiIconExternalLink",tuiIconFrame:"tuiIconLayout",tuiIconGeo:"tuiIconMapPin",tuiIconHeartFilled:"tuiIconHeart",tuiIconHide:"tuiIconEyeOff",tuiIconImg:"tuiIconImage",tuiIconInfoCircle:"tuiIconInfo",tuiIconLike:"tuiIconThumbsUp",tuiIconLockOpen:"tuiIconUnlock",tuiIconMobile:"tuiIconSmartphone",tuiIconMoreHor:"tuiIconMoreHorizontal",tuiIconMoreVer:"tuiIconMoreVertical",tuiIconMoreVert:"tuiIconMoreVertical",tuiIconPicture:"tuiIconImage",tuiIconPin:"tuiIconMapPin",tuiIconPrint:"tuiIconPrinter",tuiIconRefresh:"tuiIconRefreshCw",tuiIconRemove:"tuiIconX",tuiIconShow:"tuiIconEye",tuiIconSound:"tuiIconVolume",tuiIconSoundOff:"tuiIconVolumeX",tuiIconStarFilled:"tuiIconStar",tuiIconStop:"tuiIconSquare",tuiIconStructure:"tuiIconGrid",tuiIconTime:"tuiIconClock",tuiIconTooltip:"tuiIconHelpCircle",tuiIconViewList:"tuiIconList",tuiIconWifiOn:"tuiIconWifi"},EL={iconsPlace:bl,path:Dl(bl),srcProcessor:Je,contentProcessor:Zu,deprecated:e=>{let t=e.replace("Large","").replace("Outline",""),n=DL[t];return n?`${t}/(Large|Outline) is deprecated, use ${n}/(Large|Outline) instead`:""}},wL=se(()=>({iconsPlace:g(gm),path:g(Lw),deprecated:EL.deprecated,srcProcessor:g(jw),contentProcessor:g(kw)})),bL=new E("[TUI_SVG_SRC_INTERCEPTORS]");var IL="Attempted to use undefined named icon",CL="External icon is missing on the given URL",ML="Failed to load external SVG",Jo=(()=>{class e{constructor(n,r,i,o,s,a,c,u,l,d){this.doc=n,this.win=r,this.options=i,this.srcInterceptors=o,this.tuiSanitizer=s,this.svgService=a,this.staticRequestService=c,this.sanitizer=u,this.el=l,this.baseHref=d,this.src$=new fr(1),this.icon="",this.innerHTML$=this.src$.pipe(ce(()=>Fn(this.icon)?this.isExternal?this.getExternalIcon(this.icon):S(this.getSafeHtml(this.icon)):S(this.icon)),Ce(""))}set src(n){var r;let i=this.options.deprecated(String(n));this.icon=((r=this.srcInterceptors)!==null&&r!==void 0?r:[]).reduce((o,s)=>s(o,this.options),this.options.srcProcessor(n||"")),this.src$.next()}get src(){return this.icon}get use(){return Fn(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!Fn(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return ko(this.el.nativeElement)!==this.doc}get isUse(){return this.use.replace(pa,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return Fn(this.icon)&&this.icon.replace(pa,"").endsWith(".svg")}get isSrc(){return Fn(this.icon)&&Nw(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){let{use:n,isUse:r,win:i}=this;return r&&n.startsWith("http")&&!!i.origin&&!n.startsWith(i.origin)}onError(n=CL){let{icon:r}=this,i=new CustomEvent(Mw,{bubbles:!0,detail:{message:n,icon:r}});this.el.nativeElement.dispatchEvent(i)}resolveName(n,r){return r(n,this.baseHref)}getSafeHtml(n){return this.isSrc?this.sanitize(n):this.process(n)}process(n){let r=this.svgService.getOriginal(n);return this.isName&&!r&&n&&this.onError(IL),!this.isShadowDOM||!this.isName?"":this.sanitize(r||"")}sanitize(n){return n=this.options.contentProcessor(n),this.tuiSanitizer&&Fn(n)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(Dt.HTML,n)||""):n}getExternalIcon(n){let r=n.includes(".svg")?n:this.use;return this.staticRequestService.request(r).pipe(wn(()=>(this.onError(ML),S(""))),b(i=>this.sanitize(i.replace("{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({imports:[[kt,bw]]}),e})();var q="{{duration}}ms ease-in-out",we={params:{duration:300}},Tt=300,wb=Ge("tuiHeightCollapse",[le(":enter",[w({height:0}),W(q,w({height:"*"}))],we),le(":leave",[w({height:"*"}),W(q,w({height:0}))],we)]),BY=Ge("tuiHeightCollapseList",[le("* => *",[ft(":enter",[w({height:0}),bt(Tt,[W(q,w({height:"*"}))])],{optional:!0}),ft(":leave",[w({height:"*"}),bt(Tt,[W(q,w({height:0}))])],{optional:!0})],we)]),$Y=Ge("tuiWidthCollapse",[le(":enter",[w({width:0}),W(q,w({width:"*"}))],we),le(":leave",[w({width:"*"}),W(q,w({width:0}))],we)]),HY=Ge("tuiWidthCollapseList",[le("* => *",[ft(":enter",[w({width:0}),bt(Tt,[W(q,w({width:"*"}))])],{optional:!0}),ft(":leave",[w({width:"*"}),bt(Tt,[W(q,w({width:0}))])],{optional:!0})],we)]),Hl=Ge("tuiFadeIn",[le(":enter",[w({opacity:0}),W(q,w({opacity:1}))],we),le(":leave",[w({opacity:1}),W(q,w({opacity:0}))],we)]),zY=Ge("tuiFadeInList",[le("* => *",[ft(":enter",[w({opacity:0}),bt(Tt,[W(q,w({opacity:1}))])],{optional:!0}),ft(":leave",[w({opacity:1}),bt(Tt,[W(q,w({opacity:0}))])],{optional:!0})],we)]),GY=Ge("tuiFadeInTop",[le(":enter",[w({transform:"translateY(-10px)",opacity:0}),W(q,w({transform:"translateY(0)",opacity:1}))],we),le(":leave",[w({transform:"translateY(0)",opacity:1}),W(q,w({transform:"translateY(-10px)",opacity:0}))],we)]),WY=Ge("tuiFadeInBottom",[le(":enter",[w({transform:"translateY(10px)",opacity:0}),W(q,w({transform:"translateY(0)",opacity:1}))],we),le(":leave",[w({transform:"translateY(0)",opacity:1}),W(q,w({transform:"translateY(10px)",opacity:0}))],we)]),qY=Ge("tuiDropdownAnimation",[le(":enter",[w({transform:"translateY(-10px)",opacity:0}),W(q,w({transform:"translateY(0)",opacity:1}))],we),le(":leave",[w({transform:"translateY(0)",opacity:1}),W(q,w({transform:"translateY(-10px)",opacity:0}))],we)]),YY=Ge("tuiScaleIn",[le(":enter",[w({transform:"scale(0)"}),W(q,w({transform:"scale(1)"}))],we),le(":leave",[w({transform:"scale(1)"}),W(q,w({transform:"scale(0)"}))],we)]),ZY=Ge("tuiPop",[le(":enter",[w({transform:"scale(0)"}),W(q,w({transform:"scale(1.1)"})),W(q,w({transform:"scale(1)"}))],we),le(":leave",[w({transform:"scale(1)"}),W(q,w({transform:"scale(1.1)"})),W(q,w({transform:"scale(0)"}))],we)]),KY=Ge("tuiScaleInList",[le("* => *",[ft(":enter",[w({transform:"scale(0)"}),bt(Tt,[W(q,w({transform:"scale(1)"}))])],{optional:!0}),ft(":leave",[w({transform:"scale(1)"}),bt(Tt,[W(q,w({transform:"scale(0)"}))])],{optional:!0})],we)]),QY=Ge("tuiSlideIn",[le("* => left",[w({transform:"translateX(-100%)"}),W(q,w({transform:"translateX(0)"}))],we),le("left => *",[w({transform:"translateX(0)"}),W(q,w({transform:"translateX(-100%)"}))],we),le("* => right",[w({transform:"translateX(100%)"}),W(q,w({transform:"translateX(0)"}))],we),le("right => *",[w({transform:"translateX(0)"}),W(q,w({transform:"translateX(100%)"}))],we)]),XY=Ge("tuiSlideInLeft",[le(":enter",[w({transform:"translateX(-100%)"}),W(q,w({transform:"translateX(0)"}))],we),le(":leave",[w({transform:"translateX(0)"}),W(q,w({transform:"translateX(-100%)"}))],we)]),JY=Ge("tuiSlideInLeftList",[le("* => *",[ft(":enter",[w({transform:"translateX(-100%)"}),bt(Tt,[W(q,w({transform:"translateX(0)"}))])],{optional:!0}),ft(":leave",[w({transform:"translateX(0)"}),bt(Tt,[W(q,w({transform:"translateX(-100%)"}))])],{optional:!0})],we)]),bb=Ge("tuiSlideInRight",[le(":enter",[w({transform:"translateX(100%)"}),W(q,w({transform:"translateX(0)"}))],we),le(":leave",[w({transform:"translateX(0)"}),W(q,w({transform:"translateX(100%)"}))],we)]),e9=Ge("tuiSlideInRightList",[le("* => *",[ft(":enter",[w({transform:"translateX(100%)"}),bt(Tt,[W(q,w({transform:"translateX(0)"}))])],{optional:!0}),ft(":leave",[w({transform:"translateX(0)"}),bt(Tt,[W(q,w({transform:"translateX(100%)"}))])],{optional:!0})],we)]),Ib=Ge("tuiSlideInTop",[le(":enter",[w({transform:"translate3d(0,{{start}},0)"}),W(q,w({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),le(":leave",[w({transform:"translate3d(0,{{end}},0)"}),W(q,w({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]),t9=Ge("tuiSlideInTopList",[le("* => *",[ft(":enter",[w({transform:"translateY(100%)"}),bt(Tt,[W(q,w({transform:"translateY(0)"}))])],{optional:!0}),ft(":leave",[w({transform:"translateY(0)"}),bt(Tt,[W(q,w({transform:"translateY(100%)"}))])],{optional:!0})],we)]),n9=Ge("tuiSlideInBottom",[le(":enter",[w({transform:"translateY(-100%)"}),W(q,w({transform:"translateY(0)"}))],we),le(":leave",[w({transform:"translateY(0)"}),W(q,w({transform:"translateY(-100%)"}))],we)]),r9=Ge("tuiSlideInBottomList",[le("* => *",[ft(":enter",[w({transform:"translateY(-100%)"}),bt(Tt,[W(q,w({transform:"translateY(0)"}))])],{optional:!0}),ft(":leave",[w({transform:"translateY(0)"}),bt(Tt,[W(q,w({transform:"translateY(-100%)"}))])],{optional:!0})],we)]);var Kr=(()=>{class e extends mw{constructor(){super(...arguments),this.mode=null}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275dir=z({type:e,selectors:[["","tuiMode",""]],inputs:{mode:[Ye.None,"tuiMode","mode"]},features:[He]}),e})();var f9={provide:ym,deps:[[new Wn,ym],Q],useFactory:(e,{nativeElement:t})=>(t["$.class._mobile"]=e,e)},zl={provide:Ho,deps:[[new nn,Kr],Q],useFactory:(e,{nativeElement:t})=>{let n=e?e.change$.pipe(Ce(null),b(()=>e.mode)):S(null);return t["$.data-mode.attr"]=n,n}};function SL(e){return e.replace(/[a-z][A-Z]/g,t=>`${t[0]}-${t[1].toLowerCase()}`)}var Tr=class{supports(t){return t.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(t){return t.split(".").filter(n=>!this.modifier.includes(n)).join(".")}},TL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier="$"}addEventListener(n,r){n[r]=n[r]||xe;let i=this.getMethod(n,r),o=this.manager.getZone().onStable,s=$t(o.pipe(Dc(()=>n[r]===xe)),Bn(()=>n[r])).subscribe(i);return()=>s.unsubscribe()}getMethod(n,r){let[,i,o,s=""]=r.split(".");return r.endsWith(".attr")?a=>a===null?n.removeAttribute(i):n.setAttribute(i,String(a)):i==="class"?a=>n.classList.toggle(o,!!a):i==="style"?a=>n.style.setProperty(SL(o),`${a}${s}`):a=>n[i]=a}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),AL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(n){return n.includes(".")&&!this.unwrap(n).includes(".")}addEventListener(n,r,i){return n.addEventListener(this.unwrap(r),i,{once:r.includes(".once"),passive:r.includes(".passive"),capture:r.includes(".capture")}),()=>n.removeEventListener(this.unwrap(r),i,r.includes(".capture"))}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),OL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(n,r,i){let o=s=>{s.preventDefault(),i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),NL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier=".self"}addEventListener(n,r,i){let o=s=>{s.target===s.currentTarget&&i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),Gl=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(n,r,i){return e.ngZone=this.manager.getZone(),e.ngZone.runOutsideAngular(()=>this.manager.addEventListener(n,this.unwrap(r),i))}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),xL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(n,r,i){let o=s=>{s.stopPropagation(),i(s)};return this.manager.addEventListener(n,this.unwrap(r),o)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),PL=(()=>{class e extends Tr{constructor(){super(...arguments),this.modifier=".init"}addEventListener(){return console.warn(".init plugin is no longer necessary as of v3.1.0"),()=>{}}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),RL=[Gl,TL,AL,OL,NL,xL,PL],FL=RL.map(e=>({provide:No,multi:!0,useClass:e}));function v9(e){return(t,n,r)=>{let{value:i}=r;r.value=function(...o){e.apply(this,o)&&(Gl.ngZone?Gl.ngZone.run(()=>i.apply(this,o)):i.apply(this,o))}}}var y9=(()=>{class e{constructor([n]){console.assert(!(n instanceof Gl)||e.initialized,"EventPluginsModule must come after BrowserModule in imports"),e.initialized=!0}}return e.initialized=!1,e.\u0275fac=function(n){return new(n||e)(M(No))},e.\u0275mod=K({type:e}),e.\u0275inj=Z({providers:FL}),e})();var Cb=(()=>{class e{constructor(n){this.mode$=n,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?$o.Disabled:this.readOnly?$o.Readonly:this.active?$o.Active:this.hover?$o.Hover:null}get noHover(){return this.readOnly||this.hover===!1}get noActive(){return this.readOnly||this.active===!1}}return e.\u0275fac=function(n){return new(n||e)(y(Ho))},e.\u0275dir=z({type:e,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(n,r){n&1&&Xe("$.data-mode.attr",function(){return r.mode$}),n&2&&(lt("data-appearance",r.appearance)("data-state",r.interactiveState),tt("_invalid",r.computedInvalid)("_focused",r.computedFocused)("_no-hover",r.noHover)("_no-active",r.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"},features:[ze([zl])]}),e})(),Mb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var kL=["*"];function jL(e,t){if(e&1&&(xn(0),Jn(1),Pn()),e&2){let n=t.polymorpheusOutlet;oe(),gn(" ",n," ")}}function VL(e,t){if(e&1&&(De(0,"div",6),Se(1,jL,2,1,"ng-container",7),ye()),e&2){let n=me(2);tt("t-text_horizontal",n.isHorizontal),oe(),V("polymorpheusOutlet",n.textContent)}}function UL(e,t){if(e&1&&(De(0,"div",2),lu(),De(1,"svg",3),je(2,"circle",4),ye(),Se(3,VL,2,3,"div",5),ye()),e&2){let n=me();tt("t-loader_horizontal",n.isHorizontal)("t-loader_inherit-color",n.inheritColor),lt("data-size",n.size),oe(3),V("ngIf",n.hasText)}}var BL={size:"m",inheritColor:!1,overlay:!1},$L=Te(BL);var Sb=(()=>{class e{constructor(n,r,i,o){this.doc=n,this.el=r,this.isIos=i,this.options=o,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay,this.loading=!0,this.isApple=uE(this.el.nativeElement)||this.isIos}set showLoader(n){n&&this.focused&&mE(this.doc),this.loading=n}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!xw(this.size)}get focused(){return vE(this.el.nativeElement)}}return e.\u0275fac=function(n){return new(n||e)(y(he),y(Q),y(la),y($L))},e.\u0275cmp=ut({type:e,selectors:[["tui-loader"]],hostVars:2,hostBindings:function(n,r){n&2&&tt("_loading",r.loading)},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},ngContentSelectors:kL,decls:3,vars:7,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(n,r){n&1&&(Xn(),De(0,"fieldset",0),Zt(1),ye(),Se(2,UL,4,6,"div",1)),n&2&&(tt("t-content_has-overlay",r.hasOverlay)("t-content_loading",r.loading),V("disabled",r.loading&&!r.isApple),lt("inert",r.loading||null),oe(2),V("ngIf",r.loading))},dependencies:[Lt,Hr],styles:["@keyframes _ngcontent-%COMP%_tuiLoaderDashOffset{0%{stroke-dashoffset:-66}50%{stroke-dashoffset:-314}to{stroke-dashoffset:-66}}@keyframes _ngcontent-%COMP%_tuiLoaderRotate{0%{transform:rotate(0)}50%{transform:rotate(1turn)}to{transform:rotate(3turn)}}[_nghost-%COMP%]{position:relative;display:flex;min-width:1.5rem}._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-size=xs][_ngcontent-%COMP%]{font-size:.75rem;stroke-width:38}.t-loader[data-size=s][_ngcontent-%COMP%]{font-size:1rem;stroke-width:25}.t-loader[data-size=m][_ngcontent-%COMP%]{font-size:1.5rem;stroke-width:17}.t-loader[data-size=l][_ngcontent-%COMP%]{font-size:2.5rem;stroke-width:15}.t-loader[data-size=xl][_ngcontent-%COMP%]{font-size:3.5rem;stroke-width:14}.t-loader[data-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:_ngcontent-%COMP%_tuiLoaderRotate 3s linear infinite}@supports (-webkit-hyphens: none){.t-icon[_ngcontent-%COMP%]{overflow:visible}}.t-circle[_ngcontent-%COMP%]{fill:none;stroke:inherit;stroke-width:inherit;animation:_ngcontent-%COMP%_tuiLoaderDashOffset 3s linear infinite}"],changeDetection:0}),e})(),Tb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({imports:[[kt,zr]]}),e})();var zL=["tuiButton",""],GL=["*"];function WL(e,t){e&1&&Ci(0)}function qL(e,t){if(e&1&&je(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;V("src",n)}}function YL(e,t){if(e&1&&(De(0,"span",6),Se(1,qL,1,1,"tui-svg",7),ye()),e&2){let n=me();oe(),V("polymorpheusOutlet",n.icon)}}function ZL(e,t){if(e&1&&je(0,"tui-svg",8),e&2){let n=t.polymorpheusOutlet;V("src",n)}}function KL(e,t){if(e&1&&(De(0,"span",9),Se(1,ZL,1,1,"tui-svg",7),ye()),e&2){let n=me();oe(),V("polymorpheusOutlet",n.iconRight)}}function QL(e,t){if(e&1&&je(0,"tui-loader",10),e&2){let n=me();V("inheritColor",!0)("size",n.loaderSize)}}var XL={size:"l",shape:null,appearance:ma.Primary},sg=Te(XL);var Ra=(()=>{class e extends sm{constructor(n,r,i){var o;super(),this.mode=n,this.el=r,this.options=i,this.mode$=((o=this.mode)===null||o===void 0?void 0:o.change$)||xe,this.appearance=null,this.disabled=!1,this.shape=this.options.shape,this.showLoader=!1,this.size=this.options.size,this.appearance$=this.mode$.pipe(Ce(null),b(()=>this.computedAppearance),qe())}get nativeFocusableElement(){return this.nativeDisabled?null:this.el.nativeElement}get focused(){return!this.showLoader&&jo(this.el.nativeElement)}get loaderSize(){return this.size==="l"||this.size==="xl"?"m":"s"}get computedAppearance(){var n;return(n=this.appearance)!==null&&n!==void 0?n:this.options.appearance||""}get nativeDisabled(){return this.computedDisabled||this.showLoader?"":null}get tabIndex(){return this.focusable?0:-1}onFocused(n){this.updateFocused(n)}}return e.\u0275fac=function(n){return new(n||e)(y(Kr,8),y(Q),y(sg))},e.\u0275cmp=ut({type:e,selectors:[["button","tuiButton",""],["button","tuiIconButton",""],["a","tuiButton",""],["a","tuiIconButton",""]],hostVars:7,hostBindings:function(n,r){n&1&&Xe("focusin",function(){return r.onFocused(!0)})("focusout",function(){return r.onFocused(!1)}),n&2&&(Bh("tabIndex",r.tabIndex),lt("data-shape",r.shape)("data-size",r.size)("data-appearance",r.computedAppearance)("disabled",r.nativeDisabled),tt("_loading",r.showLoader))},inputs:{appearance:"appearance",disabled:"disabled",icon:"icon",iconRight:"iconRight",shape:"shape",showLoader:"showLoader",size:"size"},features:[ze([pl(e),Ze]),He],attrs:zL,ngContentSelectors:GL,decls:8,vars:10,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"active","appearance","disabled","hover"],[1,"t-content"],["class","t-left",4,"ngIf"],["class","t-right",4,"ngIf"],["class","t-loader",3,"inheritColor","size",4,"ngIf"],[1,"t-left"],["class","t-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-icon",3,"src"],[1,"t-right"],[1,"t-loader",3,"inheritColor","size"]],template:function(n,r){n&1&&(Xn(),Se(0,WL,1,0,"ng-container",0),vn(1,"async"),De(2,"div",1)(3,"span",2),Se(4,YL,2,1,"span",3),Zt(5),Se(6,KL,2,1,"span",4),ye(),Se(7,QL,1,2,"tui-loader",5),ye()),n&2&&(V("ngIf",yn(1,8,r.appearance$)),oe(2),V("active",r.pseudoActive)("appearance",r.computedAppearance)("disabled",r.computedDisabled)("hover",r.pseudoHover),oe(2),V("ngIf",r.icon),oe(2),V("ngIf",r.iconRight),oe(),V("ngIf",r.showLoader))},dependencies:[Jo,Sb,Lt,Cb,Hr,er],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;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;user-select:none;outline:none;color:inherit}[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%]{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%]{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%]{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%]{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%]{width:3.75rem}[tuiIconButton][_nghost-%COMP%]{font-size:0!important}[tuiIconButton][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0!important}.t-loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:default}.t-left[_ngcontent-%COMP%]{margin-right:.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.375rem}[data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.25rem}.t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .25rem}[data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .375rem}[data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.125rem 0 .25rem}.t-icon[_ngcontent-%COMP%]{display:flex;max-width:100%;max-height:100%;align-items:center;justify-content:center}.t-left[_ngcontent-%COMP%], .t-right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1rem;height:1rem}[tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%], [tuiIconButton][data-appearance=link][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=link][data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.t-wrapper[_ngcontent-%COMP%]{box-sizing:border-box;cursor:pointer;isolation:isolate}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .375rem)}[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}),e})(),Wl=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({imports:[[kt,zr,Mb,es,Tb]]}),e})();var ek=["tuiLink",""],tk=["*"];function nk(e,t){if(e&1&&je(0,"tui-svg",3),e&2){let n=me();V("src",n.icon||"")}}function rk(e,t){if(e&1&&je(0,"tui-svg",4),e&2){let n=me();V("src",n.icon||"")}}var Ab=(()=>{class e{constructor(n,r,i){this.el=n,this.mode$=r,this.pseudo=!1,this.icon="",this.iconAlign="right",this.iconRotated=!1,this.mode=null,this.focusVisible=!1,this.focusedChange=Ue(J(this.el.nativeElement,"focusin").pipe(b(Ro)),J(this.el.nativeElement,"focusout").pipe(b(Br))),i.subscribe(o=>{this.focusVisible=o})}get nativeFocusableElement(){return this.el.nativeElement}get focused(){return jo(this.nativeFocusableElement)}get hasIcon(){return!!this.icon}get iconAlignLeft(){return this.hasIcon&&this.iconAlign==="left"}get iconAlignRight(){return this.hasIcon&&this.iconAlign==="right"}}return e.\u0275fac=function(n){return new(n||e)(y(Q),y(Ho),y(im))},e.\u0275cmp=ut({type:e,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostVars:7,hostBindings:function(n,r){n&1&&Xe("$.data-mode.attr",function(){return r.mode$}),n&2&&(lt("data-host-mode",r.mode),tt("_pseudo",r.pseudo)("_icon-rotated",r.iconRotated)("_focus-visible",r.focusVisible))},inputs:{pseudo:"pseudo",icon:"icon",iconAlign:"iconAlign",iconRotated:"iconRotated",mode:"mode"},exportAs:["tuiLink"],features:[ze([pl(e),im,Ze,zl])],attrs:ek,ngContentSelectors:tk,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(n,r){n&1&&(Xn(),Se(0,nk,1,1,"tui-svg",0),De(1,"span",1),Zt(2),ye(),Se(3,rk,1,1,"tui-svg",2)),n&2&&(V("ngIf",r.iconAlignLeft),oe(3),V("ngIf",r.iconAlignRight))},dependencies:[Jo,Lt],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);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:#0000007a}[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:#ffffff7a}[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:#de4c1e7a}[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:#3aa9817a}._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;width:var(--tui-link-icon-size, 1.5rem);height:var(--tui-link-icon-size, 1.5rem);margin-top:-.125rem}.t-icon_left[_ngcontent-%COMP%]{margin-right:.25rem}.t-icon_right[_ngcontent-%COMP%]{margin-left:.25rem}._icon-rotated[_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),e})(),Ob=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({imports:[[kt,es]]}),e})();function ik(e,t){if(e&1&&(xn(0),Jn(1),Pn()),e&2){let n=t.polymorpheusOutlet;oe(),gn(" ",n," ")}}function ok(e,t){if(e&1&&(De(0,"header",6),Se(1,ik,2,1,"ng-container",3),ye()),e&2){let n=me();oe(),V("polymorpheusOutlet",n.header)("polymorpheusOutletContext",n.context)}}function sk(e,t){if(e&1){let n=Qn();xn(0),je(1,"div",7),De(2,"div",8)(3,"button",9),Xe("click",function(){On(n);let i=me();return Nn(i.context.$implicit.complete())}),Jn(4),ye()(),Pn()}if(e&2){let n=t.polymorpheusOutlet,r=me();oe(),V("innerHTML",n,To),oe(3),gn(" ",(r.context.data==null?null:r.context.data.button)||"OK"," ")}}function ak(e,t){if(e&1){let n=Qn();De(0,"div",10)(1,"button",11),vn(2,"async"),Xe("click",function(){On(n);let i=me();return Nn(i.close$.next())})("mousedown.prevent.silent",function(){return On(n),Nn(0)}),ye()()}if(e&2){let n=me();oe(),V("appearance",n.fullscreen?"secondary":"")("icon",n.icons.close)("title",yn(2,3,n.closeWord$))}}var ck={size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""},uk=Te(xe),lk=Te(ck);var dk=17,Nb=(()=>{class e extends R{constructor(n,r,i){super(o=>Ue(this.esc$,this.mousedown$).subscribe(o)),this.win=n,this.doc=r,this.el=i,this.esc$=J(this.doc,"keydown").pipe(Ie(o=>{let s=$r(o);return o.key==="Escape"&&!o.defaultPrevented&&(this.element.contains(s)||this.isOutside(s))})),this.mousedown$=J(this.doc,"mousedown").pipe(Ie(o=>_l(this.win)-o.clientX>dk&&this.isOutside($r(o))),ce(()=>J(this.doc,"mouseup").pipe(Qe(1),b($r),Ie(o=>this.isOutside(o)))))}get element(){return this.el.nativeElement}isOutside(n){return Wu(n)&&(!pE(this.element,n)||n===this.element)}}return e.\u0275fac=function(n){return new(n||e)(M(pe),M(he),M(Q))},e.\u0275prov=C({token:e,factory:e.\u0275fac}),e})(),fk=new Error("Required dialog was dismissed");function xb(e){return oi(e)?e:S(e)}var hk=(()=>{class e{constructor(n,r,i,o,s,a,c,u){this.duration=n,this.isMobile=r,this.context=i,this.closeWord$=c,this.icons=u,this.animation={value:"",params:{start:"40px",duration:this.duration}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:this.duration}},this.close$=new Oe,Ue(this.close$.pipe(ce(()=>xb(i.closeable))),s.pipe(ce(()=>xb(i.dismissible))),a.pipe(b(Ro))).pipe(Ie(Boolean),Ae(o)).subscribe(()=>{this.close()})}get size(){return this.context.size}get header(){return this.context.header}get slideInTop(){return this.fullscreen||this.isMobile?this.fullscreenAnimation:this.animation}get fullscreen(){return!this.isMobile&&(this.size==="fullscreen"||this.size==="page")}close(){this.context.required?this.context.$implicit.error(fk):this.context.$implicit.complete()}}return e.\u0275fac=function(n){return new(n||e)(y(mm),y(nm),y(na),y(Ze,2),y(Nb),y(uk),y(wl),y(El))},e.\u0275cmp=ut({type:e,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(n,r){n&2&&($s("@tuiSlideInTop",r.slideInTop)("@tuiFadeIn",r.slideInTop),lt("data-appearance",r.context.appearance)("data-size",r.size),tt("_centered",r.header))},features:[ze([Ze,Nb])],decls:7,vars:6,consts:[["class","t-header",4,"ngIf"],[1,"t-content"],[1,"t-heading",3,"id","textContent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-filler"],["class","t-wrapper",4,"ngIf"],[1,"t-header"],[3,"innerHTML"],[1,"t-buttons"],["size","m","tuiAutoFocus","","tuiButton","","type","button",3,"click"],[1,"t-wrapper"],["automation-id","tui-dialog__close","shape","rounded","size","s","tuiIconButton","","type","button",1,"t-close",3,"click","mousedown.prevent.silent","appearance","icon","title"]],template:function(n,r){n&1&&(Se(0,ok,2,2,"header",0),De(1,"div",1),je(2,"h2",2),De(3,"section"),Se(4,sk,5,2,"ng-container",3),ye()(),je(5,"div",4),Se(6,ak,3,5,"div",5)),n&2&&(V("ngIf",r.header),oe(2),V("id",r.context.id)("textContent",r.context.label),oe(2),V("polymorpheusOutlet",r.context.content)("polymorpheusOutletContext",r.context),oe(2),V("ngIf",r.context.closeable))},dependencies:[Ra,Lt,Hr,Dw,er],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%;content:"";border-radius:inherit;pointer-events:none;box-shadow:var(--tui-shadow-modal)}[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%]{min-width:100vw;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-elevation-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;z-index:1;order:-1}.t-filler[_ngcontent-%COMP%]{flex-grow: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;display:none;color:var(--tui-base-01)}.t-dialog:last-of-type[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], .t-dialog:last-of-type [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]{animation:tuiFadeIn var(--tui-duration);background:rgba(104,104,104,.96)}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]:hover{background:rgba(159,159,159,.86)}[_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!important;color:var(--tui-text-01);opacity:.5}.t-buttons[_ngcontent-%COMP%]{margin-top:1.25rem;text-align:right}'],data:{animation:[Ib,Hl]}}),e})(),pk=new Ni(hk),mk=(()=>{class e extends ml{constructor(){super(...arguments),this.component=pk,this.defaultOptions=Object.assign(Object.assign({},g(lk)),{data:void 0})}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var RZ=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({providers:[lw(mk)],imports:[[zr,Wl,kt,Ew]]}),e})();var Pb=(()=>{class e{constructor(n){this.service=n}transform(n){return this.service.format(n.valueOf())}}return e.\u0275fac=function(n){return new(n||e)(y(_b,16))},e.\u0275pipe=yi({name:"tuiFormatDate",type:e,pure:!0}),e})(),Rb=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();var gk=[[["img"]],[["tui-svg"]],"*",[["","tuiButton",""]],[["","tuiLink",""]]],vk=["img","tui-svg","*","[tuiButton]","[tuiLink]"];function yk(e,t){if(e&1){let n=Qn();De(0,"button",10),vn(1,"async"),Xe("click",function(){On(n);let i=me();return Nn(i.close.emit())}),ye()}if(e&2){let n=me();V("icon",n.icons.close)("title",yn(1,2,n.closeWord$))}}function _k(e,t){if(e&1&&(je(0,"span",11),vn(1,"tuiFormatDate"),vn(2,"async")),e&2){let n=me();V("textContent",n.isString(n.timestamp)?n.timestamp:yn(2,3,yn(1,1,n.timestamp)))}}function Dk(e,t){if(e&1&&je(0,"img",8),e&2){let n=me(2);V("src",n.context.image,H_)}}function Ek(e,t){if(e&1&&je(0,"tui-svg",9),e&2){let n=me(2);Ii("color",n.context.iconColor),V("src",n.context.icon)}}function wk(e,t){if(e&1&&je(0,"div",10),e&2){let n=t.polymorpheusOutlet;V("innerHTML",n,To)}}function bk(e,t){if(e&1){let n=Qn();De(0,"button",11),Xe("click",function(){On(n);let i=me(2);return Nn(i.context.$implicit.next(i.context.buttons[0]))}),Jn(1),ye()}if(e&2){let n=me(2);oe(),gn(" ",n.context.buttons[0]," ")}}function Ik(e,t){if(e&1){let n=Qn();De(0,"button",12),Xe("click",function(){On(n);let i=me(2);return Nn(i.context.$implicit.next(i.context.buttons[i.context.buttons.length-1]))}),Jn(1),ye()}if(e&2){let n=me(2);oe(),gn(" ",n.context.buttons[n.context.buttons.length-1]," ")}}function Ck(e,t){if(e&1){let n=Qn();De(0,"tui-push",2),Xe("close",function(){On(n);let i=me();return Nn(i.context.$implicit.complete())}),Se(1,Dk,1,1,"img",3)(2,Ek,1,3,"tui-svg",4)(3,wk,1,1,"div",5)(4,bk,2,1,"button",6)(5,Ik,2,1,"button",7),ye()}if(e&2){let n=me();V("heading",n.context.heading)("timestamp",n.context.timestamp)("type",n.context.type),oe(),V("ngIf",n.context.image),oe(),V("ngIf",n.context.icon),oe(),V("polymorpheusOutlet",n.context.content)("polymorpheusOutletContext",n.context),oe(),V("ngIf",n.context.buttons.length>1),oe(),V("ngIf",n.context.buttons.length)}}function Mk(e,t){e&1&&Ci(0)}function Sk(e,t){if(e&1&&Se(0,Mk,1,0,"ng-container",13),e&2){let n=me();V("polymorpheusOutlet",n.context.content)}}var Tk=(()=>{class e{constructor(n,r){this.closeWord$=n,this.icons=r,this.heading="",this.type="",this.lines=2,this.timestamp="",this.close=new st,this.isString=Fn}get closeable(){return CE(this.close)}}return e.\u0275fac=function(n){return new(n||e)(y(wl),y(El))},e.\u0275cmp=ut({type:e,selectors:[["tui-push"]],hostVars:2,hostBindings:function(n,r){n&2&&Ii("--t-lines",r.lines)},inputs:{heading:"heading",type:"type",lines:"lines",timestamp:"timestamp"},outputs:{close:"close"},ngContentSelectors:vk,decls:17,vars:4,consts:[[1,"t-image"],["appearance","","shape","rounded","size","xs","tuiIconButton","","type","button","class","t-close",3,"icon","title","click",4,"ngIf"],[1,"t-top"],[1,"t-icon"],["class","t-time",3,"textContent",4,"ngIf"],["automation-id","tui-push__heading",1,"t-heading"],[1,"t-content"],[1,"t-actions"],[1,"t-button"],[1,"t-link"],["appearance","","shape","rounded","size","xs","tuiIconButton","","type","button",1,"t-close",3,"click","icon","title"],[1,"t-time",3,"textContent"]],template:function(n,r){n&1&&(Xn(gk),De(0,"div",0),Zt(1),ye(),Se(2,yk,2,4,"button",1),De(3,"div",2)(4,"span",3),Zt(5,1),ye(),Jn(6),Se(7,_k,3,5,"span",4),ye(),De(8,"h3",5),Jn(9),ye(),De(10,"div",6),Zt(11,2),ye(),De(12,"div",7)(13,"span",8),Zt(14,3),ye(),De(15,"span",9),Zt(16,4),ye()()),n&2&&(oe(2),V("ngIf",r.closeable),oe(4),gn(" ",r.type," "),oe(),V("ngIf",r.timestamp),oe(2),gn(" ",r.heading,` +`))},dependencies:[Ra,Lt,er,Pb],styles:['[_nghost-%COMP%]{position:relative;display:block;width:22.5rem;max-width:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-xl);background:var(--tui-elevation-02);box-shadow:var(--tui-shadow)}.t-image[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-height:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem;color:#0000008a;background:rgba(242,242,242,.32);-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}.t-top[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-02)}.t-icon[_ngcontent-%COMP%]{height:1.25rem;margin-right:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-link)}.t-time[_ngcontent-%COMP%]:before{content:"\\2022";display:inline-block;width:1rem;text-align:center}.t-heading[_ngcontent-%COMP%]{line-height:1.25rem;font-weight:bold;margin:.75rem 0 .25rem}.t-heading[_ngcontent-%COMP%], .t-content[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--t-lines);word-break:break-word;overflow:hidden}.t-actions[_ngcontent-%COMP%]{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button[_ngcontent-%COMP%]:not(:empty){margin:.75rem .75rem .75rem 0}.t-link[_ngcontent-%COMP%]{margin:.75rem 0}.t-link[_ngcontent-%COMP%]:empty{margin:.5rem}'],changeDetection:0}),e})(),Ak=(()=>{class e extends Kr{constructor(n){var r;super(),this.modeDirective=n,this.size="s",this.shape=null,this.change$=((r=this.modeDirective)===null||r===void 0?void 0:r.change$)||new Oe}get appearance(){var n;return((n=this.modeDirective)===null||n===void 0?void 0:n.mode)==="onDark"?"accent":"secondary"}}return e.\u0275fac=function(n){return new(n||e)(y(Kr,12))},e.\u0275dir=z({type:e,selectors:[["tui-push"]],features:[ze([{provide:Kr,useExisting:e},{provide:sg,useExisting:e}]),He]}),e})(),Ok={heading:"",type:"",timestamp:"",image:"",icon:"",iconColor:"",buttons:[]},Nk=Te(Ok);var xk=(()=>{class e extends Ip{constructor(n,r,i,o){super(n,r),this.show$=new Oe,this.show$.pipe(IE(()=>o.open(this)),Ae(i)).subscribe()}set tuiPush(n){this.show$.next(n)}}return e.\u0275fac=function(n){return new(n||e)(y(_t),y(dt),y(Ze,2),y(wr(()=>Fb)))},e.\u0275dir=z({type:e,selectors:[["","tuiPush",""]],inputs:{tuiPush:"tuiPush"},features:[ze([Ze]),He]}),e})(),Pk=(()=>{class e{constructor(n,r){this.animation=n,this.context=r}get isDirective(){return this.context.content instanceof xk}}return e.\u0275fac=function(n){return new(n||e)(y(Rw),y(na))},e.\u0275cmp=ut({type:e,selectors:[["tui-push-alert"]],hostAttrs:["role","alert"],hostVars:3,hostBindings:function(n,r){n&2&&$s("@tuiFadeIn",r.animation)("@tuiSlideInRight",r.animation)("@tuiHeightCollapse",r.animation)},decls:3,vars:2,consts:[["directive",""],[3,"heading","timestamp","type","close",4,"ngIf","ngIfElse"],[3,"close","heading","timestamp","type"],["alt","",3,"src",4,"ngIf"],[3,"src","color",4,"ngIf"],[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],["tuiButton","","type","button",3,"click",4,"ngIf"],["tuiLink","","type","button",3,"click",4,"ngIf"],["alt","",3,"src"],[3,"src"],[3,"innerHTML"],["tuiButton","","type","button",3,"click"],["tuiLink","","type","button",3,"click"],[4,"polymorpheusOutlet"]],template:function(n,r){if(n&1&&Se(0,Ck,6,9,"tui-push",1)(1,Sk,1,1,"ng-template",null,0,Ou),n&2){let i=Su(2);V("ngIf",!r.isDirective)("ngIfElse",i)}},dependencies:[Tk,Jo,Ra,Ab,Lt,Ak,Hr],styles:["[_nghost-%COMP%]{max-width:calc(100% - 2rem);margin:0 1rem 1rem auto}[_nghost-%COMP%]:first-child{margin-top:auto}"],data:{animation:[Hl,bb,wb]},changeDetection:0}),e})(),Fb=(()=>{class e extends ml{constructor(){super(...arguments),this.component=new Ni(Pk),this.defaultOptions=g(Nk)}}return e.\u0275fac=(()=>{let t;return function(r){return(t||(t=ke(e)))(r||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),rK=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({providers:[{provide:cw,useExisting:Fb,multi:!0}],imports:[[kt,zr,Wl,Ob,es,Rb]]}),e})();var kb=yI(Lb());var Rk=new E("Config for DOMPurify",{factory:()=>({}),providedIn:"root"}),Fk=new E("Hooks for DOMPurify",{factory:()=>[],providedIn:"root"}),Lk=new E("A function that sanitizes value for a CSS rule",{factory:()=>e=>e,providedIn:"root"}),kk=kb.default,dK=(()=>{class e{constructor(n,r,{defaultView:i},o){this.config=n,this.sanitizeStyle=r,this.domPurify=kk(i),o.forEach(({name:s,hook:a})=>{this.domPurify.addHook(s,a)})}sanitize(n,r,i=this.config){if(n===Dt.SCRIPT)throw new Error("DOMPurify does not support SCRIPT context");return n===Dt.STYLE?this.sanitizeStyle(String(r)):this.domPurify.sanitize(String(r||""),i)}}return e.\u0275fac=function(n){return new(n||e)(M(Rk),M(Lk),M(he),M(Fk))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var fK=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=K({type:e}),e.\u0275inj=Z({}),e})();export{dd as a,Je as b,R as c,Oe as d,We as e,fr as f,xe as g,tc as h,nc as i,S as j,b as k,gc as l,$n as m,vt as n,Ue as o,ZI as p,Ie as q,XI as r,bv as s,Qe as t,hs as u,qe as v,yc as w,Ht as x,xd as y,Ce as z,ce as A,Ae as B,Be as C,Nr as D,wr as E,C as F,Z as G,E as H,M as I,g as J,nn as K,Ey as L,Wn as M,wo as N,Ye as O,ut as P,K as Q,z as R,yi as S,zC as T,mn as U,On as V,Nn as W,lu as X,ke as Y,qt as Z,Q as _,st as $,Yt as aa,fG as ba,Dt as ca,To as da,hG as ea,G_ as fa,oe as ga,y as ha,_t as ia,Af as ja,gi as ka,Ir as la,js as ma,fe as na,Ft as oa,He as pa,Se as qa,lt as ra,V as sa,Ii as ta,tt as ua,De as va,ye as wa,je as xa,xn as ya,Pn as za,Ci as Aa,Qn as Ba,Bh as Ca,$s as Da,Xe as Ea,me as Fa,Xn as Ga,Zt as Ha,xO as Ia,GD as Ja,$h as Ka,Hh as La,Su as Ma,Jn as Na,LO as Oa,gn as Pa,kO as Qa,gG as Ra,jO as Sa,ze as Ta,YD as Ua,vG as Va,yG as Wa,_G as Xa,vn as Ya,yn as Za,DG as _a,EG as $a,wG as ab,Ou as bb,dt as cb,he as db,zG as eb,GG as fb,Lt as gb,er as hb,kt as ib,Si as jb,C0 as kb,_3 as lb,x0 as mb,D3 as nb,QF as ob,J6 as pb,pp as qb,H0 as rb,Ai as sb,j3 as tb,zu as ub,Ax as vb,xx as wb,U3 as xb,Ge as yb,w as zb,le as Ab,nE as Bb,ft as Cb,Br as Db,Ro as Eb,uW as Fb,lW as Gb,iE as Hb,dW as Ib,fW as Jb,hW as Kb,sE as Lb,mW as Mb,vW as Nb,yW as Ob,Mr as Pb,DW as Qb,EW as Rb,wW as Sb,lE as Tb,Te as Ub,se as Vb,Oi as Wb,CW as Xb,pE as Yb,Wu as Zb,Lo as _b,$r as $b,AW as ac,OW as bc,NW as cc,xW as dc,PW as ec,_p as fc,mE as gc,gE as hc,kW as ic,jo as jc,vE as kc,Vo as lc,_E as mc,DE as nc,EE as oc,QW as pc,J as qc,IE as rc,XW as sc,Xx as tc,SE as uc,nr as vc,rr as wc,na as xc,Ni as yc,Ip as zc,Hr as Ac,zr as Bc,pe as Cc,Y3 as Dc,Z3 as Ec,gp as Fc,LP as Gc,xE as Hc,xp as Ic,RE as Jc,dl as Kc,GE as Lc,WE as Mc,cw as Nc,TR as Oc,ua as Pc,pl as Qc,S4 as Rc,la as Sc,nm as Tc,T4 as Uc,da as Vc,k4 as Wc,Ze as Xc,oq as Yc,im as Zc,RR as _c,sq as $c,aq as ad,sm as bd,fa as cd,Cq as dd,mw as ed,Mq as fd,Sq as gd,Oq as hd,Nq as id,Zq as jd,Kq as kd,Qq as ld,yl as md,m8 as nd,g8 as od,ww as pd,bw as qd,K8 as rd,Q8 as sd,tF as td,e5 as ud,t5 as vd,um as wd,nF as xd,Cl as yd,E6 as zd,Ml as Ad,w6 as Bd,b6 as Cd,I6 as Dd,Wr as Ed,C6 as Fd,M6 as Gd,ga as Hd,S6 as Id,T6 as Jd,A6 as Kd,Hl as Ld,qY as Md,h as Nd,Fi as Od,dF as Pd,o5 as Qd,s5 as Rd,a5 as Sd,M5 as Td,S5 as Ud,T5 as Vd,A5 as Wd,xw as Xd,ma as Yd,$o as Zd,hF as _d,pF as $d,mm as ae,Rw as be,El as ce,W5 as de,q5 as ee,yF as fe,K5 as ge,J5 as he,_F as ie,Ho as je,Il as ke,a6 as le,c6 as me,bF as ne,u6 as oe,l6 as pe,d6 as qe,f6 as re,gY as se,vY as te,yY as ue,Db as ve,_Y as we,Jo as xe,es as ye,Kr as ze,zl as Ae,v9 as Be,y9 as Ce,Cb as De,Mb as Ee,Sb as Fe,Tb as Ge,Ra as He,Wl as Ie,Ab as Je,Ob as Ke,mk as Le,RZ as Me,Tk as Ne,Ak as Oe,xk as Pe,rK as Qe,dK as Re,fK as Se}; +//# sourceMappingURL=chunk-GH5PDYR7.js.map diff --git a/chunk-GH5PDYR7.js.map b/chunk-GH5PDYR7.js.map new file mode 100644 index 00000000..07ad7090 --- /dev/null +++ b/chunk-GH5PDYR7.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["node_modules/dompurify/dist/purify.js","node_modules/@angular/core/fesm2022/primitives/signals.mjs","node_modules/rxjs/dist/esm/internal/util/isFunction.js","node_modules/rxjs/dist/esm/internal/util/createErrorClass.js","node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js","node_modules/rxjs/dist/esm/internal/util/arrRemove.js","node_modules/rxjs/dist/esm/internal/Subscription.js","node_modules/rxjs/dist/esm/internal/config.js","node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js","node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js","node_modules/rxjs/dist/esm/internal/util/noop.js","node_modules/rxjs/dist/esm/internal/NotificationFactories.js","node_modules/rxjs/dist/esm/internal/util/errorContext.js","node_modules/rxjs/dist/esm/internal/Subscriber.js","node_modules/rxjs/dist/esm/internal/symbol/observable.js","node_modules/rxjs/dist/esm/internal/util/identity.js","node_modules/rxjs/dist/esm/internal/util/pipe.js","node_modules/rxjs/dist/esm/internal/Observable.js","node_modules/rxjs/dist/esm/internal/util/lift.js","node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js","node_modules/rxjs/dist/esm/internal/operators/refCount.js","node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js","node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js","node_modules/rxjs/dist/esm/internal/Subject.js","node_modules/rxjs/dist/esm/internal/BehaviorSubject.js","node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js","node_modules/rxjs/dist/esm/internal/ReplaySubject.js","node_modules/rxjs/dist/esm/internal/scheduler/Action.js","node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js","node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js","node_modules/rxjs/dist/esm/internal/Scheduler.js","node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js","node_modules/rxjs/dist/esm/internal/scheduler/async.js","node_modules/rxjs/dist/esm/internal/observable/empty.js","node_modules/rxjs/dist/esm/internal/util/isScheduler.js","node_modules/rxjs/dist/esm/internal/util/args.js","node_modules/tslib/tslib.es6.mjs","node_modules/rxjs/dist/esm/internal/util/isArrayLike.js","node_modules/rxjs/dist/esm/internal/util/isPromise.js","node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js","node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js","node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js","node_modules/rxjs/dist/esm/internal/symbol/iterator.js","node_modules/rxjs/dist/esm/internal/util/isIterable.js","node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js","node_modules/rxjs/dist/esm/internal/observable/innerFrom.js","node_modules/rxjs/dist/esm/internal/util/executeSchedule.js","node_modules/rxjs/dist/esm/internal/operators/observeOn.js","node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js","node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js","node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js","node_modules/rxjs/dist/esm/internal/observable/from.js","node_modules/rxjs/dist/esm/internal/observable/of.js","node_modules/rxjs/dist/esm/internal/observable/throwError.js","node_modules/rxjs/dist/esm/internal/util/isObservable.js","node_modules/rxjs/dist/esm/internal/util/EmptyError.js","node_modules/rxjs/dist/esm/internal/util/isDate.js","node_modules/rxjs/dist/esm/internal/operators/map.js","node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js","node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js","node_modules/rxjs/dist/esm/internal/util/createObject.js","node_modules/rxjs/dist/esm/internal/observable/combineLatest.js","node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js","node_modules/rxjs/dist/esm/internal/operators/mergeMap.js","node_modules/rxjs/dist/esm/internal/operators/mergeAll.js","node_modules/rxjs/dist/esm/internal/operators/concatAll.js","node_modules/rxjs/dist/esm/internal/observable/concat.js","node_modules/rxjs/dist/esm/internal/observable/defer.js","node_modules/rxjs/dist/esm/internal/observable/forkJoin.js","node_modules/rxjs/dist/esm/internal/observable/fromEvent.js","node_modules/rxjs/dist/esm/internal/observable/timer.js","node_modules/rxjs/dist/esm/internal/observable/merge.js","node_modules/rxjs/dist/esm/internal/observable/never.js","node_modules/rxjs/dist/esm/internal/util/argsOrArgArray.js","node_modules/rxjs/dist/esm/internal/operators/filter.js","node_modules/rxjs/dist/esm/internal/observable/race.js","node_modules/rxjs/dist/esm/internal/operators/catchError.js","node_modules/rxjs/dist/esm/internal/operators/scanInternals.js","node_modules/rxjs/dist/esm/internal/operators/concatMap.js","node_modules/rxjs/dist/esm/internal/operators/debounce.js","node_modules/rxjs/dist/esm/internal/operators/debounceTime.js","node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js","node_modules/rxjs/dist/esm/internal/operators/take.js","node_modules/rxjs/dist/esm/internal/operators/ignoreElements.js","node_modules/rxjs/dist/esm/internal/operators/mapTo.js","node_modules/rxjs/dist/esm/internal/operators/delayWhen.js","node_modules/rxjs/dist/esm/internal/operators/delay.js","node_modules/rxjs/dist/esm/internal/operators/distinctUntilChanged.js","node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js","node_modules/rxjs/dist/esm/internal/operators/endWith.js","node_modules/rxjs/dist/esm/internal/operators/finalize.js","node_modules/rxjs/dist/esm/internal/operators/first.js","node_modules/rxjs/dist/esm/internal/operators/takeLast.js","node_modules/rxjs/dist/esm/internal/operators/last.js","node_modules/rxjs/dist/esm/internal/operators/repeat.js","node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js","node_modules/rxjs/dist/esm/internal/operators/scan.js","node_modules/rxjs/dist/esm/internal/operators/share.js","node_modules/rxjs/dist/esm/internal/operators/shareReplay.js","node_modules/rxjs/dist/esm/internal/operators/skip.js","node_modules/rxjs/dist/esm/internal/operators/skipWhile.js","node_modules/rxjs/dist/esm/internal/operators/startWith.js","node_modules/rxjs/dist/esm/internal/operators/switchMap.js","node_modules/rxjs/dist/esm/internal/operators/takeUntil.js","node_modules/rxjs/dist/esm/internal/operators/takeWhile.js","node_modules/rxjs/dist/esm/internal/operators/tap.js","node_modules/rxjs/dist/esm/internal/operators/throttle.js","node_modules/rxjs/dist/esm/internal/operators/throttleTime.js","node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js","node_modules/@angular/core/fesm2022/core.mjs","node_modules/@angular/common/fesm2022/common.mjs","node_modules/@angular/common/fesm2022/http.mjs","node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs","node_modules/@angular/forms/fesm2022/forms.mjs","node_modules/@ng-web-apis/common/fesm2015/ng-web-apis-common.js","node_modules/@angular/animations/fesm2022/animations.mjs","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-constants.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-browser.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-math.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-miscellaneous.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-dom.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-focus.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-format.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-os.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-utils-svg.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-exceptions.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-observables.js","node_modules/@tinkoff/ng-polymorpheus/fesm2015/tinkoff-ng-polymorpheus.js","node_modules/rxjs/dist/esm/internal/observable/dom/fetch.js","node_modules/@angular/animations/fesm2022/browser.mjs","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-tokens.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-services.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-abstract.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-coercion.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-pipes-mapper.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-scroll-controls.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-decorators.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-active-zone.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-auto-focus.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-let.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-overscroll.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-dropdown-host.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-enums.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-constants.js","node_modules/@taiga-ui/i18n/fesm2015/taiga-ui-i18n-enums.js","node_modules/@taiga-ui/i18n/fesm2015/taiga-ui-i18n-languages-english.js","node_modules/@taiga-ui/i18n/fesm2015/taiga-ui-i18n-tokens.js","node_modules/@taiga-ui/i18n/fesm2015/taiga-ui-i18n-tools.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-utils-dom.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-utils-miscellaneous.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-utils-mobile.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-enums.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-tokens.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-abstract.js","node_modules/@angular/router/fesm2022/router.mjs","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-services.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-svg.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-animations.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-directives-mode.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-providers.js","node_modules/@tinkoff/ng-event-plugins/fesm2015/tinkoff-ng-event-plugins.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-directives-wrapper.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-loader.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-button.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-link.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-dialog.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-pipes-format-date.js","node_modules/@taiga-ui/kit/fesm2015/taiga-ui-kit-components-push.js","node_modules/@tinkoff/ng-dompurify/fesm2015/tinkoff-ng-dompurify.js"],"sourcesContent":["/*! @license DOMPurify 3.1.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.3/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.DOMPurify = factory());\n})(this, function () {\n 'use strict';\n\n const {\n entries,\n setPrototypeOf,\n isFrozen,\n getPrototypeOf,\n getOwnPropertyDescriptor\n } = Object;\n let {\n freeze,\n seal,\n create\n } = Object; // eslint-disable-line import/no-mutable-exports\n let {\n apply,\n construct\n } = typeof Reflect !== 'undefined' && Reflect;\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n if (!construct) {\n construct = function construct(Func, args) {\n return new Func(...args);\n };\n }\n const arrayForEach = unapply(Array.prototype.forEach);\n const arrayPop = unapply(Array.prototype.pop);\n const arrayPush = unapply(Array.prototype.push);\n const stringToLowerCase = unapply(String.prototype.toLowerCase);\n const stringToString = unapply(String.prototype.toString);\n const stringMatch = unapply(String.prototype.match);\n const stringReplace = unapply(String.prototype.replace);\n const stringIndexOf = unapply(String.prototype.indexOf);\n const stringTrim = unapply(String.prototype.trim);\n const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);\n const regExpTest = unapply(RegExp.prototype.test);\n const typeErrorCreate = unconstruct(TypeError);\n const numberIsNaN = unapply(Number.isNaN);\n\n /**\n * Creates a new function that calls the given function with a specified thisArg and arguments.\n *\n * @param {Function} func - The function to be wrapped and called.\n * @returns {Function} A new function that calls the given function with a specified thisArg and arguments.\n */\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return apply(func, thisArg, args);\n };\n }\n\n /**\n * Creates a new function that constructs an instance of the given constructor function with the provided arguments.\n *\n * @param {Function} func - The constructor function to be wrapped and called.\n * @returns {Function} A new function that constructs an instance of the given constructor function with the provided arguments.\n */\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n return construct(func, args);\n };\n }\n\n /**\n * Add properties to a lookup table\n *\n * @param {Object} set - The set to which elements will be added.\n * @param {Array} array - The array containing elements to be added to the set.\n * @param {Function} transformCaseFunc - An optional function to transform the case of each element before adding to the set.\n * @returns {Object} The modified set with added elements.\n */\n function addToSet(set, array) {\n let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n let l = array.length;\n while (l--) {\n let element = array[l];\n if (typeof element === 'string') {\n const lcElement = transformCaseFunc(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n element = lcElement;\n }\n }\n set[element] = true;\n }\n return set;\n }\n\n /**\n * Clean up an array to harden against CSPP\n *\n * @param {Array} array - The array to be cleaned.\n * @returns {Array} The cleaned version of the array\n */\n function cleanArray(array) {\n for (let index = 0; index < array.length; index++) {\n const isPropertyExist = objectHasOwnProperty(array, index);\n if (!isPropertyExist) {\n array[index] = null;\n }\n }\n return array;\n }\n\n /**\n * Shallow clone an object\n *\n * @param {Object} object - The object to be cloned.\n * @returns {Object} A new object that copies the original.\n */\n function clone(object) {\n const newObject = create(null);\n for (const [property, value] of entries(object)) {\n const isPropertyExist = objectHasOwnProperty(object, property);\n if (isPropertyExist) {\n if (Array.isArray(value)) {\n newObject[property] = cleanArray(value);\n } else if (value && typeof value === 'object' && value.constructor === Object) {\n newObject[property] = clone(value);\n } else {\n newObject[property] = value;\n }\n }\n }\n return newObject;\n }\n\n /**\n * This method automatically checks if the prop is function or getter and behaves accordingly.\n *\n * @param {Object} object - The object to look up the getter function in its prototype chain.\n * @param {String} prop - The property name for which to find the getter function.\n * @returns {Function} The getter function found in the prototype chain or a fallback function.\n */\n function lookupGetter(object, prop) {\n while (object !== null) {\n const desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n object = getPrototypeOf(object);\n }\n function fallbackValue() {\n return null;\n }\n return fallbackValue;\n }\n const html$1 = freeze(['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']);\n\n // SVG\n const svg$1 = freeze(['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']);\n const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', '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']);\n const mathMl$1 = freeze(['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', 'mprescripts']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n const text = freeze(['#text']);\n const html = freeze(['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', 'wrap', 'xmlns', 'slot']);\n const svg = freeze(['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']);\n const mathMl = freeze(['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']);\n const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n const MUSTACHE_EXPR = seal(/\\{\\{[\\w\\W]*|[\\w\\W]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n const ERB_EXPR = seal(/<%[\\w\\W]*|[\\w\\W]*%>/gm);\n const TMPLIT_EXPR = seal(/\\${[\\w\\W]*}/gm);\n const DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n const ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n const IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n const ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n const DOCTYPE_NAME = seal(/^html$/i);\n const CUSTOM_ELEMENT = seal(/^[a-z][.\\w]*(-[.\\w]+)+$/i);\n var EXPRESSIONS = /*#__PURE__*/Object.freeze({\n __proto__: null,\n MUSTACHE_EXPR: MUSTACHE_EXPR,\n ERB_EXPR: ERB_EXPR,\n TMPLIT_EXPR: TMPLIT_EXPR,\n DATA_ATTR: DATA_ATTR,\n ARIA_ATTR: ARIA_ATTR,\n IS_ALLOWED_URI: IS_ALLOWED_URI,\n IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE: ATTR_WHITESPACE,\n DOCTYPE_NAME: DOCTYPE_NAME,\n CUSTOM_ELEMENT: CUSTOM_ELEMENT\n });\n\n // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n const NODE_TYPE = {\n element: 1,\n attribute: 2,\n text: 3,\n cdataSection: 4,\n entityReference: 5,\n // Deprecated\n entityNode: 6,\n // Deprecated\n progressingInstruction: 7,\n comment: 8,\n document: 9,\n documentType: 10,\n documentFragment: 11,\n notation: 12 // Deprecated\n };\n const getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {HTMLScriptElement} purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).\n * @return {TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported or creating the policy failed).\n */\n const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {\n if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n let suffix = null;\n const ATTR_NAME = 'data-tt-policy-suffix';\n if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {\n suffix = purifyHostElement.getAttribute(ATTR_NAME);\n }\n const policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML(html) {\n return html;\n },\n createScriptURL(scriptUrl) {\n return scriptUrl;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n function createDOMPurify() {\n let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n const DOMPurify = root => createDOMPurify(root);\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '3.1.3';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n return DOMPurify;\n }\n let {\n document\n } = window;\n const originalDocument = document;\n const currentScript = originalDocument.currentScript;\n const {\n DocumentFragment,\n HTMLTemplateElement,\n Node,\n Element,\n NodeFilter,\n NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,\n HTMLFormElement,\n DOMParser,\n trustedTypes\n } = window;\n const ElementPrototype = Element.prototype;\n const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n const getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n const template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n let trustedTypesPolicy;\n let emptyHTML = '';\n const {\n implementation,\n createNodeIterator,\n createDocumentFragment,\n getElementsByTagName\n } = document;\n const {\n importNode\n } = originalDocument;\n let hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;\n const {\n MUSTACHE_EXPR,\n ERB_EXPR,\n TMPLIT_EXPR,\n DATA_ATTR,\n ARIA_ATTR,\n IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE,\n CUSTOM_ELEMENT\n } = EXPRESSIONS;\n let {\n IS_ALLOWED_URI: IS_ALLOWED_URI$1\n } = EXPRESSIONS;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n let ALLOWED_TAGS = null;\n const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);\n\n /* Allowed attribute names */\n let ALLOWED_ATTR = null;\n const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);\n\n /*\n * Configure how DOMPUrify should handle custom elements and their attributes as well as customized built-in elements.\n * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)\n * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)\n * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.\n */\n let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {\n tagNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n attributeNameCheck: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: null\n },\n allowCustomizedBuiltInElements: {\n writable: true,\n configurable: false,\n enumerable: true,\n value: false\n }\n }));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n let FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n let FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n let ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n let ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n let ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Decide if self-closing tags in attributes are allowed.\n * Usually removed due to a mXSS issue in jQuery 3.0 */\n let ALLOW_SELF_CLOSE_IN_ATTR = true;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n let SAFE_FOR_TEMPLATES = false;\n\n /* Output should be safe even for XML used within HTML and alike.\n * This means, DOMPurify removes comments when containing risky content.\n */\n let SAFE_FOR_XML = true;\n\n /* Decide if document with ... should be returned */\n let WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n let SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n let FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n let RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n let RETURN_DOM_FRAGMENT = false;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n let RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks?\n * This sanitizes markups named with colliding, clobberable built-in DOM APIs.\n */\n let SANITIZE_DOM = true;\n\n /* Achieve full DOM Clobbering protection by isolating the namespace of named\n * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.\n *\n * HTML/DOM spec rules that enable DOM Clobbering:\n * - Named Access on Window (§7.3.3)\n * - DOM Tree Accessors (§3.1.5)\n * - Form Element Parent-Child Relations (§4.10.3)\n * - Iframe srcdoc / Nested WindowProxies (§4.8.5)\n * - HTMLCollection (§4.2.10.2)\n *\n * Namespace isolation is implemented by prefixing `id` and `name` attributes\n * with a constant string, i.e., `user-content-`\n */\n let SANITIZE_NAMED_PROPS = false;\n const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';\n\n /* Keep element content when removing element? */\n let KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n let IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n let USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n let FORBID_CONTENTS = null;\n const DEFAULT_FORBID_CONTENTS = addToSet({}, ['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']);\n\n /* Tags that are safe for data: URIs */\n let DATA_URI_TAGS = null;\n const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n let URI_SAFE_ATTRIBUTES = null;\n const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n let NAMESPACE = HTML_NAMESPACE;\n let IS_EMPTY_INPUT = false;\n\n /* Allowed XHTML+XML namespaces */\n let ALLOWED_NAMESPACES = null;\n const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);\n\n /* Parsing of strict XHTML documents */\n let PARSER_MEDIA_TYPE = null;\n const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];\n const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';\n let transformCaseFunc = null;\n\n /* Keep a reference to config to pass to hooks */\n let CONFIG = null;\n\n /* Specify the maximum element nesting depth to prevent mXSS */\n const MAX_NESTING_DEPTH = 255;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n const formElement = document.createElement('form');\n const isRegexOrFunction = function isRegexOrFunction(testValue) {\n return testValue instanceof RegExp || testValue instanceof Function;\n };\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n const _parseConfig = function _parseConfig() {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || typeof cfg !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n PARSER_MEDIA_TYPE =\n // eslint-disable-next-line unicorn/prefer-includes\n SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;\n\n // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.\n transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;\n\n /* Set configuration parameters */\n ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;\n ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;\n URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES),\n // eslint-disable-line indent\n cfg.ADD_URI_SAFE_ATTR,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS),\n // eslint-disable-line indent\n cfg.ADD_DATA_URI_TAGS,\n // eslint-disable-line indent\n transformCaseFunc // eslint-disable-line indent\n ) // eslint-disable-line indent\n : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : {};\n FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : {};\n USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {\n CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;\n }\n if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {\n CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;\n }\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, text);\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html$1);\n addToSet(ALLOWED_ATTR, html);\n }\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg$1);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg);\n addToSet(ALLOWED_ATTR, xml);\n }\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl$1);\n addToSet(ALLOWED_ATTR, mathMl);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);\n }\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);\n }\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);\n }\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n if (cfg.TRUSTED_TYPES_POLICY) {\n if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.');\n }\n if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {\n throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.');\n }\n\n // Overwrite existing TrustedTypes policy.\n trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;\n\n // Sign local variables required by `sanitize`.\n emptyHTML = trustedTypesPolicy.createHTML('');\n } else {\n // Uninitialized policy, attempt to initialize the internal dompurify policy.\n if (trustedTypesPolicy === undefined) {\n trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);\n }\n\n // If creating the internal policy succeeded sign internal variables.\n if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {\n emptyHTML = trustedTypesPolicy.createHTML('');\n }\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n CONFIG = cfg;\n };\n const MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n const HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'annotation-xml']);\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erroneously deleted from\n // HTML namespace.\n const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);\n const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);\n\n /**\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n const _checkValidNamespace = function _checkValidNamespace(element) {\n let parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: NAMESPACE,\n tagName: 'template'\n };\n }\n const tagName = stringToLowerCase(element.tagName);\n const parentTagName = stringToLowerCase(parent.tagName);\n if (!ALLOWED_NAMESPACES[element.namespaceURI]) {\n return false;\n }\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via . If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via`\n // svg if parent is either or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via . If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // For XHTML and XML documents that support custom namespaces\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {\n return true;\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).\n // Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n const _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, {\n element: node\n });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n node.remove();\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n const _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n const _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n let doc = null;\n let leadingWhitespace = null;\n if (FORCE_BODY) {\n dirty = '' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n const matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {\n // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)\n dirty = '' + dirty + '';\n }\n const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n const body = doc.body || doc.documentElement;\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n *\n * @param {Node} root The root element or node to start traversing on.\n * @return {NodeIterator} The created NodeIterator\n */\n const _createNodeIterator = function _createNodeIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root,\n // eslint-disable-next-line no-bitwise\n NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n const _isClobbered = function _isClobbered(elm) {\n return elm instanceof HTMLFormElement && (\n // eslint-disable-next-line unicorn/no-typeof-undefined\n typeof elm.__depth !== 'undefined' && typeof elm.__depth !== 'number' ||\n // eslint-disable-next-line unicorn/no-typeof-undefined\n typeof elm.__removalCount !== 'undefined' && typeof elm.__removalCount !== 'number' || typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');\n };\n\n /**\n * Checks whether the given object is a DOM node.\n *\n * @param {Node} object object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n const _isNode = function _isNode(object) {\n return typeof Node === 'function' && object instanceof Node;\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n const _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n arrayForEach(hooks[entryPoint], hook => {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n const _sanitizeElements = function _sanitizeElements(currentNode) {\n let content = null;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n const tagName = transformCaseFunc(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any ocurrence of processing instructions */\n if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove any kind of possibly harmful comments */\n if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\\w]/g, currentNode.data)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Check if we have a custom element to handle */\n if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {\n return false;\n }\n if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {\n return false;\n }\n }\n\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n const parentNode = getParentNode(currentNode) || currentNode.parentNode;\n const childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n if (childNodes && parentNode) {\n const childCount = childNodes.length;\n for (let i = childCount - 1; i >= 0; --i) {\n const childClone = cloneNode(childNodes[i], true);\n childClone.__removalCount = (currentNode.__removalCount || 0) + 1;\n parentNode.insertBefore(childClone, getNextSibling(currentNode));\n }\n }\n }\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Make sure that older browsers don't get fallback-tag mXSS */\n if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\\/no(script|embed|frames)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {\n /* Get the element's text content */\n content = currentNode.textContent;\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n content = stringReplace(content, expr, ' ');\n });\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, {\n element: currentNode.cloneNode()\n });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement || value === '__depth' || value === '__removalCount')) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ;else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ;else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n if (\n // First condition does a very basic check if a) it's basically a valid custom element tagname AND\n // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck\n _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) ||\n // Alternative, second condition checks if it's an `is`-attribute, AND\n // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck\n lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ;else {\n return false;\n }\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ;else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ;else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ;else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ;else if (value) {\n return false;\n } else ;\n return true;\n };\n\n /**\n * _isBasicCustomElement\n * checks if at least one dash is included in tagName, and it's not the first char\n * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name\n *\n * @param {string} tagName name of the tag of the node to sanitize\n * @returns {boolean} Returns true if the tag name meets the basic criteria for a custom element, otherwise false.\n */\n const _isBasicCustomElement = function _isBasicCustomElement(tagName) {\n return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n const {\n attributes\n } = currentNode;\n\n /* Check if we have attributes; if not we might have a text node */\n if (!attributes) {\n return;\n }\n const hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n let l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n const attr = attributes[l];\n const {\n name,\n namespaceURI,\n value: attrValue\n } = attr;\n const lcName = transformCaseFunc(name);\n let value = name === 'value' ? attrValue : stringTrim(attrValue);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Work around a security issue with comments inside attributes */\n if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\\/(style|title)/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n value = stringReplace(value, expr, ' ');\n });\n }\n\n /* Is `value` valid for this attribute? */\n const lcTag = transformCaseFunc(currentNode.nodeName);\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Full DOM Clobbering protection via namespace isolation,\n * Prefix id and name attributes with `user-content-`\n */\n if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {\n // Remove the attribute with this value\n _removeAttribute(name, currentNode);\n\n // Prefix the value and later re-create the attribute with the sanitized value\n value = SANITIZE_NAMED_PROPS_PREFIX + value;\n }\n\n /* Handle attributes that require Trusted Types */\n if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {\n if (namespaceURI) ;else {\n switch (trustedTypes.getAttributeType(lcTag, lcName)) {\n case 'TrustedHTML':\n {\n value = trustedTypesPolicy.createHTML(value);\n break;\n }\n case 'TrustedScriptURL':\n {\n value = trustedTypesPolicy.createScriptURL(value);\n break;\n }\n }\n }\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n } else {\n arrayPop(DOMPurify.removed);\n }\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n let shadowNode = null;\n const shadowIterator = _createNodeIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n const parentNode = getParentNode(shadowNode);\n\n /* Set the nesting depth of an element */\n if (shadowNode.nodeType === NODE_TYPE.element) {\n if (parentNode && parentNode.__depth) {\n /*\n We want the depth of the node in the original tree, which can\n change when it's removed from its parent.\n */\n shadowNode.__depth = (shadowNode.__removalCount || 0) + parentNode.__depth + 1;\n } else {\n shadowNode.__depth = 1;\n }\n }\n\n /*\n * Remove an element if nested too deeply to avoid mXSS\n * or if the __depth might have been tampered with\n */\n if (shadowNode.__depth >= MAX_NESTING_DEPTH || shadowNode.__depth < 0 || numberIsNaN(shadowNode.__depth)) {\n _forceRemove(shadowNode);\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n shadowNode.content.__depth = shadowNode.__depth;\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} cfg object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty) {\n let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n let body = null;\n let importedNode = null;\n let currentNode = null;\n let returnNode = null;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n if (typeof dirty.toString === 'function') {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n } else {\n throw typeErrorCreate('toString is not a function');\n }\n }\n\n /* Return dirty HTML if DOMPurify cannot run */\n if (!DOMPurify.isSupported) {\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n if (IN_PLACE) {\n /* Do some early pre-sanitization to avoid unsafe root nodes */\n if (dirty.nodeName) {\n const tagName = transformCaseFunc(dirty.nodeName);\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');\n }\n }\n } else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n const parentNode = getParentNode(currentNode);\n\n /* Set the nesting depth of an element */\n if (currentNode.nodeType === NODE_TYPE.element) {\n if (parentNode && parentNode.__depth) {\n /*\n We want the depth of the node in the original tree, which can\n change when it's removed from its parent.\n */\n currentNode.__depth = (currentNode.__removalCount || 0) + parentNode.__depth + 1;\n } else {\n currentNode.__depth = 1;\n }\n }\n\n /*\n * Remove an element if nested too deeply to avoid mXSS\n * or if the __depth might have been tampered with\n */\n if (currentNode.__depth >= MAX_NESTING_DEPTH || currentNode.__depth < 0 || numberIsNaN(currentNode.__depth)) {\n _forceRemove(currentNode);\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n currentNode.content.__depth = currentNode.__depth;\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n }\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n return returnNode;\n }\n let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Serialize doctype if allowed */\n if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {\n serializedHTML = '\\n' + serializedHTML;\n }\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {\n serializedHTML = stringReplace(serializedHTML, expr, ' ');\n });\n }\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function () {\n let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {String} tag Tag name of containing element.\n * @param {String} attr Attribute name.\n * @param {String} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n const lcTag = transformCaseFunc(tag);\n const lcName = transformCaseFunc(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n * @return {Function} removed(popped) hook\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n return arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n return DOMPurify;\n }\n var purify = createDOMPurify();\n return purify;\n});\n","/**\n * @license Angular v17.3.8\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\n/**\n * The default equality function used for `signal` and `computed`, which uses referential equality.\n */\nfunction defaultEquals(a, b) {\n return Object.is(a, b);\n}\n\n/**\n * The currently active consumer `ReactiveNode`, if running code in a reactive context.\n *\n * Change this via `setActiveConsumer`.\n */\nlet activeConsumer = null;\nlet inNotificationPhase = false;\n/**\n * Global epoch counter. Incremented whenever a source signal is set.\n */\nlet epoch = 1;\n/**\n * Symbol used to tell `Signal`s apart from other functions.\n *\n * This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.\n */\nconst SIGNAL = /* @__PURE__ */Symbol('SIGNAL');\nfunction setActiveConsumer(consumer) {\n const prev = activeConsumer;\n activeConsumer = consumer;\n return prev;\n}\nfunction getActiveConsumer() {\n return activeConsumer;\n}\nfunction isInNotificationPhase() {\n return inNotificationPhase;\n}\nfunction isReactive(value) {\n return value[SIGNAL] !== undefined;\n}\nconst REACTIVE_NODE = {\n version: 0,\n lastCleanEpoch: 0,\n dirty: false,\n producerNode: undefined,\n producerLastReadVersion: undefined,\n producerIndexOfThis: undefined,\n nextProducerIndex: 0,\n liveConsumerNode: undefined,\n liveConsumerIndexOfThis: undefined,\n consumerAllowSignalWrites: false,\n consumerIsAlwaysLive: false,\n producerMustRecompute: () => false,\n producerRecomputeValue: () => {},\n consumerMarkedDirty: () => {},\n consumerOnSignalRead: () => {}\n};\n/**\n * Called by implementations when a producer's signal is read.\n */\nfunction producerAccessed(node) {\n if (inNotificationPhase) {\n throw new Error(typeof ngDevMode !== 'undefined' && ngDevMode ? `Assertion error: signal read during notification phase` : '');\n }\n if (activeConsumer === null) {\n // Accessed outside of a reactive context, so nothing to record.\n return;\n }\n activeConsumer.consumerOnSignalRead(node);\n // This producer is the `idx`th dependency of `activeConsumer`.\n const idx = activeConsumer.nextProducerIndex++;\n assertConsumerNode(activeConsumer);\n if (idx < activeConsumer.producerNode.length && activeConsumer.producerNode[idx] !== node) {\n // There's been a change in producers since the last execution of `activeConsumer`.\n // `activeConsumer.producerNode[idx]` holds a stale dependency which will be be removed and\n // replaced with `this`.\n //\n // If `activeConsumer` isn't live, then this is a no-op, since we can replace the producer in\n // `activeConsumer.producerNode` directly. However, if `activeConsumer` is live, then we need\n // to remove it from the stale producer's `liveConsumer`s.\n if (consumerIsLive(activeConsumer)) {\n const staleProducer = activeConsumer.producerNode[idx];\n producerRemoveLiveConsumerAtIndex(staleProducer, activeConsumer.producerIndexOfThis[idx]);\n // At this point, the only record of `staleProducer` is the reference at\n // `activeConsumer.producerNode[idx]` which will be overwritten below.\n }\n }\n if (activeConsumer.producerNode[idx] !== node) {\n // We're a new dependency of the consumer (at `idx`).\n activeConsumer.producerNode[idx] = node;\n // If the active consumer is live, then add it as a live consumer. If not, then use 0 as a\n // placeholder value.\n activeConsumer.producerIndexOfThis[idx] = consumerIsLive(activeConsumer) ? producerAddLiveConsumer(node, activeConsumer, idx) : 0;\n }\n activeConsumer.producerLastReadVersion[idx] = node.version;\n}\n/**\n * Increment the global epoch counter.\n *\n * Called by source producers (that is, not computeds) whenever their values change.\n */\nfunction producerIncrementEpoch() {\n epoch++;\n}\n/**\n * Ensure this producer's `version` is up-to-date.\n */\nfunction producerUpdateValueVersion(node) {\n if (consumerIsLive(node) && !node.dirty) {\n // A live consumer will be marked dirty by producers, so a clean state means that its version\n // is guaranteed to be up-to-date.\n return;\n }\n if (!node.dirty && node.lastCleanEpoch === epoch) {\n // Even non-live consumers can skip polling if they previously found themselves to be clean at\n // the current epoch, since their dependencies could not possibly have changed (such a change\n // would've increased the epoch).\n return;\n }\n if (!node.producerMustRecompute(node) && !consumerPollProducersForChange(node)) {\n // None of our producers report a change since the last time they were read, so no\n // recomputation of our value is necessary, and we can consider ourselves clean.\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n return;\n }\n node.producerRecomputeValue(node);\n // After recomputing the value, we're no longer dirty.\n node.dirty = false;\n node.lastCleanEpoch = epoch;\n}\n/**\n * Propagate a dirty notification to live consumers of this producer.\n */\nfunction producerNotifyConsumers(node) {\n if (node.liveConsumerNode === undefined) {\n return;\n }\n // Prevent signal reads when we're updating the graph\n const prev = inNotificationPhase;\n inNotificationPhase = true;\n try {\n for (const consumer of node.liveConsumerNode) {\n if (!consumer.dirty) {\n consumerMarkDirty(consumer);\n }\n }\n } finally {\n inNotificationPhase = prev;\n }\n}\n/**\n * Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,\n * based on the current consumer context.\n */\nfunction producerUpdatesAllowed() {\n return activeConsumer?.consumerAllowSignalWrites !== false;\n}\nfunction consumerMarkDirty(node) {\n node.dirty = true;\n producerNotifyConsumers(node);\n node.consumerMarkedDirty?.(node);\n}\n/**\n * Prepare this consumer to run a computation in its reactive context.\n *\n * Must be called by subclasses which represent reactive computations, before those computations\n * begin.\n */\nfunction consumerBeforeComputation(node) {\n node && (node.nextProducerIndex = 0);\n return setActiveConsumer(node);\n}\n/**\n * Finalize this consumer's state after a reactive computation has run.\n *\n * Must be called by subclasses which represent reactive computations, after those computations\n * have finished.\n */\nfunction consumerAfterComputation(node, prevConsumer) {\n setActiveConsumer(prevConsumer);\n if (!node || node.producerNode === undefined || node.producerIndexOfThis === undefined || node.producerLastReadVersion === undefined) {\n return;\n }\n if (consumerIsLive(node)) {\n // For live consumers, we need to remove the producer -> consumer edge for any stale producers\n // which weren't dependencies after the recomputation.\n for (let i = node.nextProducerIndex; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate the producer tracking arrays.\n // Perf note: this is essentially truncating the length to `node.nextProducerIndex`, but\n // benchmarking has shown that individual pop operations are faster.\n while (node.producerNode.length > node.nextProducerIndex) {\n node.producerNode.pop();\n node.producerLastReadVersion.pop();\n node.producerIndexOfThis.pop();\n }\n}\n/**\n * Determine whether this consumer has any dependencies which have changed since the last time\n * they were read.\n */\nfunction consumerPollProducersForChange(node) {\n assertConsumerNode(node);\n // Poll producers for change.\n for (let i = 0; i < node.producerNode.length; i++) {\n const producer = node.producerNode[i];\n const seenVersion = node.producerLastReadVersion[i];\n // First check the versions. A mismatch means that the producer's value is known to have\n // changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n // The producer's version is the same as the last time we read it, but it might itself be\n // stale. Force the producer to recompute its version (calculating a new value if necessary).\n producerUpdateValueVersion(producer);\n // Now when we do this check, `producer.version` is guaranteed to be up to date, so if the\n // versions still match then it has not changed since the last time we read it.\n if (seenVersion !== producer.version) {\n return true;\n }\n }\n return false;\n}\n/**\n * Disconnect this consumer from the graph.\n */\nfunction consumerDestroy(node) {\n assertConsumerNode(node);\n if (consumerIsLive(node)) {\n // Drop all connections from the graph to this node.\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Truncate all the arrays to drop all connection from this node to the graph.\n node.producerNode.length = node.producerLastReadVersion.length = node.producerIndexOfThis.length = 0;\n if (node.liveConsumerNode) {\n node.liveConsumerNode.length = node.liveConsumerIndexOfThis.length = 0;\n }\n}\n/**\n * Add `consumer` as a live consumer of this node.\n *\n * Note that this operation is potentially transitive. If this node becomes live, then it becomes\n * a live consumer of all of its current producers.\n */\nfunction producerAddLiveConsumer(node, consumer, indexOfThis) {\n assertProducerNode(node);\n assertConsumerNode(node);\n if (node.liveConsumerNode.length === 0) {\n // When going from 0 to 1 live consumers, we become a live consumer to our producers.\n for (let i = 0; i < node.producerNode.length; i++) {\n node.producerIndexOfThis[i] = producerAddLiveConsumer(node.producerNode[i], node, i);\n }\n }\n node.liveConsumerIndexOfThis.push(indexOfThis);\n return node.liveConsumerNode.push(consumer) - 1;\n}\n/**\n * Remove the live consumer at `idx`.\n */\nfunction producerRemoveLiveConsumerAtIndex(node, idx) {\n assertProducerNode(node);\n assertConsumerNode(node);\n if (typeof ngDevMode !== 'undefined' && ngDevMode && idx >= node.liveConsumerNode.length) {\n throw new Error(`Assertion error: active consumer index ${idx} is out of bounds of ${node.liveConsumerNode.length} consumers)`);\n }\n if (node.liveConsumerNode.length === 1) {\n // When removing the last live consumer, we will no longer be live. We need to remove\n // ourselves from our producers' tracking (which may cause consumer-producers to lose\n // liveness as well).\n for (let i = 0; i < node.producerNode.length; i++) {\n producerRemoveLiveConsumerAtIndex(node.producerNode[i], node.producerIndexOfThis[i]);\n }\n }\n // Move the last value of `liveConsumers` into `idx`. Note that if there's only a single\n // live consumer, this is a no-op.\n const lastIdx = node.liveConsumerNode.length - 1;\n node.liveConsumerNode[idx] = node.liveConsumerNode[lastIdx];\n node.liveConsumerIndexOfThis[idx] = node.liveConsumerIndexOfThis[lastIdx];\n // Truncate the array.\n node.liveConsumerNode.length--;\n node.liveConsumerIndexOfThis.length--;\n // If the index is still valid, then we need to fix the index pointer from the producer to this\n // consumer, and update it from `lastIdx` to `idx` (accounting for the move above).\n if (idx < node.liveConsumerNode.length) {\n const idxProducer = node.liveConsumerIndexOfThis[idx];\n const consumer = node.liveConsumerNode[idx];\n assertConsumerNode(consumer);\n consumer.producerIndexOfThis[idxProducer] = idx;\n }\n}\nfunction consumerIsLive(node) {\n return node.consumerIsAlwaysLive || (node?.liveConsumerNode?.length ?? 0) > 0;\n}\nfunction assertConsumerNode(node) {\n node.producerNode ??= [];\n node.producerIndexOfThis ??= [];\n node.producerLastReadVersion ??= [];\n}\nfunction assertProducerNode(node) {\n node.liveConsumerNode ??= [];\n node.liveConsumerIndexOfThis ??= [];\n}\n\n/**\n * Create a computed signal which derives a reactive value from an expression.\n */\nfunction createComputed(computation) {\n const node = Object.create(COMPUTED_NODE);\n node.computation = computation;\n const computed = () => {\n // Check if the value needs updating before returning it.\n producerUpdateValueVersion(node);\n // Record that someone looked at this signal.\n producerAccessed(node);\n if (node.value === ERRORED) {\n throw node.error;\n }\n return node.value;\n };\n computed[SIGNAL] = node;\n return computed;\n}\n/**\n * A dedicated symbol used before a computed value has been calculated for the first time.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst UNSET = /* @__PURE__ */Symbol('UNSET');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * is in progress. Used to detect cycles in computation chains.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst COMPUTING = /* @__PURE__ */Symbol('COMPUTING');\n/**\n * A dedicated symbol used in place of a computed signal value to indicate that a given computation\n * failed. The thrown error is cached until the computation gets dirty again.\n * Explicitly typed as `any` so we can use it as signal's value.\n */\nconst ERRORED = /* @__PURE__ */Symbol('ERRORED');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst COMPUTED_NODE = /* @__PURE__ */(() => {\n return {\n ...REACTIVE_NODE,\n value: UNSET,\n dirty: true,\n error: null,\n equal: defaultEquals,\n producerMustRecompute(node) {\n // Force a recomputation if there's no current value, or if the current value is in the\n // process of being calculated (which should throw an error).\n return node.value === UNSET || node.value === COMPUTING;\n },\n producerRecomputeValue(node) {\n if (node.value === COMPUTING) {\n // Our computation somehow led to a cyclic read of itself.\n throw new Error('Detected cycle in computations.');\n }\n const oldValue = node.value;\n node.value = COMPUTING;\n const prevConsumer = consumerBeforeComputation(node);\n let newValue;\n try {\n newValue = node.computation();\n } catch (err) {\n newValue = ERRORED;\n node.error = err;\n } finally {\n consumerAfterComputation(node, prevConsumer);\n }\n if (oldValue !== UNSET && oldValue !== ERRORED && newValue !== ERRORED && node.equal(oldValue, newValue)) {\n // No change to `valueVersion` - old and new values are\n // semantically equivalent.\n node.value = oldValue;\n return;\n }\n node.value = newValue;\n node.version++;\n }\n };\n})();\nfunction defaultThrowError() {\n throw new Error();\n}\nlet throwInvalidWriteToSignalErrorFn = defaultThrowError;\nfunction throwInvalidWriteToSignalError() {\n throwInvalidWriteToSignalErrorFn();\n}\nfunction setThrowInvalidWriteToSignalError(fn) {\n throwInvalidWriteToSignalErrorFn = fn;\n}\n\n/**\n * If set, called after `WritableSignal`s are updated.\n *\n * This hook can be used to achieve various effects, such as running effects synchronously as part\n * of setting a signal.\n */\nlet postSignalSetFn = null;\n/**\n * Create a `Signal` that can be set or updated directly.\n */\nfunction createSignal(initialValue) {\n const node = Object.create(SIGNAL_NODE);\n node.value = initialValue;\n const getter = () => {\n producerAccessed(node);\n return node.value;\n };\n getter[SIGNAL] = node;\n return getter;\n}\nfunction setPostSignalSetFn(fn) {\n const prev = postSignalSetFn;\n postSignalSetFn = fn;\n return prev;\n}\nfunction signalGetFn() {\n producerAccessed(this);\n return this.value;\n}\nfunction signalSetFn(node, newValue) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n if (!node.equal(node.value, newValue)) {\n node.value = newValue;\n signalValueChanged(node);\n }\n}\nfunction signalUpdateFn(node, updater) {\n if (!producerUpdatesAllowed()) {\n throwInvalidWriteToSignalError();\n }\n signalSetFn(node, updater(node.value));\n}\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst SIGNAL_NODE = /* @__PURE__ */(() => {\n return {\n ...REACTIVE_NODE,\n equal: defaultEquals,\n value: undefined\n };\n})();\nfunction signalValueChanged(node) {\n node.version++;\n producerIncrementEpoch();\n producerNotifyConsumers(node);\n postSignalSetFn?.();\n}\nfunction createWatch(fn, schedule, allowSignalWrites) {\n const node = Object.create(WATCH_NODE);\n if (allowSignalWrites) {\n node.consumerAllowSignalWrites = true;\n }\n node.fn = fn;\n node.schedule = schedule;\n const registerOnCleanup = cleanupFn => {\n node.cleanupFn = cleanupFn;\n };\n function isWatchNodeDestroyed(node) {\n return node.fn === null && node.schedule === null;\n }\n function destroyWatchNode(node) {\n if (!isWatchNodeDestroyed(node)) {\n consumerDestroy(node); // disconnect watcher from the reactive graph\n node.cleanupFn();\n // nullify references to the integration functions to mark node as destroyed\n node.fn = null;\n node.schedule = null;\n node.cleanupFn = NOOP_CLEANUP_FN;\n }\n }\n const run = () => {\n if (node.fn === null) {\n // trying to run a destroyed watch is noop\n return;\n }\n if (isInNotificationPhase()) {\n throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`);\n }\n node.dirty = false;\n if (node.hasRun && !consumerPollProducersForChange(node)) {\n return;\n }\n node.hasRun = true;\n const prevConsumer = consumerBeforeComputation(node);\n try {\n node.cleanupFn();\n node.cleanupFn = NOOP_CLEANUP_FN;\n node.fn(registerOnCleanup);\n } finally {\n consumerAfterComputation(node, prevConsumer);\n }\n };\n node.ref = {\n notify: () => consumerMarkDirty(node),\n run,\n cleanup: () => node.cleanupFn(),\n destroy: () => destroyWatchNode(node),\n [SIGNAL]: node\n };\n return node.ref;\n}\nconst NOOP_CLEANUP_FN = () => {};\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst WATCH_NODE = /* @__PURE__ */(() => {\n return {\n ...REACTIVE_NODE,\n consumerIsAlwaysLive: true,\n consumerAllowSignalWrites: false,\n consumerMarkedDirty: node => {\n if (node.schedule !== null) {\n node.schedule(node.ref);\n }\n },\n hasRun: false,\n cleanupFn: NOOP_CLEANUP_FN\n };\n})();\nfunction setAlternateWeakRefImpl(impl) {\n // TODO: remove this function\n}\nexport { REACTIVE_NODE, SIGNAL, SIGNAL_NODE, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, createComputed, createSignal, createWatch, defaultEquals, getActiveConsumer, isInNotificationPhase, isReactive, producerAccessed, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, setActiveConsumer, setAlternateWeakRefImpl, setPostSignalSetFn, setThrowInvalidWriteToSignalError, signalSetFn, signalUpdateFn };\n","export function isFunction(value) {\n return typeof value === 'function';\n}\n","export function createErrorClass(createImpl) {\n const _super = instance => {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n const ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n","import { createErrorClass } from './createErrorClass';\nexport const UnsubscriptionError = createErrorClass(_super => function UnsubscriptionErrorImpl(errors) {\n _super(this);\n this.message = errors ? `${errors.length} errors occurred during unsubscription:\n${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\\n ')}` : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n});\n","export function arrRemove(arr, item) {\n if (arr) {\n const index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n","import { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nexport class Subscription {\n constructor(initialTeardown) {\n this.initialTeardown = initialTeardown;\n this.closed = false;\n this._parentage = null;\n this._finalizers = null;\n }\n unsubscribe() {\n let errors;\n if (!this.closed) {\n this.closed = true;\n const {\n _parentage\n } = this;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n for (const parent of _parentage) {\n parent.remove(this);\n }\n } else {\n _parentage.remove(this);\n }\n }\n const {\n initialTeardown: initialFinalizer\n } = this;\n if (isFunction(initialFinalizer)) {\n try {\n initialFinalizer();\n } catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n const {\n _finalizers\n } = this;\n if (_finalizers) {\n this._finalizers = null;\n for (const finalizer of _finalizers) {\n try {\n execFinalizer(finalizer);\n } catch (err) {\n errors = errors !== null && errors !== void 0 ? errors : [];\n if (err instanceof UnsubscriptionError) {\n errors = [...errors, ...err.errors];\n } else {\n errors.push(err);\n }\n }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n }\n add(teardown) {\n var _a;\n if (teardown && teardown !== this) {\n if (this.closed) {\n execFinalizer(teardown);\n } else {\n if (teardown instanceof Subscription) {\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);\n }\n }\n }\n _hasParent(parent) {\n const {\n _parentage\n } = this;\n return _parentage === parent || Array.isArray(_parentage) && _parentage.includes(parent);\n }\n _addParent(parent) {\n const {\n _parentage\n } = this;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n }\n _removeParent(parent) {\n const {\n _parentage\n } = this;\n if (_parentage === parent) {\n this._parentage = null;\n } else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n }\n remove(teardown) {\n const {\n _finalizers\n } = this;\n _finalizers && arrRemove(_finalizers, teardown);\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n }\n}\nSubscription.EMPTY = (() => {\n const empty = new Subscription();\n empty.closed = true;\n return empty;\n})();\nexport const EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n return value instanceof Subscription || value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe);\n}\nfunction execFinalizer(finalizer) {\n if (isFunction(finalizer)) {\n finalizer();\n } else {\n finalizer.unsubscribe();\n }\n}\n","export const config = {\n onUnhandledError: null,\n onStoppedNotification: null,\n Promise: undefined,\n useDeprecatedSynchronousErrorHandling: false,\n useDeprecatedNextContext: false\n};\n","export const timeoutProvider = {\n setTimeout(handler, timeout, ...args) {\n const {\n delegate\n } = timeoutProvider;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {\n return delegate.setTimeout(handler, timeout, ...args);\n }\n return setTimeout(handler, timeout, ...args);\n },\n clearTimeout(handle) {\n const {\n delegate\n } = timeoutProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);\n },\n delegate: undefined\n};\n","import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nexport function reportUnhandledError(err) {\n timeoutProvider.setTimeout(() => {\n const {\n onUnhandledError\n } = config;\n if (onUnhandledError) {\n onUnhandledError(err);\n } else {\n throw err;\n }\n });\n}\n","export function noop() {}\n","export const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))();\nexport function errorNotification(error) {\n return createNotification('E', undefined, error);\n}\nexport function nextNotification(value) {\n return createNotification('N', value, undefined);\n}\nexport function createNotification(kind, value, error) {\n return {\n kind,\n value,\n error\n };\n}\n","import { config } from '../config';\nlet context = null;\nexport function errorContext(cb) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n const isRoot = !context;\n if (isRoot) {\n context = {\n errorThrown: false,\n error: null\n };\n }\n cb();\n if (isRoot) {\n const {\n errorThrown,\n error\n } = context;\n context = null;\n if (errorThrown) {\n throw error;\n }\n }\n } else {\n cb();\n }\n}\nexport function captureError(err) {\n if (config.useDeprecatedSynchronousErrorHandling && context) {\n context.errorThrown = true;\n context.error = err;\n }\n}\n","import { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nexport class Subscriber extends Subscription {\n constructor(destination) {\n super();\n this.isStopped = false;\n if (destination) {\n this.destination = destination;\n if (isSubscription(destination)) {\n destination.add(this);\n }\n } else {\n this.destination = EMPTY_OBSERVER;\n }\n }\n static create(next, error, complete) {\n return new SafeSubscriber(next, error, complete);\n }\n next(value) {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n } else {\n this._next(value);\n }\n }\n error(err) {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n } else {\n this.isStopped = true;\n this._error(err);\n }\n }\n complete() {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n } else {\n this.isStopped = true;\n this._complete();\n }\n }\n unsubscribe() {\n if (!this.closed) {\n this.isStopped = true;\n super.unsubscribe();\n this.destination = null;\n }\n }\n _next(value) {\n this.destination.next(value);\n }\n _error(err) {\n try {\n this.destination.error(err);\n } finally {\n this.unsubscribe();\n }\n }\n _complete() {\n try {\n this.destination.complete();\n } finally {\n this.unsubscribe();\n }\n }\n}\nconst _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n return _bind.call(fn, thisArg);\n}\nclass ConsumerObserver {\n constructor(partialObserver) {\n this.partialObserver = partialObserver;\n }\n next(value) {\n const {\n partialObserver\n } = this;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n } catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n error(err) {\n const {\n partialObserver\n } = this;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n } catch (error) {\n handleUnhandledError(error);\n }\n } else {\n handleUnhandledError(err);\n }\n }\n complete() {\n const {\n partialObserver\n } = this;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n } catch (error) {\n handleUnhandledError(error);\n }\n }\n }\n}\nexport class SafeSubscriber extends Subscriber {\n constructor(observerOrNext, error, complete) {\n super();\n let partialObserver;\n if (isFunction(observerOrNext) || !observerOrNext) {\n partialObserver = {\n next: observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined,\n error: error !== null && error !== void 0 ? error : undefined,\n complete: complete !== null && complete !== void 0 ? complete : undefined\n };\n } else {\n let context;\n if (this && config.useDeprecatedNextContext) {\n context = Object.create(observerOrNext);\n context.unsubscribe = () => this.unsubscribe();\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context),\n error: observerOrNext.error && bind(observerOrNext.error, context),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context)\n };\n } else {\n partialObserver = observerOrNext;\n }\n }\n this.destination = new ConsumerObserver(partialObserver);\n }\n}\nfunction handleUnhandledError(error) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n } else {\n reportUnhandledError(error);\n }\n}\nfunction defaultErrorHandler(err) {\n throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n const {\n onStoppedNotification\n } = config;\n onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber));\n}\nexport const EMPTY_OBSERVER = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop\n};\n","export const observable = (() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();\n","export function identity(x) {\n return x;\n}\n","import { identity } from './identity';\nexport function pipe(...fns) {\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce((prev, fn) => fn(prev), input);\n };\n}\n","import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nexport let Observable = /*#__PURE__*/(() => {\n class Observable {\n constructor(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n lift(operator) {\n const observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n }\n subscribe(observerOrNext, error, complete) {\n const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(() => {\n const {\n operator,\n source\n } = this;\n subscriber.add(operator ? operator.call(subscriber, source) : source ? this._subscribe(subscriber) : this._trySubscribe(subscriber));\n });\n return subscriber;\n }\n _trySubscribe(sink) {\n try {\n return this._subscribe(sink);\n } catch (err) {\n sink.error(err);\n }\n }\n forEach(next, promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n const subscriber = new SafeSubscriber({\n next: value => {\n try {\n next(value);\n } catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve\n });\n this.subscribe(subscriber);\n });\n }\n _subscribe(subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n }\n [Symbol_observable]() {\n return this;\n }\n pipe(...operations) {\n return pipeFromArray(operations)(this);\n }\n toPromise(promiseCtor) {\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor((resolve, reject) => {\n let value;\n this.subscribe(x => value = x, err => reject(err), () => resolve(value));\n });\n }\n }\n Observable.create = subscribe => {\n return new Observable(subscribe);\n };\n return Observable;\n})();\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return value && value instanceof Subscriber || isObserver(value) && isSubscription(value);\n}\n","import { isFunction } from './isFunction';\nexport function hasLift(source) {\n return isFunction(source === null || source === void 0 ? void 0 : source.lift);\n}\nexport function operate(init) {\n return source => {\n if (hasLift(source)) {\n return source.lift(function (liftedSource) {\n try {\n return init(liftedSource, this);\n } catch (err) {\n this.error(err);\n }\n });\n }\n throw new TypeError('Unable to lift unknown Observable type');\n };\n}\n","import { Subscriber } from '../Subscriber';\nexport function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {\n return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\nexport class OperatorSubscriber extends Subscriber {\n constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {\n super(destination);\n this.onFinalize = onFinalize;\n this.shouldUnsubscribe = shouldUnsubscribe;\n this._next = onNext ? function (value) {\n try {\n onNext(value);\n } catch (err) {\n destination.error(err);\n }\n } : super._next;\n this._error = onError ? function (err) {\n try {\n onError(err);\n } catch (err) {\n destination.error(err);\n } finally {\n this.unsubscribe();\n }\n } : super._error;\n this._complete = onComplete ? function () {\n try {\n onComplete();\n } catch (err) {\n destination.error(err);\n } finally {\n this.unsubscribe();\n }\n } : super._complete;\n }\n unsubscribe() {\n var _a;\n if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n const {\n closed\n } = this;\n super.unsubscribe();\n !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));\n }\n }\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function refCount() {\n return operate((source, subscriber) => {\n let connection = null;\n source._refCount++;\n const refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, () => {\n if (!source || source._refCount <= 0 || 0 < --source._refCount) {\n connection = null;\n return;\n }\n const sharedConnection = source._connection;\n const conn = connection;\n connection = null;\n if (sharedConnection && (!conn || sharedConnection === conn)) {\n sharedConnection.unsubscribe();\n }\n subscriber.unsubscribe();\n });\n source.subscribe(refCounter);\n if (!refCounter.closed) {\n connection = source.connect();\n }\n });\n}\n","import { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { refCount as higherOrderRefCount } from '../operators/refCount';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { hasLift } from '../util/lift';\nexport class ConnectableObservable extends Observable {\n constructor(source, subjectFactory) {\n super();\n this.source = source;\n this.subjectFactory = subjectFactory;\n this._subject = null;\n this._refCount = 0;\n this._connection = null;\n if (hasLift(source)) {\n this.lift = source.lift;\n }\n }\n _subscribe(subscriber) {\n return this.getSubject().subscribe(subscriber);\n }\n getSubject() {\n const subject = this._subject;\n if (!subject || subject.isStopped) {\n this._subject = this.subjectFactory();\n }\n return this._subject;\n }\n _teardown() {\n this._refCount = 0;\n const {\n _connection\n } = this;\n this._subject = this._connection = null;\n _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe();\n }\n connect() {\n let connection = this._connection;\n if (!connection) {\n connection = this._connection = new Subscription();\n const subject = this.getSubject();\n connection.add(this.source.subscribe(createOperatorSubscriber(subject, undefined, () => {\n this._teardown();\n subject.complete();\n }, err => {\n this._teardown();\n subject.error(err);\n }, () => this._teardown())));\n if (connection.closed) {\n this._connection = null;\n connection = Subscription.EMPTY;\n }\n }\n return connection;\n }\n refCount() {\n return higherOrderRefCount()(this);\n }\n}\n","import { createErrorClass } from './createErrorClass';\nexport const ObjectUnsubscribedError = createErrorClass(_super => function ObjectUnsubscribedErrorImpl() {\n _super(this);\n this.name = 'ObjectUnsubscribedError';\n this.message = 'object unsubscribed';\n});\n","import { Observable } from './Observable';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\nexport let Subject = /*#__PURE__*/(() => {\n class Subject extends Observable {\n constructor() {\n super();\n this.closed = false;\n this.currentObservers = null;\n this.observers = [];\n this.isStopped = false;\n this.hasError = false;\n this.thrownError = null;\n }\n lift(operator) {\n const subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n }\n _throwIfClosed() {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n }\n next(value) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n if (!this.currentObservers) {\n this.currentObservers = Array.from(this.observers);\n }\n for (const observer of this.currentObservers) {\n observer.next(value);\n }\n }\n });\n }\n error(err) {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.hasError = this.isStopped = true;\n this.thrownError = err;\n const {\n observers\n } = this;\n while (observers.length) {\n observers.shift().error(err);\n }\n }\n });\n }\n complete() {\n errorContext(() => {\n this._throwIfClosed();\n if (!this.isStopped) {\n this.isStopped = true;\n const {\n observers\n } = this;\n while (observers.length) {\n observers.shift().complete();\n }\n }\n });\n }\n unsubscribe() {\n this.isStopped = this.closed = true;\n this.observers = this.currentObservers = null;\n }\n get observed() {\n var _a;\n return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;\n }\n _trySubscribe(subscriber) {\n this._throwIfClosed();\n return super._trySubscribe(subscriber);\n }\n _subscribe(subscriber) {\n this._throwIfClosed();\n this._checkFinalizedStatuses(subscriber);\n return this._innerSubscribe(subscriber);\n }\n _innerSubscribe(subscriber) {\n const {\n hasError,\n isStopped,\n observers\n } = this;\n if (hasError || isStopped) {\n return EMPTY_SUBSCRIPTION;\n }\n this.currentObservers = null;\n observers.push(subscriber);\n return new Subscription(() => {\n this.currentObservers = null;\n arrRemove(observers, subscriber);\n });\n }\n _checkFinalizedStatuses(subscriber) {\n const {\n hasError,\n thrownError,\n isStopped\n } = this;\n if (hasError) {\n subscriber.error(thrownError);\n } else if (isStopped) {\n subscriber.complete();\n }\n }\n asObservable() {\n const observable = new Observable();\n observable.source = this;\n return observable;\n }\n }\n Subject.create = (destination, source) => {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n})();\nexport class AnonymousSubject extends Subject {\n constructor(destination, source) {\n super();\n this.destination = destination;\n this.source = source;\n }\n next(value) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);\n }\n error(err) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);\n }\n complete() {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);\n }\n _subscribe(subscriber) {\n var _a, _b;\n return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;\n }\n}\n","import { Subject } from './Subject';\nexport class BehaviorSubject extends Subject {\n constructor(_value) {\n super();\n this._value = _value;\n }\n get value() {\n return this.getValue();\n }\n _subscribe(subscriber) {\n const subscription = super._subscribe(subscriber);\n !subscription.closed && subscriber.next(this._value);\n return subscription;\n }\n getValue() {\n const {\n hasError,\n thrownError,\n _value\n } = this;\n if (hasError) {\n throw thrownError;\n }\n this._throwIfClosed();\n return _value;\n }\n next(value) {\n super.next(this._value = value);\n }\n}\n","export const dateTimestampProvider = {\n now() {\n return (dateTimestampProvider.delegate || Date).now();\n },\n delegate: undefined\n};\n","import { Subject } from './Subject';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nexport class ReplaySubject extends Subject {\n constructor(_bufferSize = Infinity, _windowTime = Infinity, _timestampProvider = dateTimestampProvider) {\n super();\n this._bufferSize = _bufferSize;\n this._windowTime = _windowTime;\n this._timestampProvider = _timestampProvider;\n this._buffer = [];\n this._infiniteTimeWindow = true;\n this._infiniteTimeWindow = _windowTime === Infinity;\n this._bufferSize = Math.max(1, _bufferSize);\n this._windowTime = Math.max(1, _windowTime);\n }\n next(value) {\n const {\n isStopped,\n _buffer,\n _infiniteTimeWindow,\n _timestampProvider,\n _windowTime\n } = this;\n if (!isStopped) {\n _buffer.push(value);\n !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);\n }\n this._trimBuffer();\n super.next(value);\n }\n _subscribe(subscriber) {\n this._throwIfClosed();\n this._trimBuffer();\n const subscription = this._innerSubscribe(subscriber);\n const {\n _infiniteTimeWindow,\n _buffer\n } = this;\n const copy = _buffer.slice();\n for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {\n subscriber.next(copy[i]);\n }\n this._checkFinalizedStatuses(subscriber);\n return subscription;\n }\n _trimBuffer() {\n const {\n _bufferSize,\n _timestampProvider,\n _buffer,\n _infiniteTimeWindow\n } = this;\n const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;\n _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);\n if (!_infiniteTimeWindow) {\n const now = _timestampProvider.now();\n let last = 0;\n for (let i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) {\n last = i;\n }\n last && _buffer.splice(0, last + 1);\n }\n }\n}\n","import { Subscription } from '../Subscription';\nexport class Action extends Subscription {\n constructor(scheduler, work) {\n super();\n }\n schedule(state, delay = 0) {\n return this;\n }\n}\n","export const intervalProvider = {\n setInterval(handler, timeout, ...args) {\n const {\n delegate\n } = intervalProvider;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {\n return delegate.setInterval(handler, timeout, ...args);\n }\n return setInterval(handler, timeout, ...args);\n },\n clearInterval(handle) {\n const {\n delegate\n } = intervalProvider;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);\n },\n delegate: undefined\n};\n","import { Action } from './Action';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nexport class AsyncAction extends Action {\n constructor(scheduler, work) {\n super(scheduler, work);\n this.scheduler = scheduler;\n this.work = work;\n this.pending = false;\n }\n schedule(state, delay = 0) {\n var _a;\n if (this.closed) {\n return this;\n }\n this.state = state;\n const id = this.id;\n const scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);\n return this;\n }\n requestAsyncId(scheduler, _id, delay = 0) {\n return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n }\n recycleAsyncId(_scheduler, id, delay = 0) {\n if (delay != null && this.delay === delay && this.pending === false) {\n return id;\n }\n if (id != null) {\n intervalProvider.clearInterval(id);\n }\n return undefined;\n }\n execute(state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n const error = this._execute(state, delay);\n if (error) {\n return error;\n } else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n }\n _execute(state, _delay) {\n let errored = false;\n let errorValue;\n try {\n this.work(state);\n } catch (e) {\n errored = true;\n errorValue = e ? e : new Error('Scheduled action threw falsy error');\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n }\n unsubscribe() {\n if (!this.closed) {\n const {\n id,\n scheduler\n } = this;\n const {\n actions\n } = scheduler;\n this.work = this.state = this.scheduler = null;\n this.pending = false;\n arrRemove(actions, this);\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n super.unsubscribe();\n }\n }\n}\n","import { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nexport class Scheduler {\n constructor(schedulerActionCtor, now = Scheduler.now) {\n this.schedulerActionCtor = schedulerActionCtor;\n this.now = now;\n }\n schedule(work, delay = 0, state) {\n return new this.schedulerActionCtor(this, work).schedule(state, delay);\n }\n}\nScheduler.now = dateTimestampProvider.now;\n","import { Scheduler } from '../Scheduler';\nexport class AsyncScheduler extends Scheduler {\n constructor(SchedulerAction, now = Scheduler.now) {\n super(SchedulerAction, now);\n this.actions = [];\n this._active = false;\n }\n flush(action) {\n const {\n actions\n } = this;\n if (this._active) {\n actions.push(action);\n return;\n }\n let error;\n this._active = true;\n do {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n } while (action = actions.shift());\n this._active = false;\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n }\n}\n","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport const asyncScheduler = new AsyncScheduler(AsyncAction);\nexport const async = asyncScheduler;\n","import { Observable } from '../Observable';\nexport const EMPTY = new Observable(subscriber => subscriber.complete());\nexport function empty(scheduler) {\n return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\nfunction emptyScheduled(scheduler) {\n return new Observable(subscriber => scheduler.schedule(() => subscriber.complete()));\n}\n","import { isFunction } from './isFunction';\nexport function isScheduler(value) {\n return value && isFunction(value.schedule);\n}\n","import { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\nfunction last(arr) {\n return arr[arr.length - 1];\n}\nexport function popResultSelector(args) {\n return isFunction(last(args)) ? args.pop() : undefined;\n}\nexport function popScheduler(args) {\n return isScheduler(last(args)) ? args.pop() : undefined;\n}\nexport function popNumber(args, defaultValue) {\n return typeof last(args) === 'number' ? args.pop() : defaultValue;\n}\n","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol */\n\nvar extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n};\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nexport var __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nexport function __param(paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n}\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind,\n key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _,\n done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n}\n;\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n}\n;\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n}\n;\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n}\n;\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nexport function __generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function () {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nexport var __createBinding = Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = {\n enumerable: true,\n get: function () {\n return m[k];\n }\n };\n }\n Object.defineProperty(o, k2, desc);\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n};\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];\n return r;\n}\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []),\n i,\n q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () {\n return this;\n }, i;\n function verb(n) {\n if (g[n]) i[n] = function (v) {\n return new Promise(function (a, b) {\n q.push([n, v, a, b]) > 1 || resume(n, v);\n });\n };\n }\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n function step(r) {\n r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n function fulfill(value) {\n resume(\"next\", value);\n }\n function reject(value) {\n resume(\"throw\", value);\n }\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function () {\n return this;\n }, i;\n function verb(n, f) {\n i[n] = o[n] ? function (v) {\n return (p = !p) ? {\n value: __await(o[n](v)),\n done: false\n } : f ? f(v) : v;\n } : f;\n }\n}\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator],\n i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () {\n return this;\n }, i);\n function verb(n) {\n i[n] = o[n] && function (v) {\n return new Promise(function (resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function (v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) {\n Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n } else {\n cooked.raw = raw;\n }\n return cooked;\n}\n;\nvar __setModuleDefault = Object.create ? function (o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o[\"default\"] = v;\n};\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n}\nexport function __importDefault(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || typeof receiver !== \"object\" && typeof receiver !== \"function\") throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n env.stack.push({\n value: value,\n dispose: dispose,\n async: async\n });\n } else if (async) {\n env.stack.push({\n async: true\n });\n }\n return value;\n}\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function (e) {\n fail(e);\n return next();\n });\n } catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n}\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources\n};","export const isArrayLike = x => x && typeof x.length === 'number' && typeof x !== 'function';\n","import { isFunction } from \"./isFunction\";\nexport function isPromise(value) {\n return isFunction(value === null || value === void 0 ? void 0 : value.then);\n}\n","import { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\nexport function isInteropObservable(input) {\n return isFunction(input[Symbol_observable]);\n}\n","import { isFunction } from './isFunction';\nexport function isAsyncIterable(obj) {\n return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);\n}\n","export function createInvalidObservableTypeError(input) {\n return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`);\n}\n","export function getSymbolIterator() {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator';\n }\n return Symbol.iterator;\n}\nexport const iterator = getSymbolIterator();\n","import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\nexport function isIterable(input) {\n return isFunction(input === null || input === void 0 ? void 0 : input[Symbol_iterator]);\n}\n","import { __asyncGenerator, __await } from \"tslib\";\nimport { isFunction } from './isFunction';\nexport function readableStreamLikeToAsyncGenerator(readableStream) {\n return __asyncGenerator(this, arguments, function* readableStreamLikeToAsyncGenerator_1() {\n const reader = readableStream.getReader();\n try {\n while (true) {\n const {\n value,\n done\n } = yield __await(reader.read());\n if (done) {\n return yield __await(void 0);\n }\n yield yield __await(value);\n }\n } finally {\n reader.releaseLock();\n }\n });\n}\nexport function isReadableStreamLike(obj) {\n return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);\n}\n","import { __asyncValues, __awaiter } from \"tslib\";\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function innerFrom(input) {\n if (input instanceof Observable) {\n return input;\n }\n if (input != null) {\n if (isInteropObservable(input)) {\n return fromInteropObservable(input);\n }\n if (isArrayLike(input)) {\n return fromArrayLike(input);\n }\n if (isPromise(input)) {\n return fromPromise(input);\n }\n if (isAsyncIterable(input)) {\n return fromAsyncIterable(input);\n }\n if (isIterable(input)) {\n return fromIterable(input);\n }\n if (isReadableStreamLike(input)) {\n return fromReadableStreamLike(input);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\nexport function fromInteropObservable(obj) {\n return new Observable(subscriber => {\n const obs = obj[Symbol_observable]();\n if (isFunction(obs.subscribe)) {\n return obs.subscribe(subscriber);\n }\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n });\n}\nexport function fromArrayLike(array) {\n return new Observable(subscriber => {\n for (let i = 0; i < array.length && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n });\n}\nexport function fromPromise(promise) {\n return new Observable(subscriber => {\n promise.then(value => {\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, err => subscriber.error(err)).then(null, reportUnhandledError);\n });\n}\nexport function fromIterable(iterable) {\n return new Observable(subscriber => {\n for (const value of iterable) {\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n subscriber.complete();\n });\n}\nexport function fromAsyncIterable(asyncIterable) {\n return new Observable(subscriber => {\n process(asyncIterable, subscriber).catch(err => subscriber.error(err));\n });\n}\nexport function fromReadableStreamLike(readableStream) {\n return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\nfunction process(asyncIterable, subscriber) {\n var asyncIterable_1, asyncIterable_1_1;\n var e_1, _a;\n return __awaiter(this, void 0, void 0, function* () {\n try {\n for (asyncIterable_1 = __asyncValues(asyncIterable); asyncIterable_1_1 = yield asyncIterable_1.next(), !asyncIterable_1_1.done;) {\n const value = asyncIterable_1_1.value;\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) yield _a.call(asyncIterable_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n subscriber.complete();\n });\n}\n","export function executeSchedule(parentSubscription, scheduler, work, delay = 0, repeat = false) {\n const scheduleSubscription = scheduler.schedule(function () {\n work();\n if (repeat) {\n parentSubscription.add(this.schedule(null, delay));\n } else {\n this.unsubscribe();\n }\n }, delay);\n parentSubscription.add(scheduleSubscription);\n if (!repeat) {\n return scheduleSubscription;\n }\n}\n","import { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function observeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n source.subscribe(createOperatorSubscriber(subscriber, value => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay), () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay), err => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay)));\n });\n}\n","import { operate } from '../util/lift';\nexport function subscribeOn(scheduler, delay = 0) {\n return operate((source, subscriber) => {\n subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay));\n });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function scheduleObservable(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function schedulePromise(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n","import { Observable } from '../Observable';\nexport function scheduleArray(input, scheduler) {\n return new Observable(subscriber => {\n let i = 0;\n return scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n } else {\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n this.schedule();\n }\n }\n });\n });\n}\n","import { Observable } from '../Observable';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleIterable(input, scheduler) {\n return new Observable(subscriber => {\n let iterator;\n executeSchedule(subscriber, scheduler, () => {\n iterator = input[Symbol_iterator]();\n executeSchedule(subscriber, scheduler, () => {\n let value;\n let done;\n try {\n ({\n value,\n done\n } = iterator.next());\n } catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n } else {\n subscriber.next(value);\n }\n }, 0, true);\n });\n return () => isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return();\n });\n}\n","import { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleAsyncIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n return new Observable(subscriber => {\n executeSchedule(subscriber, scheduler, () => {\n const iterator = input[Symbol.asyncIterator]();\n executeSchedule(subscriber, scheduler, () => {\n iterator.next().then(result => {\n if (result.done) {\n subscriber.complete();\n } else {\n subscriber.next(result.value);\n }\n });\n }, 0, true);\n });\n });\n}\n","import { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nexport function scheduleReadableStreamLike(input, scheduler) {\n return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n","import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\nexport function scheduled(input, scheduler) {\n if (input != null) {\n if (isInteropObservable(input)) {\n return scheduleObservable(input, scheduler);\n }\n if (isArrayLike(input)) {\n return scheduleArray(input, scheduler);\n }\n if (isPromise(input)) {\n return schedulePromise(input, scheduler);\n }\n if (isAsyncIterable(input)) {\n return scheduleAsyncIterable(input, scheduler);\n }\n if (isIterable(input)) {\n return scheduleIterable(input, scheduler);\n }\n if (isReadableStreamLike(input)) {\n return scheduleReadableStreamLike(input, scheduler);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\n","import { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\nexport function from(input, scheduler) {\n return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n","import { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function of(...args) {\n const scheduler = popScheduler(args);\n return from(args, scheduler);\n}\n","import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nexport function throwError(errorOrErrorFactory, scheduler) {\n const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory;\n const init = subscriber => subscriber.error(errorFactory());\n return new Observable(scheduler ? subscriber => scheduler.schedule(init, 0, subscriber) : init);\n}\n","import { Observable } from '../Observable';\nimport { isFunction } from './isFunction';\nexport function isObservable(obj) {\n return !!obj && (obj instanceof Observable || isFunction(obj.lift) && isFunction(obj.subscribe));\n}\n","import { createErrorClass } from './createErrorClass';\nexport const EmptyError = createErrorClass(_super => function EmptyErrorImpl() {\n _super(this);\n this.name = 'EmptyError';\n this.message = 'no elements in sequence';\n});\n","export function isValidDate(value) {\n return value instanceof Date && !isNaN(value);\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function map(project, thisArg) {\n return operate((source, subscriber) => {\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n subscriber.next(project.call(thisArg, value, index++));\n }));\n });\n}\n","import { map } from \"../operators/map\";\nconst {\n isArray\n} = Array;\nfunction callOrApply(fn, args) {\n return isArray(args) ? fn(...args) : fn(args);\n}\nexport function mapOneOrManyArgs(fn) {\n return map(args => callOrApply(fn, args));\n}\n","const {\n isArray\n} = Array;\nconst {\n getPrototypeOf,\n prototype: objectProto,\n keys: getKeys\n} = Object;\nexport function argsArgArrayOrObject(args) {\n if (args.length === 1) {\n const first = args[0];\n if (isArray(first)) {\n return {\n args: first,\n keys: null\n };\n }\n if (isPOJO(first)) {\n const keys = getKeys(first);\n return {\n args: keys.map(key => first[key]),\n keys\n };\n }\n }\n return {\n args: args,\n keys: null\n };\n}\nfunction isPOJO(obj) {\n return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n","export function createObject(keys, values) {\n return keys.reduce((result, key, i) => (result[key] = values[i], result), {});\n}\n","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function combineLatest(...args) {\n const scheduler = popScheduler(args);\n const resultSelector = popResultSelector(args);\n const {\n args: observables,\n keys\n } = argsArgArrayOrObject(args);\n if (observables.length === 0) {\n return from([], scheduler);\n }\n const result = new Observable(combineLatestInit(observables, scheduler, keys ? values => createObject(keys, values) : identity));\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\nexport function combineLatestInit(observables, scheduler, valueTransform = identity) {\n return subscriber => {\n maybeSchedule(scheduler, () => {\n const {\n length\n } = observables;\n const values = new Array(length);\n let active = length;\n let remainingFirstValues = length;\n for (let i = 0; i < length; i++) {\n maybeSchedule(scheduler, () => {\n const source = from(observables[i], scheduler);\n let hasFirstValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n values[i] = value;\n if (!hasFirstValue) {\n hasFirstValue = true;\n remainingFirstValues--;\n }\n if (!remainingFirstValues) {\n subscriber.next(valueTransform(values.slice()));\n }\n }, () => {\n if (! --active) {\n subscriber.complete();\n }\n }));\n }, subscriber);\n }\n }, subscriber);\n };\n}\nfunction maybeSchedule(scheduler, execute, subscription) {\n if (scheduler) {\n executeSchedule(subscription, scheduler, execute);\n } else {\n execute();\n }\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {\n const buffer = [];\n let active = 0;\n let index = 0;\n let isComplete = false;\n const checkComplete = () => {\n if (isComplete && !buffer.length && !active) {\n subscriber.complete();\n }\n };\n const outerNext = value => active < concurrent ? doInnerSub(value) : buffer.push(value);\n const doInnerSub = value => {\n expand && subscriber.next(value);\n active++;\n let innerComplete = false;\n innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, innerValue => {\n onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);\n if (expand) {\n outerNext(innerValue);\n } else {\n subscriber.next(innerValue);\n }\n }, () => {\n innerComplete = true;\n }, undefined, () => {\n if (innerComplete) {\n try {\n active--;\n while (buffer.length && active < concurrent) {\n const bufferedValue = buffer.shift();\n if (innerSubScheduler) {\n executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue));\n } else {\n doInnerSub(bufferedValue);\n }\n }\n checkComplete();\n } catch (err) {\n subscriber.error(err);\n }\n }\n }));\n };\n source.subscribe(createOperatorSubscriber(subscriber, outerNext, () => {\n isComplete = true;\n checkComplete();\n }));\n return () => {\n additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();\n };\n}\n","import { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nimport { isFunction } from '../util/isFunction';\nexport function mergeMap(project, resultSelector, concurrent = Infinity) {\n if (isFunction(resultSelector)) {\n return mergeMap((a, i) => map((b, ii) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent);\n } else if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent));\n}\n","import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nexport function mergeAll(concurrent = Infinity) {\n return mergeMap(identity, concurrent);\n}\n","import { mergeAll } from './mergeAll';\nexport function concatAll() {\n return mergeAll(1);\n}\n","import { concatAll } from '../operators/concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function concat(...args) {\n return concatAll()(from(args, popScheduler(args)));\n}\n","import { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nexport function defer(observableFactory) {\n return new Observable(subscriber => {\n innerFrom(observableFactory()).subscribe(subscriber);\n });\n}\n","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { innerFrom } from './innerFrom';\nimport { popResultSelector } from '../util/args';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { createObject } from '../util/createObject';\nexport function forkJoin(...args) {\n const resultSelector = popResultSelector(args);\n const {\n args: sources,\n keys\n } = argsArgArrayOrObject(args);\n const result = new Observable(subscriber => {\n const {\n length\n } = sources;\n if (!length) {\n subscriber.complete();\n return;\n }\n const values = new Array(length);\n let remainingCompletions = length;\n let remainingEmissions = length;\n for (let sourceIndex = 0; sourceIndex < length; sourceIndex++) {\n let hasValue = false;\n innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, value => {\n if (!hasValue) {\n hasValue = true;\n remainingEmissions--;\n }\n values[sourceIndex] = value;\n }, () => remainingCompletions--, undefined, () => {\n if (!remainingCompletions || !hasValue) {\n if (!remainingEmissions) {\n subscriber.next(keys ? createObject(keys, values) : values);\n }\n subscriber.complete();\n }\n }));\n }\n });\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { Observable } from '../Observable';\nimport { mergeMap } from '../operators/mergeMap';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nconst nodeEventEmitterMethods = ['addListener', 'removeListener'];\nconst eventTargetMethods = ['addEventListener', 'removeEventListener'];\nconst jqueryMethods = ['on', 'off'];\nexport function fromEvent(target, eventName, options, resultSelector) {\n if (isFunction(options)) {\n resultSelector = options;\n options = undefined;\n }\n if (resultSelector) {\n return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));\n }\n const [add, remove] = isEventTarget(target) ? eventTargetMethods.map(methodName => handler => target[methodName](eventName, handler, options)) : isNodeStyleEventEmitter(target) ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) : isJQueryStyleEventEmitter(target) ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) : [];\n if (!add) {\n if (isArrayLike(target)) {\n return mergeMap(subTarget => fromEvent(subTarget, eventName, options))(innerFrom(target));\n }\n }\n if (!add) {\n throw new TypeError('Invalid event target');\n }\n return new Observable(subscriber => {\n const handler = (...args) => subscriber.next(1 < args.length ? args : args[0]);\n add(handler);\n return () => remove(handler);\n });\n}\nfunction toCommonHandlerRegistry(target, eventName) {\n return methodName => handler => target[methodName](eventName, handler);\n}\nfunction isNodeStyleEventEmitter(target) {\n return isFunction(target.addListener) && isFunction(target.removeListener);\n}\nfunction isJQueryStyleEventEmitter(target) {\n return isFunction(target.on) && isFunction(target.off);\n}\nfunction isEventTarget(target) {\n return isFunction(target.addEventListener) && isFunction(target.removeEventListener);\n}\n","import { Observable } from '../Observable';\nimport { async as asyncScheduler } from '../scheduler/async';\nimport { isScheduler } from '../util/isScheduler';\nimport { isValidDate } from '../util/isDate';\nexport function timer(dueTime = 0, intervalOrScheduler, scheduler = asyncScheduler) {\n let intervalDuration = -1;\n if (intervalOrScheduler != null) {\n if (isScheduler(intervalOrScheduler)) {\n scheduler = intervalOrScheduler;\n } else {\n intervalDuration = intervalOrScheduler;\n }\n }\n return new Observable(subscriber => {\n let due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;\n if (due < 0) {\n due = 0;\n }\n let n = 0;\n return scheduler.schedule(function () {\n if (!subscriber.closed) {\n subscriber.next(n++);\n if (0 <= intervalDuration) {\n this.schedule(undefined, intervalDuration);\n } else {\n subscriber.complete();\n }\n }\n }, due);\n });\n}\n","import { mergeAll } from '../operators/mergeAll';\nimport { innerFrom } from './innerFrom';\nimport { EMPTY } from './empty';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from './from';\nexport function merge(...args) {\n const scheduler = popScheduler(args);\n const concurrent = popNumber(args, Infinity);\n const sources = args;\n return !sources.length ? EMPTY : sources.length === 1 ? innerFrom(sources[0]) : mergeAll(concurrent)(from(sources, scheduler));\n}\n","import { Observable } from '../Observable';\nimport { noop } from '../util/noop';\nexport const NEVER = new Observable(noop);\nexport function never() {\n return NEVER;\n}\n","const {\n isArray\n} = Array;\nexport function argsOrArgArray(args) {\n return args.length === 1 && isArray(args[0]) ? args[0] : args;\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function filter(predicate, thisArg) {\n return operate((source, subscriber) => {\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => predicate.call(thisArg, value, index++) && subscriber.next(value)));\n });\n}\n","import { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nexport function race(...sources) {\n sources = argsOrArgArray(sources);\n return sources.length === 1 ? innerFrom(sources[0]) : new Observable(raceInit(sources));\n}\nexport function raceInit(sources) {\n return subscriber => {\n let subscriptions = [];\n for (let i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) {\n subscriptions.push(innerFrom(sources[i]).subscribe(createOperatorSubscriber(subscriber, value => {\n if (subscriptions) {\n for (let s = 0; s < subscriptions.length; s++) {\n s !== i && subscriptions[s].unsubscribe();\n }\n subscriptions = null;\n }\n subscriber.next(value);\n })));\n }\n };\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { operate } from '../util/lift';\nexport function catchError(selector) {\n return operate((source, subscriber) => {\n let innerSub = null;\n let syncUnsub = false;\n let handledResult;\n innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, err => {\n handledResult = innerFrom(selector(err, catchError(selector)(source)));\n if (innerSub) {\n innerSub.unsubscribe();\n innerSub = null;\n handledResult.subscribe(subscriber);\n } else {\n syncUnsub = true;\n }\n }));\n if (syncUnsub) {\n innerSub.unsubscribe();\n innerSub = null;\n handledResult.subscribe(subscriber);\n }\n });\n}\n","import { createOperatorSubscriber } from './OperatorSubscriber';\nexport function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {\n return (source, subscriber) => {\n let hasState = hasSeed;\n let state = seed;\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const i = index++;\n state = hasState ? accumulator(state, value, i) : (hasState = true, value);\n emitOnNext && subscriber.next(state);\n }, emitBeforeComplete && (() => {\n hasState && subscriber.next(state);\n subscriber.complete();\n })));\n };\n}\n","import { mergeMap } from './mergeMap';\nimport { isFunction } from '../util/isFunction';\nexport function concatMap(project, resultSelector) {\n return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1);\n}\n","import { operate } from '../util/lift';\nimport { noop } from '../util/noop';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function debounce(durationSelector) {\n return operate((source, subscriber) => {\n let hasValue = false;\n let lastValue = null;\n let durationSubscriber = null;\n const emit = () => {\n durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();\n durationSubscriber = null;\n if (hasValue) {\n hasValue = false;\n const value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n };\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();\n hasValue = true;\n lastValue = value;\n durationSubscriber = createOperatorSubscriber(subscriber, emit, noop);\n innerFrom(durationSelector(value)).subscribe(durationSubscriber);\n }, () => {\n emit();\n subscriber.complete();\n }, undefined, () => {\n lastValue = durationSubscriber = null;\n }));\n });\n}\n","import { asyncScheduler } from '../scheduler/async';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function debounceTime(dueTime, scheduler = asyncScheduler) {\n return operate((source, subscriber) => {\n let activeTask = null;\n let lastValue = null;\n let lastTime = null;\n const emit = () => {\n if (activeTask) {\n activeTask.unsubscribe();\n activeTask = null;\n const value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n };\n function emitWhenIdle() {\n const targetTime = lastTime + dueTime;\n const now = scheduler.now();\n if (now < targetTime) {\n activeTask = this.schedule(undefined, targetTime - now);\n subscriber.add(activeTask);\n return;\n }\n emit();\n }\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n lastValue = value;\n lastTime = scheduler.now();\n if (!activeTask) {\n activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n subscriber.add(activeTask);\n }\n }, () => {\n emit();\n subscriber.complete();\n }, undefined, () => {\n lastValue = activeTask = null;\n }));\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function defaultIfEmpty(defaultValue) {\n return operate((source, subscriber) => {\n let hasValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n hasValue = true;\n subscriber.next(value);\n }, () => {\n if (!hasValue) {\n subscriber.next(defaultValue);\n }\n subscriber.complete();\n }));\n });\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function take(count) {\n return count <= 0 ? () => EMPTY : operate((source, subscriber) => {\n let seen = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n if (++seen <= count) {\n subscriber.next(value);\n if (count <= seen) {\n subscriber.complete();\n }\n }\n }));\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nexport function ignoreElements() {\n return operate((source, subscriber) => {\n source.subscribe(createOperatorSubscriber(subscriber, noop));\n });\n}\n","import { map } from './map';\nexport function mapTo(value) {\n return map(() => value);\n}\n","import { concat } from '../observable/concat';\nimport { take } from './take';\nimport { ignoreElements } from './ignoreElements';\nimport { mapTo } from './mapTo';\nimport { mergeMap } from './mergeMap';\nimport { innerFrom } from '../observable/innerFrom';\nexport function delayWhen(delayDurationSelector, subscriptionDelay) {\n if (subscriptionDelay) {\n return source => concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));\n }\n return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)));\n}\n","import { asyncScheduler } from '../scheduler/async';\nimport { delayWhen } from './delayWhen';\nimport { timer } from '../observable/timer';\nexport function delay(due, scheduler = asyncScheduler) {\n const duration = timer(due, scheduler);\n return delayWhen(() => duration);\n}\n","import { identity } from '../util/identity';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function distinctUntilChanged(comparator, keySelector = identity) {\n comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;\n return operate((source, subscriber) => {\n let previousKey;\n let first = true;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const currentKey = keySelector(value);\n if (first || !comparator(previousKey, currentKey)) {\n first = false;\n previousKey = currentKey;\n subscriber.next(value);\n }\n }));\n });\n}\nfunction defaultCompare(a, b) {\n return a === b;\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function throwIfEmpty(errorFactory = defaultErrorFactory) {\n return operate((source, subscriber) => {\n let hasValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n hasValue = true;\n subscriber.next(value);\n }, () => hasValue ? subscriber.complete() : subscriber.error(errorFactory())));\n });\n}\nfunction defaultErrorFactory() {\n return new EmptyError();\n}\n","import { concat } from '../observable/concat';\nimport { of } from '../observable/of';\nexport function endWith(...values) {\n return source => concat(source, of(...values));\n}\n","import { operate } from '../util/lift';\nexport function finalize(callback) {\n return operate((source, subscriber) => {\n try {\n source.subscribe(subscriber);\n } finally {\n subscriber.add(callback);\n }\n });\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return source => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function takeLast(count) {\n return count <= 0 ? () => EMPTY : operate((source, subscriber) => {\n let buffer = [];\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n buffer.push(value);\n count < buffer.length && buffer.shift();\n }, () => {\n for (const value of buffer) {\n subscriber.next(value);\n }\n subscriber.complete();\n }, undefined, () => {\n buffer = null;\n }));\n });\n}\n","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { takeLast } from './takeLast';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { identity } from '../util/identity';\nexport function last(predicate, defaultValue) {\n const hasDefaultValue = arguments.length >= 2;\n return source => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));\n}\n","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { timer } from '../observable/timer';\nexport function repeat(countOrConfig) {\n let count = Infinity;\n let delay;\n if (countOrConfig != null) {\n if (typeof countOrConfig === 'object') {\n ({\n count = Infinity,\n delay\n } = countOrConfig);\n } else {\n count = countOrConfig;\n }\n }\n return count <= 0 ? () => EMPTY : operate((source, subscriber) => {\n let soFar = 0;\n let sourceSub;\n const resubscribe = () => {\n sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe();\n sourceSub = null;\n if (delay != null) {\n const notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar));\n const notifierSubscriber = createOperatorSubscriber(subscriber, () => {\n notifierSubscriber.unsubscribe();\n subscribeToSource();\n });\n notifier.subscribe(notifierSubscriber);\n } else {\n subscribeToSource();\n }\n };\n const subscribeToSource = () => {\n let syncUnsub = false;\n sourceSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, () => {\n if (++soFar < count) {\n if (sourceSub) {\n resubscribe();\n } else {\n syncUnsub = true;\n }\n } else {\n subscriber.complete();\n }\n }));\n if (syncUnsub) {\n resubscribe();\n }\n };\n subscribeToSource();\n });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function repeatWhen(notifier) {\n return operate((source, subscriber) => {\n let innerSub;\n let syncResub = false;\n let completions$;\n let isNotifierComplete = false;\n let isMainComplete = false;\n const checkComplete = () => isMainComplete && isNotifierComplete && (subscriber.complete(), true);\n const getCompletionSubject = () => {\n if (!completions$) {\n completions$ = new Subject();\n innerFrom(notifier(completions$)).subscribe(createOperatorSubscriber(subscriber, () => {\n if (innerSub) {\n subscribeForRepeatWhen();\n } else {\n syncResub = true;\n }\n }, () => {\n isNotifierComplete = true;\n checkComplete();\n }));\n }\n return completions$;\n };\n const subscribeForRepeatWhen = () => {\n isMainComplete = false;\n innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, () => {\n isMainComplete = true;\n !checkComplete() && getCompletionSubject().next();\n }));\n if (syncResub) {\n innerSub.unsubscribe();\n innerSub = null;\n syncResub = false;\n subscribeForRepeatWhen();\n }\n };\n subscribeForRepeatWhen();\n });\n}\n","import { operate } from '../util/lift';\nimport { scanInternals } from './scanInternals';\nexport function scan(accumulator, seed) {\n return operate(scanInternals(accumulator, seed, arguments.length >= 2, true));\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { SafeSubscriber } from '../Subscriber';\nimport { operate } from '../util/lift';\nexport function share(options = {}) {\n const {\n connector = () => new Subject(),\n resetOnError = true,\n resetOnComplete = true,\n resetOnRefCountZero = true\n } = options;\n return wrapperSource => {\n let connection;\n let resetConnection;\n let subject;\n let refCount = 0;\n let hasCompleted = false;\n let hasErrored = false;\n const cancelReset = () => {\n resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();\n resetConnection = undefined;\n };\n const reset = () => {\n cancelReset();\n connection = subject = undefined;\n hasCompleted = hasErrored = false;\n };\n const resetAndUnsubscribe = () => {\n const conn = connection;\n reset();\n conn === null || conn === void 0 ? void 0 : conn.unsubscribe();\n };\n return operate((source, subscriber) => {\n refCount++;\n if (!hasErrored && !hasCompleted) {\n cancelReset();\n }\n const dest = subject = subject !== null && subject !== void 0 ? subject : connector();\n subscriber.add(() => {\n refCount--;\n if (refCount === 0 && !hasErrored && !hasCompleted) {\n resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);\n }\n });\n dest.subscribe(subscriber);\n if (!connection && refCount > 0) {\n connection = new SafeSubscriber({\n next: value => dest.next(value),\n error: err => {\n hasErrored = true;\n cancelReset();\n resetConnection = handleReset(reset, resetOnError, err);\n dest.error(err);\n },\n complete: () => {\n hasCompleted = true;\n cancelReset();\n resetConnection = handleReset(reset, resetOnComplete);\n dest.complete();\n }\n });\n innerFrom(source).subscribe(connection);\n }\n })(wrapperSource);\n };\n}\nfunction handleReset(reset, on, ...args) {\n if (on === true) {\n reset();\n return;\n }\n if (on === false) {\n return;\n }\n const onSubscriber = new SafeSubscriber({\n next: () => {\n onSubscriber.unsubscribe();\n reset();\n }\n });\n return innerFrom(on(...args)).subscribe(onSubscriber);\n}\n","import { ReplaySubject } from '../ReplaySubject';\nimport { share } from './share';\nexport function shareReplay(configOrBufferSize, windowTime, scheduler) {\n let bufferSize;\n let refCount = false;\n if (configOrBufferSize && typeof configOrBufferSize === 'object') {\n ({\n bufferSize = Infinity,\n windowTime = Infinity,\n refCount = false,\n scheduler\n } = configOrBufferSize);\n } else {\n bufferSize = configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity;\n }\n return share({\n connector: () => new ReplaySubject(bufferSize, windowTime, scheduler),\n resetOnError: true,\n resetOnComplete: false,\n resetOnRefCountZero: refCount\n });\n}\n","import { filter } from './filter';\nexport function skip(count) {\n return filter((_, index) => count <= index);\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function skipWhile(predicate) {\n return operate((source, subscriber) => {\n let taking = false;\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => (taking || (taking = !predicate(value, index++))) && subscriber.next(value)));\n });\n}\n","import { concat } from '../observable/concat';\nimport { popScheduler } from '../util/args';\nimport { operate } from '../util/lift';\nexport function startWith(...values) {\n const scheduler = popScheduler(values);\n return operate((source, subscriber) => {\n (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);\n });\n}\n","import { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function switchMap(project, resultSelector) {\n return operate((source, subscriber) => {\n let innerSubscriber = null;\n let index = 0;\n let isComplete = false;\n const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();\n let innerIndex = 0;\n const outerIndex = index++;\n innerFrom(project(value, outerIndex)).subscribe(innerSubscriber = createOperatorSubscriber(subscriber, innerValue => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => {\n innerSubscriber = null;\n checkComplete();\n }));\n }, () => {\n isComplete = true;\n checkComplete();\n }));\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\nexport function takeUntil(notifier) {\n return operate((source, subscriber) => {\n innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop));\n !subscriber.closed && source.subscribe(subscriber);\n });\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function takeWhile(predicate, inclusive = false) {\n return operate((source, subscriber) => {\n let index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n const result = predicate(value, index++);\n (result || inclusive) && subscriber.next(value);\n !result && subscriber.complete();\n }));\n });\n}\n","import { isFunction } from '../util/isFunction';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\nexport function tap(observerOrNext, error, complete) {\n const tapObserver = isFunction(observerOrNext) || error || complete ? {\n next: observerOrNext,\n error,\n complete\n } : observerOrNext;\n return tapObserver ? operate((source, subscriber) => {\n var _a;\n (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n let isUnsub = true;\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n var _a;\n (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value);\n subscriber.next(value);\n }, () => {\n var _a;\n isUnsub = false;\n (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n subscriber.complete();\n }, err => {\n var _a;\n isUnsub = false;\n (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err);\n subscriber.error(err);\n }, () => {\n var _a, _b;\n if (isUnsub) {\n (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n }\n (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);\n }));\n }) : identity;\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function throttle(durationSelector, config) {\n return operate((source, subscriber) => {\n const {\n leading = true,\n trailing = false\n } = config !== null && config !== void 0 ? config : {};\n let hasValue = false;\n let sendValue = null;\n let throttled = null;\n let isComplete = false;\n const endThrottling = () => {\n throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe();\n throttled = null;\n if (trailing) {\n send();\n isComplete && subscriber.complete();\n }\n };\n const cleanupThrottling = () => {\n throttled = null;\n isComplete && subscriber.complete();\n };\n const startThrottle = value => throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling));\n const send = () => {\n if (hasValue) {\n hasValue = false;\n const value = sendValue;\n sendValue = null;\n subscriber.next(value);\n !isComplete && startThrottle(value);\n }\n };\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n hasValue = true;\n sendValue = value;\n !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));\n }, () => {\n isComplete = true;\n !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();\n }));\n });\n}\n","import { asyncScheduler } from '../scheduler/async';\nimport { throttle } from './throttle';\nimport { timer } from '../observable/timer';\nexport function throttleTime(duration, scheduler = asyncScheduler, config) {\n const duration$ = timer(duration, scheduler);\n return throttle(() => duration$, config);\n}\n","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { identity } from '../util/identity';\nimport { noop } from '../util/noop';\nimport { popResultSelector } from '../util/args';\nexport function withLatestFrom(...inputs) {\n const project = popResultSelector(inputs);\n return operate((source, subscriber) => {\n const len = inputs.length;\n const otherValues = new Array(len);\n let hasValue = inputs.map(() => false);\n let ready = false;\n for (let i = 0; i < len; i++) {\n innerFrom(inputs[i]).subscribe(createOperatorSubscriber(subscriber, value => {\n otherValues[i] = value;\n if (!ready && !hasValue[i]) {\n hasValue[i] = true;\n (ready = hasValue.every(identity)) && (hasValue = null);\n }\n }, noop));\n }\n source.subscribe(createOperatorSubscriber(subscriber, value => {\n if (ready) {\n const values = [value, ...otherValues];\n subscriber.next(project ? project(...values) : values);\n }\n }));\n });\n}\n","/**\n * @license Angular v17.3.8\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport { SIGNAL_NODE as SIGNAL_NODE$1, signalSetFn as signalSetFn$1, producerAccessed as producerAccessed$1, SIGNAL as SIGNAL$1, getActiveConsumer as getActiveConsumer$1, setActiveConsumer as setActiveConsumer$1, consumerDestroy as consumerDestroy$1, REACTIVE_NODE as REACTIVE_NODE$1, consumerBeforeComputation as consumerBeforeComputation$1, consumerAfterComputation as consumerAfterComputation$1, consumerPollProducersForChange as consumerPollProducersForChange$1, createSignal as createSignal$1, signalUpdateFn as signalUpdateFn$1, createComputed as createComputed$1, setThrowInvalidWriteToSignalError as setThrowInvalidWriteToSignalError$1, createWatch as createWatch$1 } from '@angular/core/primitives/signals';\nimport { Subject, Subscription, BehaviorSubject } from 'rxjs';\nimport { map, first } from 'rxjs/operators';\n\n/**\n * Base URL for the error details page.\n *\n * Keep this constant in sync across:\n * - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts\n * - packages/core/src/error_details_base_url.ts\n */\nconst ERROR_DETAILS_PAGE_BASE_URL = 'https://angular.io/errors';\n/**\n * URL for the XSS security documentation.\n */\nconst XSS_SECURITY_URL = 'https://g.co/ng/security#xss';\n\n/**\n * Class that represents a runtime error.\n * Formats and outputs the error message in a consistent way.\n *\n * Example:\n * ```\n * throw new RuntimeError(\n * RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED,\n * ngDevMode && 'Injector has already been destroyed.');\n * ```\n *\n * Note: the `message` argument contains a descriptive error message as a string in development\n * mode (when the `ngDevMode` is defined). In production mode (after tree-shaking pass), the\n * `message` argument becomes `false`, thus we account for it in the typings and the runtime\n * logic.\n */\nclass RuntimeError extends Error {\n constructor(code, message) {\n super(formatRuntimeError(code, message));\n this.code = code;\n }\n}\n/**\n * Called to format a runtime error.\n * See additional info on the `message` argument type in the `RuntimeError` class description.\n */\nfunction formatRuntimeError(code, message) {\n // Error code might be a negative number, which is a special marker that instructs the logic to\n // generate a link to the error details page on angular.io.\n // We also prepend `0` to non-compile-time errors.\n const fullCode = `NG0${Math.abs(code)}`;\n let errorMessage = `${fullCode}${message ? ': ' + message : ''}`;\n if (ngDevMode && code < 0) {\n const addPeriodSeparator = !errorMessage.match(/[.,;!?\\n]$/);\n const separator = addPeriodSeparator ? '.' : '';\n errorMessage = `${errorMessage}${separator} Find more at ${ERROR_DETAILS_PAGE_BASE_URL}/${fullCode}`;\n }\n return errorMessage;\n}\nconst REQUIRED_UNSET_VALUE = /* @__PURE__ */Symbol('InputSignalNode#UNSET');\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `COMPUTED_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nconst INPUT_SIGNAL_NODE = /* @__PURE__ */(() => {\n return {\n ...SIGNAL_NODE$1,\n transformFn: undefined,\n applyValueToInputSignal(node, value) {\n signalSetFn$1(node, value);\n }\n };\n})();\nconst ɵINPUT_SIGNAL_BRAND_READ_TYPE = /* @__PURE__ */Symbol();\nconst ɵINPUT_SIGNAL_BRAND_WRITE_TYPE = /* @__PURE__ */Symbol();\n/**\n * Creates an input signal.\n *\n * @param initialValue The initial value.\n * Can be set to {@link REQUIRED_UNSET_VALUE} for required inputs.\n * @param options Additional options for the input. e.g. a transform, or an alias.\n */\nfunction createInputSignal(initialValue, options) {\n const node = Object.create(INPUT_SIGNAL_NODE);\n node.value = initialValue;\n // Perf note: Always set `transformFn` here to ensure that `node` always\n // has the same v8 class shape, allowing monomorphic reads on input signals.\n node.transformFn = options?.transform;\n function inputValueFn() {\n // Record that someone looked at this signal.\n producerAccessed$1(node);\n if (node.value === REQUIRED_UNSET_VALUE) {\n throw new RuntimeError(-950 /* RuntimeErrorCode.REQUIRED_INPUT_NO_VALUE */, ngDevMode && 'Input is required but no value is available yet.');\n }\n return node.value;\n }\n inputValueFn[SIGNAL$1] = node;\n if (ngDevMode) {\n inputValueFn.toString = () => `[Input Signal: ${inputValueFn()}]`;\n }\n return inputValueFn;\n}\n\n/**\n * Convince closure compiler that the wrapped function has no side-effects.\n *\n * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to\n * allow us to execute a function but have closure compiler mark the call as no-side-effects.\n * It is important that the return value for the `noSideEffects` function be assigned\n * to something which is retained otherwise the call to `noSideEffects` will be removed by closure\n * compiler.\n */\nfunction noSideEffects(fn) {\n return {\n toString: fn\n }.toString();\n}\nconst ANNOTATIONS = '__annotations__';\nconst PARAMETERS = '__parameters__';\nconst PROP_METADATA = '__prop__metadata__';\n/**\n * @suppress {globalThis}\n */\nfunction makeDecorator(name, props, parentClass, additionalProcessing, typeFn) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function DecoratorFactory(...args) {\n if (this instanceof DecoratorFactory) {\n metaCtor.call(this, ...args);\n return this;\n }\n const annotationInstance = new DecoratorFactory(...args);\n return function TypeDecorator(cls) {\n if (typeFn) typeFn(cls, ...args);\n // Use of Object.defineProperty is important since it creates non-enumerable property which\n // prevents the property is copied during subclassing.\n const annotations = cls.hasOwnProperty(ANNOTATIONS) ? cls[ANNOTATIONS] : Object.defineProperty(cls, ANNOTATIONS, {\n value: []\n })[ANNOTATIONS];\n annotations.push(annotationInstance);\n if (additionalProcessing) additionalProcessing(cls);\n return cls;\n };\n }\n if (parentClass) {\n DecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n DecoratorFactory.prototype.ngMetadataName = name;\n DecoratorFactory.annotationCls = DecoratorFactory;\n return DecoratorFactory;\n });\n}\nfunction makeMetadataCtor(props) {\n return function ctor(...args) {\n if (props) {\n const values = props(...args);\n for (const propName in values) {\n this[propName] = values[propName];\n }\n }\n };\n}\nfunction makeParamDecorator(name, props, parentClass) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function ParamDecoratorFactory(...args) {\n if (this instanceof ParamDecoratorFactory) {\n metaCtor.apply(this, args);\n return this;\n }\n const annotationInstance = new ParamDecoratorFactory(...args);\n ParamDecorator.annotation = annotationInstance;\n return ParamDecorator;\n function ParamDecorator(cls, unusedKey, index) {\n // Use of Object.defineProperty is important since it creates non-enumerable property which\n // prevents the property is copied during subclassing.\n const parameters = cls.hasOwnProperty(PARAMETERS) ? cls[PARAMETERS] : Object.defineProperty(cls, PARAMETERS, {\n value: []\n })[PARAMETERS];\n // there might be gaps if some in between parameters do not have annotations.\n // we pad with nulls.\n while (parameters.length <= index) {\n parameters.push(null);\n }\n (parameters[index] = parameters[index] || []).push(annotationInstance);\n return cls;\n }\n }\n if (parentClass) {\n ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n ParamDecoratorFactory.prototype.ngMetadataName = name;\n ParamDecoratorFactory.annotationCls = ParamDecoratorFactory;\n return ParamDecoratorFactory;\n });\n}\nfunction makePropDecorator(name, props, parentClass, additionalProcessing) {\n return noSideEffects(() => {\n const metaCtor = makeMetadataCtor(props);\n function PropDecoratorFactory(...args) {\n if (this instanceof PropDecoratorFactory) {\n metaCtor.apply(this, args);\n return this;\n }\n const decoratorInstance = new PropDecoratorFactory(...args);\n function PropDecorator(target, name) {\n // target is undefined with standard decorators. This case is not supported and will throw\n // if this decorator is used in JIT mode with standard decorators.\n if (target === undefined) {\n throw new Error('Standard Angular field decorators are not supported in JIT mode.');\n }\n const constructor = target.constructor;\n // Use of Object.defineProperty is important because it creates a non-enumerable property\n // which prevents the property from being copied during subclassing.\n const meta = constructor.hasOwnProperty(PROP_METADATA) ? constructor[PROP_METADATA] : Object.defineProperty(constructor, PROP_METADATA, {\n value: {}\n })[PROP_METADATA];\n meta[name] = meta.hasOwnProperty(name) && meta[name] || [];\n meta[name].unshift(decoratorInstance);\n if (additionalProcessing) additionalProcessing(target, name, ...args);\n }\n return PropDecorator;\n }\n if (parentClass) {\n PropDecoratorFactory.prototype = Object.create(parentClass.prototype);\n }\n PropDecoratorFactory.prototype.ngMetadataName = name;\n PropDecoratorFactory.annotationCls = PropDecoratorFactory;\n return PropDecoratorFactory;\n });\n}\nconst _global = globalThis;\nfunction ngDevModeResetPerfCounters() {\n const locationString = typeof location !== 'undefined' ? location.toString() : '';\n const newCounters = {\n namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,\n firstCreatePass: 0,\n tNode: 0,\n tView: 0,\n rendererCreateTextNode: 0,\n rendererSetText: 0,\n rendererCreateElement: 0,\n rendererAddEventListener: 0,\n rendererSetAttribute: 0,\n rendererRemoveAttribute: 0,\n rendererSetProperty: 0,\n rendererSetClassName: 0,\n rendererAddClass: 0,\n rendererRemoveClass: 0,\n rendererSetStyle: 0,\n rendererRemoveStyle: 0,\n rendererDestroy: 0,\n rendererDestroyNode: 0,\n rendererMoveNode: 0,\n rendererRemoveNode: 0,\n rendererAppendChild: 0,\n rendererInsertBefore: 0,\n rendererCreateComment: 0,\n hydratedNodes: 0,\n hydratedComponents: 0,\n dehydratedViewsRemoved: 0,\n dehydratedViewsCleanupRuns: 0,\n componentsSkippedHydration: 0\n };\n // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.\n const allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;\n if (!allowNgDevModeTrue) {\n _global['ngDevMode'] = false;\n } else {\n if (typeof _global['ngDevMode'] !== 'object') {\n _global['ngDevMode'] = {};\n }\n Object.assign(_global['ngDevMode'], newCounters);\n }\n return newCounters;\n}\n/**\n * This function checks to see if the `ngDevMode` has been set. If yes,\n * then we honor it, otherwise we default to dev mode with additional checks.\n *\n * The idea is that unless we are doing production build where we explicitly\n * set `ngDevMode == false` we should be helping the developer by providing\n * as much early warning and errors as possible.\n *\n * `ɵɵdefineComponent` is guaranteed to have been called before any component template functions\n * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode\n * is defined for the entire instruction set.\n *\n * When checking `ngDevMode` on toplevel, always init it before referencing it\n * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can\n * get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.\n *\n * Details on possible values for `ngDevMode` can be found on its docstring.\n *\n * NOTE:\n * - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.\n */\nfunction initNgDevMode() {\n // The below checks are to ensure that calling `initNgDevMode` multiple times does not\n // reset the counters.\n // If the `ngDevMode` is not an object, then it means we have not created the perf counters\n // yet.\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (typeof ngDevMode !== 'object' || Object.keys(ngDevMode).length === 0) {\n ngDevModeResetPerfCounters();\n }\n return typeof ngDevMode !== 'undefined' && !!ngDevMode;\n }\n return false;\n}\nfunction getClosureSafeProperty(objWithPropertyToExtract) {\n for (let key in objWithPropertyToExtract) {\n if (objWithPropertyToExtract[key] === getClosureSafeProperty) {\n return key;\n }\n }\n throw Error('Could not find renamed property on target object.');\n}\n/**\n * Sets properties on a target object from a source object, but only if\n * the property doesn't already exist on the target object.\n * @param target The target to set properties on\n * @param source The source of the property keys and values to set\n */\nfunction fillProperties(target, source) {\n for (const key in source) {\n if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {\n target[key] = source[key];\n }\n }\n}\nfunction stringify(token) {\n if (typeof token === 'string') {\n return token;\n }\n if (Array.isArray(token)) {\n return '[' + token.map(stringify).join(', ') + ']';\n }\n if (token == null) {\n return '' + token;\n }\n if (token.overriddenName) {\n return `${token.overriddenName}`;\n }\n if (token.name) {\n return `${token.name}`;\n }\n const res = token.toString();\n if (res == null) {\n return '' + res;\n }\n const newLineIndex = res.indexOf('\\n');\n return newLineIndex === -1 ? res : res.substring(0, newLineIndex);\n}\n/**\n * Concatenates two strings with separator, allocating new strings only when necessary.\n *\n * @param before before string.\n * @param separator separator string.\n * @param after after string.\n * @returns concatenated string.\n */\nfunction concatStringsWithSpace(before, after) {\n return before == null || before === '' ? after === null ? '' : after : after == null || after === '' ? before : before + ' ' + after;\n}\n/**\n * Ellipses the string in the middle when longer than the max length\n *\n * @param string\n * @param maxLength of the output string\n * @returns ellipsed string with ... in the middle\n */\nfunction truncateMiddle(str, maxLength = 100) {\n if (!str || maxLength < 1 || str.length <= maxLength) return str;\n if (maxLength == 1) return str.substring(0, 1) + '...';\n const halfLimit = Math.round(maxLength / 2);\n return str.substring(0, halfLimit) + '...' + str.substring(str.length - halfLimit);\n}\nconst __forward_ref__ = /*#__PURE__*/getClosureSafeProperty({\n __forward_ref__: getClosureSafeProperty\n});\n/**\n * Allows to refer to references which are not yet defined.\n *\n * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of\n * DI is declared, but not yet defined. It is also used when the `token` which we use when creating\n * a query is not yet defined.\n *\n * `forwardRef` is also used to break circularities in standalone components imports.\n *\n * @usageNotes\n * ### Circular dependency example\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}\n *\n * ### Circular standalone reference import example\n * ```ts\n * @Component({\n * standalone: true,\n * imports: [ChildComponent],\n * selector: 'app-parent',\n * template: ``,\n * })\n * export class ParentComponent {\n * @Input() hideParent: boolean;\n * }\n *\n *\n * @Component({\n * standalone: true,\n * imports: [CommonModule, forwardRef(() => ParentComponent)],\n * selector: 'app-child',\n * template: ``,\n * })\n * export class ChildComponent {\n * @Input() hideParent: boolean;\n * }\n * ```\n *\n * @publicApi\n */\nfunction forwardRef(forwardRefFn) {\n forwardRefFn.__forward_ref__ = forwardRef;\n forwardRefFn.toString = function () {\n return stringify(this());\n };\n return forwardRefFn;\n}\n/**\n * Lazily retrieves the reference value from a forwardRef.\n *\n * Acts as the identity function when given a non-forward-ref value.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}\n *\n * @see {@link forwardRef}\n * @publicApi\n */\nfunction resolveForwardRef(type) {\n return isForwardRef(type) ? type() : type;\n}\n/** Checks whether a function is wrapped by a `forwardRef`. */\nfunction isForwardRef(fn) {\n return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) && fn.__forward_ref__ === forwardRef;\n}\n\n// The functions in this file verify that the assumptions we are making\nfunction assertNumber(actual, msg) {\n if (!(typeof actual === 'number')) {\n throwError(msg, typeof actual, 'number', '===');\n }\n}\nfunction assertNumberInRange(actual, minInclusive, maxInclusive) {\n assertNumber(actual, 'Expected a number');\n assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');\n assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');\n}\nfunction assertString(actual, msg) {\n if (!(typeof actual === 'string')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');\n }\n}\nfunction assertFunction(actual, msg) {\n if (!(typeof actual === 'function')) {\n throwError(msg, actual === null ? 'null' : typeof actual, 'function', '===');\n }\n}\nfunction assertEqual(actual, expected, msg) {\n if (!(actual == expected)) {\n throwError(msg, actual, expected, '==');\n }\n}\nfunction assertNotEqual(actual, expected, msg) {\n if (!(actual != expected)) {\n throwError(msg, actual, expected, '!=');\n }\n}\nfunction assertSame(actual, expected, msg) {\n if (!(actual === expected)) {\n throwError(msg, actual, expected, '===');\n }\n}\nfunction assertNotSame(actual, expected, msg) {\n if (!(actual !== expected)) {\n throwError(msg, actual, expected, '!==');\n }\n}\nfunction assertLessThan(actual, expected, msg) {\n if (!(actual < expected)) {\n throwError(msg, actual, expected, '<');\n }\n}\nfunction assertLessThanOrEqual(actual, expected, msg) {\n if (!(actual <= expected)) {\n throwError(msg, actual, expected, '<=');\n }\n}\nfunction assertGreaterThan(actual, expected, msg) {\n if (!(actual > expected)) {\n throwError(msg, actual, expected, '>');\n }\n}\nfunction assertGreaterThanOrEqual(actual, expected, msg) {\n if (!(actual >= expected)) {\n throwError(msg, actual, expected, '>=');\n }\n}\nfunction assertNotDefined(actual, msg) {\n if (actual != null) {\n throwError(msg, actual, null, '==');\n }\n}\nfunction assertDefined(actual, msg) {\n if (actual == null) {\n throwError(msg, actual, null, '!=');\n }\n}\nfunction throwError(msg, actual, expected, comparison) {\n throw new Error(`ASSERTION ERROR: ${msg}` + (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`));\n}\nfunction assertDomNode(node) {\n if (!(node instanceof Node)) {\n throwError(`The provided value must be an instance of a DOM Node but got ${stringify(node)}`);\n }\n}\nfunction assertElement(node) {\n if (!(node instanceof Element)) {\n throwError(`The provided value must be an element but got ${stringify(node)}`);\n }\n}\nfunction assertIndexInRange(arr, index) {\n assertDefined(arr, 'Array must be defined.');\n const maxLen = arr.length;\n if (index < 0 || index >= maxLen) {\n throwError(`Index expected to be less than ${maxLen} but got ${index}`);\n }\n}\nfunction assertOneOf(value, ...validValues) {\n if (validValues.indexOf(value) !== -1) return true;\n throwError(`Expected value to be one of ${JSON.stringify(validValues)} but was ${JSON.stringify(value)}.`);\n}\nfunction assertNotReactive(fn) {\n if (getActiveConsumer$1() !== null) {\n throwError(`${fn}() should never be called in a reactive context.`);\n }\n}\n\n/**\n * Construct an injectable definition which defines how a token will be constructed by the DI\n * system, and in which injectors (if any) it will be available.\n *\n * This should be assigned to a static `ɵprov` field on a type, which will then be an\n * `InjectableType`.\n *\n * Options:\n * * `providedIn` determines which injectors will include the injectable, by either associating it\n * with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be\n * provided in the `'root'` injector, which will be the application-level injector in most apps.\n * * `factory` gives the zero argument function which will create an instance of the injectable.\n * The factory can call [`inject`](api/core/inject) to access the `Injector` and request injection\n * of dependencies.\n *\n * @codeGenApi\n * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.\n */\nfunction ɵɵdefineInjectable(opts) {\n return {\n token: opts.token,\n providedIn: opts.providedIn || null,\n factory: opts.factory,\n value: undefined\n };\n}\n/**\n * @deprecated in v8, delete after v10. This API should be used only by generated code, and that\n * code should now use ɵɵdefineInjectable instead.\n * @publicApi\n */\nconst defineInjectable = ɵɵdefineInjectable;\n/**\n * Construct an `InjectorDef` which configures an injector.\n *\n * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an\n * `InjectorType`.\n *\n * Options:\n *\n * * `providers`: an optional array of providers to add to the injector. Each provider must\n * either have a factory or point to a type which has a `ɵprov` static property (the\n * type must be an `InjectableType`).\n * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s\n * whose providers will also be added to the injector. Locally provided types will override\n * providers from imports.\n *\n * @codeGenApi\n */\nfunction ɵɵdefineInjector(options) {\n return {\n providers: options.providers || [],\n imports: options.imports || []\n };\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading\n * inherited value.\n *\n * @param type A type which may have its own (non-inherited) `ɵprov`.\n */\nfunction getInjectableDef(type) {\n return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);\n}\nfunction isInjectable(type) {\n return getInjectableDef(type) !== null;\n}\n/**\n * Return definition only if it is defined directly on `type` and is not inherited from a base\n * class of `type`.\n */\nfunction getOwnDefinition(type, field) {\n return type.hasOwnProperty(field) ? type[field] : null;\n}\n/**\n * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.\n *\n * @param type A type which may have `ɵprov`, via inheritance.\n *\n * @deprecated Will be removed in a future version of Angular, where an error will occur in the\n * scenario if we find the `ɵprov` on an ancestor only.\n */\nfunction getInheritedInjectableDef(type) {\n const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);\n if (def) {\n ngDevMode && console.warn(`DEPRECATED: DI is instantiating a token \"${type.name}\" that inherits its @Injectable decorator but does not provide one itself.\\n` + `This will become an error in a future version of Angular. Please add @Injectable() to the \"${type.name}\" class.`);\n return def;\n } else {\n return null;\n }\n}\n/**\n * Read the injector def type in a way which is immune to accidentally reading inherited value.\n *\n * @param type type which may have an injector def (`ɵinj`)\n */\nfunction getInjectorDef(type) {\n return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ? type[NG_INJ_DEF] : null;\n}\nconst NG_PROV_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵprov: getClosureSafeProperty\n});\nconst NG_INJ_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵinj: getClosureSafeProperty\n});\n// We need to keep these around so we can read off old defs if new defs are unavailable\nconst NG_INJECTABLE_DEF = /*#__PURE__*/getClosureSafeProperty({\n ngInjectableDef: getClosureSafeProperty\n});\nconst NG_INJECTOR_DEF = /*#__PURE__*/getClosureSafeProperty({\n ngInjectorDef: getClosureSafeProperty\n});\n\n/**\n * Creates a token that can be used in a DI Provider.\n *\n * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a\n * runtime representation) such as when injecting an interface, callable type, array or\n * parameterized type.\n *\n * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by\n * the `Injector`. This provides an additional level of type safety.\n *\n *
\n *\n * **Important Note**: Ensure that you use the same instance of the `InjectionToken` in both the\n * provider and the injection call. Creating a new instance of `InjectionToken` in different places,\n * even with the same description, will be treated as different tokens by Angular's DI system,\n * leading to a `NullInjectorError`.\n *\n *
\n *\n * \n *\n * When creating an `InjectionToken`, you can optionally specify a factory function which returns\n * (possibly by creating) a default value of the parameterized type `T`. This sets up the\n * `InjectionToken` using this factory as a provider as if it was defined explicitly in the\n * application's root injector. If the factory function, which takes zero arguments, needs to inject\n * dependencies, it can do so using the [`inject`](api/core/inject) function.\n * As you can see in the Tree-shakable InjectionToken example below.\n *\n * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which\n * overrides the above behavior and marks the token as belonging to a particular `@NgModule` (note:\n * this option is now deprecated). As mentioned above, `'root'` is the default value for\n * `providedIn`.\n *\n * The `providedIn: NgModule` and `providedIn: 'any'` options are deprecated.\n *\n * @usageNotes\n * ### Basic Examples\n *\n * ### Plain InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='InjectionToken'}\n *\n * ### Tree-shakable InjectionToken\n *\n * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}\n *\n * @publicApi\n */\nclass InjectionToken {\n /**\n * @param _desc Description for the token,\n * used only for debugging purposes,\n * it should but does not need to be unique\n * @param options Options for the token's usage, as described above\n */\n constructor(_desc, options) {\n this._desc = _desc;\n /** @internal */\n this.ngMetadataName = 'InjectionToken';\n this.ɵprov = undefined;\n if (typeof options == 'number') {\n (typeof ngDevMode === 'undefined' || ngDevMode) && assertLessThan(options, 0, 'Only negative numbers are supported here');\n // This is a special hack to assign __NG_ELEMENT_ID__ to this instance.\n // See `InjectorMarkers`\n this.__NG_ELEMENT_ID__ = options;\n } else if (options !== undefined) {\n this.ɵprov = ɵɵdefineInjectable({\n token: this,\n providedIn: options.providedIn || 'root',\n factory: options.factory\n });\n }\n }\n /**\n * @internal\n */\n get multi() {\n return this;\n }\n toString() {\n return `InjectionToken ${this._desc}`;\n }\n}\nlet _injectorProfilerContext;\nfunction getInjectorProfilerContext() {\n !ngDevMode && throwError('getInjectorProfilerContext should never be called in production mode');\n return _injectorProfilerContext;\n}\nfunction setInjectorProfilerContext(context) {\n !ngDevMode && throwError('setInjectorProfilerContext should never be called in production mode');\n const previous = _injectorProfilerContext;\n _injectorProfilerContext = context;\n return previous;\n}\nlet injectorProfilerCallback = null;\n/**\n * Sets the callback function which will be invoked during certain DI events within the\n * runtime (for example: injecting services, creating injectable instances, configuring providers)\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setInjectorProfiler = injectorProfiler => {\n !ngDevMode && throwError('setInjectorProfiler should never be called in production mode');\n injectorProfilerCallback = injectorProfiler;\n};\n/**\n * Injector profiler function which emits on DI events executed by the runtime.\n *\n * @param event InjectorProfilerEvent corresponding to the DI event being emitted\n */\nfunction injectorProfiler(event) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n if (injectorProfilerCallback != null /* both `null` and `undefined` */) {\n injectorProfilerCallback(event);\n }\n}\n/**\n * Emits an InjectorProfilerEventType.ProviderConfigured to the injector profiler. The data in the\n * emitted event includes the raw provider, as well as the token that provider is providing.\n *\n * @param eventProvider A provider object\n */\nfunction emitProviderConfiguredEvent(eventProvider, isViewProvider = false) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n let token;\n // if the provider is a TypeProvider (typeof provider is function) then the token is the\n // provider itself\n if (typeof eventProvider === 'function') {\n token = eventProvider;\n }\n // if the provider is an injection token, then the token is the injection token.\n else if (eventProvider instanceof InjectionToken) {\n token = eventProvider;\n }\n // in all other cases we can access the token via the `provide` property of the provider\n else {\n token = resolveForwardRef(eventProvider.provide);\n }\n let provider = eventProvider;\n // Injection tokens may define their own default provider which gets attached to the token itself\n // as `ɵprov`. In this case, we want to emit the provider that is attached to the token, not the\n // token itself.\n if (eventProvider instanceof InjectionToken) {\n provider = eventProvider.ɵprov || eventProvider;\n }\n injectorProfiler({\n type: 2 /* InjectorProfilerEventType.ProviderConfigured */,\n context: getInjectorProfilerContext(),\n providerRecord: {\n token,\n provider,\n isViewProvider\n }\n });\n}\n/**\n * Emits an event to the injector profiler with the instance that was created. Note that\n * the injector associated with this emission can be accessed by using getDebugInjectContext()\n *\n * @param instance an object created by an injector\n */\nfunction emitInstanceCreatedByInjectorEvent(instance) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n injectorProfiler({\n type: 1 /* InjectorProfilerEventType.InstanceCreatedByInjector */,\n context: getInjectorProfilerContext(),\n instance: {\n value: instance\n }\n });\n}\n/**\n * @param token DI token associated with injected service\n * @param value the instance of the injected service (i.e the result of `inject(token)`)\n * @param flags the flags that the token was injected with\n */\nfunction emitInjectEvent(token, value, flags) {\n !ngDevMode && throwError('Injector profiler should never be called in production mode');\n injectorProfiler({\n type: 0 /* InjectorProfilerEventType.Inject */,\n context: getInjectorProfilerContext(),\n service: {\n token,\n value,\n flags\n }\n });\n}\nfunction runInInjectorProfilerContext(injector, token, callback) {\n !ngDevMode && throwError('runInInjectorProfilerContext should never be called in production mode');\n const prevInjectContext = setInjectorProfilerContext({\n injector,\n token\n });\n try {\n callback();\n } finally {\n setInjectorProfilerContext(prevInjectContext);\n }\n}\nfunction isEnvironmentProviders(value) {\n return value && !!value.ɵproviders;\n}\nconst NG_COMP_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵcmp: getClosureSafeProperty\n});\nconst NG_DIR_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵdir: getClosureSafeProperty\n});\nconst NG_PIPE_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵpipe: getClosureSafeProperty\n});\nconst NG_MOD_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵmod: getClosureSafeProperty\n});\nconst NG_FACTORY_DEF = /*#__PURE__*/getClosureSafeProperty({\n ɵfac: getClosureSafeProperty\n});\n/**\n * If a directive is diPublic, bloomAdd sets a property on the type with this constant as\n * the key and the directive's unique ID as the value. This allows us to map directives to their\n * bloom filter bit for DI.\n */\n// TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.\nconst NG_ELEMENT_ID = /*#__PURE__*/getClosureSafeProperty({\n __NG_ELEMENT_ID__: getClosureSafeProperty\n});\n/**\n * The `NG_ENV_ID` field on a DI token indicates special processing in the `EnvironmentInjector`:\n * getting such tokens from the `EnvironmentInjector` will bypass the standard DI resolution\n * strategy and instead will return implementation produced by the `NG_ENV_ID` factory function.\n *\n * This particular retrieval of DI tokens is mostly done to eliminate circular dependencies and\n * improve tree-shaking.\n */\nconst NG_ENV_ID = /*#__PURE__*/getClosureSafeProperty({\n __NG_ENV_ID__: getClosureSafeProperty\n});\n\n/**\n * Used for stringify render output in Ivy.\n * Important! This function is very performance-sensitive and we should\n * be extra careful not to introduce megamorphic reads in it.\n * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.\n */\nfunction renderStringify(value) {\n if (typeof value === 'string') return value;\n if (value == null) return '';\n // Use `String` so that it invokes the `toString` method of the value. Note that this\n // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).\n return String(value);\n}\n/**\n * Used to stringify a value so that it can be displayed in an error message.\n *\n * Important! This function contains a megamorphic read and should only be\n * used for error messages.\n */\nfunction stringifyForError(value) {\n if (typeof value === 'function') return value.name || value.toString();\n if (typeof value === 'object' && value != null && typeof value.type === 'function') {\n return value.type.name || value.type.toString();\n }\n return renderStringify(value);\n}\n/**\n * Used to stringify a `Type` and including the file path and line number in which it is defined, if\n * possible, for better debugging experience.\n *\n * Important! This function contains a megamorphic read and should only be used for error messages.\n */\nfunction debugStringifyTypeForError(type) {\n // TODO(pmvald): Do some refactoring so that we can use getComponentDef here without creating\n // circular deps.\n let componentDef = type[NG_COMP_DEF] || null;\n if (componentDef !== null && componentDef.debugInfo) {\n return stringifyTypeFromDebugInfo(componentDef.debugInfo);\n }\n return stringifyForError(type);\n}\n// TODO(pmvald): Do some refactoring so that we can use the type ClassDebugInfo for the param\n// debugInfo here without creating circular deps.\nfunction stringifyTypeFromDebugInfo(debugInfo) {\n if (!debugInfo.filePath || !debugInfo.lineNumber) {\n return debugInfo.className;\n } else {\n return `${debugInfo.className} (at ${debugInfo.filePath}:${debugInfo.lineNumber})`;\n }\n}\n\n/** Called when directives inject each other (creating a circular dependency) */\nfunction throwCyclicDependencyError(token, path) {\n const depPath = path ? `. Dependency path: ${path.join(' > ')} > ${token}` : '';\n throw new RuntimeError(-200 /* RuntimeErrorCode.CYCLIC_DI_DEPENDENCY */, ngDevMode ? `Circular dependency in DI detected for ${token}${depPath}` : token);\n}\nfunction throwMixedMultiProviderError() {\n throw new Error(`Cannot mix multi providers and regular providers`);\n}\nfunction throwInvalidProviderError(ngModuleType, providers, provider) {\n if (ngModuleType && providers) {\n const providerDetail = providers.map(v => v == provider ? '?' + provider + '?' : '...');\n throw new Error(`Invalid provider for the NgModule '${stringify(ngModuleType)}' - only instances of Provider and Type are allowed, got: [${providerDetail.join(', ')}]`);\n } else if (isEnvironmentProviders(provider)) {\n if (provider.ɵfromNgModule) {\n throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers.`);\n } else {\n throw new RuntimeError(207 /* RuntimeErrorCode.PROVIDER_IN_WRONG_CONTEXT */, `Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers.`);\n }\n } else {\n throw new Error('Invalid provider');\n }\n}\n/** Throws an error when a token is not found in DI. */\nfunction throwProviderNotFoundError(token, injectorName) {\n const errorMessage = ngDevMode && `No provider for ${stringifyForError(token)} found${injectorName ? ` in ${injectorName}` : ''}`;\n throw new RuntimeError(-201 /* RuntimeErrorCode.PROVIDER_NOT_FOUND */, errorMessage);\n}\n\n/**\n * Injection flags for DI.\n *\n * @publicApi\n * @deprecated use an options object for [`inject`](api/core/inject) instead.\n */\nvar InjectFlags = /*#__PURE__*/function (InjectFlags) {\n // TODO(alxhub): make this 'const' (and remove `InternalInjectFlags` enum) when ngc no longer\n // writes exports of it into ngfactory files.\n /** Check self and check parent injector if needed */\n InjectFlags[InjectFlags[\"Default\"] = 0] = \"Default\";\n /**\n * Specifies that an injector should retrieve a dependency from any injector until reaching the\n * host element of the current component. (Only used with Element Injector)\n */\n InjectFlags[InjectFlags[\"Host\"] = 1] = \"Host\";\n /** Don't ascend to ancestors of the node requesting injection. */\n InjectFlags[InjectFlags[\"Self\"] = 2] = \"Self\";\n /** Skip the node that is requesting injection. */\n InjectFlags[InjectFlags[\"SkipSelf\"] = 4] = \"SkipSelf\";\n /** Inject `defaultValue` instead if token not found. */\n InjectFlags[InjectFlags[\"Optional\"] = 8] = \"Optional\";\n return InjectFlags;\n}(InjectFlags || {});\n/**\n * Current implementation of inject.\n *\n * By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed\n * to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this\n * way for two reasons:\n * 1. `Injector` should not depend on ivy logic.\n * 2. To maintain tree shake-ability we don't want to bring in unnecessary code.\n */\nlet _injectImplementation;\nfunction getInjectImplementation() {\n return _injectImplementation;\n}\n/**\n * Sets the current inject implementation.\n */\nfunction setInjectImplementation(impl) {\n const previous = _injectImplementation;\n _injectImplementation = impl;\n return previous;\n}\n/**\n * Injects `root` tokens in limp mode.\n *\n * If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to\n * `\"root\"`. This is known as the limp mode injection. In such case the value is stored in the\n * injectable definition.\n */\nfunction injectRootLimpMode(token, notFoundValue, flags) {\n const injectableDef = getInjectableDef(token);\n if (injectableDef && injectableDef.providedIn == 'root') {\n return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() : injectableDef.value;\n }\n if (flags & InjectFlags.Optional) return null;\n if (notFoundValue !== undefined) return notFoundValue;\n throwProviderNotFoundError(token, 'Injector');\n}\n/**\n * Assert that `_injectImplementation` is not `fn`.\n *\n * This is useful, to prevent infinite recursion.\n *\n * @param fn Function which it should not equal to\n */\nfunction assertInjectImplementationNotEqual(fn) {\n ngDevMode && assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');\n}\nconst _THROW_IF_NOT_FOUND = {};\nconst THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\n/*\n * Name of a property (that we patch onto DI decorator), which is used as an annotation of which\n * InjectFlag this decorator represents. This allows to avoid direct references to the DI decorators\n * in the code, thus making them tree-shakable.\n */\nconst DI_DECORATOR_FLAG = '__NG_DI_FLAG__';\nconst NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';\nconst NG_TOKEN_PATH = 'ngTokenPath';\nconst NEW_LINE = /\\n/gm;\nconst NO_NEW_LINE = 'ɵ';\nconst SOURCE = '__source';\n/**\n * Current injector value used by `inject`.\n * - `undefined`: it is an error to call `inject`\n * - `null`: `inject` can be called but there is no injector (limp-mode).\n * - Injector instance: Use the injector for resolution.\n */\nlet _currentInjector = undefined;\nfunction getCurrentInjector() {\n return _currentInjector;\n}\nfunction setCurrentInjector(injector) {\n const former = _currentInjector;\n _currentInjector = injector;\n return former;\n}\nfunction injectInjectorOnly(token, flags = InjectFlags.Default) {\n if (_currentInjector === undefined) {\n throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode && `inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \\`runInInjectionContext\\`.`);\n } else if (_currentInjector === null) {\n return injectRootLimpMode(token, undefined, flags);\n } else {\n const value = _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);\n ngDevMode && emitInjectEvent(token, value, flags);\n return value;\n }\n}\nfunction ɵɵinject(token, flags = InjectFlags.Default) {\n return (getInjectImplementation() || injectInjectorOnly)(resolveForwardRef(token), flags);\n}\n/**\n * Throws an error indicating that a factory function could not be generated by the compiler for a\n * particular class.\n *\n * The name of the class is not mentioned here, but will be in the generated factory function name\n * and thus in the stack trace.\n *\n * @codeGenApi\n */\nfunction ɵɵinvalidFactoryDep(index) {\n throw new RuntimeError(202 /* RuntimeErrorCode.INVALID_FACTORY_DEPENDENCY */, ngDevMode && `This constructor is not compatible with Angular Dependency Injection because its dependency at index ${index} of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`);\n}\n/**\n * Injects a token from the currently active injector.\n * `inject` is only supported in an [injection context](/guide/dependency-injection-context). It can\n * be used during:\n * - Construction (via the `constructor`) of a class being instantiated by the DI system, such\n * as an `@Injectable` or `@Component`.\n * - In the initializer for fields of such classes.\n * - In the factory function specified for `useFactory` of a `Provider` or an `@Injectable`.\n * - In the `factory` function specified for an `InjectionToken`.\n * - In a stackframe of a function call in a DI context\n *\n * @param token A token that represents a dependency that should be injected.\n * @param flags Optional flags that control how injection is executed.\n * The flags correspond to injection strategies that can be specified with\n * parameter decorators `@Host`, `@Self`, `@SkipSelf`, and `@Optional`.\n * @returns the injected value if operation is successful, `null` otherwise.\n * @throws if called outside of a supported context.\n *\n * @usageNotes\n * In practice the `inject()` calls are allowed in a constructor, a constructor parameter and a\n * field initializer:\n *\n * ```typescript\n * @Injectable({providedIn: 'root'})\n * export class Car {\n * radio: Radio|undefined;\n * // OK: field initializer\n * spareTyre = inject(Tyre);\n *\n * constructor() {\n * // OK: constructor body\n * this.radio = inject(Radio);\n * }\n * }\n * ```\n *\n * It is also legal to call `inject` from a provider's factory:\n *\n * ```typescript\n * providers: [\n * {provide: Car, useFactory: () => {\n * // OK: a class factory\n * const engine = inject(Engine);\n * return new Car(engine);\n * }}\n * ]\n * ```\n *\n * Calls to the `inject()` function outside of the class creation context will result in error. Most\n * notably, calls to `inject()` are disallowed after a class instance was created, in methods\n * (including lifecycle hooks):\n *\n * ```typescript\n * @Component({ ... })\n * export class CarComponent {\n * ngOnInit() {\n * // ERROR: too late, the component instance was already created\n * const engine = inject(Engine);\n * engine.start();\n * }\n * }\n * ```\n *\n * @publicApi\n */\nfunction inject(token, flags = InjectFlags.Default) {\n // The `as any` here _shouldn't_ be necessary, but without it JSCompiler\n // throws a disambiguation error due to the multiple signatures.\n return ɵɵinject(token, convertToBitFlags(flags));\n}\n// Converts object-based DI flags (`InjectOptions`) to bit flags (`InjectFlags`).\nfunction convertToBitFlags(flags) {\n if (typeof flags === 'undefined' || typeof flags === 'number') {\n return flags;\n }\n // While TypeScript doesn't accept it without a cast, bitwise OR with false-y values in\n // JavaScript is a no-op. We can use that for a very codesize-efficient conversion from\n // `InjectOptions` to `InjectFlags`.\n return 0 /* InternalInjectFlags.Default */ | (\n // comment to force a line break in the formatter\n flags.optional && 8 /* InternalInjectFlags.Optional */) | (flags.host && 1 /* InternalInjectFlags.Host */) | (flags.self && 2 /* InternalInjectFlags.Self */) | (flags.skipSelf && 4 /* InternalInjectFlags.SkipSelf */);\n}\nfunction injectArgs(types) {\n const args = [];\n for (let i = 0; i < types.length; i++) {\n const arg = resolveForwardRef(types[i]);\n if (Array.isArray(arg)) {\n if (arg.length === 0) {\n throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && 'Arguments array must have arguments.');\n }\n let type = undefined;\n let flags = InjectFlags.Default;\n for (let j = 0; j < arg.length; j++) {\n const meta = arg[j];\n const flag = getInjectFlag(meta);\n if (typeof flag === 'number') {\n // Special case when we handle @Inject decorator.\n if (flag === -1 /* DecoratorFlags.Inject */) {\n type = meta.token;\n } else {\n flags |= flag;\n }\n } else {\n type = meta;\n }\n }\n args.push(ɵɵinject(type, flags));\n } else {\n args.push(ɵɵinject(arg));\n }\n }\n return args;\n}\n/**\n * Attaches a given InjectFlag to a given decorator using monkey-patching.\n * Since DI decorators can be used in providers `deps` array (when provider is configured using\n * `useFactory`) without initialization (e.g. `Host`) and as an instance (e.g. `new Host()`), we\n * attach the flag to make it available both as a static property and as a field on decorator\n * instance.\n *\n * @param decorator Provided DI decorator.\n * @param flag InjectFlag that should be applied.\n */\nfunction attachInjectFlag(decorator, flag) {\n decorator[DI_DECORATOR_FLAG] = flag;\n decorator.prototype[DI_DECORATOR_FLAG] = flag;\n return decorator;\n}\n/**\n * Reads monkey-patched property that contains InjectFlag attached to a decorator.\n *\n * @param token Token that may contain monkey-patched DI flags property.\n */\nfunction getInjectFlag(token) {\n return token[DI_DECORATOR_FLAG];\n}\nfunction catchInjectorError(e, token, injectorErrorName, source) {\n const tokenPath = e[NG_TEMP_TOKEN_PATH];\n if (token[SOURCE]) {\n tokenPath.unshift(token[SOURCE]);\n }\n e.message = formatError('\\n' + e.message, tokenPath, injectorErrorName, source);\n e[NG_TOKEN_PATH] = tokenPath;\n e[NG_TEMP_TOKEN_PATH] = null;\n throw e;\n}\nfunction formatError(text, obj, injectorErrorName, source = null) {\n text = text && text.charAt(0) === '\\n' && text.charAt(1) == NO_NEW_LINE ? text.slice(2) : text;\n let context = stringify(obj);\n if (Array.isArray(obj)) {\n context = obj.map(stringify).join(' -> ');\n } else if (typeof obj === 'object') {\n let parts = [];\n for (let key in obj) {\n if (obj.hasOwnProperty(key)) {\n let value = obj[key];\n parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));\n }\n }\n context = `{${parts.join(', ')}}`;\n }\n return `${injectorErrorName}${source ? '(' + source + ')' : ''}[${context}]: ${text.replace(NEW_LINE, '\\n ')}`;\n}\n\n/**\n * Inject decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Inject = /*#__PURE__*/attachInjectFlag(\n/*#__PURE__*/\n// Disable tslint because `DecoratorFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nmakeParamDecorator('Inject', token => ({\n token\n})), -1 /* DecoratorFlags.Inject */);\n/**\n * Optional decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Optional =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('Optional'), 8 /* InternalInjectFlags.Optional */);\n/**\n * Self decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Self =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('Self'), 2 /* InternalInjectFlags.Self */);\n/**\n * `SkipSelf` decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst SkipSelf =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('SkipSelf'), 4 /* InternalInjectFlags.SkipSelf */);\n/**\n * Host decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Host =\n/*#__PURE__*/\n// Disable tslint because `InternalInjectFlags` is a const enum which gets inlined.\n// tslint:disable-next-line: no-toplevel-property-access\nattachInjectFlag( /*#__PURE__*/makeParamDecorator('Host'), 1 /* InternalInjectFlags.Host */);\nfunction getFactoryDef(type, throwNotFound) {\n const hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);\n if (!hasFactoryDef && throwNotFound === true && ngDevMode) {\n throw new Error(`Type ${stringify(type)} does not have 'ɵfac' property.`);\n }\n return hasFactoryDef ? type[NG_FACTORY_DEF] : null;\n}\n\n/**\n * Determines if the contents of two arrays is identical\n *\n * @param a first array\n * @param b second array\n * @param identityAccessor Optional function for extracting stable object identity from a value in\n * the array.\n */\nfunction arrayEquals(a, b, identityAccessor) {\n if (a.length !== b.length) return false;\n for (let i = 0; i < a.length; i++) {\n let valueA = a[i];\n let valueB = b[i];\n if (identityAccessor) {\n valueA = identityAccessor(valueA);\n valueB = identityAccessor(valueB);\n }\n if (valueB !== valueA) {\n return false;\n }\n }\n return true;\n}\n/**\n * Flattens an array.\n */\nfunction flatten(list) {\n return list.flat(Number.POSITIVE_INFINITY);\n}\nfunction deepForEach(input, fn) {\n input.forEach(value => Array.isArray(value) ? deepForEach(value, fn) : fn(value));\n}\nfunction addToArray(arr, index, value) {\n // perf: array.push is faster than array.splice!\n if (index >= arr.length) {\n arr.push(value);\n } else {\n arr.splice(index, 0, value);\n }\n}\nfunction removeFromArray(arr, index) {\n // perf: array.pop is faster than array.splice!\n if (index >= arr.length - 1) {\n return arr.pop();\n } else {\n return arr.splice(index, 1)[0];\n }\n}\nfunction newArray(size, value) {\n const list = [];\n for (let i = 0; i < size; i++) {\n list.push(value);\n }\n return list;\n}\n/**\n * Remove item from array (Same as `Array.splice()` but faster.)\n *\n * `Array.splice()` is not as fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * https://jsperf.com/fast-array-splice (About 20x faster)\n *\n * @param array Array to splice\n * @param index Index of element in array to remove.\n * @param count Number of items to remove.\n */\nfunction arraySplice(array, index, count) {\n const length = array.length - count;\n while (index < length) {\n array[index] = array[index + count];\n index++;\n }\n while (count--) {\n array.pop(); // shrink the array\n }\n}\n/**\n * Same as `Array.splice(index, 0, value)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value Value to add to array.\n */\nfunction arrayInsert(array, index, value) {\n ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\\'t insert past array end.');\n let end = array.length;\n while (end > index) {\n const previousEnd = end - 1;\n array[end] = array[previousEnd];\n end = previousEnd;\n }\n array[index] = value;\n}\n/**\n * Same as `Array.splice2(index, 0, value1, value2)` but faster.\n *\n * `Array.splice()` is not fast because it has to allocate an array for the elements which were\n * removed. This causes memory pressure and slows down code when most of the time we don't\n * care about the deleted items array.\n *\n * @param array Array to splice.\n * @param index Index in array where the `value` should be added.\n * @param value1 Value to add to array.\n * @param value2 Value to add to array.\n */\nfunction arrayInsert2(array, index, value1, value2) {\n ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\\'t insert past array end.');\n let end = array.length;\n if (end == index) {\n // inserting at the end.\n array.push(value1, value2);\n } else if (end === 1) {\n // corner case when we have less items in array than we have items to insert.\n array.push(value2, array[0]);\n array[0] = value1;\n } else {\n end--;\n array.push(array[end - 1], array[end]);\n while (end > index) {\n const previousEnd = end - 2;\n array[end] = array[previousEnd];\n end--;\n }\n array[index] = value1;\n array[index + 1] = value2;\n }\n}\n/**\n * Get an index of an `value` in a sorted `array`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * located)\n */\nfunction arrayIndexOfSorted(array, value) {\n return _arrayIndexOfSorted(array, value, 0);\n}\n/**\n * Set a `value` for a `key`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or create.\n * @param value The value to set for a `key`.\n * @returns index (always even) of where the value vas set.\n */\nfunction keyValueArraySet(keyValueArray, key, value) {\n let index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it set it.\n keyValueArray[index | 1] = value;\n } else {\n index = ~index;\n arrayInsert2(keyValueArray, index, key, value);\n }\n return index;\n}\n/**\n * Retrieve a `value` for a `key` (on `undefined` if not found.)\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @return The `value` stored at the `key` location or `undefined if not found.\n */\nfunction keyValueArrayGet(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it retrieve it.\n return keyValueArray[index | 1];\n }\n return undefined;\n}\n/**\n * Retrieve a `key` index value in the array or `-1` if not found.\n *\n * @param keyValueArray to search.\n * @param key The key to locate.\n * @returns index of where the key is (or should have been.)\n * - positive (even) index if key found.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been inserted.)\n */\nfunction keyValueArrayIndexOf(keyValueArray, key) {\n return _arrayIndexOfSorted(keyValueArray, key, 1);\n}\n/**\n * Delete a `key` (and `value`) from the `KeyValueArray`.\n *\n * @param keyValueArray to modify.\n * @param key The key to locate or delete (if exist).\n * @returns index of where the key was (or should have been.)\n * - positive (even) index if key found and deleted.\n * - negative index if key not found. (`~index` (even) to get the index where it should have\n * been.)\n */\nfunction keyValueArrayDelete(keyValueArray, key) {\n const index = keyValueArrayIndexOf(keyValueArray, key);\n if (index >= 0) {\n // if we found it remove it.\n arraySplice(keyValueArray, index, 2);\n }\n return index;\n}\n/**\n * INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.\n *\n * NOTE:\n * - This uses binary search algorithm for fast removals.\n *\n * @param array A sorted array to binary search.\n * @param value The value to look for.\n * @param shift grouping shift.\n * - `0` means look at every location\n * - `1` means only look at every other (even) location (the odd locations are to be ignored as\n * they are values.)\n * @returns index of the value.\n * - positive index if value found.\n * - negative index if value not found. (`~index` to get the value where it should have been\n * inserted)\n */\nfunction _arrayIndexOfSorted(array, value, shift) {\n ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');\n let start = 0;\n let end = array.length >> shift;\n while (end !== start) {\n const middle = start + (end - start >> 1); // find the middle.\n const current = array[middle << shift];\n if (value === current) {\n return middle << shift;\n } else if (current > value) {\n end = middle;\n } else {\n start = middle + 1; // We already searched middle so make it non-inclusive by adding 1\n }\n }\n return ~(end << shift);\n}\n\n/**\n * This file contains reuseable \"empty\" symbols that can be used as default return values\n * in different parts of the rendering code. Because the same symbols are returned, this\n * allows for identity checks against these values to be consistently used by the framework\n * code.\n */\nconst EMPTY_OBJ = {};\nconst EMPTY_ARRAY = [];\n// freezing the values prevents any code from accidentally inserting new values in\nif ((typeof ngDevMode === 'undefined' || ngDevMode) && /*#__PURE__*/initNgDevMode()) {\n // These property accesses can be ignored because ngDevMode will be set to false\n // when optimizing code and the whole if statement will be dropped.\n // tslint:disable-next-line:no-toplevel-property-access\n /*#__PURE__*/Object.freeze(EMPTY_OBJ);\n // tslint:disable-next-line:no-toplevel-property-access\n /*#__PURE__*/Object.freeze(EMPTY_ARRAY);\n}\n\n/**\n * A multi-provider token for initialization functions that will run upon construction of an\n * environment injector.\n *\n * @publicApi\n */\nconst ENVIRONMENT_INITIALIZER = /*#__PURE__*/new InjectionToken(ngDevMode ? 'ENVIRONMENT_INITIALIZER' : '');\n\n/**\n * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.\n *\n * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a\n * project.\n *\n * @publicApi\n */\nconst INJECTOR$1 = /*#__PURE__*/new InjectionToken(ngDevMode ? 'INJECTOR' : '',\n// Disable tslint because this is const enum which gets inlined not top level prop access.\n// tslint:disable-next-line: no-toplevel-property-access\n-1 /* InjectorMarkers.Injector */);\nconst INJECTOR_DEF_TYPES = /*#__PURE__*/new InjectionToken(ngDevMode ? 'INJECTOR_DEF_TYPES' : '');\nclass NullInjector {\n get(token, notFoundValue = THROW_IF_NOT_FOUND) {\n if (notFoundValue === THROW_IF_NOT_FOUND) {\n const error = new Error(`NullInjectorError: No provider for ${stringify(token)}!`);\n error.name = 'NullInjectorError';\n throw error;\n }\n return notFoundValue;\n }\n}\n\n/**\n * The strategy that the default change detector uses to detect changes.\n * When set, takes effect the next time change detection is triggered.\n *\n * @see [Change detection usage](/api/core/ChangeDetectorRef?tab=usage-notes)\n *\n * @publicApi\n */\nvar ChangeDetectionStrategy = /*#__PURE__*/function (ChangeDetectionStrategy) {\n /**\n * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated\n * until reactivated by setting the strategy to `Default` (`CheckAlways`).\n * Change detection can still be explicitly invoked.\n * This strategy applies to all child directives and cannot be overridden.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPush\"] = 0] = \"OnPush\";\n /**\n * Use the default `CheckAlways` strategy, in which change detection is automatic until\n * explicitly deactivated.\n */\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Default\"] = 1] = \"Default\";\n return ChangeDetectionStrategy;\n}(ChangeDetectionStrategy || {});\n/**\n * Defines the CSS styles encapsulation policies for the {@link Component} decorator's\n * `encapsulation` option.\n *\n * See {@link Component#encapsulation encapsulation}.\n *\n * @usageNotes\n * ### Example\n *\n * {@example core/ts/metadata/encapsulation.ts region='longform'}\n *\n * @publicApi\n */\nvar ViewEncapsulation$1 = /*#__PURE__*/function (ViewEncapsulation) {\n // TODO: consider making `ViewEncapsulation` a `const enum` instead. See\n // https://github.com/angular/angular/issues/44119 for additional information.\n /**\n * Emulates a native Shadow DOM encapsulation behavior by adding a specific attribute to the\n * component's host element and applying the same attribute to all the CSS selectors provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls}.\n *\n * This is the default option.\n */\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n /**\n * Doesn't provide any sort of CSS style encapsulation, meaning that all the styles provided\n * via {@link Component#styles styles} or {@link Component#styleUrls styleUrls} are applicable\n * to any HTML element of the application regardless of their host Component.\n */\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n /**\n * Uses the browser's native Shadow DOM API to encapsulate CSS styles, meaning that it creates\n * a ShadowRoot for the component's host element which is then used to encapsulate\n * all the Component's styling.\n */\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n return ViewEncapsulation;\n}(ViewEncapsulation$1 || {});\n/** Flags describing an input for a directive. */\nvar InputFlags = /*#__PURE__*/function (InputFlags) {\n InputFlags[InputFlags[\"None\"] = 0] = \"None\";\n InputFlags[InputFlags[\"SignalBased\"] = 1] = \"SignalBased\";\n InputFlags[InputFlags[\"HasDecoratorInputTransform\"] = 2] = \"HasDecoratorInputTransform\";\n return InputFlags;\n}(InputFlags || {});\n/**\n * Returns an index of `classToSearch` in `className` taking token boundaries into account.\n *\n * `classIndexOf('AB A', 'A', 0)` will be 3 (not 0 since `AB!==A`)\n *\n * @param className A string containing classes (whitespace separated)\n * @param classToSearch A class name to locate\n * @param startingIndex Starting location of search\n * @returns an index of the located class (or -1 if not found)\n */\nfunction classIndexOf(className, classToSearch, startingIndex) {\n ngDevMode && assertNotEqual(classToSearch, '', 'can not look for \"\" string.');\n let end = className.length;\n while (true) {\n const foundIndex = className.indexOf(classToSearch, startingIndex);\n if (foundIndex === -1) return foundIndex;\n if (foundIndex === 0 || className.charCodeAt(foundIndex - 1) <= 32 /* CharCode.SPACE */) {\n // Ensure that it has leading whitespace\n const length = classToSearch.length;\n if (foundIndex + length === end || className.charCodeAt(foundIndex + length) <= 32 /* CharCode.SPACE */) {\n // Ensure that it has trailing whitespace\n return foundIndex;\n }\n }\n // False positive, keep searching from where we left off.\n startingIndex = foundIndex + 1;\n }\n}\n\n/**\n * Assigns all attribute values to the provided element via the inferred renderer.\n *\n * This function accepts two forms of attribute entries:\n *\n * default: (key, value):\n * attrs = [key1, value1, key2, value2]\n *\n * namespaced: (NAMESPACE_MARKER, uri, name, value)\n * attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]\n *\n * The `attrs` array can contain a mix of both the default and namespaced entries.\n * The \"default\" values are set without a marker, but if the function comes across\n * a marker value then it will attempt to set a namespaced value. If the marker is\n * not of a namespaced value then the function will quit and return the index value\n * where it stopped during the iteration of the attrs array.\n *\n * See [AttributeMarker] to understand what the namespace marker value is.\n *\n * Note that this instruction does not support assigning style and class values to\n * an element. See `elementStart` and `elementHostAttrs` to learn how styling values\n * are applied to an element.\n * @param renderer The renderer to be used\n * @param native The element that the attributes will be assigned to\n * @param attrs The attribute array of values that will be assigned to the element\n * @returns the index value that was last accessed in the attributes array\n */\nfunction setUpAttributes(renderer, native, attrs) {\n let i = 0;\n while (i < attrs.length) {\n const value = attrs[i];\n if (typeof value === 'number') {\n // only namespaces are supported. Other value types (such as style/class\n // entries) are not supported in this function.\n if (value !== 0 /* AttributeMarker.NamespaceURI */) {\n break;\n }\n // we just landed on the marker value ... therefore\n // we should skip to the next entry\n i++;\n const namespaceURI = attrs[i++];\n const attrName = attrs[i++];\n const attrVal = attrs[i++];\n ngDevMode && ngDevMode.rendererSetAttribute++;\n renderer.setAttribute(native, attrName, attrVal, namespaceURI);\n } else {\n // attrName is string;\n const attrName = value;\n const attrVal = attrs[++i];\n // Standard attributes\n ngDevMode && ngDevMode.rendererSetAttribute++;\n if (isAnimationProp(attrName)) {\n renderer.setProperty(native, attrName, attrVal);\n } else {\n renderer.setAttribute(native, attrName, attrVal);\n }\n i++;\n }\n }\n // another piece of code may iterate over the same attributes array. Therefore\n // it may be helpful to return the exact spot where the attributes array exited\n // whether by running into an unsupported marker or if all the static values were\n // iterated over.\n return i;\n}\n/**\n * Test whether the given value is a marker that indicates that the following\n * attribute values in a `TAttributes` array are only the names of attributes,\n * and not name-value pairs.\n * @param marker The attribute marker to test.\n * @returns true if the marker is a \"name-only\" marker (e.g. `Bindings`, `Template` or `I18n`).\n */\nfunction isNameOnlyAttributeMarker(marker) {\n return marker === 3 /* AttributeMarker.Bindings */ || marker === 4 /* AttributeMarker.Template */ || marker === 6 /* AttributeMarker.I18n */;\n}\nfunction isAnimationProp(name) {\n // Perf note: accessing charCodeAt to check for the first character of a string is faster as\n // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that\n // charCodeAt doesn't allocate memory to return a substring.\n return name.charCodeAt(0) === 64 /* CharCode.AT_SIGN */;\n}\n/**\n * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.\n *\n * This merge function keeps the order of attrs same.\n *\n * @param dst Location of where the merged `TAttributes` should end up.\n * @param src `TAttributes` which should be appended to `dst`\n */\nfunction mergeHostAttrs(dst, src) {\n if (src === null || src.length === 0) {\n // do nothing\n } else if (dst === null || dst.length === 0) {\n // We have source, but dst is empty, just make a copy.\n dst = src.slice();\n } else {\n let srcMarker = -1 /* AttributeMarker.ImplicitAttributes */;\n for (let i = 0; i < src.length; i++) {\n const item = src[i];\n if (typeof item === 'number') {\n srcMarker = item;\n } else {\n if (srcMarker === 0 /* AttributeMarker.NamespaceURI */) {\n // Case where we need to consume `key1`, `key2`, `value` items.\n } else if (srcMarker === -1 /* AttributeMarker.ImplicitAttributes */ || srcMarker === 2 /* AttributeMarker.Styles */) {\n // Case where we have to consume `key1` and `value` only.\n mergeHostAttribute(dst, srcMarker, item, null, src[++i]);\n } else {\n // Case where we have to consume `key1` only.\n mergeHostAttribute(dst, srcMarker, item, null, null);\n }\n }\n }\n }\n return dst;\n}\n/**\n * Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.\n *\n * @param dst `TAttributes` to append to.\n * @param marker Region where the `key`/`value` should be added.\n * @param key1 Key to add to `TAttributes`\n * @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)\n * @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.\n */\nfunction mergeHostAttribute(dst, marker, key1, key2, value) {\n let i = 0;\n // Assume that new markers will be inserted at the end.\n let markerInsertPosition = dst.length;\n // scan until correct type.\n if (marker === -1 /* AttributeMarker.ImplicitAttributes */) {\n markerInsertPosition = -1;\n } else {\n while (i < dst.length) {\n const dstValue = dst[i++];\n if (typeof dstValue === 'number') {\n if (dstValue === marker) {\n markerInsertPosition = -1;\n break;\n } else if (dstValue > marker) {\n // We need to save this as we want the markers to be inserted in specific order.\n markerInsertPosition = i - 1;\n break;\n }\n }\n }\n }\n // search until you find place of insertion\n while (i < dst.length) {\n const item = dst[i];\n if (typeof item === 'number') {\n // since `i` started as the index after the marker, we did not find it if we are at the next\n // marker\n break;\n } else if (item === key1) {\n // We already have same token\n if (key2 === null) {\n if (value !== null) {\n dst[i + 1] = value;\n }\n return;\n } else if (key2 === dst[i + 1]) {\n dst[i + 2] = value;\n return;\n }\n }\n // Increment counter.\n i++;\n if (key2 !== null) i++;\n if (value !== null) i++;\n }\n // insert at location.\n if (markerInsertPosition !== -1) {\n dst.splice(markerInsertPosition, 0, marker);\n i = markerInsertPosition + 1;\n }\n dst.splice(i++, 0, key1);\n if (key2 !== null) {\n dst.splice(i++, 0, key2);\n }\n if (value !== null) {\n dst.splice(i++, 0, value);\n }\n}\nconst NG_TEMPLATE_SELECTOR = 'ng-template';\n/**\n * Search the `TAttributes` to see if it contains `cssClassToMatch` (case insensitive)\n *\n * @param tNode static data of the node to match\n * @param attrs `TAttributes` to search through.\n * @param cssClassToMatch class to match (lowercase)\n * @param isProjectionMode Whether or not class matching should look into the attribute `class` in\n * addition to the `AttributeMarker.Classes`.\n */\nfunction isCssClassMatching(tNode, attrs, cssClassToMatch, isProjectionMode) {\n ngDevMode && assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');\n let i = 0;\n if (isProjectionMode) {\n for (; i < attrs.length && typeof attrs[i] === 'string'; i += 2) {\n // Search for an implicit `class` attribute and check if its value matches `cssClassToMatch`.\n if (attrs[i] === 'class' && classIndexOf(attrs[i + 1].toLowerCase(), cssClassToMatch, 0) !== -1) {\n return true;\n }\n }\n } else if (isInlineTemplate(tNode)) {\n // Matching directives (i.e. when not matching for projection mode) should not consider the\n // class bindings that are present on inline templates, as those class bindings only target\n // the root node of the template, not the template itself.\n return false;\n }\n // Resume the search for classes after the `Classes` marker.\n i = attrs.indexOf(1 /* AttributeMarker.Classes */, i);\n if (i > -1) {\n // We found the classes section. Start searching for the class.\n let item;\n while (++i < attrs.length && typeof (item = attrs[i]) === 'string') {\n if (item.toLowerCase() === cssClassToMatch) {\n return true;\n }\n }\n }\n return false;\n}\n/**\n * Checks whether the `tNode` represents an inline template (e.g. `*ngFor`).\n *\n * @param tNode current TNode\n */\nfunction isInlineTemplate(tNode) {\n return tNode.type === 4 /* TNodeType.Container */ && tNode.value !== NG_TEMPLATE_SELECTOR;\n}\n/**\n * Function that checks whether a given tNode matches tag-based selector and has a valid type.\n *\n * Matching can be performed in 2 modes: projection mode (when we project nodes) and regular\n * directive matching mode:\n * - in the \"directive matching\" mode we do _not_ take TContainer's tagName into account if it is\n * different from NG_TEMPLATE_SELECTOR (value different from NG_TEMPLATE_SELECTOR indicates that a\n * tag name was extracted from * syntax so we would match the same directive twice);\n * - in the \"projection\" mode, we use a tag name potentially extracted from the * syntax processing\n * (applicable to TNodeType.Container only).\n */\nfunction hasTagAndTypeMatch(tNode, currentSelector, isProjectionMode) {\n const tagNameToCompare = tNode.type === 4 /* TNodeType.Container */ && !isProjectionMode ? NG_TEMPLATE_SELECTOR : tNode.value;\n return currentSelector === tagNameToCompare;\n}\n/**\n * A utility function to match an Ivy node static data against a simple CSS selector\n *\n * @param tNode static data of the node to match\n * @param selector The selector to try matching against the node.\n * @param isProjectionMode if `true` we are matching for content projection, otherwise we are doing\n * directive matching.\n * @returns true if node matches the selector.\n */\nfunction isNodeMatchingSelector(tNode, selector, isProjectionMode) {\n ngDevMode && assertDefined(selector[0], 'Selector should have a tag name');\n let mode = 4 /* SelectorFlags.ELEMENT */;\n const nodeAttrs = tNode.attrs;\n // Find the index of first attribute that has no value, only a name.\n const nameOnlyMarkerIdx = nodeAttrs !== null ? getNameOnlyMarkerIndex(nodeAttrs) : 0;\n // When processing \":not\" selectors, we skip to the next \":not\" if the\n // current one doesn't match\n let skipToNextSelector = false;\n for (let i = 0; i < selector.length; i++) {\n const current = selector[i];\n if (typeof current === 'number') {\n // If we finish processing a :not selector and it hasn't failed, return false\n if (!skipToNextSelector && !isPositive(mode) && !isPositive(current)) {\n return false;\n }\n // If we are skipping to the next :not() and this mode flag is positive,\n // it's a part of the current :not() selector, and we should keep skipping\n if (skipToNextSelector && isPositive(current)) continue;\n skipToNextSelector = false;\n mode = current | mode & 1 /* SelectorFlags.NOT */;\n continue;\n }\n if (skipToNextSelector) continue;\n if (mode & 4 /* SelectorFlags.ELEMENT */) {\n mode = 2 /* SelectorFlags.ATTRIBUTE */ | mode & 1 /* SelectorFlags.NOT */;\n if (current !== '' && !hasTagAndTypeMatch(tNode, current, isProjectionMode) || current === '' && selector.length === 1) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n }\n } else if (mode & 8 /* SelectorFlags.CLASS */) {\n if (nodeAttrs === null || !isCssClassMatching(tNode, nodeAttrs, current, isProjectionMode)) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n }\n } else {\n const selectorAttrValue = selector[++i];\n const attrIndexInNode = findAttrIndexInNode(current, nodeAttrs, isInlineTemplate(tNode), isProjectionMode);\n if (attrIndexInNode === -1) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n continue;\n }\n if (selectorAttrValue !== '') {\n let nodeAttrValue;\n if (attrIndexInNode > nameOnlyMarkerIdx) {\n nodeAttrValue = '';\n } else {\n ngDevMode && assertNotEqual(nodeAttrs[attrIndexInNode], 0 /* AttributeMarker.NamespaceURI */, 'We do not match directives on namespaced attributes');\n // we lowercase the attribute value to be able to match\n // selectors without case-sensitivity\n // (selectors are already in lowercase when generated)\n nodeAttrValue = nodeAttrs[attrIndexInNode + 1].toLowerCase();\n }\n if (mode & 2 /* SelectorFlags.ATTRIBUTE */ && selectorAttrValue !== nodeAttrValue) {\n if (isPositive(mode)) return false;\n skipToNextSelector = true;\n }\n }\n }\n }\n return isPositive(mode) || skipToNextSelector;\n}\nfunction isPositive(mode) {\n return (mode & 1 /* SelectorFlags.NOT */) === 0;\n}\n/**\n * Examines the attribute's definition array for a node to find the index of the\n * attribute that matches the given `name`.\n *\n * NOTE: This will not match namespaced attributes.\n *\n * Attribute matching depends upon `isInlineTemplate` and `isProjectionMode`.\n * The following table summarizes which types of attributes we attempt to match:\n *\n * ===========================================================================================================\n * Modes | Normal Attributes | Bindings Attributes | Template Attributes | I18n\n * Attributes\n * ===========================================================================================================\n * Inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Inline + Directive | NO | NO | YES | NO\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Projection | YES | YES | NO | YES\n * -----------------------------------------------------------------------------------------------------------\n * Non-inline + Directive | YES | YES | NO | YES\n * ===========================================================================================================\n *\n * @param name the name of the attribute to find\n * @param attrs the attribute array to examine\n * @param isInlineTemplate true if the node being matched is an inline template (e.g. `*ngFor`)\n * rather than a manually expanded template node (e.g ``).\n * @param isProjectionMode true if we are matching against content projection otherwise we are\n * matching against directives.\n */\nfunction findAttrIndexInNode(name, attrs, isInlineTemplate, isProjectionMode) {\n if (attrs === null) return -1;\n let i = 0;\n if (isProjectionMode || !isInlineTemplate) {\n let bindingsMode = false;\n while (i < attrs.length) {\n const maybeAttrName = attrs[i];\n if (maybeAttrName === name) {\n return i;\n } else if (maybeAttrName === 3 /* AttributeMarker.Bindings */ || maybeAttrName === 6 /* AttributeMarker.I18n */) {\n bindingsMode = true;\n } else if (maybeAttrName === 1 /* AttributeMarker.Classes */ || maybeAttrName === 2 /* AttributeMarker.Styles */) {\n let value = attrs[++i];\n // We should skip classes here because we have a separate mechanism for\n // matching classes in projection mode.\n while (typeof value === 'string') {\n value = attrs[++i];\n }\n continue;\n } else if (maybeAttrName === 4 /* AttributeMarker.Template */) {\n // We do not care about Template attributes in this scenario.\n break;\n } else if (maybeAttrName === 0 /* AttributeMarker.NamespaceURI */) {\n // Skip the whole namespaced attribute and value. This is by design.\n i += 4;\n continue;\n }\n // In binding mode there are only names, rather than name-value pairs.\n i += bindingsMode ? 1 : 2;\n }\n // We did not match the attribute\n return -1;\n } else {\n return matchTemplateAttribute(attrs, name);\n }\n}\nfunction isNodeMatchingSelectorList(tNode, selector, isProjectionMode = false) {\n for (let i = 0; i < selector.length; i++) {\n if (isNodeMatchingSelector(tNode, selector[i], isProjectionMode)) {\n return true;\n }\n }\n return false;\n}\nfunction getProjectAsAttrValue(tNode) {\n const nodeAttrs = tNode.attrs;\n if (nodeAttrs != null) {\n const ngProjectAsAttrIdx = nodeAttrs.indexOf(5 /* AttributeMarker.ProjectAs */);\n // only check for ngProjectAs in attribute names, don't accidentally match attribute's value\n // (attribute names are stored at even indexes)\n if ((ngProjectAsAttrIdx & 1) === 0) {\n return nodeAttrs[ngProjectAsAttrIdx + 1];\n }\n }\n return null;\n}\nfunction getNameOnlyMarkerIndex(nodeAttrs) {\n for (let i = 0; i < nodeAttrs.length; i++) {\n const nodeAttr = nodeAttrs[i];\n if (isNameOnlyAttributeMarker(nodeAttr)) {\n return i;\n }\n }\n return nodeAttrs.length;\n}\nfunction matchTemplateAttribute(attrs, name) {\n let i = attrs.indexOf(4 /* AttributeMarker.Template */);\n if (i > -1) {\n i++;\n while (i < attrs.length) {\n const attr = attrs[i];\n // Return in case we checked all template attrs and are switching to the next section in the\n // attrs array (that starts with a number that represents an attribute marker).\n if (typeof attr === 'number') return -1;\n if (attr === name) return i;\n i++;\n }\n }\n return -1;\n}\n/**\n * Checks whether a selector is inside a CssSelectorList\n * @param selector Selector to be checked.\n * @param list List in which to look for the selector.\n */\nfunction isSelectorInSelectorList(selector, list) {\n selectorListLoop: for (let i = 0; i < list.length; i++) {\n const currentSelectorInList = list[i];\n if (selector.length !== currentSelectorInList.length) {\n continue;\n }\n for (let j = 0; j < selector.length; j++) {\n if (selector[j] !== currentSelectorInList[j]) {\n continue selectorListLoop;\n }\n }\n return true;\n }\n return false;\n}\nfunction maybeWrapInNotSelector(isNegativeMode, chunk) {\n return isNegativeMode ? ':not(' + chunk.trim() + ')' : chunk;\n}\nfunction stringifyCSSSelector(selector) {\n let result = selector[0];\n let i = 1;\n let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n let currentChunk = '';\n let isNegativeMode = false;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode & 2 /* SelectorFlags.ATTRIBUTE */) {\n const attrValue = selector[++i];\n currentChunk += '[' + valueOrMarker + (attrValue.length > 0 ? '=\"' + attrValue + '\"' : '') + ']';\n } else if (mode & 8 /* SelectorFlags.CLASS */) {\n currentChunk += '.' + valueOrMarker;\n } else if (mode & 4 /* SelectorFlags.ELEMENT */) {\n currentChunk += ' ' + valueOrMarker;\n }\n } else {\n //\n // Append current chunk to the final result in case we come across SelectorFlag, which\n // indicates that the previous section of a selector is over. We need to accumulate content\n // between flags to make sure we wrap the chunk later in :not() selector if needed, e.g.\n // ```\n // ['', Flags.CLASS, '.classA', Flags.CLASS | Flags.NOT, '.classB', '.classC']\n // ```\n // should be transformed to `.classA :not(.classB .classC)`.\n //\n // Note: for negative selector part, we accumulate content between flags until we find the\n // next negative flag. This is needed to support a case where `:not()` rule contains more than\n // one chunk, e.g. the following selector:\n // ```\n // ['', Flags.ELEMENT | Flags.NOT, 'p', Flags.CLASS, 'foo', Flags.CLASS | Flags.NOT, 'bar']\n // ```\n // should be stringified to `:not(p.foo) :not(.bar)`\n //\n if (currentChunk !== '' && !isPositive(valueOrMarker)) {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n currentChunk = '';\n }\n mode = valueOrMarker;\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector.\n isNegativeMode = isNegativeMode || !isPositive(mode);\n }\n i++;\n }\n if (currentChunk !== '') {\n result += maybeWrapInNotSelector(isNegativeMode, currentChunk);\n }\n return result;\n}\n/**\n * Generates string representation of CSS selector in parsed form.\n *\n * ComponentDef and DirectiveDef are generated with the selector in parsed form to avoid doing\n * additional parsing at runtime (for example, for directive matching). However in some cases (for\n * example, while bootstrapping a component), a string version of the selector is required to query\n * for the host element on the page. This function takes the parsed form of a selector and returns\n * its string representation.\n *\n * @param selectorList selector in parsed form\n * @returns string representation of a given selector\n */\nfunction stringifyCSSSelectorList(selectorList) {\n return selectorList.map(stringifyCSSSelector).join(',');\n}\n/**\n * Extracts attributes and classes information from a given CSS selector.\n *\n * This function is used while creating a component dynamically. In this case, the host element\n * (that is created dynamically) should contain attributes and classes specified in component's CSS\n * selector.\n *\n * @param selector CSS selector in parsed form (in a form of array)\n * @returns object with `attrs` and `classes` fields that contain extracted information\n */\nfunction extractAttrsAndClassesFromSelector(selector) {\n const attrs = [];\n const classes = [];\n let i = 1;\n let mode = 2 /* SelectorFlags.ATTRIBUTE */;\n while (i < selector.length) {\n let valueOrMarker = selector[i];\n if (typeof valueOrMarker === 'string') {\n if (mode === 2 /* SelectorFlags.ATTRIBUTE */) {\n if (valueOrMarker !== '') {\n attrs.push(valueOrMarker, selector[++i]);\n }\n } else if (mode === 8 /* SelectorFlags.CLASS */) {\n classes.push(valueOrMarker);\n }\n } else {\n // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative\n // mode is maintained for remaining chunks of a selector. Since attributes and classes are\n // extracted only for \"positive\" part of the selector, we can stop here.\n if (!isPositive(mode)) break;\n mode = valueOrMarker;\n }\n i++;\n }\n return {\n attrs,\n classes\n };\n}\n\n/**\n * Create a component definition object.\n *\n *\n * # Example\n * ```\n * class MyComponent {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵcmp = defineComponent({\n * ...\n * });\n * }\n * ```\n * @codeGenApi\n */\nfunction ɵɵdefineComponent(componentDefinition) {\n return noSideEffects(() => {\n // Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.\n // See the `initNgDevMode` docstring for more information.\n (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();\n const baseDef = getNgDirectiveDef(componentDefinition);\n const def = {\n ...baseDef,\n decls: componentDefinition.decls,\n vars: componentDefinition.vars,\n template: componentDefinition.template,\n consts: componentDefinition.consts || null,\n ngContentSelectors: componentDefinition.ngContentSelectors,\n onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,\n directiveDefs: null,\n // assigned in noSideEffects\n pipeDefs: null,\n // assigned in noSideEffects\n dependencies: baseDef.standalone && componentDefinition.dependencies || null,\n getStandaloneInjector: null,\n signals: componentDefinition.signals ?? false,\n data: componentDefinition.data || {},\n encapsulation: componentDefinition.encapsulation || ViewEncapsulation$1.Emulated,\n styles: componentDefinition.styles || EMPTY_ARRAY,\n _: null,\n schemas: componentDefinition.schemas || null,\n tView: null,\n id: ''\n };\n initFeatures(def);\n const dependencies = componentDefinition.dependencies;\n def.directiveDefs = extractDefListOrFactory(dependencies, /* pipeDef */false);\n def.pipeDefs = extractDefListOrFactory(dependencies, /* pipeDef */true);\n def.id = getComponentId(def);\n return def;\n });\n}\nfunction extractDirectiveDef(type) {\n return getComponentDef(type) || getDirectiveDef(type);\n}\nfunction nonNull(value) {\n return value !== null;\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵdefineNgModule(def) {\n return noSideEffects(() => {\n const res = {\n type: def.type,\n bootstrap: def.bootstrap || EMPTY_ARRAY,\n declarations: def.declarations || EMPTY_ARRAY,\n imports: def.imports || EMPTY_ARRAY,\n exports: def.exports || EMPTY_ARRAY,\n transitiveCompileScopes: null,\n schemas: def.schemas || null,\n id: def.id || null\n };\n return res;\n });\n}\nfunction parseAndConvertBindingsForDefinition(obj, declaredInputs) {\n if (obj == null) return EMPTY_OBJ;\n const newLookup = {};\n for (const minifiedKey in obj) {\n if (obj.hasOwnProperty(minifiedKey)) {\n const value = obj[minifiedKey];\n let publicName;\n let declaredName;\n let inputFlags = InputFlags.None;\n if (Array.isArray(value)) {\n inputFlags = value[0];\n publicName = value[1];\n declaredName = value[2] ?? publicName; // declared name might not be set to save bytes.\n } else {\n publicName = value;\n declaredName = value;\n }\n // For inputs, capture the declared name, or if some flags are set.\n if (declaredInputs) {\n // Perf note: An array is only allocated for the input if there are flags.\n newLookup[publicName] = inputFlags !== InputFlags.None ? [minifiedKey, inputFlags] : minifiedKey;\n declaredInputs[publicName] = declaredName;\n } else {\n newLookup[publicName] = minifiedKey;\n }\n }\n }\n return newLookup;\n}\n/**\n * Create a directive definition object.\n *\n * # Example\n * ```ts\n * class MyDirective {\n * // Generated by Angular Template Compiler\n * // [Symbol] syntax will not be supported by TypeScript until v2.7\n * static ɵdir = ɵɵdefineDirective({\n * ...\n * });\n * }\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdefineDirective(directiveDefinition) {\n return noSideEffects(() => {\n const def = getNgDirectiveDef(directiveDefinition);\n initFeatures(def);\n return def;\n });\n}\n/**\n * Create a pipe definition object.\n *\n * # Example\n * ```\n * class MyPipe implements PipeTransform {\n * // Generated by Angular Template Compiler\n * static ɵpipe = definePipe({\n * ...\n * });\n * }\n * ```\n * @param pipeDef Pipe definition generated by the compiler\n *\n * @codeGenApi\n */\nfunction ɵɵdefinePipe(pipeDef) {\n return {\n type: pipeDef.type,\n name: pipeDef.name,\n factory: null,\n pure: pipeDef.pure !== false,\n standalone: pipeDef.standalone === true,\n onDestroy: pipeDef.type.prototype.ngOnDestroy || null\n };\n}\n/**\n * The following getter methods retrieve the definition from the type. Currently the retrieval\n * honors inheritance, but in the future we may change the rule to require that definitions are\n * explicit. This would require some sort of migration strategy.\n */\nfunction getComponentDef(type) {\n return type[NG_COMP_DEF] || null;\n}\nfunction getDirectiveDef(type) {\n return type[NG_DIR_DEF] || null;\n}\nfunction getPipeDef$1(type) {\n return type[NG_PIPE_DEF] || null;\n}\n/**\n * Checks whether a given Component, Directive or Pipe is marked as standalone.\n * This will return false if passed anything other than a Component, Directive, or Pipe class\n * See [this guide](/guide/standalone-components) for additional information:\n *\n * @param type A reference to a Component, Directive or Pipe.\n * @publicApi\n */\nfunction isStandalone(type) {\n const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef$1(type);\n return def !== null ? def.standalone : false;\n}\nfunction getNgModuleDef(type, throwNotFound) {\n const ngModuleDef = type[NG_MOD_DEF] || null;\n if (!ngModuleDef && throwNotFound === true) {\n throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`);\n }\n return ngModuleDef;\n}\nfunction getNgDirectiveDef(directiveDefinition) {\n const declaredInputs = {};\n return {\n type: directiveDefinition.type,\n providersResolver: null,\n factory: null,\n hostBindings: directiveDefinition.hostBindings || null,\n hostVars: directiveDefinition.hostVars || 0,\n hostAttrs: directiveDefinition.hostAttrs || null,\n contentQueries: directiveDefinition.contentQueries || null,\n declaredInputs: declaredInputs,\n inputTransforms: null,\n inputConfig: directiveDefinition.inputs || EMPTY_OBJ,\n exportAs: directiveDefinition.exportAs || null,\n standalone: directiveDefinition.standalone === true,\n signals: directiveDefinition.signals === true,\n selectors: directiveDefinition.selectors || EMPTY_ARRAY,\n viewQuery: directiveDefinition.viewQuery || null,\n features: directiveDefinition.features || null,\n setInput: null,\n findHostDirectiveDefs: null,\n hostDirectives: null,\n inputs: parseAndConvertBindingsForDefinition(directiveDefinition.inputs, declaredInputs),\n outputs: parseAndConvertBindingsForDefinition(directiveDefinition.outputs),\n debugInfo: null\n };\n}\nfunction initFeatures(definition) {\n definition.features?.forEach(fn => fn(definition));\n}\nfunction extractDefListOrFactory(dependencies, pipeDef) {\n if (!dependencies) {\n return null;\n }\n const defExtractor = pipeDef ? getPipeDef$1 : extractDirectiveDef;\n return () => (typeof dependencies === 'function' ? dependencies() : dependencies).map(dep => defExtractor(dep)).filter(nonNull);\n}\n/**\n * A map that contains the generated component IDs and type.\n */\nconst GENERATED_COMP_IDS = /*#__PURE__*/new Map();\n/**\n * A method can returns a component ID from the component definition using a variant of DJB2 hash\n * algorithm.\n */\nfunction getComponentId(componentDef) {\n let hash = 0;\n // We cannot rely solely on the component selector as the same selector can be used in different\n // modules.\n //\n // `componentDef.style` is not used, due to it causing inconsistencies. Ex: when server\n // component styles has no sourcemaps and browsers do.\n //\n // Example:\n // https://github.com/angular/components/blob/d9f82c8f95309e77a6d82fd574c65871e91354c2/src/material/core/option/option.ts#L248\n // https://github.com/angular/components/blob/285f46dc2b4c5b127d356cb7c4714b221f03ce50/src/material/legacy-core/option/option.ts#L32\n const hashSelectors = [componentDef.selectors, componentDef.ngContentSelectors, componentDef.hostVars, componentDef.hostAttrs, componentDef.consts, componentDef.vars, componentDef.decls, componentDef.encapsulation, componentDef.standalone, componentDef.signals, componentDef.exportAs, JSON.stringify(componentDef.inputs), JSON.stringify(componentDef.outputs),\n // We cannot use 'componentDef.type.name' as the name of the symbol will change and will not\n // match in the server and browser bundles.\n Object.getOwnPropertyNames(componentDef.type.prototype), !!componentDef.contentQueries, !!componentDef.viewQuery].join('|');\n for (const char of hashSelectors) {\n hash = Math.imul(31, hash) + char.charCodeAt(0) << 0;\n }\n // Force positive number hash.\n // 2147483647 = equivalent of Integer.MAX_VALUE.\n hash += 2147483647 + 1;\n const compId = 'c' + hash;\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (GENERATED_COMP_IDS.has(compId)) {\n const previousCompDefType = GENERATED_COMP_IDS.get(compId);\n if (previousCompDefType !== componentDef.type) {\n console.warn(formatRuntimeError(-912 /* RuntimeErrorCode.COMPONENT_ID_COLLISION */, `Component ID generation collision detected. Components '${previousCompDefType.name}' and '${componentDef.type.name}' with selector '${stringifyCSSSelectorList(componentDef.selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`));\n }\n } else {\n GENERATED_COMP_IDS.set(compId, componentDef.type);\n }\n }\n return compId;\n}\n\n/**\n * Wrap an array of `Provider`s into `EnvironmentProviders`, preventing them from being accidentally\n * referenced in `@Component` in a component injector.\n */\nfunction makeEnvironmentProviders(providers) {\n return {\n ɵproviders: providers\n };\n}\n/**\n * Collects providers from all NgModules and standalone components, including transitively imported\n * ones.\n *\n * Providers extracted via `importProvidersFrom` are only usable in an application injector or\n * another environment injector (such as a route injector). They should not be used in component\n * providers.\n *\n * More information about standalone components can be found in [this\n * guide](guide/standalone-components).\n *\n * @usageNotes\n * The results of the `importProvidersFrom` call can be used in the `bootstrapApplication` call:\n *\n * ```typescript\n * await bootstrapApplication(RootComponent, {\n * providers: [\n * importProvidersFrom(NgModuleOne, NgModuleTwo)\n * ]\n * });\n * ```\n *\n * You can also use the `importProvidersFrom` results in the `providers` field of a route, when a\n * standalone component is used:\n *\n * ```typescript\n * export const ROUTES: Route[] = [\n * {\n * path: 'foo',\n * providers: [\n * importProvidersFrom(NgModuleOne, NgModuleTwo)\n * ],\n * component: YourStandaloneComponent\n * }\n * ];\n * ```\n *\n * @returns Collected providers from the specified list of types.\n * @publicApi\n */\nfunction importProvidersFrom(...sources) {\n return {\n ɵproviders: internalImportProvidersFrom(true, sources),\n ɵfromNgModule: true\n };\n}\nfunction internalImportProvidersFrom(checkForStandaloneCmp, ...sources) {\n const providersOut = [];\n const dedup = new Set(); // already seen types\n let injectorTypesWithProviders;\n const collectProviders = provider => {\n providersOut.push(provider);\n };\n deepForEach(sources, source => {\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && checkForStandaloneCmp) {\n const cmpDef = getComponentDef(source);\n if (cmpDef?.standalone) {\n throw new RuntimeError(800 /* RuntimeErrorCode.IMPORT_PROVIDERS_FROM_STANDALONE */, `Importing providers supports NgModule or ModuleWithProviders but got a standalone component \"${stringifyForError(source)}\"`);\n }\n }\n // Narrow `source` to access the internal type analogue for `ModuleWithProviders`.\n const internalSource = source;\n if (walkProviderTree(internalSource, collectProviders, [], dedup)) {\n injectorTypesWithProviders ||= [];\n injectorTypesWithProviders.push(internalSource);\n }\n });\n // Collect all providers from `ModuleWithProviders` types.\n if (injectorTypesWithProviders !== undefined) {\n processInjectorTypesWithProviders(injectorTypesWithProviders, collectProviders);\n }\n return providersOut;\n}\n/**\n * Collects all providers from the list of `ModuleWithProviders` and appends them to the provided\n * array.\n */\nfunction processInjectorTypesWithProviders(typesWithProviders, visitor) {\n for (let i = 0; i < typesWithProviders.length; i++) {\n const {\n ngModule,\n providers\n } = typesWithProviders[i];\n deepForEachProvider(providers, provider => {\n ngDevMode && validateProvider(provider, providers || EMPTY_ARRAY, ngModule);\n visitor(provider, ngModule);\n });\n }\n}\n/**\n * The logic visits an `InjectorType`, an `InjectorTypeWithProviders`, or a standalone\n * `ComponentType`, and all of its transitive providers and collects providers.\n *\n * If an `InjectorTypeWithProviders` that declares providers besides the type is specified,\n * the function will return \"true\" to indicate that the providers of the type definition need\n * to be processed. This allows us to process providers of injector types after all imports of\n * an injector definition are processed. (following View Engine semantics: see FW-1349)\n */\nfunction walkProviderTree(container, visitor, parents, dedup) {\n container = resolveForwardRef(container);\n if (!container) return false;\n // The actual type which had the definition. Usually `container`, but may be an unwrapped type\n // from `InjectorTypeWithProviders`.\n let defType = null;\n let injDef = getInjectorDef(container);\n const cmpDef = !injDef && getComponentDef(container);\n if (!injDef && !cmpDef) {\n // `container` is not an injector type or a component type. It might be:\n // * An `InjectorTypeWithProviders` that wraps an injector type.\n // * A standalone directive or pipe that got pulled in from a standalone component's\n // dependencies.\n // Try to unwrap it as an `InjectorTypeWithProviders` first.\n const ngModule = container.ngModule;\n injDef = getInjectorDef(ngModule);\n if (injDef) {\n defType = ngModule;\n } else {\n // Not a component or injector type, so ignore it.\n return false;\n }\n } else if (cmpDef && !cmpDef.standalone) {\n return false;\n } else {\n defType = container;\n }\n // Check for circular dependencies.\n if (ngDevMode && parents.indexOf(defType) !== -1) {\n const defName = stringify(defType);\n const path = parents.map(stringify);\n throwCyclicDependencyError(defName, path);\n }\n // Check for multiple imports of the same module\n const isDuplicate = dedup.has(defType);\n if (cmpDef) {\n if (isDuplicate) {\n // This component definition has already been processed.\n return false;\n }\n dedup.add(defType);\n if (cmpDef.dependencies) {\n const deps = typeof cmpDef.dependencies === 'function' ? cmpDef.dependencies() : cmpDef.dependencies;\n for (const dep of deps) {\n walkProviderTree(dep, visitor, parents, dedup);\n }\n }\n } else if (injDef) {\n // First, include providers from any imports.\n if (injDef.imports != null && !isDuplicate) {\n // Before processing defType's imports, add it to the set of parents. This way, if it ends\n // up deeply importing itself, this can be detected.\n ngDevMode && parents.push(defType);\n // Add it to the set of dedups. This way we can detect multiple imports of the same module\n dedup.add(defType);\n let importTypesWithProviders;\n try {\n deepForEach(injDef.imports, imported => {\n if (walkProviderTree(imported, visitor, parents, dedup)) {\n importTypesWithProviders ||= [];\n // If the processed import is an injector type with providers, we store it in the\n // list of import types with providers, so that we can process those afterwards.\n importTypesWithProviders.push(imported);\n }\n });\n } finally {\n // Remove it from the parents set when finished.\n ngDevMode && parents.pop();\n }\n // Imports which are declared with providers (TypeWithProviders) need to be processed\n // after all imported modules are processed. This is similar to how View Engine\n // processes/merges module imports in the metadata resolver. See: FW-1349.\n if (importTypesWithProviders !== undefined) {\n processInjectorTypesWithProviders(importTypesWithProviders, visitor);\n }\n }\n if (!isDuplicate) {\n // Track the InjectorType and add a provider for it.\n // It's important that this is done after the def's imports.\n const factory = getFactoryDef(defType) || (() => new defType());\n // Append extra providers to make more info available for consumers (to retrieve an injector\n // type), as well as internally (to calculate an injection scope correctly and eagerly\n // instantiate a `defType` when an injector is created).\n // Provider to create `defType` using its factory.\n visitor({\n provide: defType,\n useFactory: factory,\n deps: EMPTY_ARRAY\n }, defType);\n // Make this `defType` available to an internal logic that calculates injector scope.\n visitor({\n provide: INJECTOR_DEF_TYPES,\n useValue: defType,\n multi: true\n }, defType);\n // Provider to eagerly instantiate `defType` via `INJECTOR_INITIALIZER`.\n visitor({\n provide: ENVIRONMENT_INITIALIZER,\n useValue: () => ɵɵinject(defType),\n multi: true\n }, defType);\n }\n // Next, include providers listed on the definition itself.\n const defProviders = injDef.providers;\n if (defProviders != null && !isDuplicate) {\n const injectorType = container;\n deepForEachProvider(defProviders, provider => {\n ngDevMode && validateProvider(provider, defProviders, injectorType);\n visitor(provider, injectorType);\n });\n }\n } else {\n // Should not happen, but just in case.\n return false;\n }\n return defType !== container && container.providers !== undefined;\n}\nfunction validateProvider(provider, providers, containerType) {\n if (isTypeProvider(provider) || isValueProvider(provider) || isFactoryProvider(provider) || isExistingProvider(provider)) {\n return;\n }\n // Here we expect the provider to be a `useClass` provider (by elimination).\n const classRef = resolveForwardRef(provider && (provider.useClass || provider.provide));\n if (!classRef) {\n throwInvalidProviderError(containerType, providers, provider);\n }\n}\nfunction deepForEachProvider(providers, fn) {\n for (let provider of providers) {\n if (isEnvironmentProviders(provider)) {\n provider = provider.ɵproviders;\n }\n if (Array.isArray(provider)) {\n deepForEachProvider(provider, fn);\n } else {\n fn(provider);\n }\n }\n}\nconst USE_VALUE$1 = /*#__PURE__*/getClosureSafeProperty({\n provide: String,\n useValue: getClosureSafeProperty\n});\nfunction isValueProvider(value) {\n return value !== null && typeof value == 'object' && USE_VALUE$1 in value;\n}\nfunction isExistingProvider(value) {\n return !!(value && value.useExisting);\n}\nfunction isFactoryProvider(value) {\n return !!(value && value.useFactory);\n}\nfunction isTypeProvider(value) {\n return typeof value === 'function';\n}\nfunction isClassProvider(value) {\n return !!value.useClass;\n}\n\n/**\n * An internal token whose presence in an injector indicates that the injector should treat itself\n * as a root scoped injector when processing requests for unknown tokens which may indicate\n * they are provided in the root scope.\n */\nconst INJECTOR_SCOPE = /*#__PURE__*/new InjectionToken(ngDevMode ? 'Set Injector scope.' : '');\n\n/**\n * Marker which indicates that a value has not yet been created from the factory function.\n */\nconst NOT_YET = {};\n/**\n * Marker which indicates that the factory function for a token is in the process of being called.\n *\n * If the injector is asked to inject a token with its value set to CIRCULAR, that indicates\n * injection of a dependency has recursively attempted to inject the original token, and there is\n * a circular dependency among the providers.\n */\nconst CIRCULAR = {};\n/**\n * A lazily initialized NullInjector.\n */\nlet NULL_INJECTOR = undefined;\nfunction getNullInjector() {\n if (NULL_INJECTOR === undefined) {\n NULL_INJECTOR = new NullInjector();\n }\n return NULL_INJECTOR;\n}\n/**\n * An `Injector` that's part of the environment injector hierarchy, which exists outside of the\n * component tree.\n */\nclass EnvironmentInjector {}\nclass R3Injector extends EnvironmentInjector {\n /**\n * Flag indicating that this injector was previously destroyed.\n */\n get destroyed() {\n return this._destroyed;\n }\n constructor(providers, parent, source, scopes) {\n super();\n this.parent = parent;\n this.source = source;\n this.scopes = scopes;\n /**\n * Map of tokens to records which contain the instances of those tokens.\n * - `null` value implies that we don't have the record. Used by tree-shakable injectors\n * to prevent further searches.\n */\n this.records = new Map();\n /**\n * Set of values instantiated by this injector which contain `ngOnDestroy` lifecycle hooks.\n */\n this._ngOnDestroyHooks = new Set();\n this._onDestroyHooks = [];\n this._destroyed = false;\n // Start off by creating Records for every provider.\n forEachSingleProvider(providers, provider => this.processProvider(provider));\n // Make sure the INJECTOR token provides this injector.\n this.records.set(INJECTOR$1, makeRecord(undefined, this));\n // And `EnvironmentInjector` if the current injector is supposed to be env-scoped.\n if (scopes.has('environment')) {\n this.records.set(EnvironmentInjector, makeRecord(undefined, this));\n }\n // Detect whether this injector has the APP_ROOT_SCOPE token and thus should provide\n // any injectable scoped to APP_ROOT_SCOPE.\n const record = this.records.get(INJECTOR_SCOPE);\n if (record != null && typeof record.value === 'string') {\n this.scopes.add(record.value);\n }\n this.injectorDefTypes = new Set(this.get(INJECTOR_DEF_TYPES, EMPTY_ARRAY, InjectFlags.Self));\n }\n /**\n * Destroy the injector and release references to every instance or provider associated with it.\n *\n * Also calls the `OnDestroy` lifecycle hooks of every instance that was created for which a\n * hook was found.\n */\n destroy() {\n this.assertNotDestroyed();\n // Set destroyed = true first, in case lifecycle hooks re-enter destroy().\n this._destroyed = true;\n const prevConsumer = setActiveConsumer$1(null);\n try {\n // Call all the lifecycle hooks.\n for (const service of this._ngOnDestroyHooks) {\n service.ngOnDestroy();\n }\n const onDestroyHooks = this._onDestroyHooks;\n // Reset the _onDestroyHooks array before iterating over it to prevent hooks that unregister\n // themselves from mutating the array during iteration.\n this._onDestroyHooks = [];\n for (const hook of onDestroyHooks) {\n hook();\n }\n } finally {\n // Release all references.\n this.records.clear();\n this._ngOnDestroyHooks.clear();\n this.injectorDefTypes.clear();\n setActiveConsumer$1(prevConsumer);\n }\n }\n onDestroy(callback) {\n this.assertNotDestroyed();\n this._onDestroyHooks.push(callback);\n return () => this.removeOnDestroy(callback);\n }\n runInContext(fn) {\n this.assertNotDestroyed();\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({\n injector: this,\n token: null\n });\n }\n try {\n return fn();\n } finally {\n setCurrentInjector(previousInjector);\n setInjectImplementation(previousInjectImplementation);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n }\n }\n get(token, notFoundValue = THROW_IF_NOT_FOUND, flags = InjectFlags.Default) {\n this.assertNotDestroyed();\n if (token.hasOwnProperty(NG_ENV_ID)) {\n return token[NG_ENV_ID](this);\n }\n flags = convertToBitFlags(flags);\n // Set the injection context.\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({\n injector: this,\n token: token\n });\n }\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n // Check for the SkipSelf flag.\n if (!(flags & InjectFlags.SkipSelf)) {\n // SkipSelf isn't set, check if the record belongs to this injector.\n let record = this.records.get(token);\n if (record === undefined) {\n // No record, but maybe the token is scoped to this injector. Look for an injectable\n // def with a scope matching this injector.\n const def = couldBeInjectableType(token) && getInjectableDef(token);\n if (def && this.injectableDefInScope(def)) {\n // Found an injectable def and it's scoped to this injector. Pretend as if it was here\n // all along.\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n emitProviderConfiguredEvent(token);\n });\n }\n record = makeRecord(injectableDefOrInjectorDefFactory(token), NOT_YET);\n } else {\n record = null;\n }\n this.records.set(token, record);\n }\n // If a record was found, get the instance for it and return it.\n if (record != null /* NOT null || undefined */) {\n return this.hydrate(token, record);\n }\n }\n // Select the next injector based on the Self flag - if self is set, the next injector is\n // the NullInjector, otherwise it's the parent.\n const nextInjector = !(flags & InjectFlags.Self) ? this.parent : getNullInjector();\n // Set the notFoundValue based on the Optional flag - if optional is set and notFoundValue\n // is undefined, the value is null, otherwise it's the notFoundValue.\n notFoundValue = flags & InjectFlags.Optional && notFoundValue === THROW_IF_NOT_FOUND ? null : notFoundValue;\n return nextInjector.get(token, notFoundValue);\n } catch (e) {\n if (e.name === 'NullInjectorError') {\n const path = e[NG_TEMP_TOKEN_PATH] = e[NG_TEMP_TOKEN_PATH] || [];\n path.unshift(stringify(token));\n if (previousInjector) {\n // We still have a parent injector, keep throwing\n throw e;\n } else {\n // Format & throw the final error message when we don't have any previous injector\n return catchInjectorError(e, token, 'R3InjectorError', this.source);\n }\n } else {\n throw e;\n }\n } finally {\n // Lastly, restore the previous injection context.\n setInjectImplementation(previousInjectImplementation);\n setCurrentInjector(previousInjector);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n }\n }\n /** @internal */\n resolveInjectorInitializers() {\n const prevConsumer = setActiveConsumer$1(null);\n const previousInjector = setCurrentInjector(this);\n const previousInjectImplementation = setInjectImplementation(undefined);\n let prevInjectContext;\n if (ngDevMode) {\n prevInjectContext = setInjectorProfilerContext({\n injector: this,\n token: null\n });\n }\n try {\n const initializers = this.get(ENVIRONMENT_INITIALIZER, EMPTY_ARRAY, InjectFlags.Self);\n if (ngDevMode && !Array.isArray(initializers)) {\n throw new RuntimeError(-209 /* RuntimeErrorCode.INVALID_MULTI_PROVIDER */, 'Unexpected type of the `ENVIRONMENT_INITIALIZER` token value ' + `(expected an array, but got ${typeof initializers}). ` + 'Please check that the `ENVIRONMENT_INITIALIZER` token is configured as a ' + '`multi: true` provider.');\n }\n for (const initializer of initializers) {\n initializer();\n }\n } finally {\n setCurrentInjector(previousInjector);\n setInjectImplementation(previousInjectImplementation);\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n setActiveConsumer$1(prevConsumer);\n }\n }\n toString() {\n const tokens = [];\n const records = this.records;\n for (const token of records.keys()) {\n tokens.push(stringify(token));\n }\n return `R3Injector[${tokens.join(', ')}]`;\n }\n assertNotDestroyed() {\n if (this._destroyed) {\n throw new RuntimeError(205 /* RuntimeErrorCode.INJECTOR_ALREADY_DESTROYED */, ngDevMode && 'Injector has already been destroyed.');\n }\n }\n /**\n * Process a `SingleProvider` and add it.\n */\n processProvider(provider) {\n // Determine the token from the provider. Either it's its own token, or has a {provide: ...}\n // property.\n provider = resolveForwardRef(provider);\n let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider && provider.provide);\n // Construct a `Record` for the provider.\n const record = providerToRecord(provider);\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n // Emit InjectorProfilerEventType.Create if provider is a value provider because\n // these are the only providers that do not go through the value hydration logic\n // where this event would normally be emitted from.\n if (isValueProvider(provider)) {\n emitInstanceCreatedByInjectorEvent(provider.useValue);\n }\n emitProviderConfiguredEvent(provider);\n });\n }\n if (!isTypeProvider(provider) && provider.multi === true) {\n // If the provider indicates that it's a multi-provider, process it specially.\n // First check whether it's been defined already.\n let multiRecord = this.records.get(token);\n if (multiRecord) {\n // It has. Throw a nice error if\n if (ngDevMode && multiRecord.multi === undefined) {\n throwMixedMultiProviderError();\n }\n } else {\n multiRecord = makeRecord(undefined, NOT_YET, true);\n multiRecord.factory = () => injectArgs(multiRecord.multi);\n this.records.set(token, multiRecord);\n }\n token = provider;\n multiRecord.multi.push(provider);\n } else {\n if (ngDevMode) {\n const existing = this.records.get(token);\n if (existing && existing.multi !== undefined) {\n throwMixedMultiProviderError();\n }\n }\n }\n this.records.set(token, record);\n }\n hydrate(token, record) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n if (ngDevMode && record.value === CIRCULAR) {\n throwCyclicDependencyError(stringify(token));\n } else if (record.value === NOT_YET) {\n record.value = CIRCULAR;\n if (ngDevMode) {\n runInInjectorProfilerContext(this, token, () => {\n record.value = record.factory();\n emitInstanceCreatedByInjectorEvent(record.value);\n });\n } else {\n record.value = record.factory();\n }\n }\n if (typeof record.value === 'object' && record.value && hasOnDestroy(record.value)) {\n this._ngOnDestroyHooks.add(record.value);\n }\n return record.value;\n } finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n injectableDefInScope(def) {\n if (!def.providedIn) {\n return false;\n }\n const providedIn = resolveForwardRef(def.providedIn);\n if (typeof providedIn === 'string') {\n return providedIn === 'any' || this.scopes.has(providedIn);\n } else {\n return this.injectorDefTypes.has(providedIn);\n }\n }\n removeOnDestroy(callback) {\n const destroyCBIdx = this._onDestroyHooks.indexOf(callback);\n if (destroyCBIdx !== -1) {\n this._onDestroyHooks.splice(destroyCBIdx, 1);\n }\n }\n}\nfunction injectableDefOrInjectorDefFactory(token) {\n // Most tokens will have an injectable def directly on them, which specifies a factory directly.\n const injectableDef = getInjectableDef(token);\n const factory = injectableDef !== null ? injectableDef.factory : getFactoryDef(token);\n if (factory !== null) {\n return factory;\n }\n // InjectionTokens should have an injectable def (ɵprov) and thus should be handled above.\n // If it's missing that, it's an error.\n if (token instanceof InjectionToken) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Token ${stringify(token)} is missing a ɵprov definition.`);\n }\n // Undecorated types can sometimes be created if they have no constructor arguments.\n if (token instanceof Function) {\n return getUndecoratedInjectableFactory(token);\n }\n // There was no way to resolve a factory for this token.\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && 'unreachable');\n}\nfunction getUndecoratedInjectableFactory(token) {\n // If the token has parameters then it has dependencies that we cannot resolve implicitly.\n const paramLength = token.length;\n if (paramLength > 0) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Can't resolve all parameters for ${stringify(token)}: (${newArray(paramLength, '?').join(', ')}).`);\n }\n // The constructor function appears to have no parameters.\n // This might be because it inherits from a super-class. In which case, use an injectable\n // def from an ancestor if there is one.\n // Otherwise this really is a simple class with no dependencies, so return a factory that\n // just instantiates the zero-arg constructor.\n const inheritedInjectableDef = getInheritedInjectableDef(token);\n if (inheritedInjectableDef !== null) {\n return () => inheritedInjectableDef.factory(token);\n } else {\n return () => new token();\n }\n}\nfunction providerToRecord(provider) {\n if (isValueProvider(provider)) {\n return makeRecord(undefined, provider.useValue);\n } else {\n const factory = providerToFactory(provider);\n return makeRecord(factory, NOT_YET);\n }\n}\n/**\n * Converts a `SingleProvider` into a factory function.\n *\n * @param provider provider to convert to factory\n */\nfunction providerToFactory(provider, ngModuleType, providers) {\n let factory = undefined;\n if (ngDevMode && isEnvironmentProviders(provider)) {\n throwInvalidProviderError(undefined, providers, provider);\n }\n if (isTypeProvider(provider)) {\n const unwrappedProvider = resolveForwardRef(provider);\n return getFactoryDef(unwrappedProvider) || injectableDefOrInjectorDefFactory(unwrappedProvider);\n } else {\n if (isValueProvider(provider)) {\n factory = () => resolveForwardRef(provider.useValue);\n } else if (isFactoryProvider(provider)) {\n factory = () => provider.useFactory(...injectArgs(provider.deps || []));\n } else if (isExistingProvider(provider)) {\n factory = () => ɵɵinject(resolveForwardRef(provider.useExisting));\n } else {\n const classRef = resolveForwardRef(provider && (provider.useClass || provider.provide));\n if (ngDevMode && !classRef) {\n throwInvalidProviderError(ngModuleType, providers, provider);\n }\n if (hasDeps(provider)) {\n factory = () => new classRef(...injectArgs(provider.deps));\n } else {\n return getFactoryDef(classRef) || injectableDefOrInjectorDefFactory(classRef);\n }\n }\n }\n return factory;\n}\nfunction makeRecord(factory, value, multi = false) {\n return {\n factory: factory,\n value: value,\n multi: multi ? [] : undefined\n };\n}\nfunction hasDeps(value) {\n return !!value.deps;\n}\nfunction hasOnDestroy(value) {\n return value !== null && typeof value === 'object' && typeof value.ngOnDestroy === 'function';\n}\nfunction couldBeInjectableType(value) {\n return typeof value === 'function' || typeof value === 'object' && value instanceof InjectionToken;\n}\nfunction forEachSingleProvider(providers, fn) {\n for (const provider of providers) {\n if (Array.isArray(provider)) {\n forEachSingleProvider(provider, fn);\n } else if (provider && isEnvironmentProviders(provider)) {\n forEachSingleProvider(provider.ɵproviders, fn);\n } else {\n fn(provider);\n }\n }\n}\n\n/**\n * Runs the given function in the [context](guide/dependency-injection-context) of the given\n * `Injector`.\n *\n * Within the function's stack frame, [`inject`](api/core/inject) can be used to inject dependencies\n * from the given `Injector`. Note that `inject` is only usable synchronously, and cannot be used in\n * any asynchronous callbacks or after any `await` points.\n *\n * @param injector the injector which will satisfy calls to [`inject`](api/core/inject) while `fn`\n * is executing\n * @param fn the closure to be run in the context of `injector`\n * @returns the return value of the function, if any\n * @publicApi\n */\nfunction runInInjectionContext(injector, fn) {\n if (injector instanceof R3Injector) {\n injector.assertNotDestroyed();\n }\n let prevInjectorProfilerContext;\n if (ngDevMode) {\n prevInjectorProfilerContext = setInjectorProfilerContext({\n injector,\n token: null\n });\n }\n const prevInjector = setCurrentInjector(injector);\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n return fn();\n } finally {\n setCurrentInjector(prevInjector);\n ngDevMode && setInjectorProfilerContext(prevInjectorProfilerContext);\n setInjectImplementation(previousInjectImplementation);\n }\n}\n/**\n * Whether the current stack frame is inside an injection context.\n */\nfunction isInInjectionContext() {\n return getInjectImplementation() !== undefined || getCurrentInjector() != null;\n}\n/**\n * Asserts that the current stack frame is within an [injection\n * context](guide/dependency-injection-context) and has access to `inject`.\n *\n * @param debugFn a reference to the function making the assertion (used for the error message).\n *\n * @publicApi\n */\nfunction assertInInjectionContext(debugFn) {\n // Taking a `Function` instead of a string name here prevents the unminified name of the function\n // from being retained in the bundle regardless of minification.\n if (!isInInjectionContext()) {\n throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode && debugFn.name + '() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`');\n }\n}\nvar FactoryTarget = /*#__PURE__*/function (FactoryTarget) {\n FactoryTarget[FactoryTarget[\"Directive\"] = 0] = \"Directive\";\n FactoryTarget[FactoryTarget[\"Component\"] = 1] = \"Component\";\n FactoryTarget[FactoryTarget[\"Injectable\"] = 2] = \"Injectable\";\n FactoryTarget[FactoryTarget[\"Pipe\"] = 3] = \"Pipe\";\n FactoryTarget[FactoryTarget[\"NgModule\"] = 4] = \"NgModule\";\n return FactoryTarget;\n}(FactoryTarget || {});\nvar R3TemplateDependencyKind = /*#__PURE__*/function (R3TemplateDependencyKind) {\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"Directive\"] = 0] = \"Directive\";\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"Pipe\"] = 1] = \"Pipe\";\n R3TemplateDependencyKind[R3TemplateDependencyKind[\"NgModule\"] = 2] = \"NgModule\";\n return R3TemplateDependencyKind;\n}(R3TemplateDependencyKind || {});\nvar ViewEncapsulation = /*#__PURE__*/function (ViewEncapsulation) {\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\n // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\n ViewEncapsulation[ViewEncapsulation[\"ShadowDom\"] = 3] = \"ShadowDom\";\n return ViewEncapsulation;\n}(ViewEncapsulation || {});\nfunction getCompilerFacade(request) {\n const globalNg = _global['ng'];\n if (globalNg && globalNg.ɵcompilerFacade) {\n return globalNg.ɵcompilerFacade;\n }\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n // Log the type as an error so that a developer can easily navigate to the type from the\n // console.\n console.error(`JIT compilation failed for ${request.kind}`, request.type);\n let message = `The ${request.kind} '${request.type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.\\n\\n`;\n if (request.usage === 1 /* JitCompilerUsage.PartialDeclaration */) {\n message += `The ${request.kind} is part of a library that has been partially compiled.\\n`;\n message += `However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.\\n`;\n message += '\\n';\n message += `Ideally, the library is processed using the Angular Linker to become fully AOT compiled.\\n`;\n } else {\n message += `JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.\\n`;\n }\n message += `Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',\\n`;\n message += `or manually provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.`;\n throw new Error(message);\n } else {\n throw new Error('JIT compiler unavailable');\n }\n}\n\n/**\n * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.\n *\n * This should be kept up to date with the public exports of @angular/core.\n */\nconst angularCoreDiEnv = {\n 'ɵɵdefineInjectable': ɵɵdefineInjectable,\n 'ɵɵdefineInjector': ɵɵdefineInjector,\n 'ɵɵinject': ɵɵinject,\n 'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,\n 'resolveForwardRef': resolveForwardRef\n};\n\n/**\n * @description\n *\n * Represents a type that a Component or other object is instances of.\n *\n * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by\n * the `MyCustomComponent` constructor function.\n *\n * @publicApi\n */\nconst Type = Function;\nfunction isType(v) {\n return typeof v === 'function';\n}\n\n/*\n * #########################\n * Attention: These Regular expressions have to hold even if the code is minified!\n * ##########################\n */\n/**\n * Regular expression that detects pass-through constructors for ES5 output. This Regex\n * intends to capture the common delegation pattern emitted by TypeScript and Babel. Also\n * it intends to capture the pattern where existing constructors have been downleveled from\n * ES2015 to ES5 using TypeScript w/ downlevel iteration. e.g.\n *\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, arguments) || this;\n * ```\n *\n * downleveled to ES5 with `downlevelIteration` for TypeScript < 4.2:\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, __spread(arguments)) || this;\n * ```\n *\n * or downleveled to ES5 with `downlevelIteration` for TypeScript >= 4.2:\n * ```\n * function MyClass() {\n * var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;\n * ```\n *\n * More details can be found in: https://github.com/angular/angular/issues/38453.\n */\nconst ES5_DELEGATE_CTOR = /^function\\s+\\S+\\(\\)\\s*{[\\s\\S]+\\.apply\\(this,\\s*(arguments|(?:[^()]+\\(\\[\\],)?[^()]+\\(arguments\\).*)\\)/;\n/** Regular expression that detects ES2015 classes which extend from other classes. */\nconst ES2015_INHERITED_CLASS = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes and\n * have an explicit constructor defined.\n */\nconst ES2015_INHERITED_CLASS_WITH_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(/;\n/**\n * Regular expression that detects ES2015 classes which extend from other classes\n * and inherit a constructor.\n */\nconst ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR = /^class\\s+[A-Za-z\\d$_]*\\s*extends\\s+[^{]+{[\\s\\S]*constructor\\s*\\(\\)\\s*{[^}]*super\\(\\.\\.\\.arguments\\)/;\n/**\n * Determine whether a stringified type is a class which delegates its constructor\n * to its parent.\n *\n * This is not trivial since compiled code can actually contain a constructor function\n * even if the original source code did not. For instance, when the child class contains\n * an initialized instance property.\n */\nfunction isDelegateCtor(typeStr) {\n return ES5_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS.test(typeStr) && !ES2015_INHERITED_CLASS_WITH_CTOR.test(typeStr);\n}\nclass ReflectionCapabilities {\n constructor(reflect) {\n this._reflect = reflect || _global['Reflect'];\n }\n factory(t) {\n return (...args) => new t(...args);\n }\n /** @internal */\n _zipTypesAndAnnotations(paramTypes, paramAnnotations) {\n let result;\n if (typeof paramTypes === 'undefined') {\n result = newArray(paramAnnotations.length);\n } else {\n result = newArray(paramTypes.length);\n }\n for (let i = 0; i < result.length; i++) {\n // TS outputs Object for parameters without types, while Traceur omits\n // the annotations. For now we preserve the Traceur behavior to aid\n // migration, but this can be revisited.\n if (typeof paramTypes === 'undefined') {\n result[i] = [];\n } else if (paramTypes[i] && paramTypes[i] != Object) {\n result[i] = [paramTypes[i]];\n } else {\n result[i] = [];\n }\n if (paramAnnotations && paramAnnotations[i] != null) {\n result[i] = result[i].concat(paramAnnotations[i]);\n }\n }\n return result;\n }\n _ownParameters(type, parentCtor) {\n const typeStr = type.toString();\n // If we have no decorators, we only have function.length as metadata.\n // In that case, to detect whether a child class declared an own constructor or not,\n // we need to look inside of that constructor to check whether it is\n // just calling the parent.\n // This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439\n // that sets 'design:paramtypes' to []\n // if a class inherits from another class but has no ctor declared itself.\n if (isDelegateCtor(typeStr)) {\n return null;\n }\n // Prefer the direct API.\n if (type.parameters && type.parameters !== parentCtor.parameters) {\n return type.parameters;\n }\n // API of tsickle for lowering decorators to properties on the class.\n const tsickleCtorParams = type.ctorParameters;\n if (tsickleCtorParams && tsickleCtorParams !== parentCtor.ctorParameters) {\n // Newer tsickle uses a function closure\n // Retain the non-function case for compatibility with older tsickle\n const ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;\n const paramTypes = ctorParameters.map(ctorParam => ctorParam && ctorParam.type);\n const paramAnnotations = ctorParameters.map(ctorParam => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n // API for metadata created by invoking the decorators.\n const paramAnnotations = type.hasOwnProperty(PARAMETERS) && type[PARAMETERS];\n const paramTypes = this._reflect && this._reflect.getOwnMetadata && this._reflect.getOwnMetadata('design:paramtypes', type);\n if (paramTypes || paramAnnotations) {\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\n }\n // If a class has no decorators, at least create metadata\n // based on function.length.\n // Note: We know that this is a real constructor as we checked\n // the content of the constructor above.\n return newArray(type.length);\n }\n parameters(type) {\n // Note: only report metadata if we have at least one class decorator\n // to stay in sync with the static reflector.\n if (!isType(type)) {\n return [];\n }\n const parentCtor = getParentCtor(type);\n let parameters = this._ownParameters(type, parentCtor);\n if (!parameters && parentCtor !== Object) {\n parameters = this.parameters(parentCtor);\n }\n return parameters || [];\n }\n _ownAnnotations(typeOrFunc, parentCtor) {\n // Prefer the direct API.\n if (typeOrFunc.annotations && typeOrFunc.annotations !== parentCtor.annotations) {\n let annotations = typeOrFunc.annotations;\n if (typeof annotations === 'function' && annotations.annotations) {\n annotations = annotations.annotations;\n }\n return annotations;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (typeOrFunc.decorators && typeOrFunc.decorators !== parentCtor.decorators) {\n return convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators);\n }\n // API for metadata created by invoking the decorators.\n if (typeOrFunc.hasOwnProperty(ANNOTATIONS)) {\n return typeOrFunc[ANNOTATIONS];\n }\n return null;\n }\n annotations(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return [];\n }\n const parentCtor = getParentCtor(typeOrFunc);\n const ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];\n const parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];\n return parentAnnotations.concat(ownAnnotations);\n }\n _ownPropMetadata(typeOrFunc, parentCtor) {\n // Prefer the direct API.\n if (typeOrFunc.propMetadata && typeOrFunc.propMetadata !== parentCtor.propMetadata) {\n let propMetadata = typeOrFunc.propMetadata;\n if (typeof propMetadata === 'function' && propMetadata.propMetadata) {\n propMetadata = propMetadata.propMetadata;\n }\n return propMetadata;\n }\n // API of tsickle for lowering decorators to properties on the class.\n if (typeOrFunc.propDecorators && typeOrFunc.propDecorators !== parentCtor.propDecorators) {\n const propDecorators = typeOrFunc.propDecorators;\n const propMetadata = {};\n Object.keys(propDecorators).forEach(prop => {\n propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);\n });\n return propMetadata;\n }\n // API for metadata created by invoking the decorators.\n if (typeOrFunc.hasOwnProperty(PROP_METADATA)) {\n return typeOrFunc[PROP_METADATA];\n }\n return null;\n }\n propMetadata(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return {};\n }\n const parentCtor = getParentCtor(typeOrFunc);\n const propMetadata = {};\n if (parentCtor !== Object) {\n const parentPropMetadata = this.propMetadata(parentCtor);\n Object.keys(parentPropMetadata).forEach(propName => {\n propMetadata[propName] = parentPropMetadata[propName];\n });\n }\n const ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);\n if (ownPropMetadata) {\n Object.keys(ownPropMetadata).forEach(propName => {\n const decorators = [];\n if (propMetadata.hasOwnProperty(propName)) {\n decorators.push(...propMetadata[propName]);\n }\n decorators.push(...ownPropMetadata[propName]);\n propMetadata[propName] = decorators;\n });\n }\n return propMetadata;\n }\n ownPropMetadata(typeOrFunc) {\n if (!isType(typeOrFunc)) {\n return {};\n }\n return this._ownPropMetadata(typeOrFunc, getParentCtor(typeOrFunc)) || {};\n }\n hasLifecycleHook(type, lcProperty) {\n return type instanceof Type && lcProperty in type.prototype;\n }\n}\nfunction convertTsickleDecoratorIntoMetadata(decoratorInvocations) {\n if (!decoratorInvocations) {\n return [];\n }\n return decoratorInvocations.map(decoratorInvocation => {\n const decoratorType = decoratorInvocation.type;\n const annotationCls = decoratorType.annotationCls;\n const annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];\n return new annotationCls(...annotationArgs);\n });\n}\nfunction getParentCtor(ctor) {\n const parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;\n const parentCtor = parentProto ? parentProto.constructor : null;\n // Note: We always use `Object` as the null value\n // to simplify checking later on.\n return parentCtor || Object;\n}\n\n// Below are constants for LView indices to help us look up LView members\n// without having to remember the specific indices.\n// Uglify will inline these when minifying so there shouldn't be a cost.\nconst HOST = 0;\nconst TVIEW = 1;\n// Shared with LContainer\nconst FLAGS = 2;\nconst PARENT = 3;\nconst NEXT = 4;\nconst T_HOST = 5;\n// End shared with LContainer\nconst HYDRATION = 6;\nconst CLEANUP = 7;\nconst CONTEXT = 8;\nconst INJECTOR = 9;\nconst ENVIRONMENT = 10;\nconst RENDERER = 11;\nconst CHILD_HEAD = 12;\nconst CHILD_TAIL = 13;\n// FIXME(misko): Investigate if the three declarations aren't all same thing.\nconst DECLARATION_VIEW = 14;\nconst DECLARATION_COMPONENT_VIEW = 15;\nconst DECLARATION_LCONTAINER = 16;\nconst PREORDER_HOOK_FLAGS = 17;\nconst QUERIES = 18;\nconst ID = 19;\nconst EMBEDDED_VIEW_INJECTOR = 20;\nconst ON_DESTROY_HOOKS = 21;\nconst EFFECTS_TO_SCHEDULE = 22;\nconst REACTIVE_TEMPLATE_CONSUMER = 23;\n/**\n * Size of LView's header. Necessary to adjust for it when setting slots.\n *\n * IMPORTANT: `HEADER_OFFSET` should only be referred to the in the `ɵɵ*` instructions to translate\n * instruction index into `LView` index. All other indexes should be in the `LView` index space and\n * there should be no need to refer to `HEADER_OFFSET` anywhere else.\n */\nconst HEADER_OFFSET = 25;\n\n/**\n * Special location which allows easy identification of type. If we have an array which was\n * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is\n * `LContainer`.\n */\nconst TYPE = 1;\n/**\n * Below are constants for LContainer indices to help us look up LContainer members\n * without having to remember the specific indices.\n * Uglify will inline these when minifying so there shouldn't be a cost.\n */\n// FLAGS, PARENT, NEXT, and T_HOST are indices 2, 3, 4, and 5\n// As we already have these constants in LView, we don't need to re-create them.\nconst DEHYDRATED_VIEWS = 6;\nconst NATIVE = 7;\nconst VIEW_REFS = 8;\nconst MOVED_VIEWS = 9;\n/**\n * Size of LContainer's header. Represents the index after which all views in the\n * container will be inserted. We need to keep a record of current views so we know\n * which views are already in the DOM (and don't need to be re-added) and so we can\n * remove views from the DOM when they are no longer required.\n */\nconst CONTAINER_HEADER_OFFSET = 10;\n/** Flags associated with an LContainer (saved in LContainer[FLAGS]) */\nvar LContainerFlags = /*#__PURE__*/function (LContainerFlags) {\n LContainerFlags[LContainerFlags[\"None\"] = 0] = \"None\";\n /**\n * Flag to signify that this `LContainer` may have transplanted views which need to be change\n * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.\n *\n * This flag, once set, is never unset for the `LContainer`.\n */\n LContainerFlags[LContainerFlags[\"HasTransplantedViews\"] = 2] = \"HasTransplantedViews\";\n return LContainerFlags;\n}(LContainerFlags || {});\n/**\n * True if `value` is `LView`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLView(value) {\n return Array.isArray(value) && typeof value[TYPE] === 'object';\n}\n/**\n * True if `value` is `LContainer`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction isLContainer(value) {\n return Array.isArray(value) && value[TYPE] === true;\n}\nfunction isContentQueryHost(tNode) {\n return (tNode.flags & 4 /* TNodeFlags.hasContentQuery */) !== 0;\n}\nfunction isComponentHost(tNode) {\n return tNode.componentOffset > -1;\n}\nfunction isDirectiveHost(tNode) {\n return (tNode.flags & 1 /* TNodeFlags.isDirectiveHost */) === 1 /* TNodeFlags.isDirectiveHost */;\n}\nfunction isComponentDef(def) {\n return !!def.template;\n}\nfunction isRootView(target) {\n return (target[FLAGS] & 512 /* LViewFlags.IsRoot */) !== 0;\n}\nfunction isProjectionTNode(tNode) {\n return (tNode.type & 16 /* TNodeType.Projection */) === 16 /* TNodeType.Projection */;\n}\nfunction hasI18n(lView) {\n return (lView[FLAGS] & 32 /* LViewFlags.HasI18n */) === 32 /* LViewFlags.HasI18n */;\n}\nfunction isDestroyed(lView) {\n return (lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */;\n}\n\n// [Assert functions do not constraint type when they are guarded by a truthy\n// expression.](https://github.com/microsoft/TypeScript/issues/37295)\nfunction assertTNodeForLView(tNode, lView) {\n assertTNodeForTView(tNode, lView[TVIEW]);\n}\nfunction assertTNodeForTView(tNode, tView) {\n assertTNode(tNode);\n const tData = tView.data;\n for (let i = HEADER_OFFSET; i < tData.length; i++) {\n if (tData[i] === tNode) {\n return;\n }\n }\n throwError('This TNode does not belong to this TView.');\n}\nfunction assertTNode(tNode) {\n assertDefined(tNode, 'TNode must be defined');\n if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {\n throwError('Not of type TNode, got: ' + tNode);\n }\n}\nfunction assertTIcu(tIcu) {\n assertDefined(tIcu, 'Expected TIcu to be defined');\n if (!(typeof tIcu.currentCaseLViewIndex === 'number')) {\n throwError('Object is not of TIcu type.');\n }\n}\nfunction assertComponentType(actual, msg = 'Type passed in is not ComponentType, it does not have \\'ɵcmp\\' property.') {\n if (!getComponentDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertNgModuleType(actual, msg = 'Type passed in is not NgModuleType, it does not have \\'ɵmod\\' property.') {\n if (!getNgModuleDef(actual)) {\n throwError(msg);\n }\n}\nfunction assertCurrentTNodeIsParent(isParent) {\n assertEqual(isParent, true, 'currentTNode should be a parent');\n}\nfunction assertHasParent(tNode) {\n assertDefined(tNode, 'currentTNode should exist!');\n assertDefined(tNode.parent, 'currentTNode should have a parent');\n}\nfunction assertLContainer(value) {\n assertDefined(value, 'LContainer must be defined');\n assertEqual(isLContainer(value), true, 'Expecting LContainer');\n}\nfunction assertLViewOrUndefined(value) {\n value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');\n}\nfunction assertLView(value) {\n assertDefined(value, 'LView must be defined');\n assertEqual(isLView(value), true, 'Expecting LView');\n}\nfunction assertFirstCreatePass(tView, errMessage) {\n assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');\n}\nfunction assertFirstUpdatePass(tView, errMessage) {\n assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');\n}\n/**\n * This is a basic sanity check that an object is probably a directive def. DirectiveDef is\n * an interface, so we can't do a direct instanceof check.\n */\nfunction assertDirectiveDef(obj) {\n if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {\n throwError(`Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`);\n }\n}\nfunction assertIndexInDeclRange(tView, index) {\n assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);\n}\nfunction assertIndexInExpandoRange(lView, index) {\n const tView = lView[1];\n assertBetween(tView.expandoStartIndex, lView.length, index);\n}\nfunction assertBetween(lower, upper, index) {\n if (!(lower <= index && index < upper)) {\n throwError(`Index out of range (expecting ${lower} <= ${index} < ${upper})`);\n }\n}\nfunction assertProjectionSlots(lView, errMessage) {\n assertDefined(lView[DECLARATION_COMPONENT_VIEW], 'Component views should exist.');\n assertDefined(lView[DECLARATION_COMPONENT_VIEW][T_HOST].projection, errMessage || 'Components with projection nodes () must have projection slots defined.');\n}\nfunction assertParentView(lView, errMessage) {\n assertDefined(lView, errMessage || 'Component views should always have a parent view (component\\'s host view)');\n}\nfunction assertNoDuplicateDirectives(directives) {\n // The array needs at least two elements in order to have duplicates.\n if (directives.length < 2) {\n return;\n }\n const seenDirectives = new Set();\n for (const current of directives) {\n if (seenDirectives.has(current)) {\n throw new RuntimeError(309 /* RuntimeErrorCode.DUPLICATE_DIRECTIVE */, `Directive ${current.type.name} matches multiple times on the same element. ` + `Directives can only match an element once.`);\n }\n seenDirectives.add(current);\n }\n}\n/**\n * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a\n * NodeInjector data structure.\n *\n * @param lView `LView` which should be checked.\n * @param injectorIndex index into the `LView` where the `NodeInjector` is expected.\n */\nfunction assertNodeInjector(lView, injectorIndex) {\n assertIndexInExpandoRange(lView, injectorIndex);\n assertIndexInExpandoRange(lView, injectorIndex + 8 /* NodeInjectorOffset.PARENT */);\n assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');\n assertNumber(lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */], 'injectorIndex should point to parent injector');\n}\n\n/**\n * Represents a basic change from a previous to a new value for a single\n * property on a directive instance. Passed as a value in a\n * {@link SimpleChanges} object to the `ngOnChanges` hook.\n *\n * @see {@link OnChanges}\n *\n * @publicApi\n */\nclass SimpleChange {\n constructor(previousValue, currentValue, firstChange) {\n this.previousValue = previousValue;\n this.currentValue = currentValue;\n this.firstChange = firstChange;\n }\n /**\n * Check whether the new value is the first value assigned.\n */\n isFirstChange() {\n return this.firstChange;\n }\n}\nfunction applyValueToInputField(instance, inputSignalNode, privateName, value) {\n if (inputSignalNode !== null) {\n inputSignalNode.applyValueToInputSignal(inputSignalNode, value);\n } else {\n instance[privateName] = value;\n }\n}\n\n/**\n * The NgOnChangesFeature decorates a component with support for the ngOnChanges\n * lifecycle hook, so it should be included in any component that implements\n * that hook.\n *\n * If the component or directive uses inheritance, the NgOnChangesFeature MUST\n * be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise\n * inherited properties will not be propagated to the ngOnChanges lifecycle\n * hook.\n *\n * Example usage:\n *\n * ```\n * static ɵcmp = defineComponent({\n * ...\n * inputs: {name: 'publicName'},\n * features: [NgOnChangesFeature]\n * });\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵNgOnChangesFeature() {\n return NgOnChangesFeatureImpl;\n}\nfunction NgOnChangesFeatureImpl(definition) {\n if (definition.type.prototype.ngOnChanges) {\n definition.setInput = ngOnChangesSetInput;\n }\n return rememberChangeHistoryAndInvokeOnChangesHook;\n}\n// This option ensures that the ngOnChanges lifecycle hook will be inherited\n// from superclasses (in InheritDefinitionFeature).\n/** @nocollapse */\n// tslint:disable-next-line:no-toplevel-property-access\nɵɵNgOnChangesFeature.ngInherit = true;\n/**\n * This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate\n * `ngOnChanges`.\n *\n * The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are\n * found it invokes `ngOnChanges` on the component instance.\n *\n * @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`,\n * it is guaranteed to be called with component instance.\n */\nfunction rememberChangeHistoryAndInvokeOnChangesHook() {\n const simpleChangesStore = getSimpleChangesStore(this);\n const current = simpleChangesStore?.current;\n if (current) {\n const previous = simpleChangesStore.previous;\n if (previous === EMPTY_OBJ) {\n simpleChangesStore.previous = current;\n } else {\n // New changes are copied to the previous store, so that we don't lose history for inputs\n // which were not changed this time\n for (let key in current) {\n previous[key] = current[key];\n }\n }\n simpleChangesStore.current = null;\n this.ngOnChanges(current);\n }\n}\nfunction ngOnChangesSetInput(instance, inputSignalNode, value, publicName, privateName) {\n const declaredName = this.declaredInputs[publicName];\n ngDevMode && assertString(declaredName, 'Name of input in ngOnChanges has to be a string');\n const simpleChangesStore = getSimpleChangesStore(instance) || setSimpleChangesStore(instance, {\n previous: EMPTY_OBJ,\n current: null\n });\n const current = simpleChangesStore.current || (simpleChangesStore.current = {});\n const previous = simpleChangesStore.previous;\n const previousChange = previous[declaredName];\n current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ);\n applyValueToInputField(instance, inputSignalNode, privateName, value);\n}\nconst SIMPLE_CHANGES_STORE = '__ngSimpleChanges__';\nfunction getSimpleChangesStore(instance) {\n return instance[SIMPLE_CHANGES_STORE] || null;\n}\nfunction setSimpleChangesStore(instance, store) {\n return instance[SIMPLE_CHANGES_STORE] = store;\n}\nlet profilerCallback = null;\n/**\n * Sets the callback function which will be invoked before and after performing certain actions at\n * runtime (for example, before and after running change detection).\n *\n * Warning: this function is *INTERNAL* and should not be relied upon in application's code.\n * The contract of the function might be changed in any release and/or the function can be removed\n * completely.\n *\n * @param profiler function provided by the caller or null value to disable profiling.\n */\nconst setProfiler = profiler => {\n profilerCallback = profiler;\n};\n/**\n * Profiler function which wraps user code executed by the runtime.\n *\n * @param event ProfilerEvent corresponding to the execution context\n * @param instance component instance\n * @param hookOrListener lifecycle hook function or output listener. The value depends on the\n * execution context\n * @returns\n */\nconst profiler = function (event, instance, hookOrListener) {\n if (profilerCallback != null /* both `null` and `undefined` */) {\n profilerCallback(event, instance, hookOrListener);\n }\n};\nconst SVG_NAMESPACE = 'svg';\nconst MATH_ML_NAMESPACE = 'math';\n\n// TODO(atscott): flip default internally ASAP and externally for v18 (#52928)\nlet _ensureDirtyViewsAreAlwaysReachable = false;\nfunction getEnsureDirtyViewsAreAlwaysReachable() {\n return _ensureDirtyViewsAreAlwaysReachable;\n}\nfunction setEnsureDirtyViewsAreAlwaysReachable(v) {\n _ensureDirtyViewsAreAlwaysReachable = v;\n}\n\n/**\n * For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)\n * in same location in `LView`. This is because we don't want to pre-allocate space for it\n * because the storage is sparse. This file contains utilities for dealing with such data types.\n *\n * How do we know what is stored at a given location in `LView`.\n * - `Array.isArray(value) === false` => `RNode` (The normal storage value)\n * - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.\n * - `typeof value[TYPE] === 'object'` => `LView`\n * - This happens when we have a component at a given location\n * - `typeof value[TYPE] === true` => `LContainer`\n * - This happens when we have `LContainer` binding at a given location.\n *\n *\n * NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.\n */\n/**\n * Returns `RNode`.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapRNode(value) {\n while (Array.isArray(value)) {\n value = value[HOST];\n }\n return value;\n}\n/**\n * Returns `LView` or `null` if not found.\n * @param value wrapped value of `RNode`, `LView`, `LContainer`\n */\nfunction unwrapLView(value) {\n while (Array.isArray(value)) {\n // This check is same as `isLView()` but we don't call at as we don't want to call\n // `Array.isArray()` twice and give JITer more work for inlining.\n if (typeof value[TYPE] === 'object') return value;\n value = value[HOST];\n }\n return null;\n}\n/**\n * Retrieves an element value from the provided `viewData`, by unwrapping\n * from any containers, component views, or style contexts.\n */\nfunction getNativeByIndex(index, lView) {\n ngDevMode && assertIndexInRange(lView, index);\n ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');\n return unwrapRNode(lView[index]);\n}\n/**\n * Retrieve an `RNode` for a given `TNode` and `LView`.\n *\n * This function guarantees in dev mode to retrieve a non-null `RNode`.\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNode(tNode, lView) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n ngDevMode && assertIndexInRange(lView, tNode.index);\n const node = unwrapRNode(lView[tNode.index]);\n return node;\n}\n/**\n * Retrieve an `RNode` or `null` for a given `TNode` and `LView`.\n *\n * Some `TNode`s don't have associated `RNode`s. For example `Projection`\n *\n * @param tNode\n * @param lView\n */\nfunction getNativeByTNodeOrNull(tNode, lView) {\n const index = tNode === null ? -1 : tNode.index;\n if (index !== -1) {\n ngDevMode && assertTNodeForLView(tNode, lView);\n const node = unwrapRNode(lView[index]);\n return node;\n }\n return null;\n}\n// fixme(misko): The return Type should be `TNode|null`\nfunction getTNode(tView, index) {\n ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');\n ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');\n const tNode = tView.data[index];\n ngDevMode && tNode !== null && assertTNode(tNode);\n return tNode;\n}\n/** Retrieves a value from any `LView` or `TData`. */\nfunction load(view, index) {\n ngDevMode && assertIndexInRange(view, index);\n return view[index];\n}\nfunction getComponentLViewByIndex(nodeIndex, hostView) {\n // Could be an LView or an LContainer. If LContainer, unwrap to find LView.\n ngDevMode && assertIndexInRange(hostView, nodeIndex);\n const slotValue = hostView[nodeIndex];\n const lView = isLView(slotValue) ? slotValue : slotValue[HOST];\n return lView;\n}\n/** Checks whether a given view is in creation mode */\nfunction isCreationMode(view) {\n return (view[FLAGS] & 4 /* LViewFlags.CreationMode */) === 4 /* LViewFlags.CreationMode */;\n}\n/**\n * Returns a boolean for whether the view is attached to the change detection tree.\n *\n * Note: This determines whether a view should be checked, not whether it's inserted\n * into a container. For that, you'll want `viewAttachedToContainer` below.\n */\nfunction viewAttachedToChangeDetector(view) {\n return (view[FLAGS] & 128 /* LViewFlags.Attached */) === 128 /* LViewFlags.Attached */;\n}\n/** Returns a boolean for whether the view is attached to a container. */\nfunction viewAttachedToContainer(view) {\n return isLContainer(view[PARENT]);\n}\nfunction getConstant(consts, index) {\n if (index === null || index === undefined) return null;\n ngDevMode && assertIndexInRange(consts, index);\n return consts[index];\n}\n/**\n * Resets the pre-order hook flags of the view.\n * @param lView the LView on which the flags are reset\n */\nfunction resetPreOrderHookFlags(lView) {\n lView[PREORDER_HOOK_FLAGS] = 0;\n}\n/**\n * Adds the `RefreshView` flag from the lView and updates HAS_CHILD_VIEWS_TO_REFRESH flag of\n * parents.\n */\nfunction markViewForRefresh(lView) {\n if (lView[FLAGS] & 1024 /* LViewFlags.RefreshView */) {\n return;\n }\n lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n if (viewAttachedToChangeDetector(lView)) {\n markAncestorsForTraversal(lView);\n }\n}\n/**\n * Walks up the LView hierarchy.\n * @param nestingLevel Number of times to walk up in hierarchy.\n * @param currentView View from which to start the lookup.\n */\nfunction walkUpViews(nestingLevel, currentView) {\n while (nestingLevel > 0) {\n ngDevMode && assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');\n currentView = currentView[DECLARATION_VIEW];\n nestingLevel--;\n }\n return currentView;\n}\nfunction requiresRefreshOrTraversal(lView) {\n return !!(lView[FLAGS] & (1024 /* LViewFlags.RefreshView */ | 8192 /* LViewFlags.HasChildViewsToRefresh */) || lView[REACTIVE_TEMPLATE_CONSUMER]?.dirty);\n}\n/**\n * Updates the `HasChildViewsToRefresh` flag on the parents of the `LView` as well as the\n * parents above.\n */\nfunction updateAncestorTraversalFlagsOnAttach(lView) {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify(1 /* NotificationType.AfterRenderHooks */);\n // TODO(atscott): Simplify if...else cases once getEnsureDirtyViewsAreAlwaysReachable is always\n // `true`. When we attach a view that's marked `Dirty`, we should ensure that it is reached during\n // the next CD traversal so we add the `RefreshView` flag and mark ancestors accordingly.\n if (requiresRefreshOrTraversal(lView)) {\n markAncestorsForTraversal(lView);\n } else if (lView[FLAGS] & 64 /* LViewFlags.Dirty */) {\n if (getEnsureDirtyViewsAreAlwaysReachable()) {\n lView[FLAGS] |= 1024 /* LViewFlags.RefreshView */;\n markAncestorsForTraversal(lView);\n } else {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify();\n }\n }\n}\n/**\n * Ensures views above the given `lView` are traversed during change detection even when they are\n * not dirty.\n *\n * This is done by setting the `HAS_CHILD_VIEWS_TO_REFRESH` flag up to the root, stopping when the\n * flag is already `true` or the `lView` is detached.\n */\nfunction markAncestorsForTraversal(lView) {\n lView[ENVIRONMENT].changeDetectionScheduler?.notify();\n let parent = getLViewParent(lView);\n while (parent !== null) {\n // We stop adding markers to the ancestors once we reach one that already has the marker. This\n // is to avoid needlessly traversing all the way to the root when the marker already exists.\n if (parent[FLAGS] & 8192 /* LViewFlags.HasChildViewsToRefresh */) {\n break;\n }\n parent[FLAGS] |= 8192 /* LViewFlags.HasChildViewsToRefresh */;\n if (!viewAttachedToChangeDetector(parent)) {\n break;\n }\n parent = getLViewParent(parent);\n }\n}\n/**\n * Stores a LView-specific destroy callback.\n */\nfunction storeLViewOnDestroy(lView, onDestroyCallback) {\n if ((lView[FLAGS] & 256 /* LViewFlags.Destroyed */) === 256 /* LViewFlags.Destroyed */) {\n throw new RuntimeError(911 /* RuntimeErrorCode.VIEW_ALREADY_DESTROYED */, ngDevMode && 'View has already been destroyed.');\n }\n if (lView[ON_DESTROY_HOOKS] === null) {\n lView[ON_DESTROY_HOOKS] = [];\n }\n lView[ON_DESTROY_HOOKS].push(onDestroyCallback);\n}\n/**\n * Removes previously registered LView-specific destroy callback.\n */\nfunction removeLViewOnDestroy(lView, onDestroyCallback) {\n if (lView[ON_DESTROY_HOOKS] === null) return;\n const destroyCBIdx = lView[ON_DESTROY_HOOKS].indexOf(onDestroyCallback);\n if (destroyCBIdx !== -1) {\n lView[ON_DESTROY_HOOKS].splice(destroyCBIdx, 1);\n }\n}\n/**\n * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of\n * that LContainer, which is an LView\n * @param lView the lView whose parent to get\n */\nfunction getLViewParent(lView) {\n ngDevMode && assertLView(lView);\n const parent = lView[PARENT];\n return isLContainer(parent) ? parent[PARENT] : parent;\n}\nconst instructionState = {\n lFrame: /*#__PURE__*/createLFrame(null),\n bindingsEnabled: true,\n skipHydrationRootTNode: null\n};\n/**\n * In this mode, any changes in bindings will throw an ExpressionChangedAfterChecked error.\n *\n * Necessary to support ChangeDetectorRef.checkNoChanges().\n *\n * The `checkNoChanges` function is invoked only in ngDevMode=true and verifies that no unintended\n * changes exist in the change detector or its children.\n */\nlet _isInCheckNoChangesMode = false;\n/**\n * Returns true if the instruction state stack is empty.\n *\n * Intended to be called from tests only (tree shaken otherwise).\n */\nfunction specOnlyIsInstructionStateEmpty() {\n return instructionState.lFrame.parent === null;\n}\nfunction getElementDepthCount() {\n return instructionState.lFrame.elementDepthCount;\n}\nfunction increaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount++;\n}\nfunction decreaseElementDepthCount() {\n instructionState.lFrame.elementDepthCount--;\n}\nfunction getBindingsEnabled() {\n return instructionState.bindingsEnabled;\n}\n/**\n * Returns true if currently inside a skip hydration block.\n * @returns boolean\n */\nfunction isInSkipHydrationBlock$1() {\n return instructionState.skipHydrationRootTNode !== null;\n}\n/**\n * Returns true if this is the root TNode of the skip hydration block.\n * @param tNode the current TNode\n * @returns boolean\n */\nfunction isSkipHydrationRootTNode(tNode) {\n return instructionState.skipHydrationRootTNode === tNode;\n}\n/**\n * Enables directive matching on elements.\n *\n * * Example:\n * ```\n * \n * Should match component / directive.\n * \n *
\n * \n * \n * Should not match component / directive because we are in ngNonBindable.\n * \n * \n *
\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵenableBindings() {\n instructionState.bindingsEnabled = true;\n}\n/**\n * Sets a flag to specify that the TNode is in a skip hydration block.\n * @param tNode the current TNode\n */\nfunction enterSkipHydrationBlock(tNode) {\n instructionState.skipHydrationRootTNode = tNode;\n}\n/**\n * Disables directive matching on element.\n *\n * * Example:\n * ```\n * \n * Should match component / directive.\n * \n *
\n * \n * \n * Should not match component / directive because we are in ngNonBindable.\n * \n * \n *
\n * ```\n *\n * @codeGenApi\n */\nfunction ɵɵdisableBindings() {\n instructionState.bindingsEnabled = false;\n}\n/**\n * Clears the root skip hydration node when leaving a skip hydration block.\n */\nfunction leaveSkipHydrationBlock() {\n instructionState.skipHydrationRootTNode = null;\n}\n/**\n * Return the current `LView`.\n */\nfunction getLView() {\n return instructionState.lFrame.lView;\n}\n/**\n * Return the current `TView`.\n */\nfunction getTView() {\n return instructionState.lFrame.tView;\n}\n/**\n * Restores `contextViewData` to the given OpaqueViewState instance.\n *\n * Used in conjunction with the getCurrentView() instruction to save a snapshot\n * of the current view and restore it when listeners are invoked. This allows\n * walking the declaration view tree in listeners to get vars from parent views.\n *\n * @param viewToRestore The OpaqueViewState instance to restore.\n * @returns Context of the restored OpaqueViewState instance.\n *\n * @codeGenApi\n */\nfunction ɵɵrestoreView(viewToRestore) {\n instructionState.lFrame.contextLView = viewToRestore;\n return viewToRestore[CONTEXT];\n}\n/**\n * Clears the view set in `ɵɵrestoreView` from memory. Returns the passed in\n * value so that it can be used as a return value of an instruction.\n *\n * @codeGenApi\n */\nfunction ɵɵresetView(value) {\n instructionState.lFrame.contextLView = null;\n return value;\n}\nfunction getCurrentTNode() {\n let currentTNode = getCurrentTNodePlaceholderOk();\n while (currentTNode !== null && currentTNode.type === 64 /* TNodeType.Placeholder */) {\n currentTNode = currentTNode.parent;\n }\n return currentTNode;\n}\nfunction getCurrentTNodePlaceholderOk() {\n return instructionState.lFrame.currentTNode;\n}\nfunction getCurrentParentTNode() {\n const lFrame = instructionState.lFrame;\n const currentTNode = lFrame.currentTNode;\n return lFrame.isParent ? currentTNode : currentTNode.parent;\n}\nfunction setCurrentTNode(tNode, isParent) {\n ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);\n const lFrame = instructionState.lFrame;\n lFrame.currentTNode = tNode;\n lFrame.isParent = isParent;\n}\nfunction isCurrentTNodeParent() {\n return instructionState.lFrame.isParent;\n}\nfunction setCurrentTNodeAsNotParent() {\n instructionState.lFrame.isParent = false;\n}\nfunction getContextLView() {\n const contextLView = instructionState.lFrame.contextLView;\n ngDevMode && assertDefined(contextLView, 'contextLView must be defined.');\n return contextLView;\n}\nfunction isInCheckNoChangesMode() {\n !ngDevMode && throwError('Must never be called in production mode');\n return _isInCheckNoChangesMode;\n}\nfunction setIsInCheckNoChangesMode(mode) {\n !ngDevMode && throwError('Must never be called in production mode');\n _isInCheckNoChangesMode = mode;\n}\n// top level variables should not be exported for performance reasons (PERF_NOTES.md)\nfunction getBindingRoot() {\n const lFrame = instructionState.lFrame;\n let index = lFrame.bindingRootIndex;\n if (index === -1) {\n index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;\n }\n return index;\n}\nfunction getBindingIndex() {\n return instructionState.lFrame.bindingIndex;\n}\nfunction setBindingIndex(value) {\n return instructionState.lFrame.bindingIndex = value;\n}\nfunction nextBindingIndex() {\n return instructionState.lFrame.bindingIndex++;\n}\nfunction incrementBindingIndex(count) {\n const lFrame = instructionState.lFrame;\n const index = lFrame.bindingIndex;\n lFrame.bindingIndex = lFrame.bindingIndex + count;\n return index;\n}\nfunction isInI18nBlock() {\n return instructionState.lFrame.inI18n;\n}\nfunction setInI18nBlock(isInI18nBlock) {\n instructionState.lFrame.inI18n = isInI18nBlock;\n}\n/**\n * Set a new binding root index so that host template functions can execute.\n *\n * Bindings inside the host template are 0 index. But because we don't know ahead of time\n * how many host bindings we have we can't pre-compute them. For this reason they are all\n * 0 index and we just shift the root so that they match next available location in the LView.\n *\n * @param bindingRootIndex Root index for `hostBindings`\n * @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive\n * whose `hostBindings` are being processed.\n */\nfunction setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {\n const lFrame = instructionState.lFrame;\n lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;\n setCurrentDirectiveIndex(currentDirectiveIndex);\n}\n/**\n * When host binding is executing this points to the directive index.\n * `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`\n * `LView[getCurrentDirectiveIndex()]` is directive instance.\n */\nfunction getCurrentDirectiveIndex() {\n return instructionState.lFrame.currentDirectiveIndex;\n}\n/**\n * Sets an index of a directive whose `hostBindings` are being processed.\n *\n * @param currentDirectiveIndex `TData` index where current directive instance can be found.\n */\nfunction setCurrentDirectiveIndex(currentDirectiveIndex) {\n instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex;\n}\n/**\n * Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being\n * executed.\n *\n * @param tData Current `TData` where the `DirectiveDef` will be looked up at.\n */\nfunction getCurrentDirectiveDef(tData) {\n const currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;\n return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex];\n}\nfunction getCurrentQueryIndex() {\n return instructionState.lFrame.currentQueryIndex;\n}\nfunction setCurrentQueryIndex(value) {\n instructionState.lFrame.currentQueryIndex = value;\n}\n/**\n * Returns a `TNode` of the location where the current `LView` is declared at.\n *\n * @param lView an `LView` that we want to find parent `TNode` for.\n */\nfunction getDeclarationTNode(lView) {\n const tView = lView[TVIEW];\n // Return the declaration parent for embedded views\n if (tView.type === 2 /* TViewType.Embedded */) {\n ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n return tView.declTNode;\n }\n // Components don't have `TView.declTNode` because each instance of component could be\n // inserted in different location, hence `TView.declTNode` is meaningless.\n // Falling back to `T_HOST` in case we cross component boundary.\n if (tView.type === 1 /* TViewType.Component */) {\n return lView[T_HOST];\n }\n // Remaining TNode type is `TViewType.Root` which doesn't have a parent TNode.\n return null;\n}\n/**\n * This is a light weight version of the `enterView` which is needed by the DI system.\n *\n * @param lView `LView` location of the DI context.\n * @param tNode `TNode` for DI context\n * @param flags DI context flags. if `SkipSelf` flag is set than we walk up the declaration\n * tree from `tNode` until we find parent declared `TElementNode`.\n * @returns `true` if we have successfully entered DI associated with `tNode` (or with declared\n * `TNode` if `flags` has `SkipSelf`). Failing to enter DI implies that no associated\n * `NodeInjector` can be found and we should instead use `ModuleInjector`.\n * - If `true` than this call must be fallowed by `leaveDI`\n * - If `false` than this call failed and we should NOT call `leaveDI`\n */\nfunction enterDI(lView, tNode, flags) {\n ngDevMode && assertLViewOrUndefined(lView);\n if (flags & InjectFlags.SkipSelf) {\n ngDevMode && assertTNodeForTView(tNode, lView[TVIEW]);\n let parentTNode = tNode;\n let parentLView = lView;\n while (true) {\n ngDevMode && assertDefined(parentTNode, 'Parent TNode should be defined');\n parentTNode = parentTNode.parent;\n if (parentTNode === null && !(flags & InjectFlags.Host)) {\n parentTNode = getDeclarationTNode(parentLView);\n if (parentTNode === null) break;\n // In this case, a parent exists and is definitely an element. So it will definitely\n // have an existing lView as the declaration view, which is why we can assume it's defined.\n ngDevMode && assertDefined(parentLView, 'Parent LView should be defined');\n parentLView = parentLView[DECLARATION_VIEW];\n // In Ivy there are Comment nodes that correspond to ngIf and NgFor embedded directives\n // We want to skip those and look only at Elements and ElementContainers to ensure\n // we're looking at true parent nodes, and not content or other types.\n if (parentTNode.type & (2 /* TNodeType.Element */ | 8 /* TNodeType.ElementContainer */)) {\n break;\n }\n } else {\n break;\n }\n }\n if (parentTNode === null) {\n // If we failed to find a parent TNode this means that we should use module injector.\n return false;\n } else {\n tNode = parentTNode;\n lView = parentLView;\n }\n }\n ngDevMode && assertTNodeForLView(tNode, lView);\n const lFrame = instructionState.lFrame = allocLFrame();\n lFrame.currentTNode = tNode;\n lFrame.lView = lView;\n return true;\n}\n/**\n * Swap the current lView with a new lView.\n *\n * For performance reasons we store the lView in the top level of the module.\n * This way we minimize the number of properties to read. Whenever a new view\n * is entered we have to store the lView for later, and when the view is\n * exited the state has to be restored\n *\n * @param newView New lView to become active\n * @returns the previously active lView;\n */\nfunction enterView(newView) {\n ngDevMode && assertNotEqual(newView[0], newView[1], '????');\n ngDevMode && assertLViewOrUndefined(newView);\n const newLFrame = allocLFrame();\n if (ngDevMode) {\n assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');\n assertEqual(newLFrame.lView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.tView, null, 'Expected clean LFrame');\n assertEqual(newLFrame.selectedIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');\n assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');\n assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');\n assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');\n }\n const tView = newView[TVIEW];\n instructionState.lFrame = newLFrame;\n ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView);\n newLFrame.currentTNode = tView.firstChild;\n newLFrame.lView = newView;\n newLFrame.tView = tView;\n newLFrame.contextLView = newView;\n newLFrame.bindingIndex = tView.bindingStartIndex;\n newLFrame.inI18n = false;\n}\n/**\n * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.\n */\nfunction allocLFrame() {\n const currentLFrame = instructionState.lFrame;\n const childLFrame = currentLFrame === null ? null : currentLFrame.child;\n const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;\n return newLFrame;\n}\nfunction createLFrame(parent) {\n const lFrame = {\n currentTNode: null,\n isParent: true,\n lView: null,\n tView: null,\n selectedIndex: -1,\n contextLView: null,\n elementDepthCount: 0,\n currentNamespace: null,\n currentDirectiveIndex: -1,\n bindingRootIndex: -1,\n bindingIndex: -1,\n currentQueryIndex: 0,\n parent: parent,\n child: null,\n inI18n: false\n };\n parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.\n return lFrame;\n}\n/**\n * A lightweight version of leave which is used with DI.\n *\n * This function only resets `currentTNode` and `LView` as those are the only properties\n * used with DI (`enterDI()`).\n *\n * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where\n * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.\n */\nfunction leaveViewLight() {\n const oldLFrame = instructionState.lFrame;\n instructionState.lFrame = oldLFrame.parent;\n oldLFrame.currentTNode = null;\n oldLFrame.lView = null;\n return oldLFrame;\n}\n/**\n * This is a lightweight version of the `leaveView` which is needed by the DI system.\n *\n * NOTE: this function is an alias so that we can change the type of the function to have `void`\n * return type.\n */\nconst leaveDI = leaveViewLight;\n/**\n * Leave the current `LView`\n *\n * This pops the `LFrame` with the associated `LView` from the stack.\n *\n * IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is\n * because for performance reasons we don't release `LFrame` but rather keep it for next use.\n */\nfunction leaveView() {\n const oldLFrame = leaveViewLight();\n oldLFrame.isParent = true;\n oldLFrame.tView = null;\n oldLFrame.selectedIndex = -1;\n oldLFrame.contextLView = null;\n oldLFrame.elementDepthCount = 0;\n oldLFrame.currentDirectiveIndex = -1;\n oldLFrame.currentNamespace = null;\n oldLFrame.bindingRootIndex = -1;\n oldLFrame.bindingIndex = -1;\n oldLFrame.currentQueryIndex = 0;\n}\nfunction nextContextImpl(level) {\n const contextLView = instructionState.lFrame.contextLView = walkUpViews(level, instructionState.lFrame.contextLView);\n return contextLView[CONTEXT];\n}\n/**\n * Gets the currently selected element index.\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n */\nfunction getSelectedIndex() {\n return instructionState.lFrame.selectedIndex;\n}\n/**\n * Sets the most recent index passed to {@link select}\n *\n * Used with {@link property} instruction (and more in the future) to identify the index in the\n * current `LView` to act on.\n *\n * (Note that if an \"exit function\" was set earlier (via `setElementExitFn()`) then that will be\n * run if and when the provided `index` value is different from the current selected index value.)\n */\nfunction setSelectedIndex(index) {\n ngDevMode && index !== -1 && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Index must be past HEADER_OFFSET (or -1).');\n ngDevMode && assertLessThan(index, instructionState.lFrame.lView.length, 'Can\\'t set index passed end of LView');\n instructionState.lFrame.selectedIndex = index;\n}\n/**\n * Gets the `tNode` that represents currently selected element.\n */\nfunction getSelectedTNode() {\n const lFrame = instructionState.lFrame;\n return getTNode(lFrame.tView, lFrame.selectedIndex);\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceSVG() {\n instructionState.lFrame.currentNamespace = SVG_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceMathML() {\n instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n *\n * @codeGenApi\n */\nfunction ɵɵnamespaceHTML() {\n namespaceHTMLInternal();\n}\n/**\n * Sets the namespace used to create elements to `null`, which forces element creation to use\n * `createElement` rather than `createElementNS`.\n */\nfunction namespaceHTMLInternal() {\n instructionState.lFrame.currentNamespace = null;\n}\nfunction getNamespace$1() {\n return instructionState.lFrame.currentNamespace;\n}\nlet _wasLastNodeCreated = true;\n/**\n * Retrieves a global flag that indicates whether the most recent DOM node\n * was created or hydrated.\n */\nfunction wasLastNodeCreated() {\n return _wasLastNodeCreated;\n}\n/**\n * Sets a global flag to indicate whether the most recent DOM node\n * was created or hydrated.\n */\nfunction lastNodeWasCreated(flag) {\n _wasLastNodeCreated = flag;\n}\n\n/**\n * Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`.\n *\n * Must be run *only* on the first template pass.\n *\n * Sets up the pre-order hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * @param directiveIndex The index of the directive in LView\n * @param directiveDef The definition containing the hooks to setup in tView\n * @param tView The current TView\n */\nfunction registerPreOrderHooks(directiveIndex, directiveDef, tView) {\n ngDevMode && assertFirstCreatePass(tView);\n const {\n ngOnChanges,\n ngOnInit,\n ngDoCheck\n } = directiveDef.type.prototype;\n if (ngOnChanges) {\n const wrappedOnChanges = NgOnChangesFeatureImpl(directiveDef);\n (tView.preOrderHooks ??= []).push(directiveIndex, wrappedOnChanges);\n (tView.preOrderCheckHooks ??= []).push(directiveIndex, wrappedOnChanges);\n }\n if (ngOnInit) {\n (tView.preOrderHooks ??= []).push(0 - directiveIndex, ngOnInit);\n }\n if (ngDoCheck) {\n (tView.preOrderHooks ??= []).push(directiveIndex, ngDoCheck);\n (tView.preOrderCheckHooks ??= []).push(directiveIndex, ngDoCheck);\n }\n}\n/**\n *\n * Loops through the directives on the provided `tNode` and queues hooks to be\n * run that are not initialization hooks.\n *\n * Should be executed during `elementEnd()` and similar to\n * preserve hook execution order. Content, view, and destroy hooks for projected\n * components and directives must be called *before* their hosts.\n *\n * Sets up the content, view, and destroy hooks on the provided `tView`,\n * see {@link HookData} for details about the data structure.\n *\n * NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up\n * separately at `elementStart`.\n *\n * @param tView The current TView\n * @param tNode The TNode whose directives are to be searched for hooks to queue\n */\nfunction registerPostOrderHooks(tView, tNode) {\n ngDevMode && assertFirstCreatePass(tView);\n // It's necessary to loop through the directives at elementEnd() (rather than processing in\n // directiveCreate) so we can preserve the current hook order. Content, view, and destroy\n // hooks for projected components and directives must be called *before* their hosts.\n for (let i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) {\n const directiveDef = tView.data[i];\n ngDevMode && assertDefined(directiveDef, 'Expecting DirectiveDef');\n const lifecycleHooks = directiveDef.type.prototype;\n const {\n ngAfterContentInit,\n ngAfterContentChecked,\n ngAfterViewInit,\n ngAfterViewChecked,\n ngOnDestroy\n } = lifecycleHooks;\n if (ngAfterContentInit) {\n (tView.contentHooks ??= []).push(-i, ngAfterContentInit);\n }\n if (ngAfterContentChecked) {\n (tView.contentHooks ??= []).push(i, ngAfterContentChecked);\n (tView.contentCheckHooks ??= []).push(i, ngAfterContentChecked);\n }\n if (ngAfterViewInit) {\n (tView.viewHooks ??= []).push(-i, ngAfterViewInit);\n }\n if (ngAfterViewChecked) {\n (tView.viewHooks ??= []).push(i, ngAfterViewChecked);\n (tView.viewCheckHooks ??= []).push(i, ngAfterViewChecked);\n }\n if (ngOnDestroy != null) {\n (tView.destroyHooks ??= []).push(i, ngOnDestroy);\n }\n }\n}\n/**\n * Executing hooks requires complex logic as we need to deal with 2 constraints.\n *\n * 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only\n * once, across many change detection cycles. This must be true even if some hooks throw, or if\n * some recursively trigger a change detection cycle.\n * To solve that, it is required to track the state of the execution of these init hooks.\n * This is done by storing and maintaining flags in the view: the {@link InitPhaseState},\n * and the index within that phase. They can be seen as a cursor in the following structure:\n * [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]]\n * They are stored as flags in LView[FLAGS].\n *\n * 2. Pre-order hooks can be executed in batches, because of the select instruction.\n * To be able to pause and resume their execution, we also need some state about the hook's array\n * that is being processed:\n * - the index of the next hook to be executed\n * - the number of init hooks already found in the processed part of the array\n * They are stored as flags in LView[PREORDER_HOOK_FLAGS].\n */\n/**\n * Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were\n * executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read\n * / write of the init-hooks related flags.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeCheckHooks(lView, hooks, nodeIndex) {\n callHooks(lView, hooks, 3 /* InitPhaseState.InitPhaseCompleted */, nodeIndex);\n}\n/**\n * Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked,\n * AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed.\n * @param lView The LView where hooks are defined\n * @param hooks Hooks to be run\n * @param initPhase A phase for which hooks should be run\n * @param nodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) {\n ngDevMode && assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init pre-order hooks should not be called more than once');\n if ((lView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n callHooks(lView, hooks, initPhase, nodeIndex);\n }\n}\nfunction incrementInitPhaseFlags(lView, initPhase) {\n ngDevMode && assertNotEqual(initPhase, 3 /* InitPhaseState.InitPhaseCompleted */, 'Init hooks phase should not be incremented after all init hooks have been run.');\n let flags = lView[FLAGS];\n if ((flags & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n flags &= 16383 /* LViewFlags.IndexWithinInitPhaseReset */;\n flags += 1 /* LViewFlags.InitPhaseStateIncrementer */;\n lView[FLAGS] = flags;\n }\n}\n/**\n * Calls lifecycle hooks with their contexts, skipping init hooks if it's not\n * the first LView pass\n *\n * @param currentView The current view\n * @param arr The array in which the hooks are found\n * @param initPhaseState the current state of the init phase\n * @param currentNodeIndex 3 cases depending on the value:\n * - undefined: all hooks from the array should be executed (post-order case)\n * - null: execute hooks only from the saved index until the end of the array (pre-order case, when\n * flushing the remaining hooks)\n * - number: execute hooks only from the saved index until that node index exclusive (pre-order\n * case, when executing select(number))\n */\nfunction callHooks(currentView, arr, initPhase, currentNodeIndex) {\n ngDevMode && assertEqual(isInCheckNoChangesMode(), false, 'Hooks should never be run when in check no changes mode.');\n const startIndex = currentNodeIndex !== undefined ? currentView[PREORDER_HOOK_FLAGS] & 65535 /* PreOrderHookFlags.IndexOfTheNextPreOrderHookMaskMask */ : 0;\n const nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1;\n const max = arr.length - 1; // Stop the loop at length - 1, because we look for the hook at i + 1\n let lastNodeIndexFound = 0;\n for (let i = startIndex; i < max; i++) {\n const hook = arr[i + 1];\n if (typeof hook === 'number') {\n lastNodeIndexFound = arr[i];\n if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) {\n break;\n }\n } else {\n const isInitHook = arr[i] < 0;\n if (isInitHook) {\n currentView[PREORDER_HOOK_FLAGS] += 65536 /* PreOrderHookFlags.NumberOfInitHooksCalledIncrementer */;\n }\n if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {\n callHook(currentView, initPhase, arr, i);\n currentView[PREORDER_HOOK_FLAGS] = (currentView[PREORDER_HOOK_FLAGS] & 4294901760 /* PreOrderHookFlags.NumberOfInitHooksCalledMask */) + i + 2;\n }\n i++;\n }\n }\n}\n/**\n * Executes a single lifecycle hook, making sure that:\n * - it is called in the non-reactive context;\n * - profiling data are registered.\n */\nfunction callHookInternal(directive, hook) {\n profiler(4 /* ProfilerEvent.LifecycleHookStart */, directive, hook);\n const prevConsumer = setActiveConsumer$1(null);\n try {\n hook.call(directive);\n } finally {\n setActiveConsumer$1(prevConsumer);\n profiler(5 /* ProfilerEvent.LifecycleHookEnd */, directive, hook);\n }\n}\n/**\n * Execute one hook against the current `LView`.\n *\n * @param currentView The current view\n * @param initPhaseState the current state of the init phase\n * @param arr The array in which the hooks are found\n * @param i The current index within the hook data array\n */\nfunction callHook(currentView, initPhase, arr, i) {\n const isInitHook = arr[i] < 0;\n const hook = arr[i + 1];\n const directiveIndex = isInitHook ? -arr[i] : arr[i];\n const directive = currentView[directiveIndex];\n if (isInitHook) {\n const indexWithintInitPhase = currentView[FLAGS] >> 14 /* LViewFlags.IndexWithinInitPhaseShift */;\n // The init phase state must be always checked here as it may have been recursively updated.\n if (indexWithintInitPhase < currentView[PREORDER_HOOK_FLAGS] >> 16 /* PreOrderHookFlags.NumberOfInitHooksCalledShift */ && (currentView[FLAGS] & 3 /* LViewFlags.InitPhaseStateMask */) === initPhase) {\n currentView[FLAGS] += 16384 /* LViewFlags.IndexWithinInitPhaseIncrementer */;\n callHookInternal(directive, hook);\n }\n } else {\n callHookInternal(directive, hook);\n }\n}\nconst NO_PARENT_INJECTOR = -1;\n/**\n * Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in\n * `TView.data`. This allows us to store information about the current node's tokens (which\n * can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be\n * shared, so they live in `LView`).\n *\n * Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter\n * determines whether a directive is available on the associated node or not. This prevents us\n * from searching the directives array at this level unless it's probable the directive is in it.\n *\n * See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters.\n *\n * Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed\n * using interfaces as they were previously. The start index of each `LInjector` and `TInjector`\n * will differ based on where it is flattened into the main array, so it's not possible to know\n * the indices ahead of time and save their types here. The interfaces are still included here\n * for documentation purposes.\n *\n * export interface LInjector extends Array {\n *\n * // Cumulative bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)\n * [0]: number;\n *\n * // Cumulative bloom for directive IDs 32-63\n * [1]: number;\n *\n * // Cumulative bloom for directive IDs 64-95\n * [2]: number;\n *\n * // Cumulative bloom for directive IDs 96-127\n * [3]: number;\n *\n * // Cumulative bloom for directive IDs 128-159\n * [4]: number;\n *\n * // Cumulative bloom for directive IDs 160 - 191\n * [5]: number;\n *\n * // Cumulative bloom for directive IDs 192 - 223\n * [6]: number;\n *\n * // Cumulative bloom for directive IDs 224 - 255\n * [7]: number;\n *\n * // We need to store a reference to the injector's parent so DI can keep looking up\n * // the injector tree until it finds the dependency it's looking for.\n * [PARENT_INJECTOR]: number;\n * }\n *\n * export interface TInjector extends Array {\n *\n * // Shared node bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)\n * [0]: number;\n *\n * // Shared node bloom for directive IDs 32-63\n * [1]: number;\n *\n * // Shared node bloom for directive IDs 64-95\n * [2]: number;\n *\n * // Shared node bloom for directive IDs 96-127\n * [3]: number;\n *\n * // Shared node bloom for directive IDs 128-159\n * [4]: number;\n *\n * // Shared node bloom for directive IDs 160 - 191\n * [5]: number;\n *\n * // Shared node bloom for directive IDs 192 - 223\n * [6]: number;\n *\n * // Shared node bloom for directive IDs 224 - 255\n * [7]: number;\n *\n * // Necessary to find directive indices for a particular node.\n * [TNODE]: TElementNode|TElementContainerNode|TContainerNode;\n * }\n */\n/**\n * Factory for creating instances of injectors in the NodeInjector.\n *\n * This factory is complicated by the fact that it can resolve `multi` factories as well.\n *\n * NOTE: Some of the fields are optional which means that this class has two hidden classes.\n * - One without `multi` support (most common)\n * - One with `multi` values, (rare).\n *\n * Since VMs can cache up to 4 inline hidden classes this is OK.\n *\n * - Single factory: Only `resolving` and `factory` is defined.\n * - `providers` factory: `componentProviders` is a number and `index = -1`.\n * - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`.\n */\nclass NodeInjectorFactory {\n constructor(\n /**\n * Factory to invoke in order to create a new instance.\n */\n factory,\n /**\n * Set to `true` if the token is declared in `viewProviders` (or if it is component).\n */\n isViewProvider, injectImplementation) {\n this.factory = factory;\n /**\n * Marker set to true during factory invocation to see if we get into recursive loop.\n * Recursive loop causes an error to be displayed.\n */\n this.resolving = false;\n ngDevMode && assertDefined(factory, 'Factory not specified');\n ngDevMode && assertEqual(typeof factory, 'function', 'Expected factory function.');\n this.canSeeViewProviders = isViewProvider;\n this.injectImpl = injectImplementation;\n }\n}\nfunction isFactory(obj) {\n return obj instanceof NodeInjectorFactory;\n}\n\n/**\n * Converts `TNodeType` into human readable text.\n * Make sure this matches with `TNodeType`\n */\nfunction toTNodeTypeAsString(tNodeType) {\n let text = '';\n tNodeType & 1 /* TNodeType.Text */ && (text += '|Text');\n tNodeType & 2 /* TNodeType.Element */ && (text += '|Element');\n tNodeType & 4 /* TNodeType.Container */ && (text += '|Container');\n tNodeType & 8 /* TNodeType.ElementContainer */ && (text += '|ElementContainer');\n tNodeType & 16 /* TNodeType.Projection */ && (text += '|Projection');\n tNodeType & 32 /* TNodeType.Icu */ && (text += '|IcuContainer');\n tNodeType & 64 /* TNodeType.Placeholder */ && (text += '|Placeholder');\n return text.length > 0 ? text.substring(1) : text;\n}\n/**\n * Helper function to detect if a given value matches a `TNode` shape.\n *\n * The logic uses the `insertBeforeIndex` and its possible values as\n * a way to differentiate a TNode shape from other types of objects\n * within the `TView.data`. This is not a perfect check, but it can\n * be a reasonable differentiator, since we control the shapes of objects\n * within `TView.data`.\n */\nfunction isTNodeShape(value) {\n return value != null && typeof value === 'object' && (value.insertBeforeIndex === null || typeof value.insertBeforeIndex === 'number' || Array.isArray(value.insertBeforeIndex));\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.\n *\n * ```\n *
\n * ```\n * and\n * ```\n * @Directive({\n * })\n * class MyDirective {\n * @Input()\n * class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasClassInput(tNode) {\n return (tNode.flags & 8 /* TNodeFlags.hasClassInput */) !== 0;\n}\n/**\n * Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding.\n *\n * ```\n *
\n * ```\n * and\n * ```\n * @Directive({\n * })\n * class MyDirective {\n * @Input()\n * class: string;\n * }\n * ```\n *\n * In the above case it is necessary to write the reconciled styling information into the\n * directive's input.\n *\n * @param tNode\n */\nfunction hasStyleInput(tNode) {\n return (tNode.flags & 16 /* TNodeFlags.hasStyleInput */) !== 0;\n}\nfunction assertTNodeType(tNode, expectedTypes, message) {\n assertDefined(tNode, 'should be called with a TNode');\n if ((tNode.type & expectedTypes) === 0) {\n throwError(message || `Expected [${toTNodeTypeAsString(expectedTypes)}] but got ${toTNodeTypeAsString(tNode.type)}.`);\n }\n}\nfunction assertPureTNodeType(type) {\n if (!(type === 2 /* TNodeType.Element */ ||\n //\n type === 1 /* TNodeType.Text */ ||\n //\n type === 4 /* TNodeType.Container */ ||\n //\n type === 8 /* TNodeType.ElementContainer */ ||\n //\n type === 32 /* TNodeType.Icu */ ||\n //\n type === 16 /* TNodeType.Projection */ ||\n //\n type === 64 /* TNodeType.Placeholder */)) {\n throwError(`Expected TNodeType to have only a single type selected, but got ${toTNodeTypeAsString(type)}.`);\n }\n}\n\n/// Parent Injector Utils ///////////////////////////////////////////////////////////////\nfunction hasParentInjector(parentLocation) {\n return parentLocation !== NO_PARENT_INJECTOR;\n}\nfunction getParentInjectorIndex(parentLocation) {\n if (ngDevMode) {\n assertNumber(parentLocation, 'Number expected');\n assertNotEqual(parentLocation, -1, 'Not a valid state.');\n const parentInjectorIndex = parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;\n assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.');\n }\n return parentLocation & 32767 /* RelativeInjectorLocationFlags.InjectorIndexMask */;\n}\nfunction getParentInjectorViewOffset(parentLocation) {\n return parentLocation >> 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */;\n}\n/**\n * Unwraps a parent injector location number to find the view offset from the current injector,\n * then walks up the declaration view tree until the view is found that contains the parent\n * injector.\n *\n * @param location The location of the parent injector, which contains the view offset\n * @param startView The LView instance from which to start walking up the view tree\n * @returns The LView instance that contains the parent injector\n */\nfunction getParentInjectorView(location, startView) {\n let viewOffset = getParentInjectorViewOffset(location);\n let parentView = startView;\n // For most cases, the parent injector can be found on the host node (e.g. for component\n // or container), but we must keep the loop here to support the rarer case of deeply nested\n // tags or inline views, where the parent injector might live many views\n // above the child injector.\n while (viewOffset > 0) {\n parentView = parentView[DECLARATION_VIEW];\n viewOffset--;\n }\n return parentView;\n}\n\n/**\n * Defines if the call to `inject` should include `viewProviders` in its resolution.\n *\n * This is set to true when we try to instantiate a component. This value is reset in\n * `getNodeInjectable` to a value which matches the declaration location of the token about to be\n * instantiated. This is done so that if we are injecting a token which was declared outside of\n * `viewProviders` we don't accidentally pull `viewProviders` in.\n *\n * Example:\n *\n * ```\n * @Injectable()\n * class MyService {\n * constructor(public value: String) {}\n * }\n *\n * @Component({\n * providers: [\n * MyService,\n * {provide: String, value: 'providers' }\n * ]\n * viewProviders: [\n * {provide: String, value: 'viewProviders'}\n * ]\n * })\n * class MyComponent {\n * constructor(myService: MyService, value: String) {\n * // We expect that Component can see into `viewProviders`.\n * expect(value).toEqual('viewProviders');\n * // `MyService` was not declared in `viewProviders` hence it can't see it.\n * expect(myService.value).toEqual('providers');\n * }\n * }\n *\n * ```\n */\nlet includeViewProviders = true;\nfunction setIncludeViewProviders(v) {\n const oldValue = includeViewProviders;\n includeViewProviders = v;\n return oldValue;\n}\n/**\n * The number of slots in each bloom filter (used by DI). The larger this number, the fewer\n * directives that will share slots, and thus, the fewer false positives when checking for\n * the existence of a directive.\n */\nconst BLOOM_SIZE = 256;\nconst BLOOM_MASK = BLOOM_SIZE - 1;\n/**\n * The number of bits that is represented by a single bloom bucket. JS bit operations are 32 bits,\n * so each bucket represents 32 distinct tokens which accounts for log2(32) = 5 bits of a bloom hash\n * number.\n */\nconst BLOOM_BUCKET_BITS = 5;\n/** Counter used to generate unique IDs for directives. */\nlet nextNgElementId = 0;\n/** Value used when something wasn't found by an injector. */\nconst NOT_FOUND = {};\n/**\n * Registers this directive as present in its node's injector by flipping the directive's\n * corresponding bit in the injector's bloom filter.\n *\n * @param injectorIndex The index of the node injector where this token should be registered\n * @param tView The TView for the injector's bloom filters\n * @param type The directive token to register\n */\nfunction bloomAdd(injectorIndex, tView, type) {\n ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');\n let id;\n if (typeof type === 'string') {\n id = type.charCodeAt(0) || 0;\n } else if (type.hasOwnProperty(NG_ELEMENT_ID)) {\n id = type[NG_ELEMENT_ID];\n }\n // Set a unique ID on the directive type, so if something tries to inject the directive,\n // we can easily retrieve the ID and hash it into the bloom bit that should be checked.\n if (id == null) {\n id = type[NG_ELEMENT_ID] = nextNgElementId++;\n }\n // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each),\n // so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter.\n const bloomHash = id & BLOOM_MASK;\n // Create a mask that targets the specific bit associated with the directive.\n // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n // to bit positions 0 - 31 in a 32 bit integer.\n const mask = 1 << bloomHash;\n // Each bloom bucket in `tData` represents `BLOOM_BUCKET_BITS` number of bits of `bloomHash`.\n // Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset that the mask\n // should be written to.\n tView.data[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)] |= mask;\n}\n/**\n * Creates (or gets an existing) injector for a given element or container.\n *\n * @param tNode for which an injector should be retrieved / created.\n * @param lView View where the node is stored\n * @returns Node injector\n */\nfunction getOrCreateNodeInjectorForNode(tNode, lView) {\n const existingInjectorIndex = getInjectorIndex(tNode, lView);\n if (existingInjectorIndex !== -1) {\n return existingInjectorIndex;\n }\n const tView = lView[TVIEW];\n if (tView.firstCreatePass) {\n tNode.injectorIndex = lView.length;\n insertBloom(tView.data, tNode); // foundation for node bloom\n insertBloom(lView, null); // foundation for cumulative bloom\n insertBloom(tView.blueprint, null);\n }\n const parentLoc = getParentInjectorLocation(tNode, lView);\n const injectorIndex = tNode.injectorIndex;\n // If a parent injector can't be found, its location is set to -1.\n // In that case, we don't need to set up a cumulative bloom\n if (hasParentInjector(parentLoc)) {\n const parentIndex = getParentInjectorIndex(parentLoc);\n const parentLView = getParentInjectorView(parentLoc, lView);\n const parentData = parentLView[TVIEW].data;\n // Creates a cumulative bloom filter that merges the parent's bloom filter\n // and its own cumulative bloom (which contains tokens for all ancestors)\n for (let i = 0; i < 8 /* NodeInjectorOffset.BLOOM_SIZE */; i++) {\n lView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i];\n }\n }\n lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */] = parentLoc;\n return injectorIndex;\n}\nfunction insertBloom(arr, footer) {\n arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer);\n}\nfunction getInjectorIndex(tNode, lView) {\n if (tNode.injectorIndex === -1 ||\n // If the injector index is the same as its parent's injector index, then the index has been\n // copied down from the parent node. No injector has been created yet on this node.\n tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex ||\n // After the first template pass, the injector index might exist but the parent values\n // might not have been calculated yet for this instance\n lView[tNode.injectorIndex + 8 /* NodeInjectorOffset.PARENT */] === null) {\n return -1;\n } else {\n ngDevMode && assertIndexInRange(lView, tNode.injectorIndex);\n return tNode.injectorIndex;\n }\n}\n/**\n * Finds the index of the parent injector, with a view offset if applicable. Used to set the\n * parent injector initially.\n *\n * @returns Returns a number that is the combination of the number of LViews that we have to go up\n * to find the LView containing the parent inject AND the index of the injector within that LView.\n */\nfunction getParentInjectorLocation(tNode, lView) {\n if (tNode.parent && tNode.parent.injectorIndex !== -1) {\n // If we have a parent `TNode` and there is an injector associated with it we are done, because\n // the parent injector is within the current `LView`.\n return tNode.parent.injectorIndex; // ViewOffset is 0\n }\n // When parent injector location is computed it may be outside of the current view. (ie it could\n // be pointing to a declared parent location). This variable stores number of declaration parents\n // we need to walk up in order to find the parent injector location.\n let declarationViewOffset = 0;\n let parentTNode = null;\n let lViewCursor = lView;\n // The parent injector is not in the current `LView`. We will have to walk the declared parent\n // `LView` hierarchy and look for it. If we walk of the top, that means that there is no parent\n // `NodeInjector`.\n while (lViewCursor !== null) {\n parentTNode = getTNodeFromLView(lViewCursor);\n if (parentTNode === null) {\n // If we have no parent, than we are done.\n return NO_PARENT_INJECTOR;\n }\n ngDevMode && parentTNode && assertTNodeForLView(parentTNode, lViewCursor[DECLARATION_VIEW]);\n // Every iteration of the loop requires that we go to the declared parent.\n declarationViewOffset++;\n lViewCursor = lViewCursor[DECLARATION_VIEW];\n if (parentTNode.injectorIndex !== -1) {\n // We found a NodeInjector which points to something.\n return parentTNode.injectorIndex | declarationViewOffset << 16 /* RelativeInjectorLocationFlags.ViewOffsetShift */;\n }\n }\n return NO_PARENT_INJECTOR;\n}\n/**\n * Makes a type or an injection token public to the DI system by adding it to an\n * injector's bloom filter.\n *\n * @param di The node injector in which a directive will be added\n * @param token The type or the injection token to be made public\n */\nfunction diPublicInInjector(injectorIndex, tView, token) {\n bloomAdd(injectorIndex, tView, token);\n}\n/**\n * Inject static attribute value into directive constructor.\n *\n * This method is used with `factory` functions which are generated as part of\n * `defineDirective` or `defineComponent`. The method retrieves the static value\n * of an attribute. (Dynamic attributes are not supported since they are not resolved\n * at the time of injection and can change over time.)\n *\n * # Example\n * Given:\n * ```\n * @Component(...)\n * class MyComponent {\n * constructor(@Attribute('title') title: string) { ... }\n * }\n * ```\n * When instantiated with\n * ```\n * \n * ```\n *\n * Then factory method generated is:\n * ```\n * MyComponent.ɵcmp = defineComponent({\n * factory: () => new MyComponent(injectAttribute('title'))\n * ...\n * })\n * ```\n *\n * @publicApi\n */\nfunction injectAttributeImpl(tNode, attrNameToInject) {\n ngDevMode && assertTNodeType(tNode, 12 /* TNodeType.AnyContainer */ | 3 /* TNodeType.AnyRNode */);\n ngDevMode && assertDefined(tNode, 'expecting tNode');\n if (attrNameToInject === 'class') {\n return tNode.classes;\n }\n if (attrNameToInject === 'style') {\n return tNode.styles;\n }\n const attrs = tNode.attrs;\n if (attrs) {\n const attrsLength = attrs.length;\n let i = 0;\n while (i < attrsLength) {\n const value = attrs[i];\n // If we hit a `Bindings` or `Template` marker then we are done.\n if (isNameOnlyAttributeMarker(value)) break;\n // Skip namespaced attributes\n if (value === 0 /* AttributeMarker.NamespaceURI */) {\n // we skip the next two values\n // as namespaced attributes looks like\n // [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist',\n // 'existValue', ...]\n i = i + 2;\n } else if (typeof value === 'number') {\n // Skip to the first value of the marked attribute.\n i++;\n while (i < attrsLength && typeof attrs[i] === 'string') {\n i++;\n }\n } else if (value === attrNameToInject) {\n return attrs[i + 1];\n } else {\n i = i + 2;\n }\n }\n }\n return null;\n}\nfunction notFoundValueOrThrow(notFoundValue, token, flags) {\n if (flags & InjectFlags.Optional || notFoundValue !== undefined) {\n return notFoundValue;\n } else {\n throwProviderNotFoundError(token, 'NodeInjector');\n }\n}\n/**\n * Returns the value associated to the given token from the ModuleInjector or throws exception\n *\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector or throws an exception\n */\nfunction lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue) {\n if (flags & InjectFlags.Optional && notFoundValue === undefined) {\n // This must be set or the NullInjector will throw for optional deps\n notFoundValue = null;\n }\n if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) {\n const moduleInjector = lView[INJECTOR];\n // switch to `injectInjectorOnly` implementation for module injector, since module injector\n // should not have access to Component/Directive DI scope (that may happen through\n // `directiveInject` implementation)\n const previousInjectImplementation = setInjectImplementation(undefined);\n try {\n if (moduleInjector) {\n return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional);\n } else {\n return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional);\n }\n } finally {\n setInjectImplementation(previousInjectImplementation);\n }\n }\n return notFoundValueOrThrow(notFoundValue, token, flags);\n}\n/**\n * Returns the value associated to the given token from the NodeInjectors => ModuleInjector.\n *\n * Look for the injector providing the token by walking up the node injector tree and then\n * the module injector tree.\n *\n * This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom\n * filter. `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`)\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction getOrCreateInjectable(tNode, lView, token, flags = InjectFlags.Default, notFoundValue) {\n if (tNode !== null) {\n // If the view or any of its ancestors have an embedded\n // view injector, we have to look it up there first.\n if (lView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */ &&\n // The token must be present on the current node injector when the `Self`\n // flag is set, so the lookup on embedded view injector(s) can be skipped.\n !(flags & InjectFlags.Self)) {\n const embeddedInjectorValue = lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, NOT_FOUND);\n if (embeddedInjectorValue !== NOT_FOUND) {\n return embeddedInjectorValue;\n }\n }\n // Otherwise try the node injector.\n const value = lookupTokenUsingNodeInjector(tNode, lView, token, flags, NOT_FOUND);\n if (value !== NOT_FOUND) {\n return value;\n }\n }\n // Finally, fall back to the module injector.\n return lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n}\n/**\n * Returns the value associated to the given token from the node injector.\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction lookupTokenUsingNodeInjector(tNode, lView, token, flags, notFoundValue) {\n const bloomHash = bloomHashBitOrFactory(token);\n // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef\n // so just call the factory function to create it.\n if (typeof bloomHash === 'function') {\n if (!enterDI(lView, tNode, flags)) {\n // Failed to enter DI, try module injector instead. If a token is injected with the @Host\n // flag, the module injector is not searched for that token in Ivy.\n return flags & InjectFlags.Host ? notFoundValueOrThrow(notFoundValue, token, flags) : lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);\n }\n try {\n let value;\n if (ngDevMode) {\n runInInjectorProfilerContext(new NodeInjector(getCurrentTNode(), getLView()), token, () => {\n value = bloomHash(flags);\n if (value != null) {\n emitInstanceCreatedByInjectorEvent(value);\n }\n });\n } else {\n value = bloomHash(flags);\n }\n if (value == null && !(flags & InjectFlags.Optional)) {\n throwProviderNotFoundError(token);\n } else {\n return value;\n }\n } finally {\n leaveDI();\n }\n } else if (typeof bloomHash === 'number') {\n // A reference to the previous injector TView that was found while climbing the element\n // injector tree. This is used to know if viewProviders can be accessed on the current\n // injector.\n let previousTView = null;\n let injectorIndex = getInjectorIndex(tNode, lView);\n let parentLocation = NO_PARENT_INJECTOR;\n let hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null;\n // If we should skip this injector, or if there is no injector on this node, start by\n // searching the parent injector.\n if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) {\n parentLocation = injectorIndex === -1 ? getParentInjectorLocation(tNode, lView) : lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];\n if (parentLocation === NO_PARENT_INJECTOR || !shouldSearchParent(flags, false)) {\n injectorIndex = -1;\n } else {\n previousTView = lView[TVIEW];\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n }\n }\n // Traverse up the injector tree until we find a potential match or until we know there\n // *isn't* a match.\n while (injectorIndex !== -1) {\n ngDevMode && assertNodeInjector(lView, injectorIndex);\n // Check the current injector. If it matches, see if it contains token.\n const tView = lView[TVIEW];\n ngDevMode && assertTNodeForLView(tView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */], lView);\n if (bloomHasToken(bloomHash, injectorIndex, tView.data)) {\n // At this point, we have an injector which *may* contain the token, so we step through\n // the providers and directives associated with the injector's corresponding node to get\n // the instance.\n const instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode);\n if (instance !== NOT_FOUND) {\n return instance;\n }\n }\n parentLocation = lView[injectorIndex + 8 /* NodeInjectorOffset.PARENT */];\n if (parentLocation !== NO_PARENT_INJECTOR && shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */] === hostTElementNode) && bloomHasToken(bloomHash, injectorIndex, lView)) {\n // The def wasn't found anywhere on this node, so it was a false positive.\n // Traverse up the tree and continue searching.\n previousTView = tView;\n injectorIndex = getParentInjectorIndex(parentLocation);\n lView = getParentInjectorView(parentLocation, lView);\n } else {\n // If we should not search parent OR If the ancestor bloom filter value does not have the\n // bit corresponding to the directive we can give up on traversing up to find the specific\n // injector.\n injectorIndex = -1;\n }\n }\n }\n return notFoundValue;\n}\nfunction searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) {\n const currentTView = lView[TVIEW];\n const tNode = currentTView.data[injectorIndex + 8 /* NodeInjectorOffset.TNODE */];\n // First, we need to determine if view providers can be accessed by the starting element.\n // There are two possibilities\n const canAccessViewProviders = previousTView == null ?\n // 1) This is the first invocation `previousTView == null` which means that we are at the\n // `TNode` of where injector is starting to look. In such a case the only time we are allowed\n // to look into the ViewProviders is if:\n // - we are on a component\n // - AND the injector set `includeViewProviders` to true (implying that the token can see\n // ViewProviders because it is the Component or a Service which itself was declared in\n // ViewProviders)\n isComponentHost(tNode) && includeViewProviders :\n // 2) `previousTView != null` which means that we are now walking across the parent nodes.\n // In such a case we are only allowed to look into the ViewProviders if:\n // - We just crossed from child View to Parent View `previousTView != currentTView`\n // - AND the parent TNode is an Element.\n // This means that we just came from the Component's View and therefore are allowed to see\n // into the ViewProviders.\n previousTView != currentTView && (tNode.type & 3 /* TNodeType.AnyRNode */) !== 0;\n // This special case happens when there is a @host on the inject and when we are searching\n // on the host element node.\n const isHostSpecialCase = flags & InjectFlags.Host && hostTElementNode === tNode;\n const injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase);\n if (injectableIdx !== null) {\n return getNodeInjectable(lView, currentTView, injectableIdx, tNode);\n } else {\n return NOT_FOUND;\n }\n}\n/**\n * Searches for the given token among the node's directives and providers.\n *\n * @param tNode TNode on which directives are present.\n * @param tView The tView we are currently processing\n * @param token Provider token or type of a directive to look for.\n * @param canAccessViewProviders Whether view providers should be considered.\n * @param isHostSpecialCase Whether the host special case applies.\n * @returns Index of a found directive or provider, or null when none found.\n */\nfunction locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) {\n const nodeProviderIndexes = tNode.providerIndexes;\n const tInjectables = tView.data;\n const injectablesStart = nodeProviderIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n const directivesStart = tNode.directiveStart;\n const directiveEnd = tNode.directiveEnd;\n const cptViewProvidersCount = nodeProviderIndexes >> 20 /* TNodeProviderIndexes.CptViewProvidersCountShift */;\n const startingIndex = canAccessViewProviders ? injectablesStart : injectablesStart + cptViewProvidersCount;\n // When the host special case applies, only the viewProviders and the component are visible\n const endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd;\n for (let i = startingIndex; i < endIndex; i++) {\n const providerTokenOrDef = tInjectables[i];\n if (i < directivesStart && token === providerTokenOrDef || i >= directivesStart && providerTokenOrDef.type === token) {\n return i;\n }\n }\n if (isHostSpecialCase) {\n const dirDef = tInjectables[directivesStart];\n if (dirDef && isComponentDef(dirDef) && dirDef.type === token) {\n return directivesStart;\n }\n }\n return null;\n}\n/**\n * Retrieve or instantiate the injectable from the `LView` at particular `index`.\n *\n * This function checks to see if the value has already been instantiated and if so returns the\n * cached `injectable`. Otherwise if it detects that the value is still a factory it\n * instantiates the `injectable` and caches the value.\n */\nfunction getNodeInjectable(lView, tView, index, tNode) {\n let value = lView[index];\n const tData = tView.data;\n if (isFactory(value)) {\n const factory = value;\n if (factory.resolving) {\n throwCyclicDependencyError(stringifyForError(tData[index]));\n }\n const previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders);\n factory.resolving = true;\n let prevInjectContext;\n if (ngDevMode) {\n // tData indexes mirror the concrete instances in its corresponding LView.\n // lView[index] here is either the injectable instace itself or a factory,\n // therefore tData[index] is the constructor of that injectable or a\n // definition object that contains the constructor in a `.type` field.\n const token = tData[index].type || tData[index];\n const injector = new NodeInjector(tNode, lView);\n prevInjectContext = setInjectorProfilerContext({\n injector,\n token\n });\n }\n const previousInjectImplementation = factory.injectImpl ? setInjectImplementation(factory.injectImpl) : null;\n const success = enterDI(lView, tNode, InjectFlags.Default);\n ngDevMode && assertEqual(success, true, 'Because flags do not contain \\`SkipSelf\\' we expect this to always succeed.');\n try {\n value = lView[index] = factory.factory(undefined, tData, lView, tNode);\n ngDevMode && emitInstanceCreatedByInjectorEvent(value);\n // This code path is hit for both directives and providers.\n // For perf reasons, we want to avoid searching for hooks on providers.\n // It does no harm to try (the hooks just won't exist), but the extra\n // checks are unnecessary and this is a hot path. So we check to see\n // if the index of the dependency is in the directive range for this\n // tNode. If it's not, we know it's a provider and skip hook registration.\n if (tView.firstCreatePass && index >= tNode.directiveStart) {\n ngDevMode && assertDirectiveDef(tData[index]);\n registerPreOrderHooks(index, tData[index], tView);\n }\n } finally {\n ngDevMode && setInjectorProfilerContext(prevInjectContext);\n previousInjectImplementation !== null && setInjectImplementation(previousInjectImplementation);\n setIncludeViewProviders(previousIncludeViewProviders);\n factory.resolving = false;\n leaveDI();\n }\n }\n return value;\n}\n/**\n * Returns the bit in an injector's bloom filter that should be used to determine whether or not\n * the directive might be provided by the injector.\n *\n * When a directive is public, it is added to the bloom filter and given a unique ID that can be\n * retrieved on the Type. When the directive isn't public or the token is not a directive `null`\n * is returned as the node injector can not possibly provide that token.\n *\n * @param token the injection token\n * @returns the matching bit to check in the bloom filter or `null` if the token is not known.\n * When the returned value is negative then it represents special values such as `Injector`.\n */\nfunction bloomHashBitOrFactory(token) {\n ngDevMode && assertDefined(token, 'token must be defined');\n if (typeof token === 'string') {\n return token.charCodeAt(0) || 0;\n }\n const tokenId =\n // First check with `hasOwnProperty` so we don't get an inherited ID.\n token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined;\n // Negative token IDs are used for special objects such as `Injector`\n if (typeof tokenId === 'number') {\n if (tokenId >= 0) {\n return tokenId & BLOOM_MASK;\n } else {\n ngDevMode && assertEqual(tokenId, -1 /* InjectorMarkers.Injector */, 'Expecting to get Special Injector Id');\n return createNodeInjector;\n }\n } else {\n return tokenId;\n }\n}\nfunction bloomHasToken(bloomHash, injectorIndex, injectorView) {\n // Create a mask that targets the specific bit associated with the directive we're looking for.\n // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding\n // to bit positions 0 - 31 in a 32 bit integer.\n const mask = 1 << bloomHash;\n // Each bloom bucket in `injectorView` represents `BLOOM_BUCKET_BITS` number of bits of\n // `bloomHash`. Any bits in `bloomHash` beyond `BLOOM_BUCKET_BITS` indicate the bucket offset\n // that should be used.\n const value = injectorView[injectorIndex + (bloomHash >> BLOOM_BUCKET_BITS)];\n // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on,\n // this injector is a potential match.\n return !!(value & mask);\n}\n/** Returns true if flags prevent parent injector from being searched for tokens */\nfunction shouldSearchParent(flags, isFirstHostTNode) {\n return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode);\n}\nfunction getNodeInjectorLView(nodeInjector) {\n return nodeInjector._lView;\n}\nfunction getNodeInjectorTNode(nodeInjector) {\n return nodeInjector._tNode;\n}\nclass NodeInjector {\n constructor(_tNode, _lView) {\n this._tNode = _tNode;\n this._lView = _lView;\n }\n get(token, notFoundValue, flags) {\n return getOrCreateInjectable(this._tNode, this._lView, token, convertToBitFlags(flags), notFoundValue);\n }\n}\n/** Creates a `NodeInjector` for the current node. */\nfunction createNodeInjector() {\n return new NodeInjector(getCurrentTNode(), getLView());\n}\n/**\n * @codeGenApi\n */\nfunction ɵɵgetInheritedFactory(type) {\n return noSideEffects(() => {\n const ownConstructor = type.prototype.constructor;\n const ownFactory = ownConstructor[NG_FACTORY_DEF] || getFactoryOf(ownConstructor);\n const objectPrototype = Object.prototype;\n let parent = Object.getPrototypeOf(type.prototype).constructor;\n // Go up the prototype until we hit `Object`.\n while (parent && parent !== objectPrototype) {\n const factory = parent[NG_FACTORY_DEF] || getFactoryOf(parent);\n // If we hit something that has a factory and the factory isn't the same as the type,\n // we've found the inherited factory. Note the check that the factory isn't the type's\n // own factory is redundant in most cases, but if the user has custom decorators on the\n // class, this lookup will start one level down in the prototype chain, causing us to\n // find the own factory first and potentially triggering an infinite loop downstream.\n if (factory && factory !== ownFactory) {\n return factory;\n }\n parent = Object.getPrototypeOf(parent);\n }\n // There is no factory defined. Either this was improper usage of inheritance\n // (no Angular decorator on the superclass) or there is no constructor at all\n // in the inheritance chain. Since the two cases cannot be distinguished, the\n // latter has to be assumed.\n return t => new t();\n });\n}\nfunction getFactoryOf(type) {\n if (isForwardRef(type)) {\n return () => {\n const factory = getFactoryOf(resolveForwardRef(type));\n return factory && factory();\n };\n }\n return getFactoryDef(type);\n}\n/**\n * Returns a value from the closest embedded or node injector.\n *\n * @param tNode The Node where the search for the injector should start\n * @param lView The `LView` that contains the `tNode`\n * @param token The token to look for\n * @param flags Injection flags\n * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`\n * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided\n */\nfunction lookupTokenUsingEmbeddedInjector(tNode, lView, token, flags, notFoundValue) {\n let currentTNode = tNode;\n let currentLView = lView;\n // When an LView with an embedded view injector is inserted, it'll likely be interlaced with\n // nodes who may have injectors (e.g. node injector -> embedded view injector -> node injector).\n // Since the bloom filters for the node injectors have already been constructed and we don't\n // have a way of extracting the records from an injector, the only way to maintain the correct\n // hierarchy when resolving the value is to walk it node-by-node while attempting to resolve\n // the token at each level.\n while (currentTNode !== null && currentLView !== null && currentLView[FLAGS] & 2048 /* LViewFlags.HasEmbeddedViewInjector */ && !(currentLView[FLAGS] & 512 /* LViewFlags.IsRoot */)) {\n ngDevMode && assertTNodeForLView(currentTNode, currentLView);\n // Note that this lookup on the node injector is using the `Self` flag, because\n // we don't want the node injector to look at any parent injectors since we\n // may hit the embedded view injector first.\n const nodeInjectorValue = lookupTokenUsingNodeInjector(currentTNode, currentLView, token, flags | InjectFlags.Self, NOT_FOUND);\n if (nodeInjectorValue !== NOT_FOUND) {\n return nodeInjectorValue;\n }\n // Has an explicit type due to a TS bug: https://github.com/microsoft/TypeScript/issues/33191\n let parentTNode = currentTNode.parent;\n // `TNode.parent` includes the parent within the current view only. If it doesn't exist,\n // it means that we've hit the view boundary and we need to go up to the next view.\n if (!parentTNode) {\n // Before we go to the next LView, check if the token exists on the current embedded injector.\n const embeddedViewInjector = currentLView[EMBEDDED_VIEW_INJECTOR];\n if (embeddedViewInjector) {\n const embeddedViewInjectorValue = embeddedViewInjector.get(token, NOT_FOUND, flags);\n if (embeddedViewInjectorValue !== NOT_FOUND) {\n return embeddedViewInjectorValue;\n }\n }\n // Otherwise keep going up the tree.\n parentTNode = getTNodeFromLView(currentLView);\n currentLView = currentLView[DECLARATION_VIEW];\n }\n currentTNode = parentTNode;\n }\n return notFoundValue;\n}\n/** Gets the TNode associated with an LView inside of the declaration view. */\nfunction getTNodeFromLView(lView) {\n const tView = lView[TVIEW];\n const tViewType = tView.type;\n // The parent pointer differs based on `TView.type`.\n if (tViewType === 2 /* TViewType.Embedded */) {\n ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');\n return tView.declTNode;\n } else if (tViewType === 1 /* TViewType.Component */) {\n // Components don't have `TView.declTNode` because each instance of component could be\n // inserted in different location, hence `TView.declTNode` is meaningless.\n return lView[T_HOST];\n }\n return null;\n}\n\n/**\n * Facade for the attribute injection from DI.\n *\n * @codeGenApi\n */\nfunction ɵɵinjectAttribute(attrNameToInject) {\n return injectAttributeImpl(getCurrentTNode(), attrNameToInject);\n}\n\n/**\n * Attribute decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Attribute = /*#__PURE__*/makeParamDecorator('Attribute', attributeName => ({\n attributeName,\n __NG_ELEMENT_ID__: () => ɵɵinjectAttribute(attributeName)\n}));\nlet _reflect = null;\nfunction getReflect() {\n return _reflect = _reflect || new ReflectionCapabilities();\n}\nfunction reflectDependencies(type) {\n return convertDependencies(getReflect().parameters(type));\n}\nfunction convertDependencies(deps) {\n return deps.map(dep => reflectDependency(dep));\n}\nfunction reflectDependency(dep) {\n const meta = {\n token: null,\n attribute: null,\n host: false,\n optional: false,\n self: false,\n skipSelf: false\n };\n if (Array.isArray(dep) && dep.length > 0) {\n for (let j = 0; j < dep.length; j++) {\n const param = dep[j];\n if (param === undefined) {\n // param may be undefined if type of dep is not set by ngtsc\n continue;\n }\n const proto = Object.getPrototypeOf(param);\n if (param instanceof Optional || proto.ngMetadataName === 'Optional') {\n meta.optional = true;\n } else if (param instanceof SkipSelf || proto.ngMetadataName === 'SkipSelf') {\n meta.skipSelf = true;\n } else if (param instanceof Self || proto.ngMetadataName === 'Self') {\n meta.self = true;\n } else if (param instanceof Host || proto.ngMetadataName === 'Host') {\n meta.host = true;\n } else if (param instanceof Inject) {\n meta.token = param.token;\n } else if (param instanceof Attribute) {\n if (param.attributeName === undefined) {\n throw new RuntimeError(204 /* RuntimeErrorCode.INVALID_INJECTION_TOKEN */, ngDevMode && `Attribute name must be defined.`);\n }\n meta.attribute = param.attributeName;\n } else {\n meta.token = param;\n }\n }\n } else if (dep === undefined || Array.isArray(dep) && dep.length === 0) {\n meta.token = null;\n } else {\n meta.token = dep;\n }\n return meta;\n}\n\n/**\n * Compile an Angular injectable according to its `Injectable` metadata, and patch the resulting\n * injectable def (`ɵprov`) onto the injectable type.\n */\nfunction compileInjectable(type, meta) {\n let ngInjectableDef = null;\n let ngFactoryDef = null;\n // if NG_PROV_DEF is already defined on this class then don't overwrite it\n if (!type.hasOwnProperty(NG_PROV_DEF)) {\n Object.defineProperty(type, NG_PROV_DEF, {\n get: () => {\n if (ngInjectableDef === null) {\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'injectable',\n type\n });\n ngInjectableDef = compiler.compileInjectable(angularCoreDiEnv, `ng:///${type.name}/ɵprov.js`, getInjectableMetadata(type, meta));\n }\n return ngInjectableDef;\n }\n });\n }\n // if NG_FACTORY_DEF is already defined on this class then don't overwrite it\n if (!type.hasOwnProperty(NG_FACTORY_DEF)) {\n Object.defineProperty(type, NG_FACTORY_DEF, {\n get: () => {\n if (ngFactoryDef === null) {\n const compiler = getCompilerFacade({\n usage: 0 /* JitCompilerUsage.Decorator */,\n kind: 'injectable',\n type\n });\n ngFactoryDef = compiler.compileFactory(angularCoreDiEnv, `ng:///${type.name}/ɵfac.js`, {\n name: type.name,\n type,\n typeArgumentCount: 0,\n // In JIT mode types are not available nor used.\n deps: reflectDependencies(type),\n target: compiler.FactoryTarget.Injectable\n });\n }\n return ngFactoryDef;\n },\n // Leave this configurable so that the factories from directives or pipes can take precedence.\n configurable: true\n });\n }\n}\nconst USE_VALUE = /*#__PURE__*/getClosureSafeProperty({\n provide: String,\n useValue: getClosureSafeProperty\n});\nfunction isUseClassProvider(meta) {\n return meta.useClass !== undefined;\n}\nfunction isUseValueProvider(meta) {\n return USE_VALUE in meta;\n}\nfunction isUseFactoryProvider(meta) {\n return meta.useFactory !== undefined;\n}\nfunction isUseExistingProvider(meta) {\n return meta.useExisting !== undefined;\n}\nfunction getInjectableMetadata(type, srcMeta) {\n // Allow the compilation of a class with a `@Injectable()` decorator without parameters\n const meta = srcMeta || {\n providedIn: null\n };\n const compilerMeta = {\n name: type.name,\n type: type,\n typeArgumentCount: 0,\n providedIn: meta.providedIn\n };\n if ((isUseClassProvider(meta) || isUseFactoryProvider(meta)) && meta.deps !== undefined) {\n compilerMeta.deps = convertDependencies(meta.deps);\n }\n // Check to see if the user explicitly provided a `useXxxx` property.\n if (isUseClassProvider(meta)) {\n compilerMeta.useClass = meta.useClass;\n } else if (isUseValueProvider(meta)) {\n compilerMeta.useValue = meta.useValue;\n } else if (isUseFactoryProvider(meta)) {\n compilerMeta.useFactory = meta.useFactory;\n } else if (isUseExistingProvider(meta)) {\n compilerMeta.useExisting = meta.useExisting;\n }\n return compilerMeta;\n}\n\n/**\n * Injectable decorator and metadata.\n *\n * @Annotation\n * @publicApi\n */\nconst Injectable = /*#__PURE__*/makeDecorator('Injectable', undefined, undefined, undefined, (type, meta) => compileInjectable(type, meta));\n\n/**\n * Create a new `Injector` which is configured using a `defType` of `InjectorType`s.\n */\nfunction createInjector(defType, parent = null, additionalProviders = null, name) {\n const injector = createInjectorWithoutInjectorInstances(defType, parent, additionalProviders, name);\n injector.resolveInjectorInitializers();\n return injector;\n}\n/**\n * Creates a new injector without eagerly resolving its injector types. Can be used in places\n * where resolving the injector types immediately can lead to an infinite loop. The injector types\n * should be resolved at a later point by calling `_resolveInjectorDefTypes`.\n */\nfunction createInjectorWithoutInjectorInstances(defType, parent = null, additionalProviders = null, name, scopes = new Set()) {\n const providers = [additionalProviders || EMPTY_ARRAY, importProvidersFrom(defType)];\n name = name || (typeof defType === 'object' ? undefined : stringify(defType));\n return new R3Injector(providers, parent || getNullInjector(), name || null, scopes);\n}\n\n/**\n * Concrete injectors implement this interface. Injectors are configured\n * with [providers](guide/dependency-injection-providers) that associate\n * dependencies of various types with [injection tokens](guide/dependency-injection-providers).\n *\n * @see [DI Providers](guide/dependency-injection-providers).\n * @see {@link StaticProvider}\n *\n * @usageNotes\n *\n * The following example creates a service injector instance.\n *\n * {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}\n *\n * ### Usage example\n *\n * {@example core/di/ts/injector_spec.ts region='Injector'}\n *\n * `Injector` returns itself when given `Injector` as a token:\n *\n * {@example core/di/ts/injector_spec.ts region='injectInjector'}\n *\n * @publicApi\n */\nlet Injector = /*#__PURE__*/(() => {\n class Injector {\n static {\n this.THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;\n }\n static {\n this.NULL = /* @__PURE__ */new NullInjector();\n }\n static create(options, parent) {\n if (Array.isArray(options)) {\n return createInjector({\n name: ''\n }, parent, options, '');\n } else {\n const name = options.name ?? '';\n return createInjector({\n name\n }, options.parent, options.providers, name);\n }\n }\n /** @nocollapse */\n static {\n this.ɵprov = ɵɵdefineInjectable({\n token: Injector,\n providedIn: 'any',\n factory: () => ɵɵinject(INJECTOR$1)\n });\n }\n /**\n * @internal\n * @nocollapse\n */\n static {\n this.__NG_ELEMENT_ID__ = -1 /* InjectorMarkers.Injector */;\n }\n }\n return Injector;\n})();\n/*!\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n/**\n * Creates a token that can be used to inject static attributes of the host node.\n *\n * @usageNotes\n * ### Injecting an attribute that is known to exist\n * ```typescript\n * @Directive()\n * class MyDir {\n * attr: string = inject(new HostAttributeToken('some-attr'));\n * }\n * ```\n *\n * ### Optionally injecting an attribute\n * ```typescript\n * @Directive()\n * class MyDir {\n * attr: string | null = inject(new HostAttributeToken('some-attr'), {optional: true});\n * }\n * ```\n * @publicApi\n */\nclass HostAttributeToken {\n constructor(attributeName) {\n this.attributeName = attributeName;\n /** @internal */\n this.__NG_ELEMENT_ID__ = () => ɵɵinjectAttribute(this.attributeName);\n }\n toString() {\n return `HostAttributeToken ${this.attributeName}`;\n }\n}\n\n/**\n * @module\n * @description\n * The `di` module provides dependency injection container services.\n */\n\n/**\n * This file should not be necessary because node resolution should just default to `./di/index`!\n *\n * However it does not seem to work and it breaks:\n * - //packages/animations/browser/test:test_web_chromium-local\n * - //packages/compiler-cli/test:extract_i18n\n * - //packages/compiler-cli/test:ngc\n * - //packages/compiler-cli/test:perform_watch\n * - //packages/compiler-cli/test/diagnostics:check_types\n * - //packages/compiler-cli/test/transformers:test\n * - //packages/compiler/test:test\n * - //tools/public_api_guard:core_api\n *\n * Remove this file once the above is solved or wait until `ngc` is deleted and then it should be\n * safe to delete this file.\n */\n\nconst ERROR_ORIGINAL_ERROR = 'ngOriginalError';\nfunction wrappedError(message, originalError) {\n const msg = `${message} caused by: ${originalError instanceof Error ? originalError.message : originalError}`;\n const error = Error(msg);\n error[ERROR_ORIGINAL_ERROR] = originalError;\n return error;\n}\nfunction getOriginalError(error) {\n return error[ERROR_ORIGINAL_ERROR];\n}\n\n/**\n * Provides a hook for centralized exception handling.\n *\n * The default implementation of `ErrorHandler` prints error messages to the `console`. To\n * intercept error handling, write a custom exception handler that replaces this default as\n * appropriate for your app.\n *\n * @usageNotes\n * ### Example\n *\n * ```\n * class MyErrorHandler implements ErrorHandler {\n * handleError(error) {\n * // do something with the exception\n * }\n * }\n *\n * @NgModule({\n * providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]\n * })\n * class MyModule {}\n * ```\n *\n * @publicApi\n */\nclass ErrorHandler {\n constructor() {\n /**\n * @internal\n */\n this._console = console;\n }\n handleError(error) {\n const originalError = this._findOriginalError(error);\n this._console.error('ERROR', error);\n if (originalError) {\n this._console.error('ORIGINAL ERROR', originalError);\n }\n }\n /** @internal */\n _findOriginalError(error) {\n let e = error && getOriginalError(error);\n while (e && getOriginalError(e)) {\n e = getOriginalError(e);\n }\n return e || null;\n }\n}\n/**\n * `InjectionToken` used to configure how to call the `ErrorHandler`.\n *\n * `NgZone` is provided by default today so the default (and only) implementation for this\n * is calling `ErrorHandler.handleError` outside of the Angular zone.\n */\nconst INTERNAL_APPLICATION_ERROR_HANDLER = /*#__PURE__*/new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'internal error handler' : '', {\n providedIn: 'root',\n factory: () => {\n const userErrorHandler = inject(ErrorHandler);\n return userErrorHandler.handleError.bind(undefined);\n }\n});\n\n/**\n * `DestroyRef` lets you set callbacks to run for any cleanup or destruction behavior.\n * The scope of this destruction depends on where `DestroyRef` is injected. If `DestroyRef`\n * is injected in a component or directive, the callbacks run when that component or\n * directive is destroyed. Otherwise the callbacks run when a corresponding injector is destroyed.\n *\n * @publicApi\n */\nlet DestroyRef = /*#__PURE__*/(() => {\n class DestroyRef {\n /**\n * @internal\n * @nocollapse\n */\n static {\n this.__NG_ELEMENT_ID__ = injectDestroyRef;\n }\n /**\n * @internal\n * @nocollapse\n */\n static {\n this.__NG_ENV_ID__ = injector => injector;\n }\n }\n return DestroyRef;\n})();\nclass NodeInjectorDestroyRef extends DestroyRef {\n constructor(_lView) {\n super();\n this._lView = _lView;\n }\n onDestroy(callback) {\n storeLViewOnDestroy(this._lView, callback);\n return () => removeLViewOnDestroy(this._lView, callback);\n }\n}\nfunction injectDestroyRef() {\n return new NodeInjectorDestroyRef(getLView());\n}\n\n/**\n * An `OutputEmitterRef` is created by the `output()` function and can be\n * used to emit values to consumers of your directive or component.\n *\n * Consumers of your directive/component can bind to the output and\n * subscribe to changes via the bound event syntax. For example:\n *\n * ```html\n * \n * ```\n *\n * @developerPreview\n */\nclass OutputEmitterRef {\n constructor() {\n this.destroyed = false;\n this.listeners = null;\n this.errorHandler = inject(ErrorHandler, {\n optional: true\n });\n /** @internal */\n this.destroyRef = inject(DestroyRef);\n // Clean-up all listeners and mark as destroyed upon destroy.\n this.destroyRef.onDestroy(() => {\n this.destroyed = true;\n this.listeners = null;\n });\n }\n subscribe(callback) {\n if (this.destroyed) {\n throw new RuntimeError(953 /* RuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode && 'Unexpected subscription to destroyed `OutputRef`. ' + 'The owning directive/component is destroyed.');\n }\n (this.listeners ??= []).push(callback);\n return {\n unsubscribe: () => {\n const idx = this.listeners?.indexOf(callback);\n if (idx !== undefined && idx !== -1) {\n this.listeners?.splice(idx, 1);\n }\n }\n };\n }\n /** Emits a new value to the output. */\n emit(value) {\n if (this.destroyed) {\n throw new RuntimeError(953 /* RuntimeErrorCode.OUTPUT_REF_DESTROYED */, ngDevMode && 'Unexpected emit for destroyed `OutputRef`. ' + 'The owning directive/component is destroyed.');\n }\n if (this.listeners === null) {\n return;\n }\n const previousConsumer = setActiveConsumer$1(null);\n try {\n for (const listenerFn of this.listeners) {\n try {\n listenerFn(value);\n } catch (err) {\n this.errorHandler?.handleError(err);\n }\n }\n } finally {\n setActiveConsumer$1(previousConsumer);\n }\n }\n}\n/** Gets the owning `DestroyRef` for the given output. */\nfunction getOutputDestroyRef(ref) {\n return ref.destroyRef;\n}\n\n/**\n * The `output` function allows declaration of Angular outputs in\n * directives and components.\n *\n * You can use outputs to emit values to parent directives and component.\n * Parents can subscribe to changes via:\n *\n * - template event bindings. For example, `(myOutput)=\"doSomething($event)\"`\n * - programmatic subscription by using `OutputRef#subscribe`.\n *\n * @usageNotes\n *\n * To use `output()`, import the function from `@angular/core`.\n *\n * ```\n * import {output} from '@angular/core`;\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `output`.\n *\n * ```ts\n * @Directive({\n * ...\n * })\n * export class MyDir {\n * nameChange = output(); // OutputEmitterRef\n * onClick = output(); // OutputEmitterRef\n * }\n * ```\n *\n * You can emit values to consumers of your directive, by using\n * the `emit` method from `OutputEmitterRef`.\n *\n * ```ts\n * updateName(newName: string): void {\n * this.nameChange.emit(newName);\n * }\n * ```\n *\n * @developerPreview\n * @initializerApiFunction {\"showTypesInSignaturePreview\": true}\n */\nfunction output(opts) {\n ngDevMode && assertInInjectionContext(output);\n return new OutputEmitterRef();\n}\nfunction inputFunction(initialValue, opts) {\n ngDevMode && assertInInjectionContext(input);\n return createInputSignal(initialValue, opts);\n}\nfunction inputRequiredFunction(opts) {\n ngDevMode && assertInInjectionContext(input);\n return createInputSignal(REQUIRED_UNSET_VALUE, opts);\n}\n/**\n * The `input` function allows declaration of Angular inputs in directives\n * and components.\n *\n * There are two variants of inputs that can be declared:\n *\n * 1. **Optional inputs** with an initial value.\n * 2. **Required inputs** that consumers need to set.\n *\n * By default, the `input` function will declare optional inputs that\n * always have an initial value. Required inputs can be declared\n * using the `input.required()` function.\n *\n * Inputs are signals. The values of an input are exposed as a `Signal`.\n * The signal always holds the latest value of the input that is bound\n * from the parent.\n *\n * @usageNotes\n * To use signal-based inputs, import `input` from `@angular/core`.\n *\n * ```\n * import {input} from '@angular/core`;\n * ```\n *\n * Inside your component, introduce a new class member and initialize\n * it with a call to `input` or `input.required`.\n *\n * ```ts\n * @Component({\n * ...\n * })\n * export class UserProfileComponent {\n * firstName = input(); // Signal\n * lastName = input.required(); // Signal\n * age = input(0) // Signal\n * }\n * ```\n *\n * Inside your component template, you can display values of the inputs\n * by calling the signal.\n *\n * ```html\n * {{firstName()}}\n * ```\n *\n * @developerPreview\n * @initializerApiFunction\n */\nconst input = /*#__PURE__*/(() => {\n // Note: This may be considered a side-effect, but nothing will depend on\n // this assignment, unless this `input` constant export is accessed. It's a\n // self-contained side effect that is local to the user facing`input` export.\n inputFunction.required = inputRequiredFunction;\n return inputFunction;\n})();\n\n/**\n * Creates an ElementRef from the most recent node.\n *\n * @returns The ElementRef instance to use\n */\nfunction injectElementRef() {\n return createElementRef(getCurrentTNode(), getLView());\n}\n/**\n * Creates an ElementRef given a node.\n *\n * @param tNode The node for which you'd like an ElementRef\n * @param lView The view to which the node belongs\n * @returns The ElementRef instance to use\n */\nfunction createElementRef(tNode, lView) {\n return new ElementRef(getNativeByTNode(tNode, lView));\n}\n/**\n * A wrapper around a native element inside of a View.\n *\n * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM\n * element.\n *\n * @security Permitting direct access to the DOM can make your application more vulnerable to\n * XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the\n * [Security Guide](https://g.co/ng/security).\n *\n * @publicApi\n */\n// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,\n// i.e. users have to ask for what they need. With that, we can build better analysis tools\n// and could do better codegen in the future.\nlet ElementRef = /*#__PURE__*/(() => {\n class ElementRef {\n constructor(nativeElement) {\n this.nativeElement = nativeElement;\n }\n /**\n * @internal\n * @nocollapse\n */\n static {\n this.__NG_ELEMENT_ID__ = injectElementRef;\n }\n }\n return ElementRef;\n})();\n/**\n * Unwraps `ElementRef` and return the `nativeElement`.\n *\n * @param value value to unwrap\n * @returns `nativeElement` if `ElementRef` otherwise returns value as is.\n */\nfunction unwrapElementRef(value) {\n return value instanceof ElementRef ? value.nativeElement : value;\n}\nclass EventEmitter_ extends Subject {\n constructor(isAsync = false) {\n super();\n this.destroyRef = undefined;\n this.__isAsync = isAsync;\n // Attempt to retrieve a `DestroyRef` optionally.\n // For backwards compatibility reasons, this cannot be required\n if (isInInjectionContext()) {\n this.destroyRef = inject(DestroyRef, {\n optional: true\n }) ?? undefined;\n }\n }\n emit(value) {\n const prevConsumer = setActiveConsumer$1(null);\n try {\n super.next(value);\n } finally {\n setActiveConsumer$1(prevConsumer);\n }\n }\n subscribe(observerOrNext, error, complete) {\n let nextFn = observerOrNext;\n let errorFn = error || (() => null);\n let completeFn = complete;\n if (observerOrNext && typeof observerOrNext === 'object') {\n const observer = observerOrNext;\n nextFn = observer.next?.bind(observer);\n errorFn = observer.error?.bind(observer);\n completeFn = observer.complete?.bind(observer);\n }\n if (this.__isAsync) {\n errorFn = _wrapInTimeout(errorFn);\n if (nextFn) {\n nextFn = _wrapInTimeout(nextFn);\n }\n if (completeFn) {\n completeFn = _wrapInTimeout(completeFn);\n }\n }\n const sink = super.subscribe({\n next: nextFn,\n error: errorFn,\n complete: completeFn\n });\n if (observerOrNext instanceof Subscription) {\n observerOrNext.add(sink);\n }\n return sink;\n }\n}\nfunction _wrapInTimeout(fn) {\n return value => {\n setTimeout(fn, undefined, value);\n };\n}\n/**\n * @publicApi\n */\nconst EventEmitter = EventEmitter_;\nfunction symbolIterator() {\n // @ts-expect-error accessing a private member\n return this._results[Symbol.iterator]();\n}\n/**\n * An unmodifiable list of items that Angular keeps up to date when the state\n * of the application changes.\n *\n * The type of object that {@link ViewChildren}, {@link ContentChildren}, and {@link QueryList}\n * provide.\n *\n * Implements an iterable interface, therefore it can be used in both ES6\n * javascript `for (var i of items)` loops as well as in Angular templates with\n * `*ngFor=\"let i of myList\"`.\n *\n * Changes can be observed by subscribing to the changes `Observable`.\n *\n * NOTE: In the future this class will implement an `Observable` interface.\n *\n * @usageNotes\n * ### Example\n * ```typescript\n * @Component({...})\n * class Container {\n * @ViewChildren(Item) items:QueryList;\n * }\n * ```\n *\n * @publicApi\n */\nclass QueryList {\n static {\n Symbol.iterator;\n }\n /**\n * Returns `Observable` of `QueryList` notifying the subscriber of changes.\n */\n get changes() {\n return this._changes ??= new EventEmitter();\n }\n /**\n * @param emitDistinctChangesOnly Whether `QueryList.changes` should fire only when actual change\n * has occurred. Or if it should fire when query is recomputed. (recomputing could resolve in\n * the same result)\n */\n constructor(_emitDistinctChangesOnly = false) {\n this._emitDistinctChangesOnly = _emitDistinctChangesOnly;\n this.dirty = true;\n this._onDirty = undefined;\n this._results = [];\n this._changesDetected = false;\n this._changes = undefined;\n this.length = 0;\n this.first = undefined;\n this.last = undefined;\n // This function should be declared on the prototype, but doing so there will cause the class\n // declaration to have side-effects and become not tree-shakable. For this reason we do it in\n // the constructor.\n // [Symbol.iterator](): Iterator { ... }\n const proto = QueryList.prototype;\n if (!proto[Symbol.iterator]) proto[Symbol.iterator] = symbolIterator;\n }\n /**\n * Returns the QueryList entry at `index`.\n */\n get(index) {\n return this._results[index];\n }\n /**\n * See\n * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\n */\n map(fn) {\n return this._results.map(fn);\n }\n filter(fn) {\n return this._results.filter(fn);\n }\n /**\n * See\n * [Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)\n */\n find(fn) {\n return this._results.find(fn);\n }\n /**\n * See\n * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)\n */\n reduce(fn, init) {\n return this._results.reduce(fn, init);\n }\n /**\n * See\n * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)\n */\n forEach(fn) {\n this._results.forEach(fn);\n }\n /**\n * See\n * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)\n */\n some(fn) {\n return this._results.some(fn);\n }\n /**\n * Returns a copy of the internal results list as an Array.\n */\n toArray() {\n return this._results.slice();\n }\n toString() {\n return this._results.toString();\n }\n /**\n * Updates the stored data of the query list, and resets the `dirty` flag to `false`, so that\n * on change detection, it will not notify of changes to the queries, unless a new change\n * occurs.\n *\n * @param resultsTree The query results to store\n * @param identityAccessor Optional function for extracting stable object identity from a value\n * in the array. This function is executed for each element of the query result list while\n * comparing current query list with the new one (provided as a first argument of the `reset`\n * function) to detect if the lists are different. If the function is not provided, elements\n * are compared as is (without any pre-processing).\n */\n reset(resultsTree, identityAccessor) {\n this.dirty = false;\n const newResultFlat = flatten(resultsTree);\n if (this._changesDetected = !arrayEquals(this._results, newResultFlat, identityAccessor)) {\n this._results = newResultFlat;\n this.length = newResultFlat.length;\n this.last = newResultFlat[this.length - 1];\n this.first = newResultFlat[0];\n }\n }\n /**\n * Triggers a change event by emitting on the `changes` {@link EventEmitter}.\n */\n notifyOnChanges() {\n if (this._changes !== undefined && (this._changesDetected || !this._emitDistinctChangesOnly)) this._changes.emit(this);\n }\n /** @internal */\n onDirty(cb) {\n this._onDirty = cb;\n }\n /** internal */\n setDirty() {\n this.dirty = true;\n this._onDirty?.();\n }\n /** internal */\n destroy() {\n if (this._changes !== undefined) {\n this._changes.complete();\n this._changes.unsubscribe();\n }\n }\n}\n\n/**\n * The name of an attribute that can be added to the hydration boundary node\n * (component host node) to disable hydration for the content within that boundary.\n */\nconst SKIP_HYDRATION_ATTR_NAME = 'ngSkipHydration';\n/** Lowercase name of the `ngSkipHydration` attribute used for case-insensitive comparisons. */\nconst SKIP_HYDRATION_ATTR_NAME_LOWER_CASE = 'ngskiphydration';\n/**\n * Helper function to check if a given TNode has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnTNode(tNode) {\n const attrs = tNode.mergedAttrs;\n if (attrs === null) return false;\n // only ever look at the attribute name and skip the values\n for (let i = 0; i < attrs.length; i += 2) {\n const value = attrs[i];\n // This is a marker, which means that the static attributes section is over,\n // so we can exit early.\n if (typeof value === 'number') return false;\n if (typeof value === 'string' && value.toLowerCase() === SKIP_HYDRATION_ATTR_NAME_LOWER_CASE) {\n return true;\n }\n }\n return false;\n}\n/**\n * Helper function to check if a given RElement has the 'ngSkipHydration' attribute.\n */\nfunction hasSkipHydrationAttrOnRElement(rNode) {\n return rNode.hasAttribute(SKIP_HYDRATION_ATTR_NAME);\n}\n/**\n * Checks whether a TNode has a flag to indicate that it's a part of\n * a skip hydration block.\n */\nfunction hasInSkipHydrationBlockFlag(tNode) {\n return (tNode.flags & 128 /* TNodeFlags.inSkipHydrationBlock */) === 128 /* TNodeFlags.inSkipHydrationBlock */;\n}\n/**\n * Helper function that determines if a given node is within a skip hydration block\n * by navigating up the TNode tree to see if any parent nodes have skip hydration\n * attribute.\n */\nfunction isInSkipHydrationBlock(tNode) {\n if (hasInSkipHydrationBlockFlag(tNode)) {\n return true;\n }\n let currentTNode = tNode.parent;\n while (currentTNode) {\n if (hasInSkipHydrationBlockFlag(tNode) || hasSkipHydrationAttrOnTNode(currentTNode)) {\n return true;\n }\n currentTNode = currentTNode.parent;\n }\n return false;\n}\n\n// Keeps track of the currently-active LViews.\nconst TRACKED_LVIEWS = /*#__PURE__*/new Map();\n// Used for generating unique IDs for LViews.\nlet uniqueIdCounter = 0;\n/** Gets a unique ID that can be assigned to an LView. */\nfunction getUniqueLViewId() {\n return uniqueIdCounter++;\n}\n/** Starts tracking an LView. */\nfunction registerLView(lView) {\n ngDevMode && assertNumber(lView[ID], 'LView must have an ID in order to be registered');\n TRACKED_LVIEWS.set(lView[ID], lView);\n}\n/** Gets an LView by its unique ID. */\nfunction getLViewById(id) {\n ngDevMode && assertNumber(id, 'ID used for LView lookup must be a number');\n return TRACKED_LVIEWS.get(id) || null;\n}\n/** Stops tracking an LView. */\nfunction unregisterLView(lView) {\n ngDevMode && assertNumber(lView[ID], 'Cannot stop tracking an LView that does not have an ID');\n TRACKED_LVIEWS.delete(lView[ID]);\n}\n\n/**\n * The internal view context which is specific to a given DOM element, directive or\n * component instance. Each value in here (besides the LView and element node details)\n * can be present, null or undefined. If undefined then it implies the value has not been\n * looked up yet, otherwise, if null, then a lookup was executed and nothing was found.\n *\n * Each value will get filled when the respective value is examined within the getContext\n * function. The component, element and each directive instance will share the same instance\n * of the context.\n */\nclass LContext {\n /** Component's parent view data. */\n get lView() {\n return getLViewById(this.lViewId);\n }\n constructor(\n /**\n * ID of the component's parent view data.\n */\n lViewId,\n /**\n * The index instance of the node.\n */\n nodeIndex,\n /**\n * The instance of the DOM node that is attached to the lNode.\n */\n native) {\n this.lViewId = lViewId;\n this.nodeIndex = nodeIndex;\n this.native = native;\n }\n}\n\n/**\n * Returns the matching `LContext` data for a given DOM node, directive or component instance.\n *\n * This function will examine the provided DOM element, component, or directive instance\\'s\n * monkey-patched property to derive the `LContext` data. Once called then the monkey-patched\n * value will be that of the newly created `LContext`.\n *\n * If the monkey-patched value is the `LView` instance then the context value for that\n * target will be created and the monkey-patch reference will be updated. Therefore when this\n * function is called it may mutate the provided element\\'s, component\\'s or any of the associated\n * directive\\'s monkey-patch values.\n *\n * If the monkey-patch value is not detected then the code will walk up the DOM until an element\n * is found which contains a monkey-patch reference. When that occurs then the provided element\n * will be updated with a new context (which is then returned). If the monkey-patch value is not\n * detected for a component/directive instance then it will throw an error (all components and\n * directives should be automatically monkey-patched by ivy).\n *\n * @param target Component, Directive or DOM Node.\n */\nfunction getLContext(target) {\n let mpValue = readPatchedData(target);\n if (mpValue) {\n // only when it's an array is it considered an LView instance\n // ... otherwise it's an already constructed LContext instance\n if (isLView(mpValue)) {\n const lView = mpValue;\n let nodeIndex;\n let component = undefined;\n let directives = undefined;\n if (isComponentInstance(target)) {\n nodeIndex = findViaComponent(lView, target);\n if (nodeIndex == -1) {\n throw new Error('The provided component was not found in the application');\n }\n component = target;\n } else if (isDirectiveInstance(target)) {\n nodeIndex = findViaDirective(lView, target);\n if (nodeIndex == -1) {\n throw new Error('The provided directive was not found in the application');\n }\n directives = getDirectivesAtNodeIndex(nodeIndex, lView);\n } else {\n nodeIndex = findViaNativeElement(lView, target);\n if (nodeIndex == -1) {\n return null;\n }\n }\n // the goal is not to fill the entire context full of data because the lookups\n // are expensive. Instead, only the target data (the element, component, container, ICU\n // expression or directive details) are filled into the context. If called multiple times\n // with different target values then the missing target data will be filled in.\n const native = unwrapRNode(lView[nodeIndex]);\n const existingCtx = readPatchedData(native);\n const context = existingCtx && !Array.isArray(existingCtx) ? existingCtx : createLContext(lView, nodeIndex, native);\n // only when the component has been discovered then update the monkey-patch\n if (component && context.component === undefined) {\n context.component = component;\n attachPatchData(context.component, context);\n }\n // only when the directives have been discovered then update the monkey-patch\n if (directives && context.directives === undefined) {\n context.directives = directives;\n for (let i = 0; i < directives.length; i++) {\n attachPatchData(directives[i], context);\n }\n }\n attachPatchData(context.native, context);\n mpValue = context;\n }\n } else {\n const rElement = target;\n ngDevMode && assertDomNode(rElement);\n // if the context is not found then we need to traverse upwards up the DOM\n // to find the nearest element that has already been monkey patched with data\n let parent = rElement;\n while (parent = parent.parentNode) {\n const parentContext = readPatchedData(parent);\n if (parentContext) {\n const lView = Array.isArray(parentContext) ? parentContext : parentContext.lView;\n // the edge of the app was also reached here through another means\n // (maybe because the DOM was changed manually).\n if (!lView) {\n return null;\n }\n const index = findViaNativeElement(lView, rElement);\n if (index >= 0) {\n const native = unwrapRNode(lView[index]);\n const context = createLContext(lView, index, native);\n attachPatchData(native, context);\n mpValue = context;\n break;\n }\n }\n }\n }\n return mpValue || null;\n}\n/**\n * Creates an empty instance of a `LContext` context\n */\nfunction createLContext(lView, nodeIndex, native) {\n return new LContext(lView[ID], nodeIndex, native);\n}\n/**\n * Takes a component instance and returns the view for that component.\n *\n * @param componentInstance\n * @returns The component's view\n */\nfunction getComponentViewByInstance(componentInstance) {\n let patchedData = readPatchedData(componentInstance);\n let lView;\n if (isLView(patchedData)) {\n const contextLView = patchedData;\n const nodeIndex = findViaComponent(contextLView, componentInstance);\n lView = getComponentLViewByIndex(nodeIndex, contextLView);\n const context = createLContext(contextLView, nodeIndex, lView[HOST]);\n context.component = componentInstance;\n attachPatchData(componentInstance, context);\n attachPatchData(context.native, context);\n } else {\n const context = patchedData;\n const contextLView = context.lView;\n ngDevMode && assertLView(contextLView);\n lView = getComponentLViewByIndex(context.nodeIndex, contextLView);\n }\n return lView;\n}\n/**\n * This property will be monkey-patched on elements, components and directives.\n */\nconst MONKEY_PATCH_KEY_NAME = '__ngContext__';\n/**\n * Assigns the given data to the given target (which could be a component,\n * directive or DOM node instance) using monkey-patching.\n */\nfunction attachPatchData(target, data) {\n ngDevMode && assertDefined(target, 'Target expected');\n // Only attach the ID of the view in order to avoid memory leaks (see #41047). We only do this\n // for `LView`, because we have control over when an `LView` is created and destroyed, whereas\n // we can't know when to remove an `LContext`.\n if (isLView(data)) {\n target[MONKEY_PATCH_KEY_NAME] = data[ID];\n registerLView(data);\n } else {\n target[MONKEY_PATCH_KEY_NAME] = data;\n }\n}\n/**\n * Returns the monkey-patch value data present on the target (which could be\n * a component, directive or a DOM node).\n */\nfunction readPatchedData(target) {\n ngDevMode && assertDefined(target, 'Target expected');\n const data = target[MONKEY_PATCH_KEY_NAME];\n return typeof data === 'number' ? getLViewById(data) : data || null;\n}\nfunction readPatchedLView(target) {\n const value = readPatchedData(target);\n if (value) {\n return isLView(value) ? value : value.lView;\n }\n return null;\n}\nfunction isComponentInstance(instance) {\n return instance && instance.constructor && instance.constructor.ɵcmp;\n}\nfunction isDirectiveInstance(instance) {\n return instance && instance.constructor && instance.constructor.ɵdir;\n}\n/**\n * Locates the element within the given LView and returns the matching index\n */\nfunction findViaNativeElement(lView, target) {\n const tView = lView[TVIEW];\n for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {\n if (unwrapRNode(lView[i]) === target) {\n return i;\n }\n }\n return -1;\n}\n/**\n * Locates the next tNode (child, sibling or parent).\n */\nfunction traverseNextElement(tNode) {\n if (tNode.child) {\n return tNode.child;\n } else if (tNode.next) {\n return tNode.next;\n } else {\n // Let's take the following template:
text
\n // After checking the text node, we need to find the next parent that has a \"next\" TNode,\n // in this case the parent `div`, so that we can find the component.\n while (tNode.parent && !tNode.parent.next) {\n tNode = tNode.parent;\n }\n return tNode.parent && tNode.parent.next;\n }\n}\n/**\n * Locates the component within the given LView and returns the matching index\n */\nfunction findViaComponent(lView, componentInstance) {\n const componentIndices = lView[TVIEW].components;\n if (componentIndices) {\n for (let i = 0; i < componentIndices.length; i++) {\n const elementComponentIndex = componentIndices[i];\n const componentView = getComponentLViewByIndex(elementComponentIndex, lView);\n if (componentView[CONTEXT] === componentInstance) {\n return elementComponentIndex;\n }\n }\n } else {\n const rootComponentView = getComponentLViewByIndex(HEADER_OFFSET, lView);\n const rootComponent = rootComponentView[CONTEXT];\n if (rootComponent === componentInstance) {\n // we are dealing with the root element here therefore we know that the\n // element is the very first element after the HEADER data in the lView\n return HEADER_OFFSET;\n }\n }\n return -1;\n}\n/**\n * Locates the directive within the given LView and returns the matching index\n */\nfunction findViaDirective(lView, directiveInstance) {\n // if a directive is monkey patched then it will (by default)\n // have a reference to the LView of the current view. The\n // element bound to the directive being search lives somewhere\n // in the view data. We loop through the nodes and check their\n // list of directives for the instance.\n let tNode = lView[TVIEW].firstChild;\n while (tNode) {\n const directiveIndexStart = tNode.directiveStart;\n const directiveIndexEnd = tNode.directiveEnd;\n for (let i = directiveIndexStart; i < directiveIndexEnd; i++) {\n if (lView[i] === directiveInstance) {\n return tNode.index;\n }\n }\n tNode = traverseNextElement(tNode);\n }\n return -1;\n}\n/**\n * Returns a list of directives applied to a node at a specific index. The list includes\n * directives matched by selector and any host directives, but it excludes components.\n * Use `getComponentAtNodeIndex` to find the component applied to a node.\n *\n * @param nodeIndex The node index\n * @param lView The target view data\n */\nfunction getDirectivesAtNodeIndex(nodeIndex, lView) {\n const tNode = lView[TVIEW].data[nodeIndex];\n if (tNode.directiveStart === 0) return EMPTY_ARRAY;\n const results = [];\n for (let i = tNode.directiveStart; i < tNode.directiveEnd; i++) {\n const directiveInstance = lView[i];\n if (!isComponentInstance(directiveInstance)) {\n results.push(directiveInstance);\n }\n }\n return results;\n}\nfunction getComponentAtNodeIndex(nodeIndex, lView) {\n const tNode = lView[TVIEW].data[nodeIndex];\n const {\n directiveStart,\n componentOffset\n } = tNode;\n return componentOffset > -1 ? lView[directiveStart + componentOffset] : null;\n}\n/**\n * Returns a map of local references (local reference name => element or directive instance) that\n * exist on a given element.\n */\nfunction discoverLocalRefs(lView, nodeIndex) {\n const tNode = lView[TVIEW].data[nodeIndex];\n if (tNode && tNode.localNames) {\n const result = {};\n let localIndex = tNode.index + 1;\n for (let i = 0; i < tNode.localNames.length; i += 2) {\n result[tNode.localNames[i]] = lView[localIndex];\n localIndex++;\n }\n return result;\n }\n return null;\n}\n\n/**\n * Retrieve the root view from any component or `LView` by walking the parent `LView` until\n * reaching the root `LView`.\n *\n * @param componentOrLView any component or `LView`\n */\nfunction getRootView(componentOrLView) {\n ngDevMode && assertDefined(componentOrLView, 'component');\n let lView = isLView(componentOrLView) ? componentOrLView : readPatchedLView(componentOrLView);\n while (lView && !(lView[FLAGS] & 512 /* LViewFlags.IsRoot */)) {\n lView = getLViewParent(lView);\n }\n ngDevMode && assertLView(lView);\n return lView;\n}\n/**\n * Returns the context information associated with the application where the target is situated. It\n * does this by walking the parent views until it gets to the root view, then getting the context\n * off of that.\n *\n * @param viewOrComponent the `LView` or component to get the root context for.\n */\nfunction getRootContext(viewOrComponent) {\n const rootView = getRootView(viewOrComponent);\n ngDevMode && assertDefined(rootView[CONTEXT], 'Root view has no context. Perhaps it is disconnected?');\n return rootView[CONTEXT];\n}\n/**\n * Gets the first `LContainer` in the LView or `null` if none exists.\n */\nfunction getFirstLContainer(lView) {\n return getNearestLContainer(lView[CHILD_HEAD]);\n}\n/**\n * Gets the next `LContainer` that is a sibling of the given container.\n */\nfunction getNextLContainer(container) {\n return getNearestLContainer(container[NEXT]);\n}\nfunction getNearestLContainer(viewOrContainer) {\n while (viewOrContainer !== null && !isLContainer(viewOrContainer)) {\n viewOrContainer = viewOrContainer[NEXT];\n }\n return viewOrContainer;\n}\n\n/**\n * Retrieves the component instance associated with a given DOM element.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * \n *
\n * \n *
\n *
\n * ```\n *\n * Calling `getComponent` on `` will return the instance of `ChildComponent`\n * associated with this DOM element.\n *\n * Calling the function on `` will return the `MyApp` instance.\n *\n *\n * @param element DOM element from which the component should be retrieved.\n * @returns Component instance associated with the element or `null` if there\n * is no component associated with it.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getComponent$1(element) {\n ngDevMode && assertDomElement(element);\n const context = getLContext(element);\n if (context === null) return null;\n if (context.component === undefined) {\n const lView = context.lView;\n if (lView === null) {\n return null;\n }\n context.component = getComponentAtNodeIndex(context.nodeIndex, lView);\n }\n return context.component;\n}\n/**\n * If inside an embedded view (e.g. `*ngIf` or `*ngFor`), retrieves the context of the embedded\n * view that the element is part of. Otherwise retrieves the instance of the component whose view\n * owns the element (in this case, the result is the same as calling `getOwningComponent`).\n *\n * @param element Element for which to get the surrounding component instance.\n * @returns Instance of the component that is around the element or null if the element isn't\n * inside any component.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getContext(element) {\n assertDomElement(element);\n const context = getLContext(element);\n const lView = context ? context.lView : null;\n return lView === null ? null : lView[CONTEXT];\n}\n/**\n * Retrieves the component instance whose view contains the DOM element.\n *\n * For example, if `` is used in the template of ``\n * (i.e. a `ViewChild` of ``), calling `getOwningComponent` on ``\n * would return ``.\n *\n * @param elementOrDir DOM element, component or directive instance\n * for which to retrieve the root components.\n * @returns Component instance whose view owns the DOM element or null if the element is not\n * part of a component view.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getOwningComponent(elementOrDir) {\n const context = getLContext(elementOrDir);\n let lView = context ? context.lView : null;\n if (lView === null) return null;\n let parent;\n while (lView[TVIEW].type === 2 /* TViewType.Embedded */ && (parent = getLViewParent(lView))) {\n lView = parent;\n }\n return lView[FLAGS] & 512 /* LViewFlags.IsRoot */ ? null : lView[CONTEXT];\n}\n/**\n * Retrieves all root components associated with a DOM element, directive or component instance.\n * Root components are those which have been bootstrapped by Angular.\n *\n * @param elementOrDir DOM element, component or directive instance\n * for which to retrieve the root components.\n * @returns Root components associated with the target object.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getRootComponents(elementOrDir) {\n const lView = readPatchedLView(elementOrDir);\n return lView !== null ? [getRootContext(lView)] : [];\n}\n/**\n * Retrieves an `Injector` associated with an element, component or directive instance.\n *\n * @param elementOrDir DOM element, component or directive instance for which to\n * retrieve the injector.\n * @returns Injector associated with the element, component or directive instance.\n *\n * @publicApi\n * @globalApi ng\n */\nfunction getInjector(elementOrDir) {\n const context = getLContext(elementOrDir);\n const lView = context ? context.lView : null;\n if (lView === null) return Injector.NULL;\n const tNode = lView[TVIEW].data[context.nodeIndex];\n return new NodeInjector(tNode, lView);\n}\n/**\n * Retrieve a set of injection tokens at a given DOM node.\n *\n * @param element Element for which the injection tokens should be retrieved.\n */\nfunction getInjectionTokens(element) {\n const context = getLContext(element);\n const lView = context ? context.lView : null;\n if (lView === null) return [];\n const tView = lView[TVIEW];\n const tNode = tView.data[context.nodeIndex];\n const providerTokens = [];\n const startIndex = tNode.providerIndexes & 1048575 /* TNodeProviderIndexes.ProvidersStartIndexMask */;\n const endIndex = tNode.directiveEnd;\n for (let i = startIndex; i < endIndex; i++) {\n let value = tView.data[i];\n if (isDirectiveDefHack(value)) {\n // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a\n // design flaw. We should always store same type so that we can be monomorphic. The issue\n // is that for Components/Directives we store the def instead the type. The correct behavior\n // is that we should always be storing injectable type in this location.\n value = value.type;\n }\n providerTokens.push(value);\n }\n return providerTokens;\n}\n/**\n * Retrieves directive instances associated with a given DOM node. Does not include\n * component instances.\n *\n * @usageNotes\n * Given the following DOM structure:\n *\n * ```html\n * \n * \n * \n * \n * ```\n *\n * Calling `getDirectives` on ` May
Mon
Tue
Wed
Thu
Fri
Sat
Sun
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
+ \ No newline at end of file diff --git a/main-CMUARRQG.js b/main-KUPR62DY.js similarity index 98% rename from main-CMUARRQG.js rename to main-KUPR62DY.js index 11bbcf13..85e6e702 100644 --- a/main-CMUARRQG.js +++ b/main-KUPR62DY.js @@ -1,4 +1,4 @@ -import{$d as ye,Aa as C,Ab as ct,Ac as $,B as y,Ba as wt,Bb as pt,Bc as V,Ca as Pt,Cb as ut,Ce as He,Ea as A,Ec as ie,F as vt,Fa as T,G as u,Ga as Nt,Gc as oe,Ha as b,Hc as N,I as x,Ic as z,J as gt,Jc as ne,Kb as U,Kc as G,Lc as re,Ma as Rt,Mc as se,Me as Se,N as ht,Nc as le,Oc as Z,P as f,Q as m,Qe as Ae,R as Tt,Re as je,Sc as ae,T as _t,Ta as M,Tc as W,Ua as xt,Ub as Kt,Uc as ce,V as nt,Va as Et,W as rt,X as P,Xc as g,Ya as j,Yb as qt,Z as yt,Za as B,_ as Ct,_a as kt,_b as Jt,a as dt,aa as Mt,ae as Ce,ba as st,bb as Bt,cb as D,da as lt,db as I,ea as E,eb as Lt,fb as O,fc as Xt,ga as v,gb as F,gc as Qt,ha as r,hb as L,hd as pe,ib as _,ic as te,id as ue,j as R,ja as Dt,jb as Ut,jd as Y,k as w,ka as It,kb as $t,kd as me,ke as Me,l as S,la as Ot,lb as Vt,ld as K,ma as bt,mb as zt,na as Ht,nb as Gt,nd as de,ob as Zt,od as fe,pb as Wt,pd as ve,pe as De,qa as a,qd as q,ra as St,rd as ge,s as ft,sa as s,sd as he,se as Ie,ta as At,te as Oe,ua as k,ud as Te,va as p,vd as _e,ve as be,wa as c,xa as d,xc as ee,ya as jt,yb as Yt,za as Ft,zb as at}from"./chunk-ZMRV6PSF.js";function Ke(t,i){if(t&1&&(C(0,3),j(1,"tuiMapper")),t&2){let e=i.$implicit,o=T(2);s("ngComponentOutlet",e.component.component)("ngComponentOutletInjector",kt(1,2,e,o.mapper))}}function qe(t,i){if(t&1&&(p(0,"div",1),a(1,Ke,2,5,"ng-container",2),c()),t&2){let e=i.$implicit;s("@tuiParentAnimation",void 0),v(),s("ngForOf",e)}}var Fe=(()=>{class t{constructor(e,o,n,l){this.allAlerts=e,this.injector=o,this.destroy$=n,this.cdr=l,this.alerts=[],this.trackBy=h=>h,this.mapper=h=>yt.create({providers:[{provide:ee,useValue:h}],parent:this.injector})}ngOnInit(){S(this.allAlerts).pipe(y(this.destroy$)).subscribe(e=>{this.alerts=e,this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r(le),r(ht),r(g,2),r(D))},t.\u0275cmp=f({type:t,selectors:[["tui-alert-host"]],features:[M([g])],decls:1,vars:2,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(e,o){e&1&&a(0,qe,2,2,"div",0),e&2&&s("ngForOf",o.alerts)("ngForTrackBy",o.trackBy)},dependencies:[O,Lt,pe],styles:[`tui-alert-host>.t-wrapper{position:fixed;top:0;left:0;display:flex;width:100%;height:100%;flex-direction:column;pointer-events:none}tui-alert-host>.t-wrapper>*{pointer-events:auto} +import{$d as ye,Aa as C,Ab as ct,Ac as $,B as y,Ba as wt,Bb as pt,Bc as V,Ca as Pt,Cb as ut,Ce as He,Ea as A,Ec as ie,F as vt,Fa as T,G as u,Ga as Nt,Gc as oe,Ha as b,Hc as N,I as x,Ic as z,J as gt,Jc as ne,Kb as U,Kc as G,Lc as re,Ma as Rt,Mc as se,Me as Se,N as ht,Nc as le,Oc as Z,P as f,Q as m,Qe as Ae,R as Tt,Re as je,Sc as ae,T as _t,Ta as M,Tc as W,Ua as xt,Ub as Kt,Uc as ce,V as nt,Va as Et,W as rt,X as P,Xc as g,Ya as j,Yb as qt,Z as yt,Za as B,_ as Ct,_a as kt,_b as Jt,a as dt,aa as Mt,ae as Ce,ba as st,bb as Bt,cb as D,da as lt,db as I,ea as E,eb as Lt,fb as O,fc as Xt,ga as v,gb as F,gc as Qt,ha as r,hb as L,hd as pe,ib as _,ic as te,id as ue,j as R,ja as Dt,jb as Ut,jd as Y,k as w,ka as It,kb as $t,kd as me,ke as Me,l as S,la as Ot,lb as Vt,ld as K,ma as bt,mb as zt,na as Ht,nb as Gt,nd as de,ob as Zt,od as fe,pb as Wt,pd as ve,pe as De,qa as a,qd as q,ra as St,rd as ge,s as ft,sa as s,sd as he,se as Ie,ta as At,te as Oe,ua as k,ud as Te,va as p,vd as _e,ve as be,wa as c,xa as d,xc as ee,ya as jt,yb as Yt,za as Ft,zb as at}from"./chunk-GH5PDYR7.js";function Ke(t,i){if(t&1&&(C(0,3),j(1,"tuiMapper")),t&2){let e=i.$implicit,o=T(2);s("ngComponentOutlet",e.component.component)("ngComponentOutletInjector",kt(1,2,e,o.mapper))}}function qe(t,i){if(t&1&&(p(0,"div",1),a(1,Ke,2,5,"ng-container",2),c()),t&2){let e=i.$implicit;s("@tuiParentAnimation",void 0),v(),s("ngForOf",e)}}var Fe=(()=>{class t{constructor(e,o,n,l){this.allAlerts=e,this.injector=o,this.destroy$=n,this.cdr=l,this.alerts=[],this.trackBy=h=>h,this.mapper=h=>yt.create({providers:[{provide:ee,useValue:h}],parent:this.injector})}ngOnInit(){S(this.allAlerts).pipe(y(this.destroy$)).subscribe(e=>{this.alerts=e,this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r(le),r(ht),r(g,2),r(D))},t.\u0275cmp=f({type:t,selectors:[["tui-alert-host"]],features:[M([g])],decls:1,vars:2,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(e,o){e&1&&a(0,qe,2,2,"div",0),e&2&&s("ngForOf",o.alerts)("ngForTrackBy",o.trackBy)},dependencies:[O,Lt,pe],styles:[`tui-alert-host>.t-wrapper{position:fixed;top:0;left:0;display:flex;width:100%;height:100%;flex-direction:column;pointer-events:none}tui-alert-host>.t-wrapper>*{pointer-events:auto} `],encapsulation:2,data:{animation:[U]}}),t})(),we=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m({type:t}),t.\u0275inj=u({imports:[[_,ue]]}),t})();var Pe=(()=>{class t{constructor(e,o,n){this.doc=e,this.el=o,this.renderer=n,this.activeElement=Xt(this.doc),Promise.resolve().then(()=>this.el.nativeElement.focus())}onBlur(){this.renderer.removeAttribute(this.el.nativeElement,"tabIndex")}onFocusIn(e){let{nativeElement:o}=this.el;if(qt(o,e))return;let n=te({initial:o,root:o});n&&n.focus()}ngOnDestroy(){Qt(this.doc),Promise.resolve().then(()=>{Jt(this.activeElement)&&this.activeElement.focus()})}}return t.\u0275fac=function(e){return new(e||t)(r(I),r(Ct),r(Ot))},t.\u0275dir=Tt({type:t,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(e,o){e&1&&A("blur",function(){return o.onBlur()})("focusin.silent",function(l){return o.onFocusIn(l.target)},!1,E)}}),t})(),Ne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m({type:t}),t.\u0275inj=u({}),t})();function Xe(t,i){t&1&&C(0)}function Qe(t,i){t&1&&d(0,"tui-scroll-controls",5)}function ti(t,i){if(t&1&&(p(0,"section",2),a(1,Xe,1,0,"ng-container",3)(2,Qe,1,0,"tui-scroll-controls",4),c()),t&2){let e=i.$implicit,o=T();s("@host",void 0),St("aria-labelledby",e.id),v(),s("polymorpheusOutlet",e.component)("polymorpheusOutletContext",e),v(),s("ngIf",!o.isMobile)}}function ei(t,i){if(t&1){let e=wt();p(0,"div",6),A("transitionend",function(n){let l=nt(e).tuiLet,h=T();return rt(h.onDialog(n,!!h.dialogs.length,!!l))})("popstate",function(){let n=nt(e).tuiLet,l=T();return rt(l.closeLast(l.dialogs,!!n))},!1,E),c()}if(t&2){let e=T();k("t-overlay_visible",e.dialogs.length)}}var mt={label:"ignoreMe"},ii=t=>(t==null?void 0:t.label)===mt.label,oi=Kt(R(!1)),Re=(()=>{class t{constructor(e,o,n,l,h,Q,tt,et){this.isMobile=e,this.isDialogClosesOnBack$=o,this.dialogsByType=n,this.historyRef=l,this.titleService=h,this.destroy$=Q,this.cdr=tt,this.doc=et,this.dialogs=[]}ngOnInit(){S(this.dialogsByType).pipe(w(e=>[].concat(...e).sort((o,n)=>o.createdAt-n.createdAt)),y(this.destroy$)).subscribe(e=>{var o;this.dialogs=e,this.cdr.markForCheck(),(o=this.doc.defaultView)===null||o===void 0||o.document.documentElement.classList.toggle("t-overscroll-none",!!e.length)})}closeLast(e,o){if(!o)return;let[n]=e.slice(-1);n&&(e.length>1&&this.historyRef.pushState(mt,this.titleService.getTitle()),n.$implicit.complete())}onDialog({propertyName:e},o,n){!n||e!=="letter-spacing"||(o?this.historyRef.pushState(mt,this.titleService.getTitle()):ii(this.historyRef.state)&&this.historyRef.back())}}return t.\u0275fac=function(e){return new(e||t)(r(W),r(oi),r(Z),r(ie),r(zt),r(g,2),r(D),r(I))},t.\u0275cmp=f({type:t,selectors:[["tui-dialog-host"]],features:[M([g])],decls:3,vars:4,consts:[["aria-modal","true","role","dialog","tuiFocusTrap","","tuiOverscroll","all","tuiScrollRef","","class","t-dialog",4,"ngFor","ngForOf"],["class","t-overlay",3,"t-overlay_visible","transitionend","popstate",4,"tuiLet"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiOverscroll","all","tuiScrollRef","",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["class","t-scrollbars",4,"ngIf"],[1,"t-scrollbars"],[1,"t-overlay",3,"transitionend","popstate"]],template:function(e,o){e&1&&(a(0,ti,3,5,"section",0)(1,ei,1,2,"div",1),j(2,"async")),e&2&&(s("ngForOf",o.dialogs),v(),s("tuiLet",B(2,2,o.isDialogClosesOnBack$)))},dependencies:[Y,O,Pe,ge,me,$,F,ve,L],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;scrollbar-width:none;-ms-overflow-style:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar, .t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}.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, .3s),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}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;margin:0;color:#747474}"],data:{animation:[Yt("host",[ct(":enter",[at({overflow:"clip"}),ut(":scope > *",[pt()],{optional:!0})]),ct(":leave",[at({overflow:"clip"}),ut(":scope > *",[pt()],{optional:!0})])])]}}),t})(),xe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m({type:t}),t.\u0275inj=u({imports:[[_,V,he,Ne,q,K]]}),t})();var ri=t=>({$implicit:t});function si(t,i){t&1&&C(0)}function li(t,i){if(t&1&&(p(0,"div",1),a(1,si,1,0,"ng-container",2),c()),t&2){let e=i.$implicit;s("@tuiParentAnimation",void 0)("tuiActiveZoneParent",e.activeZone||null),v(),s("polymorpheusOutlet",e.component)("polymorpheusOutletContext",Et(4,ri,e))}}var Ee=(()=>{class t{constructor(e,o,n){this.hints$=e,this.destroy$=o,this.cdr=n,this.hints=[]}ngOnInit(){this.hints$.pipe(y(this.destroy$)).subscribe(e=>{this.hints=e,this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r(Oe),r(g,2),r(D))},t.\u0275cmp=f({type:t,selectors:[["tui-hints-host"]],hostAttrs:["aria-live","polite"],features:[M([g])],decls:1,vars:1,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(e,o){e&1&&a(0,li,2,6,"div",0),e&2&&s("ngForOf",o.hints)},dependencies:[O,de,$],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}"],data:{animation:[U]}}),t})(),ke=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m({type:t}),t.\u0275inj=u({imports:[[_,V,fe]]}),t})();function ci(t,i){if(t&1&&(P(),d(0,"defs",4)),t&2){let e=i.$implicit;s("innerHTML",e,lt)}}function pi(t,i){if(t&1&&(P(),jt(0),a(1,ci,1,1,"defs",3),Ft()),t&2){let e=T();v(),s("ngForOf",e.items)}}function ui(t,i){if(t&1&&(P(),p(0,"defs"),d(1,"svg",6),c()),t&2){let e=i.$implicit;v(),s("outerHTML",e,lt)}}function mi(t,i){if(t&1&&a(0,ui,2,1,"defs",5),t&2){let e=T();s("ngForOf",e.items)}}var Be=(()=>{class t{constructor(e,o,n,l){this.svgService=e,this.cdr=o,this.destroy$=n,this.isBrowser=!0,this.isBrowser=!Ut(l)}ngOnInit(){this.svgService.items$.pipe(y(this.destroy$)).subscribe(e=>{this.items=e.values(),this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(r(be),r(D),r(g,2),r(Mt))},t.\u0275cmp=f({type:t,selectors:[["tui-svg-defs-host"]],features:[M([g])],decls:4,vars:2,consts:[["server",""],["version","1.1",0,"xmlns","xlink","http://www.w3.org/1999/xlink","xmlns","http://www.w3.org/2000/svg"],[4,"ngIf","ngIfElse"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[3,"outerHTML"]],template:function(e,o){if(e&1&&(P(),p(0,"svg",1),a(1,pi,2,1,"ng-container",2)(2,mi,1,1,"ng-template",null,0,Bt),c()),e&2){let n=Rt(3);v(),s("ngIf",o.isBrowser)("ngIfElse",n)}},dependencies:[F,O],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0}),t})(),Le=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m({type:t}),t.\u0275inj=u({imports:[[_,q]]}),t})();var fi=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],vi=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];function gi(t,i){t&1&&d(0,"tui-scroll-controls",2)}var Ue=(()=>{class t{constructor(e,o,n,l,h,Q,tt,et,We){var it;this.reducedMotion=e,this.duration=o,this.dialogs=n,this.isMobile=l,this.breakpoint=h,this.isIOS=Q,this.isAndroid=tt,this.isMobileRes$=this.breakpoint.pipe(w(ot=>ot==="mobile")),this.scrollbars$=this.dialogs.length&&!this.isMobile?S([...this.dialogs]).pipe(w(ot=>!ot.some(({length:Ye})=>Ye)),ft(0)):R(!this.isMobile),(it=et.defaultView)===null||it===void 0||it.document.body.setAttribute("data-tui-theme",We.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)(r(ye),r(Ce),r(Z),r(W),r(Ie),r(ae),r(ce),r(I),r(De))},t.\u0275cmp=f({type:t,selectors:[["tui-root"]],hostAttrs:["data-tui-version","3.74.0"],hostVars:9,hostBindings:function(e,o){e&1&&A("touchstart.passive.silent",function(){return 0})("$.class._mobile",function(){return o.isMobileRes$}),e&2&&(Pt("$.class._mobile",o.isMobileRes$),At("--tui-duration",o.duration,"ms"),k("_ios",o.isIOS)("_android",o.isAndroid)("_reduced-motion",o.reducedMotion))},ngContentSelectors:vi,decls:14,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(e,o){e&1&&(Nt(fi),a(0,gi,1,0,"tui-scroll-controls",0),j(1,"async"),d(2,"tui-svg-defs-host"),p(3,"tui-dropdown-host")(4,"div",1),b(5),c(),b(6,1),d(7,"tui-dialog-host"),b(8,2),d(9,"tui-alert-host"),b(10,3),c(),b(11,4),d(12,"tui-hints-host"),b(13,5)),e&2&&s("ngIf",B(1,1,o.scrollbars$))},dependencies:[Y,Be,Te,Re,Fe,Ee,F,L],styles:[`@keyframes tuiPresent{to{content:"1"}}@keyframes tuiSkeletonVibe{to{opacity:.5}}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{display:none}body[data-tui-theme]{font:var(--tui-font-text-s);color:var(--tui-text-01);background:var(--tui-base-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;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{height:100%;isolation:isolate}.t-overscroll-none{overscroll-behavior:none} -`],encapsulation:2}),t})(),X=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m({type:t}),t.\u0275inj=u({imports:[[_,He,_e,Le,ke,xe,we,K]]}),t})();var $e=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=f({type:i,selectors:[["app"]],standalone:!0,features:[xt],decls:7,vars:0,consts:[["ngProjectAs","tuiOverContent",5,["tuiOverContent"]],["ngProjectAs","tuiOverDialogs",5,["tuiOverDialogs"]],["ngProjectAs","tuiOverAlerts",5,["tuiOverAlerts"]],["ngProjectAs","tuiOverPortals",5,["tuiOverPortals"]],["ngProjectAs","tuiOverHints",5,["tuiOverHints"]]],template:function(n,l){n&1&&(p(0,"tui-root"),d(1,"router-outlet"),C(2,0)(3,1)(4,2)(5,3)(6,4),c())},dependencies:[X,Ue,Zt],encapsulation:2,changeDetection:0});let t=i;return t})();var hi=(()=>{let i=class i extends G{constructor(o,n,l){super(o,n,l,gt(Dt,{optional:!0}))}ngOnDestroy(){this.flush()}};i.\u0275fac=function(n){return new(n||i)(x(I),x(N),x(z))},i.\u0275prov=vt({token:i,factory:i.\u0275fac});let t=i;return t})();function Ti(){return new ne}function _i(t,i,e){return new se(t,i,e)}var Ve=[{provide:z,useFactory:Ti},{provide:G,useClass:hi},{provide:It,useFactory:_i,deps:[$t,G,Ht]}],yi=[{provide:N,useFactory:()=>new re},{provide:st,useValue:"BrowserAnimations"},...Ve],ln=[{provide:N,useClass:oe},{provide:st,useValue:"NoopAnimations"},...Ve];function ze(){return bt("NgEagerAnimations"),[...yi]}var Ge={providers:[ze(),Wt([{path:"",pathMatch:"full",loadComponent:()=>dt(void 0,null,function*(){return import("./chunk-TCVSCQDS.js")})}]),Gt(),_t(X,Se,Ae),{provide:Me,useClass:je}]};var Ze={production:!1};Ze.production&&void 0;Vt($e,Ge).catch(t=>console.error(t)); -//# sourceMappingURL=main-CMUARRQG.js.map +`],encapsulation:2}),t})(),X=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=m({type:t}),t.\u0275inj=u({imports:[[_,He,_e,Le,ke,xe,we,K]]}),t})();var $e=(()=>{let i=class i{};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=f({type:i,selectors:[["app"]],standalone:!0,features:[xt],decls:7,vars:0,consts:[["ngProjectAs","tuiOverContent",5,["tuiOverContent"]],["ngProjectAs","tuiOverDialogs",5,["tuiOverDialogs"]],["ngProjectAs","tuiOverAlerts",5,["tuiOverAlerts"]],["ngProjectAs","tuiOverPortals",5,["tuiOverPortals"]],["ngProjectAs","tuiOverHints",5,["tuiOverHints"]]],template:function(n,l){n&1&&(p(0,"tui-root"),d(1,"router-outlet"),C(2,0)(3,1)(4,2)(5,3)(6,4),c())},dependencies:[X,Ue,Zt],encapsulation:2,changeDetection:0});let t=i;return t})();var hi=(()=>{let i=class i extends G{constructor(o,n,l){super(o,n,l,gt(Dt,{optional:!0}))}ngOnDestroy(){this.flush()}};i.\u0275fac=function(n){return new(n||i)(x(I),x(N),x(z))},i.\u0275prov=vt({token:i,factory:i.\u0275fac});let t=i;return t})();function Ti(){return new ne}function _i(t,i,e){return new se(t,i,e)}var Ve=[{provide:z,useFactory:Ti},{provide:G,useClass:hi},{provide:It,useFactory:_i,deps:[$t,G,Ht]}],yi=[{provide:N,useFactory:()=>new re},{provide:st,useValue:"BrowserAnimations"},...Ve],ln=[{provide:N,useClass:oe},{provide:st,useValue:"NoopAnimations"},...Ve];function ze(){return bt("NgEagerAnimations"),[...yi]}var Ge={providers:[ze(),Wt([{path:"",pathMatch:"full",loadComponent:()=>dt(void 0,null,function*(){return import("./chunk-B6556NEC.js")})}]),Gt(),_t(X,Se,Ae),{provide:Me,useClass:je}]};var Ze={production:!1};Ze.production&&void 0;Vt($e,Ge).catch(t=>console.error(t)); +//# sourceMappingURL=main-KUPR62DY.js.map diff --git a/main-CMUARRQG.js.map b/main-KUPR62DY.js.map similarity index 99% rename from main-CMUARRQG.js.map rename to main-KUPR62DY.js.map index f82ee4d8..363fb59e 100644 --- a/main-CMUARRQG.js.map +++ b/main-KUPR62DY.js.map @@ -1 +1 @@ -{"version":3,"sources":["node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-alert-host.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-focus-trap.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-dialog-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-hints-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-internal-svg-defs-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-root.js","apps/demo/src/app/app.component.ts","apps/demo/src/app/app.component.html","node_modules/@angular/platform-browser/fesm2022/animations.mjs","apps/demo/src/app/app.config.ts","apps/demo/src/environments/environment.ts","apps/demo/src/main.ts"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injector, INJECTOR, ChangeDetectorRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport { TUI_PARENT_ANIMATION } from '@taiga-ui/cdk/constants';\nimport { TuiDestroyService } from '@taiga-ui/cdk/services';\nimport { TUI_ALERTS } from '@taiga-ui/cdk/tokens';\nimport { POLYMORPHEUS_CONTEXT } from '@tinkoff/ng-polymorpheus';\nimport * as i3 from 'rxjs';\nimport { combineLatest } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i2 from '@taiga-ui/cdk/pipes';\nimport { TuiMapperPipeModule } from '@taiga-ui/cdk/pipes';\nfunction TuiAlertHostComponent_div_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0, 3);\n i0.ɵɵpipe(1, \"tuiMapper\");\n }\n if (rf & 2) {\n const item_r1 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngComponentOutlet\", item_r1.component.component)(\"ngComponentOutletInjector\", i0.ɵɵpipeBind2(1, 2, item_r1, ctx_r1.mapper));\n }\n}\nfunction TuiAlertHostComponent_div_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵtemplate(1, TuiAlertHostComponent_div_0_ng_container_1_Template, 2, 5, \"ng-container\", 2);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const alert_r3 = ctx.$implicit;\n i0.ɵɵproperty(\"@tuiParentAnimation\", undefined);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", alert_r3);\n }\n}\nlet TuiAlertHostComponent = /*#__PURE__*/(() => {\n class TuiAlertHostComponent {\n constructor(allAlerts, injector, destroy$, cdr) {\n this.allAlerts = allAlerts;\n this.injector = injector;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.alerts = [];\n this.trackBy = index => index;\n this.mapper = useValue => Injector.create({\n providers: [{\n provide: POLYMORPHEUS_CONTEXT,\n useValue\n }],\n parent: this.injector\n });\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n combineLatest(this.allAlerts).pipe(takeUntil(this.destroy$)).subscribe(alerts => {\n this.alerts = alerts;\n this.cdr.detectChanges();\n });\n }\n }\n TuiAlertHostComponent.ɵfac = function TuiAlertHostComponent_Factory(t) {\n return new (t || TuiAlertHostComponent)(i0.ɵɵdirectiveInject(TUI_ALERTS), i0.ɵɵdirectiveInject(INJECTOR), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef));\n };\n TuiAlertHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiAlertHostComponent,\n selectors: [[\"tui-alert-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 1,\n vars: 2,\n consts: [[\"class\", \"t-wrapper\", 4, \"ngFor\", \"ngForOf\", \"ngForTrackBy\"], [1, \"t-wrapper\"], [3, \"ngComponentOutlet\", \"ngComponentOutletInjector\", 4, \"ngFor\", \"ngForOf\"], [3, \"ngComponentOutlet\", \"ngComponentOutletInjector\"]],\n template: function TuiAlertHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiAlertHostComponent_div_0_Template, 2, 2, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.alerts)(\"ngForTrackBy\", ctx.trackBy);\n }\n },\n dependencies: [i1.NgForOf, i1.NgComponentOutlet, i2.TuiMapperPipe],\n styles: [\"tui-alert-host>.t-wrapper{position:fixed;top:0;left:0;display:flex;width:100%;height:100%;flex-direction:column;pointer-events:none}tui-alert-host>.t-wrapper>*{pointer-events:auto}\\n\"],\n encapsulation: 2,\n data: {\n animation: [TUI_PARENT_ANIMATION]\n }\n });\n return TuiAlertHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiAlertHostModule = /*#__PURE__*/(() => {\n class TuiAlertHostModule {}\n TuiAlertHostModule.ɵfac = function TuiAlertHostModule_Factory(t) {\n return new (t || TuiAlertHostModule)();\n };\n TuiAlertHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiAlertHostModule\n });\n TuiAlertHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, TuiMapperPipeModule]]\n });\n return TuiAlertHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiAlertHostComponent, TuiAlertHostModule };\n","import { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ElementRef, Renderer2, Directive, Inject, HostListener, NgModule } from '@angular/core';\nimport { tuiContainsOrAfter, tuiIsHTMLElement } from '@taiga-ui/cdk/utils/dom';\nimport { tuiGetNativeFocused, tuiGetClosestFocusable, tuiBlurNativeFocused } from '@taiga-ui/cdk/utils/focus';\nlet TuiFocusTrapDirective = /*#__PURE__*/(() => {\n class TuiFocusTrapDirective {\n constructor(doc, el, renderer) {\n this.doc = doc;\n this.el = el;\n this.renderer = renderer;\n this.activeElement = tuiGetNativeFocused(this.doc);\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n void Promise.resolve().then(() => this.el.nativeElement.focus());\n }\n onBlur() {\n this.renderer.removeAttribute(this.el.nativeElement, 'tabIndex');\n }\n onFocusIn(node) {\n const {\n nativeElement\n } = this.el;\n if (tuiContainsOrAfter(nativeElement, node)) {\n return;\n }\n const focusable = tuiGetClosestFocusable({\n initial: nativeElement,\n root: nativeElement\n });\n if (focusable) {\n focusable.focus();\n }\n }\n ngOnDestroy() {\n tuiBlurNativeFocused(this.doc);\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n // eslint-disable-next-line\n Promise.resolve().then(() => {\n if (tuiIsHTMLElement(this.activeElement)) {\n this.activeElement.focus();\n }\n });\n }\n }\n TuiFocusTrapDirective.ɵfac = function TuiFocusTrapDirective_Factory(t) {\n return new (t || TuiFocusTrapDirective)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(ElementRef), i0.ɵɵdirectiveInject(Renderer2));\n };\n TuiFocusTrapDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: TuiFocusTrapDirective,\n selectors: [[\"\", \"tuiFocusTrap\", \"\"]],\n hostAttrs: [\"tabIndex\", \"0\"],\n hostBindings: function TuiFocusTrapDirective_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"blur\", function TuiFocusTrapDirective_blur_HostBindingHandler() {\n return ctx.onBlur();\n })(\"focusin.silent\", function TuiFocusTrapDirective_focusin_silent_HostBindingHandler($event) {\n return ctx.onFocusIn($event.target);\n }, false, i0.ɵɵresolveWindow);\n }\n }\n });\n return TuiFocusTrapDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiFocusTrapModule = /*#__PURE__*/(() => {\n class TuiFocusTrapModule {}\n TuiFocusTrapModule.ɵfac = function TuiFocusTrapModule_Factory(t) {\n return new (t || TuiFocusTrapModule)();\n };\n TuiFocusTrapModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiFocusTrapModule\n });\n TuiFocusTrapModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n return TuiFocusTrapModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiFocusTrapDirective, TuiFocusTrapModule };\n","import { trigger, transition, style, query, animateChild } from '@angular/animations';\nimport * as i2 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ChangeDetectorRef, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i6 from '@angular/platform-browser';\nimport { Title } from '@angular/platform-browser';\nimport { HISTORY } from '@ng-web-apis/common';\nimport { TuiDestroyService } from '@taiga-ui/cdk/services';\nimport { TUI_IS_MOBILE, TUI_DIALOGS } from '@taiga-ui/cdk/tokens';\nimport { tuiCreateToken } from '@taiga-ui/cdk/utils';\nimport * as i5 from 'rxjs';\nimport { of, combineLatest } from 'rxjs';\nimport { map, takeUntil } from 'rxjs/operators';\nimport * as i1 from '@taiga-ui/cdk/components/scroll-controls';\nimport { TuiScrollControlsModule } from '@taiga-ui/cdk/components/scroll-controls';\nimport * as i3 from '@taiga-ui/cdk/directives';\nimport { TuiOverscrollModule, TuiFocusTrapModule, TuiLetModule } from '@taiga-ui/cdk/directives';\nimport * as i4 from '@tinkoff/ng-polymorpheus';\nimport { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';\nfunction TuiDialogHostComponent_section_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tui-scroll-controls\", 5);\n }\n}\nfunction TuiDialogHostComponent_section_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"section\", 2);\n i0.ɵɵtemplate(1, TuiDialogHostComponent_section_0_ng_container_1_Template, 1, 0, \"ng-container\", 3)(2, TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template, 1, 0, \"tui-scroll-controls\", 4);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const item_r1 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"@host\", undefined);\n i0.ɵɵattribute(\"aria-labelledby\", item_r1.id);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"polymorpheusOutlet\", item_r1.component)(\"polymorpheusOutletContext\", item_r1);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.isMobile);\n }\n}\nfunction TuiDialogHostComponent_div_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 6);\n i0.ɵɵlistener(\"transitionend\", function TuiDialogHostComponent_div_1_Template_div_transitionend_0_listener($event) {\n const isDialogClosesOnBack_r4 = i0.ɵɵrestoreView(_r3).tuiLet;\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onDialog($event, !!ctx_r1.dialogs.length, !!isDialogClosesOnBack_r4));\n })(\"popstate\", function TuiDialogHostComponent_div_1_Template_div_popstate_0_listener() {\n const isDialogClosesOnBack_r4 = i0.ɵɵrestoreView(_r3).tuiLet;\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.closeLast(ctx_r1.dialogs, !!isDialogClosesOnBack_r4));\n }, false, i0.ɵɵresolveWindow);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵclassProp(\"t-overlay_visible\", ctx_r1.dialogs.length);\n }\n}\nconst FAKE_HISTORY_STATE = {\n label: 'ignoreMe'\n};\nconst isFakeHistoryState = historyState => (historyState === null || historyState === void 0 ? void 0 : historyState.label) === FAKE_HISTORY_STATE.label;\n/**\n * Is closing dialog on browser backward navigation enabled\n */\nconst TUI_DIALOG_CLOSES_ON_BACK = tuiCreateToken(of(false));\nlet TuiDialogHostComponent = /*#__PURE__*/(() => {\n class TuiDialogHostComponent {\n constructor(isMobile, isDialogClosesOnBack$, dialogsByType, historyRef, titleService, destroy$, cdr, doc) {\n this.isMobile = isMobile;\n this.isDialogClosesOnBack$ = isDialogClosesOnBack$;\n this.dialogsByType = dialogsByType;\n this.historyRef = historyRef;\n this.titleService = titleService;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.doc = doc;\n this.dialogs = [];\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n combineLatest(this.dialogsByType).pipe(map(arr => [].concat(...arr).sort((a, b) => a.createdAt - b.createdAt)), takeUntil(this.destroy$)).subscribe(dialogs => {\n var _a;\n this.dialogs = dialogs;\n this.cdr.markForCheck();\n (_a = this.doc.defaultView) === null || _a === void 0 ? void 0 : _a.document.documentElement.classList.toggle('t-overscroll-none', !!dialogs.length);\n });\n }\n closeLast(dialogs, isDialogClosesOnBack) {\n if (!isDialogClosesOnBack) {\n return;\n }\n const [last] = dialogs.slice(-1);\n if (!last) {\n return;\n }\n if (dialogs.length > 1) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n }\n last.$implicit.complete();\n }\n onDialog({\n propertyName\n }, popupOpened, isDialogClosesOnBack) {\n if (!isDialogClosesOnBack || propertyName !== 'letter-spacing') {\n return;\n }\n if (popupOpened) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n } else if (isFakeHistoryState(this.historyRef.state)) {\n this.historyRef.back();\n }\n }\n }\n TuiDialogHostComponent.ɵfac = function TuiDialogHostComponent_Factory(t) {\n return new (t || TuiDialogHostComponent)(i0.ɵɵdirectiveInject(TUI_IS_MOBILE), i0.ɵɵdirectiveInject(TUI_DIALOG_CLOSES_ON_BACK), i0.ɵɵdirectiveInject(TUI_DIALOGS), i0.ɵɵdirectiveInject(HISTORY), i0.ɵɵdirectiveInject(Title), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef), i0.ɵɵdirectiveInject(DOCUMENT));\n };\n TuiDialogHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiDialogHostComponent,\n selectors: [[\"tui-dialog-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 3,\n vars: 4,\n consts: [[\"aria-modal\", \"true\", \"role\", \"dialog\", \"tuiFocusTrap\", \"\", \"tuiOverscroll\", \"all\", \"tuiScrollRef\", \"\", \"class\", \"t-dialog\", 4, \"ngFor\", \"ngForOf\"], [\"class\", \"t-overlay\", 3, \"t-overlay_visible\", \"transitionend\", \"popstate\", 4, \"tuiLet\"], [\"aria-modal\", \"true\", \"role\", \"dialog\", \"tuiFocusTrap\", \"\", \"tuiOverscroll\", \"all\", \"tuiScrollRef\", \"\", 1, \"t-dialog\"], [4, \"polymorpheusOutlet\", \"polymorpheusOutletContext\"], [\"class\", \"t-scrollbars\", 4, \"ngIf\"], [1, \"t-scrollbars\"], [1, \"t-overlay\", 3, \"transitionend\", \"popstate\"]],\n template: function TuiDialogHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiDialogHostComponent_section_0_Template, 3, 5, \"section\", 0)(1, TuiDialogHostComponent_div_1_Template, 1, 2, \"div\", 1);\n i0.ɵɵpipe(2, \"async\");\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.dialogs);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"tuiLet\", i0.ɵɵpipeBind1(2, 2, ctx.isDialogClosesOnBack$));\n }\n },\n dependencies: [i1.TuiScrollControlsComponent, i2.NgForOf, i3.TuiFocusTrapDirective, i3.TuiOverscrollDirective, i1.TuiScrollRefDirective, i4.PolymorpheusOutletDirective, i2.NgIf, i3.TuiLetDirective, i2.AsyncPipe],\n 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;scrollbar-width:none;-ms-overflow-style:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar, .t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}.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, .3s),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}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;margin:0;color:#747474}\"],\n data: {\n animation: [trigger('host', [transition(':enter', [style({\n overflow: 'clip'\n }), query(':scope > *', [animateChild()], {\n optional: true\n })]), transition(':leave', [style({\n overflow: 'clip'\n }), query(':scope > *', [animateChild()], {\n optional: true\n })])])]\n }\n });\n return TuiDialogHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiDialogHostModule = /*#__PURE__*/(() => {\n class TuiDialogHostModule {}\n TuiDialogHostModule.ɵfac = function TuiDialogHostModule_Factory(t) {\n return new (t || TuiDialogHostModule)();\n };\n TuiDialogHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiDialogHostModule\n });\n TuiDialogHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, PolymorpheusModule, TuiOverscrollModule, TuiFocusTrapModule, TuiLetModule, TuiScrollControlsModule]]\n });\n return TuiDialogHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TUI_DIALOG_CLOSES_ON_BACK, TuiDialogHostComponent, TuiDialogHostModule };\n","import * as i0 from '@angular/core';\nimport { ChangeDetectorRef, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i2 from '@taiga-ui/cdk';\nimport { TuiDestroyService, TUI_PARENT_ANIMATION, TuiActiveZoneModule } from '@taiga-ui/cdk';\nimport { TuiHintService } from '@taiga-ui/core/services';\nimport { takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i3 from '@tinkoff/ng-polymorpheus';\nimport { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';\nimport * as i4 from 'rxjs';\nconst _c0 = a0 => ({\n $implicit: a0\n});\nfunction TuiHintsHostComponent_div_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TuiHintsHostComponent_div_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵtemplate(1, TuiHintsHostComponent_div_0_ng_container_1_Template, 1, 0, \"ng-container\", 2);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const hint_r1 = ctx.$implicit;\n i0.ɵɵproperty(\"@tuiParentAnimation\", undefined)(\"tuiActiveZoneParent\", hint_r1.activeZone || null);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"polymorpheusOutlet\", hint_r1.component)(\"polymorpheusOutletContext\", i0.ɵɵpureFunction1(4, _c0, hint_r1));\n }\n}\nlet TuiHintsHostComponent = /*#__PURE__*/(() => {\n class TuiHintsHostComponent {\n constructor(hints$, destroy$, cdr) {\n this.hints$ = hints$;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.hints = [];\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n this.hints$.pipe(takeUntil(this.destroy$)).subscribe(hints => {\n this.hints = hints;\n this.cdr.detectChanges();\n });\n }\n }\n TuiHintsHostComponent.ɵfac = function TuiHintsHostComponent_Factory(t) {\n return new (t || TuiHintsHostComponent)(i0.ɵɵdirectiveInject(TuiHintService), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef));\n };\n TuiHintsHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiHintsHostComponent,\n selectors: [[\"tui-hints-host\"]],\n hostAttrs: [\"aria-live\", \"polite\"],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 1,\n vars: 1,\n consts: [[\"role\", \"tooltip\", 3, \"tuiActiveZoneParent\", 4, \"ngFor\", \"ngForOf\"], [\"role\", \"tooltip\", 3, \"tuiActiveZoneParent\"], [4, \"polymorpheusOutlet\", \"polymorpheusOutletContext\"]],\n template: function TuiHintsHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiHintsHostComponent_div_0_Template, 2, 6, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.hints);\n }\n },\n dependencies: [i1.NgForOf, i2.TuiActiveZoneDirective, i3.PolymorpheusOutletDirective],\n styles: [\"[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}\"],\n data: {\n animation: [TUI_PARENT_ANIMATION]\n }\n });\n return TuiHintsHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiHintsHostModule = /*#__PURE__*/(() => {\n class TuiHintsHostModule {}\n TuiHintsHostModule.ɵfac = function TuiHintsHostModule_Factory(t) {\n return new (t || TuiHintsHostModule)();\n };\n TuiHintsHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiHintsHostModule\n });\n TuiHintsHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, PolymorpheusModule, TuiActiveZoneModule]]\n });\n return TuiHintsHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiHintsHostComponent, TuiHintsHostModule };\n","import * as i1 from '@angular/common';\nimport { isPlatformServer, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ChangeDetectorRef, PLATFORM_ID, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i3 from '@taiga-ui/cdk';\nimport { TuiDestroyService, TuiLetModule } from '@taiga-ui/cdk';\nimport * as i2 from '@taiga-ui/core/services';\nimport { TuiSvgService } from '@taiga-ui/core/services';\nimport { takeUntil } from 'rxjs/operators';\nfunction TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelement(0, \"defs\", 4);\n }\n if (rf & 2) {\n const def_r1 = ctx.$implicit;\n i0.ɵɵproperty(\"innerHTML\", def_r1, i0.ɵɵsanitizeHtml);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template, 1, 1, \"defs\", 3);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.items);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"defs\");\n i0.ɵɵelement(1, \"svg\", 6);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const def_r3 = ctx.$implicit;\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"outerHTML\", def_r3, i0.ɵɵsanitizeHtml);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template, 2, 1, \"defs\", 5);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.items);\n }\n}\nlet TuiSvgDefsHostComponent = /*#__PURE__*/(() => {\n class TuiSvgDefsHostComponent {\n constructor(svgService, cdr, destroy$, platformId) {\n this.svgService = svgService;\n this.cdr = cdr;\n this.destroy$ = destroy$;\n this.isBrowser = true;\n this.isBrowser = !isPlatformServer(platformId);\n }\n // @bad TODO: Looks like it could be async piped but it was probably written like that for a reason\n ngOnInit() {\n this.svgService.items$.pipe(takeUntil(this.destroy$)).subscribe(defsMap => {\n this.items = defsMap.values();\n this.cdr.detectChanges();\n });\n }\n }\n TuiSvgDefsHostComponent.ɵfac = function TuiSvgDefsHostComponent_Factory(t) {\n return new (t || TuiSvgDefsHostComponent)(i0.ɵɵdirectiveInject(TuiSvgService), i0.ɵɵdirectiveInject(ChangeDetectorRef), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(PLATFORM_ID));\n };\n TuiSvgDefsHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiSvgDefsHostComponent,\n selectors: [[\"tui-svg-defs-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 4,\n vars: 2,\n consts: [[\"server\", \"\"], [\"version\", \"1.1\", 0, \"xmlns\", \"xlink\", \"http://www.w3.org/1999/xlink\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [4, \"ngIf\", \"ngIfElse\"], [3, \"innerHTML\", 4, \"ngFor\", \"ngForOf\"], [3, \"innerHTML\"], [4, \"ngFor\", \"ngForOf\"], [3, \"outerHTML\"]],\n template: function TuiSvgDefsHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 1);\n i0.ɵɵtemplate(1, TuiSvgDefsHostComponent__svg_ng_container_1_Template, 2, 1, \"ng-container\", 2)(2, TuiSvgDefsHostComponent__svg_ng_template_2_Template, 1, 1, \"ng-template\", null, 0, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const server_r4 = i0.ɵɵreference(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.isBrowser)(\"ngIfElse\", server_r4);\n }\n },\n dependencies: [i1.NgIf, i1.NgForOf],\n styles: [\"[_nghost-%COMP%]{display:none}\"],\n changeDetection: 0\n });\n return TuiSvgDefsHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiSvgDefsHostModule = /*#__PURE__*/(() => {\n class TuiSvgDefsHostModule {}\n TuiSvgDefsHostModule.ɵfac = function TuiSvgDefsHostModule_Factory(t) {\n return new (t || TuiSvgDefsHostModule)();\n };\n TuiSvgDefsHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiSvgDefsHostModule\n });\n TuiSvgDefsHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, TuiLetModule]]\n });\n return TuiSvgDefsHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiSvgDefsHostComponent, TuiSvgDefsHostModule };\n","import * as i4 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, NgModule } from '@angular/core';\nimport * as i1 from '@taiga-ui/cdk';\nimport { TUI_DIALOGS, TUI_IS_MOBILE, TUI_IS_IOS, TUI_IS_ANDROID, TUI_VERSION, TuiDropdownHostModule, TuiDialogHostModule, TuiAlertHostModule, TuiScrollControlsModule } from '@taiga-ui/cdk';\nimport * as i5 from '@taiga-ui/core/services';\nimport { TuiBreakpointService } from '@taiga-ui/core/services';\nimport { TUI_REDUCED_MOTION, TUI_ANIMATIONS_DURATION, TUI_THEME } from '@taiga-ui/core/tokens';\nimport { combineLatest, of } from 'rxjs';\nimport { map, debounceTime } from 'rxjs/operators';\nimport * as i2 from '@taiga-ui/core/internal/svg-defs-host';\nimport { TuiSvgDefsHostModule } from '@taiga-ui/core/internal/svg-defs-host';\nimport * as i3 from '@taiga-ui/core/components/hints-host';\nimport { TuiHintsHostModule } from '@taiga-ui/core/components/hints-host';\nimport { EventPluginsModule } from '@tinkoff/ng-event-plugins';\nconst _c0 = [\"*\", [[\"tuiOverContent\"]], [[\"tuiOverDialogs\"]], [[\"tuiOverAlerts\"]], [[\"tuiOverPortals\"]], [[\"tuiOverHints\"]]];\nconst _c1 = [\"*\", \"tuiOverContent\", \"tuiOverDialogs\", \"tuiOverAlerts\", \"tuiOverPortals\", \"tuiOverHints\"];\nfunction TuiRootComponent_tui_scroll_controls_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tui-scroll-controls\", 2);\n }\n}\nlet TuiRootComponent = /*#__PURE__*/(() => {\n class TuiRootComponent {\n constructor(reducedMotion, duration, dialogs, isMobile, breakpoint, isIOS, isAndroid, document, theme) {\n var _a;\n this.reducedMotion = reducedMotion;\n this.duration = duration;\n this.dialogs = dialogs;\n this.isMobile = isMobile;\n this.breakpoint = breakpoint;\n this.isIOS = isIOS;\n this.isAndroid = isAndroid;\n this.isMobileRes$ = this.breakpoint.pipe(map(breakpoint => breakpoint === 'mobile'));\n this.scrollbars$ = this.dialogs.length && !this.isMobile ? combineLatest([...this.dialogs]).pipe(map(dialogs => !dialogs.some(({\n length\n }) => length)), debounceTime(0)) : of(!this.isMobile);\n (_a = document.defaultView) === null || _a === void 0 ? void 0 : _a.document.body.setAttribute('data-tui-theme', theme.toLowerCase());\n }\n }\n TuiRootComponent.ɵfac = function TuiRootComponent_Factory(t) {\n return new (t || TuiRootComponent)(i0.ɵɵdirectiveInject(TUI_REDUCED_MOTION), i0.ɵɵdirectiveInject(TUI_ANIMATIONS_DURATION), i0.ɵɵdirectiveInject(TUI_DIALOGS), i0.ɵɵdirectiveInject(TUI_IS_MOBILE), i0.ɵɵdirectiveInject(TuiBreakpointService), i0.ɵɵdirectiveInject(TUI_IS_IOS), i0.ɵɵdirectiveInject(TUI_IS_ANDROID), i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(TUI_THEME));\n };\n TuiRootComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiRootComponent,\n selectors: [[\"tui-root\"]],\n hostAttrs: [\"data-tui-version\", \"3.74.0\"],\n hostVars: 9,\n hostBindings: function TuiRootComponent_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"touchstart.passive.silent\", function TuiRootComponent_touchstart_passive_silent_HostBindingHandler() {\n return 0;\n })(\"$.class._mobile\", function TuiRootComponent___class__mobile_HostBindingHandler() {\n return ctx.isMobileRes$;\n });\n }\n if (rf & 2) {\n i0.ɵɵhostProperty(\"$.class._mobile\", ctx.isMobileRes$);\n i0.ɵɵstyleProp(\"--tui-duration\", ctx.duration, \"ms\");\n i0.ɵɵclassProp(\"_ios\", ctx.isIOS)(\"_android\", ctx.isAndroid)(\"_reduced-motion\", ctx.reducedMotion);\n }\n },\n ngContentSelectors: _c1,\n decls: 14,\n vars: 3,\n consts: [[\"class\", \"t-root-scrollbar\", 4, \"ngIf\"], [1, \"t-root-content\"], [1, \"t-root-scrollbar\"]],\n template: function TuiRootComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c0);\n i0.ɵɵtemplate(0, TuiRootComponent_tui_scroll_controls_0_Template, 1, 0, \"tui-scroll-controls\", 0);\n i0.ɵɵpipe(1, \"async\");\n i0.ɵɵelement(2, \"tui-svg-defs-host\");\n i0.ɵɵelementStart(3, \"tui-dropdown-host\")(4, \"div\", 1);\n i0.ɵɵprojection(5);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(6, 1);\n i0.ɵɵelement(7, \"tui-dialog-host\");\n i0.ɵɵprojection(8, 2);\n i0.ɵɵelement(9, \"tui-alert-host\");\n i0.ɵɵprojection(10, 3);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(11, 4);\n i0.ɵɵelement(12, \"tui-hints-host\");\n i0.ɵɵprojection(13, 5);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(1, 1, ctx.scrollbars$));\n }\n },\n dependencies: [i1.TuiScrollControlsComponent, i2.TuiSvgDefsHostComponent, i1.TuiDropdownHostComponent, i1.TuiDialogHostComponent, i1.TuiAlertHostComponent, i3.TuiHintsHostComponent, i4.NgIf, i4.AsyncPipe],\n styles: [\"@keyframes tuiPresent{to{content:\\\"1\\\"}}@keyframes tuiSkeletonVibe{to{opacity:.5}}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{display:none}body[data-tui-theme]{font:var(--tui-font-text-s);color:var(--tui-text-01);background:var(--tui-base-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;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{height:100%;isolation:isolate}.t-overscroll-none{overscroll-behavior:none}\\n\"],\n encapsulation: 2\n });\n return TuiRootComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiRootModule = /*#__PURE__*/(() => {\n class TuiRootModule {}\n TuiRootModule.ɵfac = function TuiRootModule_Factory(t) {\n return new (t || TuiRootModule)();\n };\n TuiRootModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiRootModule\n });\n TuiRootModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, EventPluginsModule, TuiDropdownHostModule, TuiSvgDefsHostModule, TuiHintsHostModule, TuiDialogHostModule, TuiAlertHostModule, TuiScrollControlsModule]]\n });\n return TuiRootModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiRootComponent, TuiRootModule };\n","import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {RouterOutlet} from '@angular/router';\nimport {TuiRootModule} from '@taiga-ui/core';\n\n@Component({\n standalone: true,\n selector: 'app',\n imports: [TuiRootModule, RouterOutlet],\n templateUrl: './app.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AppComponent {}\n","\n \n\n \n \n \n \n \n\n","/**\n * @license Angular v17.3.4\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { inject, ɵChangeDetectionScheduler, Injectable, Inject, RendererFactory2, NgZone, ANIMATION_MODULE_TYPE, NgModule, ɵperformanceMarkFeature } from '@angular/core';\nexport { ANIMATION_MODULE_TYPE } from '@angular/core';\nimport { ɵDomRendererFactory2, BrowserModule } from '@angular/platform-browser';\nimport * as i1 from '@angular/animations/browser';\nimport { ɵAnimationEngine, ɵWebAnimationsStyleNormalizer, ɵAnimationRendererFactory, ɵAnimationStyleNormalizer, AnimationDriver, ɵWebAnimationsDriver, NoopAnimationDriver } from '@angular/animations/browser';\nimport { DOCUMENT } from '@angular/common';\nlet InjectableAnimationEngine = /*#__PURE__*/(() => {\n class InjectableAnimationEngine extends ɵAnimationEngine {\n // The `ApplicationRef` is injected here explicitly to force the dependency ordering.\n // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they\n // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.\n constructor(doc, driver, normalizer) {\n super(doc, driver, normalizer, inject(ɵChangeDetectionScheduler, {\n optional: true\n }));\n }\n ngOnDestroy() {\n this.flush();\n }\n static {\n this.ɵfac = function InjectableAnimationEngine_Factory(t) {\n return new (t || InjectableAnimationEngine)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i1.AnimationDriver), i0.ɵɵinject(i1.ɵAnimationStyleNormalizer));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: InjectableAnimationEngine,\n factory: InjectableAnimationEngine.ɵfac\n });\n }\n }\n return InjectableAnimationEngine;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction instantiateDefaultStyleNormalizer() {\n return new ɵWebAnimationsStyleNormalizer();\n}\nfunction instantiateRendererFactory(renderer, engine, zone) {\n return new ɵAnimationRendererFactory(renderer, engine, zone);\n}\nconst SHARED_ANIMATION_PROVIDERS = [{\n provide: ɵAnimationStyleNormalizer,\n useFactory: instantiateDefaultStyleNormalizer\n}, {\n provide: ɵAnimationEngine,\n useClass: InjectableAnimationEngine\n}, {\n provide: RendererFactory2,\n useFactory: instantiateRendererFactory,\n deps: [ɵDomRendererFactory2, ɵAnimationEngine, NgZone]\n}];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserModule.\n */\nconst BROWSER_ANIMATIONS_PROVIDERS = [{\n provide: AnimationDriver,\n useFactory: () => new ɵWebAnimationsDriver()\n}, {\n provide: ANIMATION_MODULE_TYPE,\n useValue: 'BrowserAnimations'\n}, ...SHARED_ANIMATION_PROVIDERS];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserTestingModule.\n */\nconst BROWSER_NOOP_ANIMATIONS_PROVIDERS = [{\n provide: AnimationDriver,\n useClass: NoopAnimationDriver\n}, {\n provide: ANIMATION_MODULE_TYPE,\n useValue: 'NoopAnimations'\n}, ...SHARED_ANIMATION_PROVIDERS];\n\n/**\n * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)\n * for use with animations. See [Animations](guide/animations).\n * @publicApi\n */\nlet BrowserAnimationsModule = /*#__PURE__*/(() => {\n class BrowserAnimationsModule {\n /**\n * Configures the module based on the specified object.\n *\n * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.\n * @see {@link BrowserAnimationsModuleConfig}\n *\n * @usageNotes\n * When registering the `BrowserAnimationsModule`, you can use the `withConfig`\n * function as follows:\n * ```\n * @NgModule({\n * imports: [BrowserAnimationsModule.withConfig(config)]\n * })\n * class MyNgModule {}\n * ```\n */\n static withConfig(config) {\n return {\n ngModule: BrowserAnimationsModule,\n providers: config.disableAnimations ? BROWSER_NOOP_ANIMATIONS_PROVIDERS : BROWSER_ANIMATIONS_PROVIDERS\n };\n }\n static {\n this.ɵfac = function BrowserAnimationsModule_Factory(t) {\n return new (t || BrowserAnimationsModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: BrowserAnimationsModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: BROWSER_ANIMATIONS_PROVIDERS,\n imports: [BrowserModule]\n });\n }\n }\n return BrowserAnimationsModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to enable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to enable animations in an application\n * bootstrapped using the `bootstrapApplication` function. In this scenario there\n * is no need to import the `BrowserAnimationsModule` NgModule at all, just add\n * providers returned by this function to the `providers` list as show below.\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideAnimations() {\n ɵperformanceMarkFeature('NgEagerAnimations');\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideAnimations` call results in app code.\n return [...BROWSER_ANIMATIONS_PROVIDERS];\n}\n/**\n * A null player that must be imported to allow disabling of animations.\n * @publicApi\n */\nlet NoopAnimationsModule = /*#__PURE__*/(() => {\n class NoopAnimationsModule {\n static {\n this.ɵfac = function NoopAnimationsModule_Factory(t) {\n return new (t || NoopAnimationsModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: NoopAnimationsModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,\n imports: [BrowserModule]\n });\n }\n }\n return NoopAnimationsModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to disable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to bootstrap an application using\n * the `bootstrapApplication` function, but you need to disable animations\n * (for example, when running tests).\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideNoopAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideNoopAnimations() {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideNoopAnimations` call results in app code.\n return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS];\n}\n\n/**\n * @module\n * @description\n * Entry point for all animation APIs of the animation browser package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserAnimationsModule, NoopAnimationsModule, provideAnimations, provideNoopAnimations, InjectableAnimationEngine as ɵInjectableAnimationEngine };\n","import type {ApplicationConfig} from '@angular/core';\nimport {importProvidersFrom} from '@angular/core';\nimport {provideClientHydration} from '@angular/platform-browser';\nimport {provideAnimations} from '@angular/platform-browser/animations';\nimport {provideRouter} from '@angular/router';\nimport {TUI_SANITIZER, TuiDialogModule, TuiRootModule} from '@taiga-ui/core';\nimport {TuiPushModule} from '@taiga-ui/kit';\nimport {NgDompurifySanitizer} from '@tinkoff/ng-dompurify';\n\nexport const appConfig: ApplicationConfig = {\n providers: [\n provideAnimations(),\n provideRouter([\n {\n path: '',\n pathMatch: 'full',\n loadComponent: async () => import('./home/home.component'),\n },\n ]),\n provideClientHydration(),\n importProvidersFrom(TuiRootModule, TuiDialogModule, TuiPushModule),\n {\n provide: TUI_SANITIZER,\n useClass: NgDompurifySanitizer,\n },\n ],\n};\n","// This file can be replaced during build by using the `fileReplacements` array.\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\n// The list of file replacements can be found in `angular.json`.\n\nexport const environment = {\n production: false,\n};\n\n/*\n * For easier debugging in development mode, you can import the following file\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\n *\n * This import should be commented out in production mode because it will have a negative impact\n * on performance if an error is thrown.\n */\n// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.\n","import {enableProdMode} from '@angular/core';\nimport {bootstrapApplication} from '@angular/platform-browser';\n\nimport {AppComponent} from './app/app.component';\nimport {appConfig} from './app/app.config';\nimport {environment} from './environments/environment';\n\nif (environment.production) {\n enableProdMode();\n}\n\nbootstrapApplication(AppComponent, appConfig).catch(err => console.error(err));\n"],"mappings":"qjCAaA,SAASA,GAAoDC,EAAIC,EAAK,CAKpE,GAJID,EAAK,IACJE,EAAmB,EAAG,CAAC,EACvBC,EAAO,EAAG,WAAW,GAEtBH,EAAK,EAAG,CACV,IAAMI,EAAUH,EAAI,UACdI,EAAYC,EAAc,CAAC,EAC9BC,EAAW,oBAAqBH,EAAQ,UAAU,SAAS,EAAE,4BAAgCI,GAAY,EAAG,EAAGJ,EAASC,EAAO,MAAM,CAAC,CAC3I,CACF,CACA,SAASI,GAAqCT,EAAIC,EAAK,CAMrD,GALID,EAAK,IACJU,EAAe,EAAG,MAAO,CAAC,EAC1BC,EAAW,EAAGZ,GAAqD,EAAG,EAAG,eAAgB,CAAC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BF,IAAMC,GAAc,CACvBC,WAAY,ICEZC,GAAYC,YACZC,OAGJC,GAAqBC,GAAcC,EAAS,EAAEC,MAAMC,GAAOC,QAAQC,MAAMF,CAAG,CAAC","names":["TuiAlertHostComponent_div_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","ɵɵpipe","item_r1","ctx_r1","ɵɵnextContext","ɵɵproperty","ɵɵpipeBind2","TuiAlertHostComponent_div_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","alert_r3","ɵɵadvance","TuiAlertHostComponent","allAlerts","injector","destroy$","cdr","index","useValue","Injector","POLYMORPHEUS_CONTEXT","combineLatest","takeUntil","alerts","t","ɵɵdirectiveInject","TUI_ALERTS","INJECTOR$1","TuiDestroyService","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NgForOf","NgComponentOutlet","TuiMapperPipe","TUI_PARENT_ANIMATION","TuiAlertHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","TuiMapperPipeModule","TuiFocusTrapDirective","doc","el","renderer","tuiGetNativeFocused","node","nativeElement","tuiContainsOrAfter","focusable","tuiGetClosestFocusable","tuiBlurNativeFocused","tuiIsHTMLElement","t","ɵɵdirectiveInject","DOCUMENT","ElementRef","Renderer2","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵresolveWindow","TuiFocusTrapModule","ɵɵdefineNgModule","ɵɵdefineInjector","TuiDialogHostComponent_section_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template","ɵɵelement","TuiDialogHostComponent_section_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","item_r1","ctx_r1","ɵɵnextContext","ɵɵproperty","ɵɵattribute","ɵɵadvance","TuiDialogHostComponent_div_1_Template","_r3","ɵɵgetCurrentView","ɵɵlistener","$event","isDialogClosesOnBack_r4","ɵɵrestoreView","ɵɵresetView","ɵɵresolveWindow","ɵɵclassProp","FAKE_HISTORY_STATE","isFakeHistoryState","historyState","TUI_DIALOG_CLOSES_ON_BACK","tuiCreateToken","of","TuiDialogHostComponent","isMobile","isDialogClosesOnBack$","dialogsByType","historyRef","titleService","destroy$","cdr","doc","combineLatest","map","arr","a","b","takeUntil","dialogs","_a","isDialogClosesOnBack","last","propertyName","popupOpened","t","ɵɵdirectiveInject","TUI_IS_MOBILE","TUI_DIALOGS","HISTORY","Title","TuiDestroyService","ChangeDetectorRef","DOCUMENT","ɵɵdefineComponent","ɵɵProvidersFeature","ɵɵpipe","ɵɵpipeBind1","TuiScrollControlsComponent","NgForOf","TuiFocusTrapDirective","TuiOverscrollDirective","TuiScrollRefDirective","PolymorpheusOutletDirective","NgIf","TuiLetDirective","AsyncPipe","trigger","transition","style","query","animateChild","TuiDialogHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","PolymorpheusModule","TuiOverscrollModule","TuiFocusTrapModule","TuiLetModule","TuiScrollControlsModule","_c0","a0","TuiHintsHostComponent_div_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","TuiHintsHostComponent_div_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","hint_r1","ɵɵproperty","ɵɵadvance","ɵɵpureFunction1","TuiHintsHostComponent","hints$","destroy$","cdr","takeUntil","hints","t","ɵɵdirectiveInject","TuiHintService","TuiDestroyService","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NgForOf","TuiActiveZoneDirective","PolymorpheusOutletDirective","TUI_PARENT_ANIMATION","TuiHintsHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","PolymorpheusModule","TuiActiveZoneModule","TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template","rf","ctx","ɵɵnamespaceSVG","ɵɵelement","def_r1","ɵɵproperty","ɵɵsanitizeHtml","TuiSvgDefsHostComponent__svg_ng_container_1_Template","ɵɵelementContainerStart","ɵɵtemplate","ɵɵelementContainerEnd","ctx_r1","ɵɵnextContext","ɵɵadvance","TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template","ɵɵelementStart","ɵɵelementEnd","def_r3","TuiSvgDefsHostComponent__svg_ng_template_2_Template","TuiSvgDefsHostComponent","svgService","cdr","destroy$","platformId","isPlatformServer","takeUntil","defsMap","t","ɵɵdirectiveInject","TuiSvgService","ChangeDetectorRef","TuiDestroyService","PLATFORM_ID","ɵɵdefineComponent","ɵɵProvidersFeature","ɵɵtemplateRefExtractor","server_r4","ɵɵreference","NgIf","NgForOf","TuiSvgDefsHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","TuiLetModule","_c0","_c1","TuiRootComponent_tui_scroll_controls_0_Template","rf","ctx","ɵɵelement","TuiRootComponent","reducedMotion","duration","dialogs","isMobile","breakpoint","isIOS","isAndroid","document","theme","_a","map","combineLatest","length","debounceTime","of","t","ɵɵdirectiveInject","TUI_REDUCED_MOTION","TUI_ANIMATIONS_DURATION","TUI_DIALOGS","TUI_IS_MOBILE","TuiBreakpointService","TUI_IS_IOS","TUI_IS_ANDROID","DOCUMENT","TUI_THEME","ɵɵdefineComponent","ɵɵlistener","ɵɵhostProperty","ɵɵstyleProp","ɵɵclassProp","ɵɵprojectionDef","ɵɵtemplate","ɵɵpipe","ɵɵelementStart","ɵɵprojection","ɵɵelementEnd","ɵɵproperty","ɵɵpipeBind1","TuiScrollControlsComponent","TuiSvgDefsHostComponent","TuiDropdownHostComponent","TuiDialogHostComponent","TuiAlertHostComponent","TuiHintsHostComponent","NgIf","AsyncPipe","TuiRootModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","EventPluginsModule","TuiDropdownHostModule","TuiSvgDefsHostModule","TuiHintsHostModule","TuiDialogHostModule","TuiAlertHostModule","TuiScrollControlsModule","AppComponent","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementContainer","ɵɵelementEnd","TuiRootModule","TuiRootComponent","RouterOutlet","encapsulation","changeDetection","_AppComponent","InjectableAnimationEngine","_InjectableAnimationEngine","AnimationEngine","doc","driver","normalizer","inject","ChangeDetectionScheduler","t","ɵɵinject","DOCUMENT","AnimationDriver","AnimationStyleNormalizer","ɵɵdefineInjectable","instantiateDefaultStyleNormalizer","WebAnimationsStyleNormalizer","instantiateRendererFactory","renderer","engine","zone","AnimationRendererFactory","SHARED_ANIMATION_PROVIDERS","RendererFactory2","DomRendererFactory2","NgZone","BROWSER_ANIMATIONS_PROVIDERS","WebAnimationsDriver","ANIMATION_MODULE_TYPE","BROWSER_NOOP_ANIMATIONS_PROVIDERS","NoopAnimationDriver","provideAnimations","performanceMarkFeature","BROWSER_ANIMATIONS_PROVIDERS","appConfig","providers","provideAnimations","provideRouter","path","pathMatch","loadComponent","__async","provideClientHydration","importProvidersFrom","TuiRootModule","TuiDialogModule","TuiPushModule","provide","TUI_SANITIZER","useClass","NgDompurifySanitizer","environment","production","environment","production","enableProdMode","bootstrapApplication","AppComponent","appConfig","catch","err","console","error"],"x_google_ignoreList":[0,1,2,3,4,5,8]} \ No newline at end of file +{"version":3,"sources":["node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-alert-host.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-directives-focus-trap.js","node_modules/@taiga-ui/cdk/fesm2015/taiga-ui-cdk-components-dialog-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-hints-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-internal-svg-defs-host.js","node_modules/@taiga-ui/core/fesm2015/taiga-ui-core-components-root.js","apps/demo/src/app/app.component.ts","apps/demo/src/app/app.component.html","node_modules/@angular/platform-browser/fesm2022/animations.mjs","apps/demo/src/app/app.config.ts","apps/demo/src/environments/environment.ts","apps/demo/src/main.ts"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Injector, INJECTOR, ChangeDetectorRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport { TUI_PARENT_ANIMATION } from '@taiga-ui/cdk/constants';\nimport { TuiDestroyService } from '@taiga-ui/cdk/services';\nimport { TUI_ALERTS } from '@taiga-ui/cdk/tokens';\nimport { POLYMORPHEUS_CONTEXT } from '@tinkoff/ng-polymorpheus';\nimport * as i3 from 'rxjs';\nimport { combineLatest } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i2 from '@taiga-ui/cdk/pipes';\nimport { TuiMapperPipeModule } from '@taiga-ui/cdk/pipes';\nfunction TuiAlertHostComponent_div_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0, 3);\n i0.ɵɵpipe(1, \"tuiMapper\");\n }\n if (rf & 2) {\n const item_r1 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵproperty(\"ngComponentOutlet\", item_r1.component.component)(\"ngComponentOutletInjector\", i0.ɵɵpipeBind2(1, 2, item_r1, ctx_r1.mapper));\n }\n}\nfunction TuiAlertHostComponent_div_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵtemplate(1, TuiAlertHostComponent_div_0_ng_container_1_Template, 2, 5, \"ng-container\", 2);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const alert_r3 = ctx.$implicit;\n i0.ɵɵproperty(\"@tuiParentAnimation\", undefined);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", alert_r3);\n }\n}\nlet TuiAlertHostComponent = /*#__PURE__*/(() => {\n class TuiAlertHostComponent {\n constructor(allAlerts, injector, destroy$, cdr) {\n this.allAlerts = allAlerts;\n this.injector = injector;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.alerts = [];\n this.trackBy = index => index;\n this.mapper = useValue => Injector.create({\n providers: [{\n provide: POLYMORPHEUS_CONTEXT,\n useValue\n }],\n parent: this.injector\n });\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n combineLatest(this.allAlerts).pipe(takeUntil(this.destroy$)).subscribe(alerts => {\n this.alerts = alerts;\n this.cdr.detectChanges();\n });\n }\n }\n TuiAlertHostComponent.ɵfac = function TuiAlertHostComponent_Factory(t) {\n return new (t || TuiAlertHostComponent)(i0.ɵɵdirectiveInject(TUI_ALERTS), i0.ɵɵdirectiveInject(INJECTOR), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef));\n };\n TuiAlertHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiAlertHostComponent,\n selectors: [[\"tui-alert-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 1,\n vars: 2,\n consts: [[\"class\", \"t-wrapper\", 4, \"ngFor\", \"ngForOf\", \"ngForTrackBy\"], [1, \"t-wrapper\"], [3, \"ngComponentOutlet\", \"ngComponentOutletInjector\", 4, \"ngFor\", \"ngForOf\"], [3, \"ngComponentOutlet\", \"ngComponentOutletInjector\"]],\n template: function TuiAlertHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiAlertHostComponent_div_0_Template, 2, 2, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.alerts)(\"ngForTrackBy\", ctx.trackBy);\n }\n },\n dependencies: [i1.NgForOf, i1.NgComponentOutlet, i2.TuiMapperPipe],\n styles: [\"tui-alert-host>.t-wrapper{position:fixed;top:0;left:0;display:flex;width:100%;height:100%;flex-direction:column;pointer-events:none}tui-alert-host>.t-wrapper>*{pointer-events:auto}\\n\"],\n encapsulation: 2,\n data: {\n animation: [TUI_PARENT_ANIMATION]\n }\n });\n return TuiAlertHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiAlertHostModule = /*#__PURE__*/(() => {\n class TuiAlertHostModule {}\n TuiAlertHostModule.ɵfac = function TuiAlertHostModule_Factory(t) {\n return new (t || TuiAlertHostModule)();\n };\n TuiAlertHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiAlertHostModule\n });\n TuiAlertHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, TuiMapperPipeModule]]\n });\n return TuiAlertHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiAlertHostComponent, TuiAlertHostModule };\n","import { DOCUMENT } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ElementRef, Renderer2, Directive, Inject, HostListener, NgModule } from '@angular/core';\nimport { tuiContainsOrAfter, tuiIsHTMLElement } from '@taiga-ui/cdk/utils/dom';\nimport { tuiGetNativeFocused, tuiGetClosestFocusable, tuiBlurNativeFocused } from '@taiga-ui/cdk/utils/focus';\nlet TuiFocusTrapDirective = /*#__PURE__*/(() => {\n class TuiFocusTrapDirective {\n constructor(doc, el, renderer) {\n this.doc = doc;\n this.el = el;\n this.renderer = renderer;\n this.activeElement = tuiGetNativeFocused(this.doc);\n /**\n * This would cause currently focused element to lose focus,\n * but it might cause ExpressionChanged error due to potential HostBinding.\n * Microtask keeps it in the same frame but allows change detection to run\n */\n void Promise.resolve().then(() => this.el.nativeElement.focus());\n }\n onBlur() {\n this.renderer.removeAttribute(this.el.nativeElement, 'tabIndex');\n }\n onFocusIn(node) {\n const {\n nativeElement\n } = this.el;\n if (tuiContainsOrAfter(nativeElement, node)) {\n return;\n }\n const focusable = tuiGetClosestFocusable({\n initial: nativeElement,\n root: nativeElement\n });\n if (focusable) {\n focusable.focus();\n }\n }\n ngOnDestroy() {\n tuiBlurNativeFocused(this.doc);\n /**\n * HostListeners are triggered even after ngOnDestroy\n * {@link https://github.com/angular/angular/issues/38100}\n * so we need to delay it but stay in the same sync cycle,\n * therefore using Promise instead of setTimeout\n */\n // eslint-disable-next-line\n Promise.resolve().then(() => {\n if (tuiIsHTMLElement(this.activeElement)) {\n this.activeElement.focus();\n }\n });\n }\n }\n TuiFocusTrapDirective.ɵfac = function TuiFocusTrapDirective_Factory(t) {\n return new (t || TuiFocusTrapDirective)(i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(ElementRef), i0.ɵɵdirectiveInject(Renderer2));\n };\n TuiFocusTrapDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: TuiFocusTrapDirective,\n selectors: [[\"\", \"tuiFocusTrap\", \"\"]],\n hostAttrs: [\"tabIndex\", \"0\"],\n hostBindings: function TuiFocusTrapDirective_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"blur\", function TuiFocusTrapDirective_blur_HostBindingHandler() {\n return ctx.onBlur();\n })(\"focusin.silent\", function TuiFocusTrapDirective_focusin_silent_HostBindingHandler($event) {\n return ctx.onFocusIn($event.target);\n }, false, i0.ɵɵresolveWindow);\n }\n }\n });\n return TuiFocusTrapDirective;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiFocusTrapModule = /*#__PURE__*/(() => {\n class TuiFocusTrapModule {}\n TuiFocusTrapModule.ɵfac = function TuiFocusTrapModule_Factory(t) {\n return new (t || TuiFocusTrapModule)();\n };\n TuiFocusTrapModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiFocusTrapModule\n });\n TuiFocusTrapModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n return TuiFocusTrapModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiFocusTrapDirective, TuiFocusTrapModule };\n","import { trigger, transition, style, query, animateChild } from '@angular/animations';\nimport * as i2 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ChangeDetectorRef, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i6 from '@angular/platform-browser';\nimport { Title } from '@angular/platform-browser';\nimport { HISTORY } from '@ng-web-apis/common';\nimport { TuiDestroyService } from '@taiga-ui/cdk/services';\nimport { TUI_IS_MOBILE, TUI_DIALOGS } from '@taiga-ui/cdk/tokens';\nimport { tuiCreateToken } from '@taiga-ui/cdk/utils';\nimport * as i5 from 'rxjs';\nimport { of, combineLatest } from 'rxjs';\nimport { map, takeUntil } from 'rxjs/operators';\nimport * as i1 from '@taiga-ui/cdk/components/scroll-controls';\nimport { TuiScrollControlsModule } from '@taiga-ui/cdk/components/scroll-controls';\nimport * as i3 from '@taiga-ui/cdk/directives';\nimport { TuiOverscrollModule, TuiFocusTrapModule, TuiLetModule } from '@taiga-ui/cdk/directives';\nimport * as i4 from '@tinkoff/ng-polymorpheus';\nimport { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';\nfunction TuiDialogHostComponent_section_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tui-scroll-controls\", 5);\n }\n}\nfunction TuiDialogHostComponent_section_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"section\", 2);\n i0.ɵɵtemplate(1, TuiDialogHostComponent_section_0_ng_container_1_Template, 1, 0, \"ng-container\", 3)(2, TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template, 1, 0, \"tui-scroll-controls\", 4);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const item_r1 = ctx.$implicit;\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"@host\", undefined);\n i0.ɵɵattribute(\"aria-labelledby\", item_r1.id);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"polymorpheusOutlet\", item_r1.component)(\"polymorpheusOutletContext\", item_r1);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.isMobile);\n }\n}\nfunction TuiDialogHostComponent_div_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 6);\n i0.ɵɵlistener(\"transitionend\", function TuiDialogHostComponent_div_1_Template_div_transitionend_0_listener($event) {\n const isDialogClosesOnBack_r4 = i0.ɵɵrestoreView(_r3).tuiLet;\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.onDialog($event, !!ctx_r1.dialogs.length, !!isDialogClosesOnBack_r4));\n })(\"popstate\", function TuiDialogHostComponent_div_1_Template_div_popstate_0_listener() {\n const isDialogClosesOnBack_r4 = i0.ɵɵrestoreView(_r3).tuiLet;\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.closeLast(ctx_r1.dialogs, !!isDialogClosesOnBack_r4));\n }, false, i0.ɵɵresolveWindow);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵclassProp(\"t-overlay_visible\", ctx_r1.dialogs.length);\n }\n}\nconst FAKE_HISTORY_STATE = {\n label: 'ignoreMe'\n};\nconst isFakeHistoryState = historyState => (historyState === null || historyState === void 0 ? void 0 : historyState.label) === FAKE_HISTORY_STATE.label;\n/**\n * Is closing dialog on browser backward navigation enabled\n */\nconst TUI_DIALOG_CLOSES_ON_BACK = tuiCreateToken(of(false));\nlet TuiDialogHostComponent = /*#__PURE__*/(() => {\n class TuiDialogHostComponent {\n constructor(isMobile, isDialogClosesOnBack$, dialogsByType, historyRef, titleService, destroy$, cdr, doc) {\n this.isMobile = isMobile;\n this.isDialogClosesOnBack$ = isDialogClosesOnBack$;\n this.dialogsByType = dialogsByType;\n this.historyRef = historyRef;\n this.titleService = titleService;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.doc = doc;\n this.dialogs = [];\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n combineLatest(this.dialogsByType).pipe(map(arr => [].concat(...arr).sort((a, b) => a.createdAt - b.createdAt)), takeUntil(this.destroy$)).subscribe(dialogs => {\n var _a;\n this.dialogs = dialogs;\n this.cdr.markForCheck();\n (_a = this.doc.defaultView) === null || _a === void 0 ? void 0 : _a.document.documentElement.classList.toggle('t-overscroll-none', !!dialogs.length);\n });\n }\n closeLast(dialogs, isDialogClosesOnBack) {\n if (!isDialogClosesOnBack) {\n return;\n }\n const [last] = dialogs.slice(-1);\n if (!last) {\n return;\n }\n if (dialogs.length > 1) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n }\n last.$implicit.complete();\n }\n onDialog({\n propertyName\n }, popupOpened, isDialogClosesOnBack) {\n if (!isDialogClosesOnBack || propertyName !== 'letter-spacing') {\n return;\n }\n if (popupOpened) {\n this.historyRef.pushState(FAKE_HISTORY_STATE, this.titleService.getTitle());\n } else if (isFakeHistoryState(this.historyRef.state)) {\n this.historyRef.back();\n }\n }\n }\n TuiDialogHostComponent.ɵfac = function TuiDialogHostComponent_Factory(t) {\n return new (t || TuiDialogHostComponent)(i0.ɵɵdirectiveInject(TUI_IS_MOBILE), i0.ɵɵdirectiveInject(TUI_DIALOG_CLOSES_ON_BACK), i0.ɵɵdirectiveInject(TUI_DIALOGS), i0.ɵɵdirectiveInject(HISTORY), i0.ɵɵdirectiveInject(Title), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef), i0.ɵɵdirectiveInject(DOCUMENT));\n };\n TuiDialogHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiDialogHostComponent,\n selectors: [[\"tui-dialog-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 3,\n vars: 4,\n consts: [[\"aria-modal\", \"true\", \"role\", \"dialog\", \"tuiFocusTrap\", \"\", \"tuiOverscroll\", \"all\", \"tuiScrollRef\", \"\", \"class\", \"t-dialog\", 4, \"ngFor\", \"ngForOf\"], [\"class\", \"t-overlay\", 3, \"t-overlay_visible\", \"transitionend\", \"popstate\", 4, \"tuiLet\"], [\"aria-modal\", \"true\", \"role\", \"dialog\", \"tuiFocusTrap\", \"\", \"tuiOverscroll\", \"all\", \"tuiScrollRef\", \"\", 1, \"t-dialog\"], [4, \"polymorpheusOutlet\", \"polymorpheusOutletContext\"], [\"class\", \"t-scrollbars\", 4, \"ngIf\"], [1, \"t-scrollbars\"], [1, \"t-overlay\", 3, \"transitionend\", \"popstate\"]],\n template: function TuiDialogHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiDialogHostComponent_section_0_Template, 3, 5, \"section\", 0)(1, TuiDialogHostComponent_div_1_Template, 1, 2, \"div\", 1);\n i0.ɵɵpipe(2, \"async\");\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.dialogs);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"tuiLet\", i0.ɵɵpipeBind1(2, 2, ctx.isDialogClosesOnBack$));\n }\n },\n dependencies: [i1.TuiScrollControlsComponent, i2.NgForOf, i3.TuiFocusTrapDirective, i3.TuiOverscrollDirective, i1.TuiScrollRefDirective, i4.PolymorpheusOutletDirective, i2.NgIf, i3.TuiLetDirective, i2.AsyncPipe],\n 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;scrollbar-width:none;-ms-overflow-style:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar, .t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}.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, .3s),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}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;margin:0;color:#747474}\"],\n data: {\n animation: [trigger('host', [transition(':enter', [style({\n overflow: 'clip'\n }), query(':scope > *', [animateChild()], {\n optional: true\n })]), transition(':leave', [style({\n overflow: 'clip'\n }), query(':scope > *', [animateChild()], {\n optional: true\n })])])]\n }\n });\n return TuiDialogHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiDialogHostModule = /*#__PURE__*/(() => {\n class TuiDialogHostModule {}\n TuiDialogHostModule.ɵfac = function TuiDialogHostModule_Factory(t) {\n return new (t || TuiDialogHostModule)();\n };\n TuiDialogHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiDialogHostModule\n });\n TuiDialogHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, PolymorpheusModule, TuiOverscrollModule, TuiFocusTrapModule, TuiLetModule, TuiScrollControlsModule]]\n });\n return TuiDialogHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TUI_DIALOG_CLOSES_ON_BACK, TuiDialogHostComponent, TuiDialogHostModule };\n","import * as i0 from '@angular/core';\nimport { ChangeDetectorRef, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i2 from '@taiga-ui/cdk';\nimport { TuiDestroyService, TUI_PARENT_ANIMATION, TuiActiveZoneModule } from '@taiga-ui/cdk';\nimport { TuiHintService } from '@taiga-ui/core/services';\nimport { takeUntil } from 'rxjs/operators';\nimport * as i1 from '@angular/common';\nimport { CommonModule } from '@angular/common';\nimport * as i3 from '@tinkoff/ng-polymorpheus';\nimport { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';\nimport * as i4 from 'rxjs';\nconst _c0 = a0 => ({\n $implicit: a0\n});\nfunction TuiHintsHostComponent_div_0_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction TuiHintsHostComponent_div_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 1);\n i0.ɵɵtemplate(1, TuiHintsHostComponent_div_0_ng_container_1_Template, 1, 0, \"ng-container\", 2);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const hint_r1 = ctx.$implicit;\n i0.ɵɵproperty(\"@tuiParentAnimation\", undefined)(\"tuiActiveZoneParent\", hint_r1.activeZone || null);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"polymorpheusOutlet\", hint_r1.component)(\"polymorpheusOutletContext\", i0.ɵɵpureFunction1(4, _c0, hint_r1));\n }\n}\nlet TuiHintsHostComponent = /*#__PURE__*/(() => {\n class TuiHintsHostComponent {\n constructor(hints$, destroy$, cdr) {\n this.hints$ = hints$;\n this.destroy$ = destroy$;\n this.cdr = cdr;\n this.hints = [];\n }\n ngOnInit() {\n // Due to this view being parallel to app content, `markForCheck` from `async` pipe\n // can happen after view was checked, so calling `detectChanges` instead\n this.hints$.pipe(takeUntil(this.destroy$)).subscribe(hints => {\n this.hints = hints;\n this.cdr.detectChanges();\n });\n }\n }\n TuiHintsHostComponent.ɵfac = function TuiHintsHostComponent_Factory(t) {\n return new (t || TuiHintsHostComponent)(i0.ɵɵdirectiveInject(TuiHintService), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(ChangeDetectorRef));\n };\n TuiHintsHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiHintsHostComponent,\n selectors: [[\"tui-hints-host\"]],\n hostAttrs: [\"aria-live\", \"polite\"],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 1,\n vars: 1,\n consts: [[\"role\", \"tooltip\", 3, \"tuiActiveZoneParent\", 4, \"ngFor\", \"ngForOf\"], [\"role\", \"tooltip\", 3, \"tuiActiveZoneParent\"], [4, \"polymorpheusOutlet\", \"polymorpheusOutletContext\"]],\n template: function TuiHintsHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiHintsHostComponent_div_0_Template, 2, 6, \"div\", 0);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngForOf\", ctx.hints);\n }\n },\n dependencies: [i1.NgForOf, i2.TuiActiveZoneDirective, i3.PolymorpheusOutletDirective],\n styles: [\"[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}\"],\n data: {\n animation: [TUI_PARENT_ANIMATION]\n }\n });\n return TuiHintsHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiHintsHostModule = /*#__PURE__*/(() => {\n class TuiHintsHostModule {}\n TuiHintsHostModule.ɵfac = function TuiHintsHostModule_Factory(t) {\n return new (t || TuiHintsHostModule)();\n };\n TuiHintsHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiHintsHostModule\n });\n TuiHintsHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, PolymorpheusModule, TuiActiveZoneModule]]\n });\n return TuiHintsHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiHintsHostComponent, TuiHintsHostModule };\n","import * as i1 from '@angular/common';\nimport { isPlatformServer, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { ChangeDetectorRef, PLATFORM_ID, Component, ChangeDetectionStrategy, Inject, Self, NgModule } from '@angular/core';\nimport * as i3 from '@taiga-ui/cdk';\nimport { TuiDestroyService, TuiLetModule } from '@taiga-ui/cdk';\nimport * as i2 from '@taiga-ui/core/services';\nimport { TuiSvgService } from '@taiga-ui/core/services';\nimport { takeUntil } from 'rxjs/operators';\nfunction TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelement(0, \"defs\", 4);\n }\n if (rf & 2) {\n const def_r1 = ctx.$implicit;\n i0.ɵɵproperty(\"innerHTML\", def_r1, i0.ɵɵsanitizeHtml);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template, 1, 1, \"defs\", 3);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.items);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"defs\");\n i0.ɵɵelement(1, \"svg\", 6);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const def_r3 = ctx.$implicit;\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"outerHTML\", def_r3, i0.ɵɵsanitizeHtml);\n }\n}\nfunction TuiSvgDefsHostComponent__svg_ng_template_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template, 2, 1, \"defs\", 5);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngForOf\", ctx_r1.items);\n }\n}\nlet TuiSvgDefsHostComponent = /*#__PURE__*/(() => {\n class TuiSvgDefsHostComponent {\n constructor(svgService, cdr, destroy$, platformId) {\n this.svgService = svgService;\n this.cdr = cdr;\n this.destroy$ = destroy$;\n this.isBrowser = true;\n this.isBrowser = !isPlatformServer(platformId);\n }\n // @bad TODO: Looks like it could be async piped but it was probably written like that for a reason\n ngOnInit() {\n this.svgService.items$.pipe(takeUntil(this.destroy$)).subscribe(defsMap => {\n this.items = defsMap.values();\n this.cdr.detectChanges();\n });\n }\n }\n TuiSvgDefsHostComponent.ɵfac = function TuiSvgDefsHostComponent_Factory(t) {\n return new (t || TuiSvgDefsHostComponent)(i0.ɵɵdirectiveInject(TuiSvgService), i0.ɵɵdirectiveInject(ChangeDetectorRef), i0.ɵɵdirectiveInject(TuiDestroyService, 2), i0.ɵɵdirectiveInject(PLATFORM_ID));\n };\n TuiSvgDefsHostComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiSvgDefsHostComponent,\n selectors: [[\"tui-svg-defs-host\"]],\n features: [i0.ɵɵProvidersFeature([TuiDestroyService])],\n decls: 4,\n vars: 2,\n consts: [[\"server\", \"\"], [\"version\", \"1.1\", 0, \"xmlns\", \"xlink\", \"http://www.w3.org/1999/xlink\", \"xmlns\", \"http://www.w3.org/2000/svg\"], [4, \"ngIf\", \"ngIfElse\"], [3, \"innerHTML\", 4, \"ngFor\", \"ngForOf\"], [3, \"innerHTML\"], [4, \"ngFor\", \"ngForOf\"], [3, \"outerHTML\"]],\n template: function TuiSvgDefsHostComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵnamespaceSVG();\n i0.ɵɵelementStart(0, \"svg\", 1);\n i0.ɵɵtemplate(1, TuiSvgDefsHostComponent__svg_ng_container_1_Template, 2, 1, \"ng-container\", 2)(2, TuiSvgDefsHostComponent__svg_ng_template_2_Template, 1, 1, \"ng-template\", null, 0, i0.ɵɵtemplateRefExtractor);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const server_r4 = i0.ɵɵreference(3);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.isBrowser)(\"ngIfElse\", server_r4);\n }\n },\n dependencies: [i1.NgIf, i1.NgForOf],\n styles: [\"[_nghost-%COMP%]{display:none}\"],\n changeDetection: 0\n });\n return TuiSvgDefsHostComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiSvgDefsHostModule = /*#__PURE__*/(() => {\n class TuiSvgDefsHostModule {}\n TuiSvgDefsHostModule.ɵfac = function TuiSvgDefsHostModule_Factory(t) {\n return new (t || TuiSvgDefsHostModule)();\n };\n TuiSvgDefsHostModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiSvgDefsHostModule\n });\n TuiSvgDefsHostModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, TuiLetModule]]\n });\n return TuiSvgDefsHostModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiSvgDefsHostComponent, TuiSvgDefsHostModule };\n","import * as i4 from '@angular/common';\nimport { DOCUMENT, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, NgModule } from '@angular/core';\nimport * as i1 from '@taiga-ui/cdk';\nimport { TUI_DIALOGS, TUI_IS_MOBILE, TUI_IS_IOS, TUI_IS_ANDROID, TUI_VERSION, TuiDropdownHostModule, TuiDialogHostModule, TuiAlertHostModule, TuiScrollControlsModule } from '@taiga-ui/cdk';\nimport * as i5 from '@taiga-ui/core/services';\nimport { TuiBreakpointService } from '@taiga-ui/core/services';\nimport { TUI_REDUCED_MOTION, TUI_ANIMATIONS_DURATION, TUI_THEME } from '@taiga-ui/core/tokens';\nimport { combineLatest, of } from 'rxjs';\nimport { map, debounceTime } from 'rxjs/operators';\nimport * as i2 from '@taiga-ui/core/internal/svg-defs-host';\nimport { TuiSvgDefsHostModule } from '@taiga-ui/core/internal/svg-defs-host';\nimport * as i3 from '@taiga-ui/core/components/hints-host';\nimport { TuiHintsHostModule } from '@taiga-ui/core/components/hints-host';\nimport { EventPluginsModule } from '@tinkoff/ng-event-plugins';\nconst _c0 = [\"*\", [[\"tuiOverContent\"]], [[\"tuiOverDialogs\"]], [[\"tuiOverAlerts\"]], [[\"tuiOverPortals\"]], [[\"tuiOverHints\"]]];\nconst _c1 = [\"*\", \"tuiOverContent\", \"tuiOverDialogs\", \"tuiOverAlerts\", \"tuiOverPortals\", \"tuiOverHints\"];\nfunction TuiRootComponent_tui_scroll_controls_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"tui-scroll-controls\", 2);\n }\n}\nlet TuiRootComponent = /*#__PURE__*/(() => {\n class TuiRootComponent {\n constructor(reducedMotion, duration, dialogs, isMobile, breakpoint, isIOS, isAndroid, document, theme) {\n var _a;\n this.reducedMotion = reducedMotion;\n this.duration = duration;\n this.dialogs = dialogs;\n this.isMobile = isMobile;\n this.breakpoint = breakpoint;\n this.isIOS = isIOS;\n this.isAndroid = isAndroid;\n this.isMobileRes$ = this.breakpoint.pipe(map(breakpoint => breakpoint === 'mobile'));\n this.scrollbars$ = this.dialogs.length && !this.isMobile ? combineLatest([...this.dialogs]).pipe(map(dialogs => !dialogs.some(({\n length\n }) => length)), debounceTime(0)) : of(!this.isMobile);\n (_a = document.defaultView) === null || _a === void 0 ? void 0 : _a.document.body.setAttribute('data-tui-theme', theme.toLowerCase());\n }\n }\n TuiRootComponent.ɵfac = function TuiRootComponent_Factory(t) {\n return new (t || TuiRootComponent)(i0.ɵɵdirectiveInject(TUI_REDUCED_MOTION), i0.ɵɵdirectiveInject(TUI_ANIMATIONS_DURATION), i0.ɵɵdirectiveInject(TUI_DIALOGS), i0.ɵɵdirectiveInject(TUI_IS_MOBILE), i0.ɵɵdirectiveInject(TuiBreakpointService), i0.ɵɵdirectiveInject(TUI_IS_IOS), i0.ɵɵdirectiveInject(TUI_IS_ANDROID), i0.ɵɵdirectiveInject(DOCUMENT), i0.ɵɵdirectiveInject(TUI_THEME));\n };\n TuiRootComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: TuiRootComponent,\n selectors: [[\"tui-root\"]],\n hostAttrs: [\"data-tui-version\", \"3.74.0\"],\n hostVars: 9,\n hostBindings: function TuiRootComponent_HostBindings(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵlistener(\"touchstart.passive.silent\", function TuiRootComponent_touchstart_passive_silent_HostBindingHandler() {\n return 0;\n })(\"$.class._mobile\", function TuiRootComponent___class__mobile_HostBindingHandler() {\n return ctx.isMobileRes$;\n });\n }\n if (rf & 2) {\n i0.ɵɵhostProperty(\"$.class._mobile\", ctx.isMobileRes$);\n i0.ɵɵstyleProp(\"--tui-duration\", ctx.duration, \"ms\");\n i0.ɵɵclassProp(\"_ios\", ctx.isIOS)(\"_android\", ctx.isAndroid)(\"_reduced-motion\", ctx.reducedMotion);\n }\n },\n ngContentSelectors: _c1,\n decls: 14,\n vars: 3,\n consts: [[\"class\", \"t-root-scrollbar\", 4, \"ngIf\"], [1, \"t-root-content\"], [1, \"t-root-scrollbar\"]],\n template: function TuiRootComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef(_c0);\n i0.ɵɵtemplate(0, TuiRootComponent_tui_scroll_controls_0_Template, 1, 0, \"tui-scroll-controls\", 0);\n i0.ɵɵpipe(1, \"async\");\n i0.ɵɵelement(2, \"tui-svg-defs-host\");\n i0.ɵɵelementStart(3, \"tui-dropdown-host\")(4, \"div\", 1);\n i0.ɵɵprojection(5);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(6, 1);\n i0.ɵɵelement(7, \"tui-dialog-host\");\n i0.ɵɵprojection(8, 2);\n i0.ɵɵelement(9, \"tui-alert-host\");\n i0.ɵɵprojection(10, 3);\n i0.ɵɵelementEnd();\n i0.ɵɵprojection(11, 4);\n i0.ɵɵelement(12, \"tui-hints-host\");\n i0.ɵɵprojection(13, 5);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", i0.ɵɵpipeBind1(1, 1, ctx.scrollbars$));\n }\n },\n dependencies: [i1.TuiScrollControlsComponent, i2.TuiSvgDefsHostComponent, i1.TuiDropdownHostComponent, i1.TuiDialogHostComponent, i1.TuiAlertHostComponent, i3.TuiHintsHostComponent, i4.NgIf, i4.AsyncPipe],\n styles: [\"@keyframes tuiPresent{to{content:\\\"1\\\"}}@keyframes tuiSkeletonVibe{to{opacity:.5}}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{display:none}body[data-tui-theme]{font:var(--tui-font-text-s);color:var(--tui-text-01);background:var(--tui-base-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;display:none;margin:0}[data-tui-theme] tui-root>.t-root-scrollbar{display:block}.t-root-content{height:100%;isolation:isolate}.t-overscroll-none{overscroll-behavior:none}\\n\"],\n encapsulation: 2\n });\n return TuiRootComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet TuiRootModule = /*#__PURE__*/(() => {\n class TuiRootModule {}\n TuiRootModule.ɵfac = function TuiRootModule_Factory(t) {\n return new (t || TuiRootModule)();\n };\n TuiRootModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: TuiRootModule\n });\n TuiRootModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [[CommonModule, EventPluginsModule, TuiDropdownHostModule, TuiSvgDefsHostModule, TuiHintsHostModule, TuiDialogHostModule, TuiAlertHostModule, TuiScrollControlsModule]]\n });\n return TuiRootModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { TuiRootComponent, TuiRootModule };\n","import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\nimport {RouterOutlet} from '@angular/router';\nimport {TuiRootModule} from '@taiga-ui/core';\n\n@Component({\n standalone: true,\n selector: 'app',\n imports: [TuiRootModule, RouterOutlet],\n templateUrl: './app.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AppComponent {}\n","\n \n\n \n \n \n \n \n\n","/**\n * @license Angular v17.3.8\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\n\nimport * as i0 from '@angular/core';\nimport { inject, ɵChangeDetectionScheduler, Injectable, Inject, RendererFactory2, NgZone, ANIMATION_MODULE_TYPE, NgModule, ɵperformanceMarkFeature } from '@angular/core';\nexport { ANIMATION_MODULE_TYPE } from '@angular/core';\nimport { ɵDomRendererFactory2, BrowserModule } from '@angular/platform-browser';\nimport * as i1 from '@angular/animations/browser';\nimport { ɵAnimationEngine, ɵWebAnimationsStyleNormalizer, ɵAnimationRendererFactory, ɵAnimationStyleNormalizer, AnimationDriver, ɵWebAnimationsDriver, NoopAnimationDriver } from '@angular/animations/browser';\nimport { DOCUMENT } from '@angular/common';\nlet InjectableAnimationEngine = /*#__PURE__*/(() => {\n class InjectableAnimationEngine extends ɵAnimationEngine {\n // The `ApplicationRef` is injected here explicitly to force the dependency ordering.\n // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they\n // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.\n constructor(doc, driver, normalizer) {\n super(doc, driver, normalizer, inject(ɵChangeDetectionScheduler, {\n optional: true\n }));\n }\n ngOnDestroy() {\n this.flush();\n }\n static {\n this.ɵfac = function InjectableAnimationEngine_Factory(t) {\n return new (t || InjectableAnimationEngine)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(i1.AnimationDriver), i0.ɵɵinject(i1.ɵAnimationStyleNormalizer));\n };\n }\n static {\n this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: InjectableAnimationEngine,\n factory: InjectableAnimationEngine.ɵfac\n });\n }\n }\n return InjectableAnimationEngine;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction instantiateDefaultStyleNormalizer() {\n return new ɵWebAnimationsStyleNormalizer();\n}\nfunction instantiateRendererFactory(renderer, engine, zone) {\n return new ɵAnimationRendererFactory(renderer, engine, zone);\n}\nconst SHARED_ANIMATION_PROVIDERS = [{\n provide: ɵAnimationStyleNormalizer,\n useFactory: instantiateDefaultStyleNormalizer\n}, {\n provide: ɵAnimationEngine,\n useClass: InjectableAnimationEngine\n}, {\n provide: RendererFactory2,\n useFactory: instantiateRendererFactory,\n deps: [ɵDomRendererFactory2, ɵAnimationEngine, NgZone]\n}];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserModule.\n */\nconst BROWSER_ANIMATIONS_PROVIDERS = [{\n provide: AnimationDriver,\n useFactory: () => new ɵWebAnimationsDriver()\n}, {\n provide: ANIMATION_MODULE_TYPE,\n useValue: 'BrowserAnimations'\n}, ...SHARED_ANIMATION_PROVIDERS];\n/**\n * Separate providers from the actual module so that we can do a local modification in Google3 to\n * include them in the BrowserTestingModule.\n */\nconst BROWSER_NOOP_ANIMATIONS_PROVIDERS = [{\n provide: AnimationDriver,\n useClass: NoopAnimationDriver\n}, {\n provide: ANIMATION_MODULE_TYPE,\n useValue: 'NoopAnimations'\n}, ...SHARED_ANIMATION_PROVIDERS];\n\n/**\n * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)\n * for use with animations. See [Animations](guide/animations).\n * @publicApi\n */\nlet BrowserAnimationsModule = /*#__PURE__*/(() => {\n class BrowserAnimationsModule {\n /**\n * Configures the module based on the specified object.\n *\n * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.\n * @see {@link BrowserAnimationsModuleConfig}\n *\n * @usageNotes\n * When registering the `BrowserAnimationsModule`, you can use the `withConfig`\n * function as follows:\n * ```\n * @NgModule({\n * imports: [BrowserAnimationsModule.withConfig(config)]\n * })\n * class MyNgModule {}\n * ```\n */\n static withConfig(config) {\n return {\n ngModule: BrowserAnimationsModule,\n providers: config.disableAnimations ? BROWSER_NOOP_ANIMATIONS_PROVIDERS : BROWSER_ANIMATIONS_PROVIDERS\n };\n }\n static {\n this.ɵfac = function BrowserAnimationsModule_Factory(t) {\n return new (t || BrowserAnimationsModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: BrowserAnimationsModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: BROWSER_ANIMATIONS_PROVIDERS,\n imports: [BrowserModule]\n });\n }\n }\n return BrowserAnimationsModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to enable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to enable animations in an application\n * bootstrapped using the `bootstrapApplication` function. In this scenario there\n * is no need to import the `BrowserAnimationsModule` NgModule at all, just add\n * providers returned by this function to the `providers` list as show below.\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideAnimations() {\n ɵperformanceMarkFeature('NgEagerAnimations');\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideAnimations` call results in app code.\n return [...BROWSER_ANIMATIONS_PROVIDERS];\n}\n/**\n * A null player that must be imported to allow disabling of animations.\n * @publicApi\n */\nlet NoopAnimationsModule = /*#__PURE__*/(() => {\n class NoopAnimationsModule {\n static {\n this.ɵfac = function NoopAnimationsModule_Factory(t) {\n return new (t || NoopAnimationsModule)();\n };\n }\n static {\n this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: NoopAnimationsModule\n });\n }\n static {\n this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,\n imports: [BrowserModule]\n });\n }\n }\n return NoopAnimationsModule;\n})();\n/*#__PURE__*/(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n/**\n * Returns the set of [dependency-injection providers](guide/glossary#provider)\n * to disable animations in an application. See [animations guide](guide/animations)\n * to learn more about animations in Angular.\n *\n * @usageNotes\n *\n * The function is useful when you want to bootstrap an application using\n * the `bootstrapApplication` function, but you need to disable animations\n * (for example, when running tests).\n *\n * ```typescript\n * bootstrapApplication(RootComponent, {\n * providers: [\n * provideNoopAnimations()\n * ]\n * });\n * ```\n *\n * @publicApi\n */\nfunction provideNoopAnimations() {\n // Return a copy to prevent changes to the original array in case any in-place\n // alterations are performed to the `provideNoopAnimations` call results in app code.\n return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS];\n}\n\n/**\n * @module\n * @description\n * Entry point for all animation APIs of the animation browser package.\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\n\n// This file is not used to build this module. It is only used during editing\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { BrowserAnimationsModule, NoopAnimationsModule, provideAnimations, provideNoopAnimations, InjectableAnimationEngine as ɵInjectableAnimationEngine };\n","import type {ApplicationConfig} from '@angular/core';\nimport {importProvidersFrom} from '@angular/core';\nimport {provideClientHydration} from '@angular/platform-browser';\nimport {provideAnimations} from '@angular/platform-browser/animations';\nimport {provideRouter} from '@angular/router';\nimport {TUI_SANITIZER, TuiDialogModule, TuiRootModule} from '@taiga-ui/core';\nimport {TuiPushModule} from '@taiga-ui/kit';\nimport {NgDompurifySanitizer} from '@tinkoff/ng-dompurify';\n\nexport const appConfig: ApplicationConfig = {\n providers: [\n provideAnimations(),\n provideRouter([\n {\n path: '',\n pathMatch: 'full',\n loadComponent: async () => import('./home/home.component'),\n },\n ]),\n provideClientHydration(),\n importProvidersFrom(TuiRootModule, TuiDialogModule, TuiPushModule),\n {\n provide: TUI_SANITIZER,\n useClass: NgDompurifySanitizer,\n },\n ],\n};\n","// This file can be replaced during build by using the `fileReplacements` array.\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\n// The list of file replacements can be found in `angular.json`.\n\nexport const environment = {\n production: false,\n};\n\n/*\n * For easier debugging in development mode, you can import the following file\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\n *\n * This import should be commented out in production mode because it will have a negative impact\n * on performance if an error is thrown.\n */\n// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.\n","import {enableProdMode} from '@angular/core';\nimport {bootstrapApplication} from '@angular/platform-browser';\n\nimport {AppComponent} from './app/app.component';\nimport {appConfig} from './app/app.config';\nimport {environment} from './environments/environment';\n\nif (environment.production) {\n enableProdMode();\n}\n\nbootstrapApplication(AppComponent, appConfig).catch(err => console.error(err));\n"],"mappings":"qjCAaA,SAASA,GAAoDC,EAAIC,EAAK,CAKpE,GAJID,EAAK,IACJE,EAAmB,EAAG,CAAC,EACvBC,EAAO,EAAG,WAAW,GAEtBH,EAAK,EAAG,CACV,IAAMI,EAAUH,EAAI,UACdI,EAAYC,EAAc,CAAC,EAC9BC,EAAW,oBAAqBH,EAAQ,UAAU,SAAS,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,CACPC,GAAiB,EACjBC,GAAc,CACV,CACIC,KAAM,GACNC,UAAW,OACXC,cAAe,IAAAC,GAAA,wBAAY,cAAO,qBAAuB,IAC5D,CACJ,EACDC,GAAsB,EACtBC,GAAoBC,EAAeC,GAAiBC,EAAa,EACjE,CACIC,QAASC,GACTC,SAAUC,GACb,GCpBF,IAAMC,GAAc,CACvBC,WAAY,ICEZC,GAAYC,YACZC,OAGJC,GAAqBC,GAAcC,EAAS,EAAEC,MAAMC,GAAOC,QAAQC,MAAMF,CAAG,CAAC","names":["TuiAlertHostComponent_div_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","ɵɵpipe","item_r1","ctx_r1","ɵɵnextContext","ɵɵproperty","ɵɵpipeBind2","TuiAlertHostComponent_div_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","alert_r3","ɵɵadvance","TuiAlertHostComponent","allAlerts","injector","destroy$","cdr","index","useValue","Injector","POLYMORPHEUS_CONTEXT","combineLatest","takeUntil","alerts","t","ɵɵdirectiveInject","TUI_ALERTS","INJECTOR$1","TuiDestroyService","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NgForOf","NgComponentOutlet","TuiMapperPipe","TUI_PARENT_ANIMATION","TuiAlertHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","TuiMapperPipeModule","TuiFocusTrapDirective","doc","el","renderer","tuiGetNativeFocused","node","nativeElement","tuiContainsOrAfter","focusable","tuiGetClosestFocusable","tuiBlurNativeFocused","tuiIsHTMLElement","t","ɵɵdirectiveInject","DOCUMENT","ElementRef","Renderer2","ɵɵdefineDirective","rf","ctx","ɵɵlistener","$event","ɵɵresolveWindow","TuiFocusTrapModule","ɵɵdefineNgModule","ɵɵdefineInjector","TuiDialogHostComponent_section_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","TuiDialogHostComponent_section_0_tui_scroll_controls_2_Template","ɵɵelement","TuiDialogHostComponent_section_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","item_r1","ctx_r1","ɵɵnextContext","ɵɵproperty","ɵɵattribute","ɵɵadvance","TuiDialogHostComponent_div_1_Template","_r3","ɵɵgetCurrentView","ɵɵlistener","$event","isDialogClosesOnBack_r4","ɵɵrestoreView","ɵɵresetView","ɵɵresolveWindow","ɵɵclassProp","FAKE_HISTORY_STATE","isFakeHistoryState","historyState","TUI_DIALOG_CLOSES_ON_BACK","tuiCreateToken","of","TuiDialogHostComponent","isMobile","isDialogClosesOnBack$","dialogsByType","historyRef","titleService","destroy$","cdr","doc","combineLatest","map","arr","a","b","takeUntil","dialogs","_a","isDialogClosesOnBack","last","propertyName","popupOpened","t","ɵɵdirectiveInject","TUI_IS_MOBILE","TUI_DIALOGS","HISTORY","Title","TuiDestroyService","ChangeDetectorRef","DOCUMENT","ɵɵdefineComponent","ɵɵProvidersFeature","ɵɵpipe","ɵɵpipeBind1","TuiScrollControlsComponent","NgForOf","TuiFocusTrapDirective","TuiOverscrollDirective","TuiScrollRefDirective","PolymorpheusOutletDirective","NgIf","TuiLetDirective","AsyncPipe","trigger","transition","style","query","animateChild","TuiDialogHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","PolymorpheusModule","TuiOverscrollModule","TuiFocusTrapModule","TuiLetModule","TuiScrollControlsModule","_c0","a0","TuiHintsHostComponent_div_0_ng_container_1_Template","rf","ctx","ɵɵelementContainer","TuiHintsHostComponent_div_0_Template","ɵɵelementStart","ɵɵtemplate","ɵɵelementEnd","hint_r1","ɵɵproperty","ɵɵadvance","ɵɵpureFunction1","TuiHintsHostComponent","hints$","destroy$","cdr","takeUntil","hints","t","ɵɵdirectiveInject","TuiHintService","TuiDestroyService","ChangeDetectorRef","ɵɵdefineComponent","ɵɵProvidersFeature","NgForOf","TuiActiveZoneDirective","PolymorpheusOutletDirective","TUI_PARENT_ANIMATION","TuiHintsHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","PolymorpheusModule","TuiActiveZoneModule","TuiSvgDefsHostComponent__svg_ng_container_1__svg_defs_1_Template","rf","ctx","ɵɵnamespaceSVG","ɵɵelement","def_r1","ɵɵproperty","ɵɵsanitizeHtml","TuiSvgDefsHostComponent__svg_ng_container_1_Template","ɵɵelementContainerStart","ɵɵtemplate","ɵɵelementContainerEnd","ctx_r1","ɵɵnextContext","ɵɵadvance","TuiSvgDefsHostComponent__svg_ng_template_2__svg_defs_0_Template","ɵɵelementStart","ɵɵelementEnd","def_r3","TuiSvgDefsHostComponent__svg_ng_template_2_Template","TuiSvgDefsHostComponent","svgService","cdr","destroy$","platformId","isPlatformServer","takeUntil","defsMap","t","ɵɵdirectiveInject","TuiSvgService","ChangeDetectorRef","TuiDestroyService","PLATFORM_ID","ɵɵdefineComponent","ɵɵProvidersFeature","ɵɵtemplateRefExtractor","server_r4","ɵɵreference","NgIf","NgForOf","TuiSvgDefsHostModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","TuiLetModule","_c0","_c1","TuiRootComponent_tui_scroll_controls_0_Template","rf","ctx","ɵɵelement","TuiRootComponent","reducedMotion","duration","dialogs","isMobile","breakpoint","isIOS","isAndroid","document","theme","_a","map","combineLatest","length","debounceTime","of","t","ɵɵdirectiveInject","TUI_REDUCED_MOTION","TUI_ANIMATIONS_DURATION","TUI_DIALOGS","TUI_IS_MOBILE","TuiBreakpointService","TUI_IS_IOS","TUI_IS_ANDROID","DOCUMENT","TUI_THEME","ɵɵdefineComponent","ɵɵlistener","ɵɵhostProperty","ɵɵstyleProp","ɵɵclassProp","ɵɵprojectionDef","ɵɵtemplate","ɵɵpipe","ɵɵelementStart","ɵɵprojection","ɵɵelementEnd","ɵɵproperty","ɵɵpipeBind1","TuiScrollControlsComponent","TuiSvgDefsHostComponent","TuiDropdownHostComponent","TuiDialogHostComponent","TuiAlertHostComponent","TuiHintsHostComponent","NgIf","AsyncPipe","TuiRootModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule","EventPluginsModule","TuiDropdownHostModule","TuiSvgDefsHostModule","TuiHintsHostModule","TuiDialogHostModule","TuiAlertHostModule","TuiScrollControlsModule","AppComponent","selectors","standalone","features","ɵɵStandaloneFeature","decls","vars","consts","template","rf","ctx","ɵɵelementStart","ɵɵelement","ɵɵelementContainer","ɵɵelementEnd","TuiRootModule","TuiRootComponent","RouterOutlet","encapsulation","changeDetection","_AppComponent","InjectableAnimationEngine","_InjectableAnimationEngine","AnimationEngine","doc","driver","normalizer","inject","ChangeDetectionScheduler","t","ɵɵinject","DOCUMENT","AnimationDriver","AnimationStyleNormalizer","ɵɵdefineInjectable","instantiateDefaultStyleNormalizer","WebAnimationsStyleNormalizer","instantiateRendererFactory","renderer","engine","zone","AnimationRendererFactory","SHARED_ANIMATION_PROVIDERS","RendererFactory2","DomRendererFactory2","NgZone","BROWSER_ANIMATIONS_PROVIDERS","WebAnimationsDriver","ANIMATION_MODULE_TYPE","BROWSER_NOOP_ANIMATIONS_PROVIDERS","NoopAnimationDriver","provideAnimations","performanceMarkFeature","BROWSER_ANIMATIONS_PROVIDERS","appConfig","providers","provideAnimations","provideRouter","path","pathMatch","loadComponent","__async","provideClientHydration","importProvidersFrom","TuiRootModule","TuiDialogModule","TuiPushModule","provide","TUI_SANITIZER","useClass","NgDompurifySanitizer","environment","production","environment","production","enableProdMode","bootstrapApplication","AppComponent","appConfig","catch","err","console","error"],"x_google_ignoreList":[0,1,2,3,4,5,8]} \ No newline at end of file diff --git a/polyfills-SX7FSEZT.js b/polyfills-SX7FSEZT.js deleted file mode 100644 index a7fc413b..00000000 --- a/polyfills-SX7FSEZT.js +++ /dev/null @@ -1,3 +0,0 @@ -(function(e){let n=e.performance;function c(L){n&&n.mark&&n.mark(L)}function r(L,t){n&&n.measure&&n.measure(L,t)}c("Zone");let a=e.__Zone_symbol_prefix||"__zone_symbol__";function l(L){return a+L}let m=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(m||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let se=class se{static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=se.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return ne}static __load_patch(t,s,o=!1){if(oe.hasOwnProperty(t)){if(!o&&m)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let v="Zone:"+t;c(v),oe[t]=s(e,se,z),r(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(t,s){this._parent=t,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,s)}get(t){let s=this.getZoneWith(t);if(s)return s._properties[t]}getZoneWith(t){let s=this;for(;s;){if(s._properties.hasOwnProperty(t))return s;s=s._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,s){if(typeof t!="function")throw new Error("Expecting function got: "+t);let o=this._zoneDelegate.intercept(this,t,s),v=this;return function(){return v.runGuarded(o,this,arguments,s)}}run(t,s,o,v){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,s,o,v)}finally{U=U.parent}}runGuarded(t,s=null,o,v){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,s,o,v)}catch(F){if(this._zoneDelegate.handleError(this,F))throw F}}finally{U=U.parent}}runTask(t,s,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===K||t.type===w))return;let v=t.state!=T;v&&t._transitionTo(T,M),t.runCount++;let F=ne;ne=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,s,o)}catch(f){if(this._zoneDelegate.handleError(this,f))throw f}}finally{t.state!==H&&t.state!==d&&(t.type==K||t.data&&t.data.isPeriodic?v&&t._transitionTo(M,T):(t.runCount=0,this._updateTaskCount(t,-1),v&&t._transitionTo(H,T,H))),U=U.parent,ne=F}}scheduleTask(t){if(t.zone&&t.zone!==this){let o=this;for(;o;){if(o===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);o=o.parent}}t._transitionTo(X,H);let s=[];t._zoneDelegates=s,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(o){throw t._transitionTo(d,X,H),this._zoneDelegate.handleError(this,o),o}return t._zoneDelegates===s&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(M,X),t}scheduleMicroTask(t,s,o,v){return this.scheduleTask(new p(N,t,s,o,v,void 0))}scheduleMacroTask(t,s,o,v,F){return this.scheduleTask(new p(w,t,s,o,v,F))}scheduleEventTask(t,s,o,v,F){return this.scheduleTask(new p(K,t,s,o,v,F))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(!(t.state!==M&&t.state!==T)){t._transitionTo(x,M,T);try{this._zoneDelegate.cancelTask(this,t)}catch(s){throw t._transitionTo(d,x),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(t,-1),t._transitionTo(H,x),t.runCount=0,t}}_updateTaskCount(t,s){let o=t._zoneDelegates;s==-1&&(t._zoneDelegates=null);for(let v=0;vL.hasTask(s,o),onScheduleTask:(L,t,s,o)=>L.scheduleTask(s,o),onInvokeTask:(L,t,s,o,v,F)=>L.invokeTask(s,o,v,F),onCancelTask:(L,t,s,o)=>L.cancelTask(s,o)};class k{constructor(t,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this.zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=o&&o.onHasTask,F=s&&s._hasTaskZS;(v||F)&&(this._hasTaskZS=v?o:P,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,o.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(t,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,s):new _(t,s)}intercept(t,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,s,o):s}invoke(t,s,o,v,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,s,o,v,F):s.apply(o,v)}handleError(t,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,s):!0}scheduleTask(t,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==N)R(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(t,s,o,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,s,o,v):s.callback.apply(o,v)}cancelTask(t,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(t,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,s)}catch(o){this.handleError(t,o)}}_updateTaskCount(t,s){let o=this._taskCounts,v=o[t],F=o[t]=v+s;if(F<0)throw new Error("More tasks executed then were scheduled.");if(v==0||F==0){let f={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this.zone,f)}}}class p{constructor(t,s,o,v,F,f){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=s,this.data=v,this.scheduleFn=F,this.cancelFn=f,!o)throw new Error("callback is not defined");this.callback=o;let u=this;t===K&&v&&v.useG?this.invoke=p.invokeTask:this.invoke=function(){return p.invokeTask.call(e,u,this,arguments)}}static invokeTask(t,s,o){t||(t=this),ee++;try{return t.runCount++,t.zone.runTask(t,s,o)}finally{ee==1&&E(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,X)}_transitionTo(t,s,o){if(this._state===s||this._state===o)this._state=t,t==H&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let I=l("setTimeout"),O=l("Promise"),Z=l("then"),B=[],j=!1,J;function q(L){if(J||e[O]&&(J=e[O].resolve(0)),J){let t=J[Z];t||(t=J.then),t.call(J,L)}else e[I](L,0)}function R(L){ee===0&&B.length===0&&q(E),L&&B.push(L)}function E(){if(!j){for(j=!0;B.length;){let L=B;B=[];for(let t=0;tU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!_[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q},U={parent:null,zone:new _(null,null)},ne=null,ee=0;function W(){}return r("Zone","Zone"),e.Zone=_})(globalThis);var pe=Object.getOwnPropertyDescriptor,Ie=Object.defineProperty,Me=Object.getPrototypeOf,ct=Object.create,at=Array.prototype.slice,Le="addEventListener",je="removeEventListener",De=Zone.__symbol__(Le),Oe=Zone.__symbol__(je),ce="true",ae="false",ge=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function He(e,n,c,r,a){return Zone.current.scheduleMacroTask(e,n,c,r,a)}var A=Zone.__symbol__,we=typeof window<"u",ye=we?window:void 0,Y=we&&ye||globalThis,lt="removeAttribute";function xe(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ae(e[c],n+"_"+c));return e}function ut(e,n){let c=e.constructor.name;for(let r=0;r{let P=function(){return _.apply(this,xe(arguments,c+"."+a))};return le(P,_),P})(l)}}}function $e(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Je=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in Y)&&typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]",Ge=!Re&&!Je&&!!(we&&ye.HTMLElement),Ke=typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]"&&!Je&&!!(we&&ye.HTMLElement),Pe={},qe=function(e){if(e=e||Y.event,!e)return;let n=Pe[e.type];n||(n=Pe[e.type]=A("ON_PROPERTY"+e.type));let c=this||e.target||Y,r=c[n],a;if(Ge&&c===ye&&e.type==="error"){let l=e;a=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),a===!0&&e.preventDefault()}else a=r&&r.apply(this,arguments),a!=null&&!a&&e.preventDefault();return a};function Xe(e,n,c){let r=pe(e,n);if(!r&&c&&pe(c,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let a=A("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete r.writable,delete r.value;let l=r.get,m=r.set,_=n.slice(2),P=Pe[_];P||(P=Pe[_]=A("ON_PROPERTY"+_)),r.set=function(k){let p=this;if(!p&&e===Y&&(p=Y),!p)return;typeof p[P]=="function"&&p.removeEventListener(_,qe),m&&m.call(p,null),p[P]=k,typeof k=="function"&&p.addEventListener(_,qe,!1)},r.get=function(){let k=this;if(!k&&e===Y&&(k=Y),!k)return null;let p=k[P];if(p)return p;if(l){let I=l.call(this);if(I)return r.set.call(this,I),typeof k[lt]=="function"&&k.removeAttribute(n),I}return null},Ie(e,n,r),e[a]=!0}function Qe(e,n,c){if(n)for(let r=0;rfunction(m,_){let P=c(m,_);return P.cbIdx>=0&&typeof _[P.cbIdx]=="function"?He(P.name,_[P.cbIdx],P,a):l.apply(m,_)})}function le(e,n){e[A("OriginalDelegate")]=n}var ze=!1,Ze=!1;function ht(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function dt(){if(ze)return Ze;ze=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,c)=>{let r=Object.getOwnPropertyDescriptor,a=Object.defineProperty;function l(f){if(f&&f.toString===Object.prototype.toString){let u=f.constructor&&f.constructor.name;return(u||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let m=c.symbol,_=[],P=e[m("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,k=m("Promise"),p=m("then"),I="__creationTrace__";c.onUnhandledError=f=>{if(c.showUncaughtError()){let u=f&&f.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(f)}},c.microtaskDrainDone=()=>{for(;_.length;){let f=_.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(u){Z(u)}}};let O=m("unhandledPromiseRejectionHandler");function Z(f){c.onUnhandledError(f);try{let u=n[O];typeof u=="function"&&u.call(this,f)}catch{}}function B(f){return f&&f.then}function j(f){return f}function J(f){return t.reject(f)}let q=m("state"),R=m("value"),E=m("finally"),$=m("parentPromiseValue"),H=m("parentPromiseState"),X="Promise.then",M=null,T=!0,x=!1,d=0;function N(f,u){return i=>{try{z(f,u,i)}catch(h){z(f,!1,h)}}}let w=function(){let f=!1;return function(i){return function(){f||(f=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",oe=m("currentTaskTrace");function z(f,u,i){let h=w();if(f===i)throw new TypeError(K);if(f[q]===M){let g=null;try{(typeof i=="object"||typeof i=="function")&&(g=i&&i.then)}catch(b){return h(()=>{z(f,!1,b)})(),f}if(u!==x&&i instanceof t&&i.hasOwnProperty(q)&&i.hasOwnProperty(R)&&i[q]!==M)ne(i),z(f,i[q],i[R]);else if(u!==x&&typeof g=="function")try{g.call(i,h(N(f,u)),h(N(f,!1)))}catch(b){h(()=>{z(f,!1,b)})()}else{f[q]=u;let b=f[R];if(f[R]=i,f[E]===E&&u===T&&(f[q]=f[H],f[R]=f[$]),u===x&&i instanceof Error){let y=n.currentTask&&n.currentTask.data&&n.currentTask.data[I];y&&a(i,oe,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{let C=f[R],S=!!i&&E===i[E];S&&(i[$]=C,i[H]=b);let D=u.run(y,void 0,S&&y!==J&&y!==j?[]:[C]);z(i,!0,D)}catch(C){z(i,!1,C)}},i)}let W="function ZoneAwarePromise() { [native code] }",se=function(){},L=e.AggregateError;class t{static toString(){return W}static resolve(u){return u instanceof t?u:z(new this(null),T,u)}static reject(u){return z(new this(null),x,u)}static withResolvers(){let u={};return u.promise=new t((i,h)=>{u.resolve=i,u.reject=h}),u}static any(u){if(!u||typeof u[Symbol.iterator]!="function")return Promise.reject(new L([],"All promises were rejected"));let i=[],h=0;try{for(let y of u)h++,i.push(t.resolve(y))}catch{return Promise.reject(new L([],"All promises were rejected"))}if(h===0)return Promise.reject(new L([],"All promises were rejected"));let g=!1,b=[];return new t((y,C)=>{for(let S=0;S{g||(g=!0,y(D))},D=>{b.push(D),h--,h===0&&(g=!0,C(new L(b,"All promises were rejected")))})})}static race(u){let i,h,g=new this((C,S)=>{i=C,h=S});function b(C){i(C)}function y(C){h(C)}for(let C of u)B(C)||(C=this.resolve(C)),C.then(b,y);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(u,i){let h,g,b=new this((D,G)=>{h=D,g=G}),y=2,C=0,S=[];for(let D of u){B(D)||(D=this.resolve(D));let G=C;try{D.then(V=>{S[G]=i?i.thenCallback(V):V,y--,y===0&&h(S)},V=>{i?(S[G]=i.errorCallback(V),y--,y===0&&h(S)):g(V)})}catch(V){g(V)}y++,C++}return y-=2,y===0&&h(S),b}constructor(u){let i=this;if(!(i instanceof t))throw new Error("Must be an instanceof Promise.");i[q]=M,i[R]=[];try{let h=w();u&&u(h(N(i,T)),h(N(i,x)))}catch(h){z(i,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,i){var y;let h=(y=this.constructor)==null?void 0:y[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||t);let g=new h(se),b=n.current;return this[q]==M?this[R].push(b,g,u,i):ee(this,b,g,u,i),g}catch(u){return this.then(null,u)}finally(u){var b;let i=(b=this.constructor)==null?void 0:b[Symbol.species];(!i||typeof i!="function")&&(i=t);let h=new i(se);h[E]=E;let g=n.current;return this[q]==M?this[R].push(g,h,u,u):ee(this,g,h,u,u),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;let s=e[k]=e.Promise;e.Promise=t;let o=m("thenPatched");function v(f){let u=f.prototype,i=r(u,"then");if(i&&(i.writable===!1||!i.configurable))return;let h=u.then;u[p]=h,f.prototype.then=function(g,b){return new t((C,S)=>{h.call(this,C,S)}).then(g,b)},f[o]=!0}c.patchThen=v;function F(f){return function(u,i){let h=f.apply(u,i);if(h instanceof t)return h;let g=h.constructor;return g[o]||v(g),h}}return s&&(v(s),ue(e,"fetch",f=>F(f))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,c=A("OriginalDelegate"),r=A("Promise"),a=A("Error"),l=function(){if(typeof this=="function"){let k=this[c];if(k)return typeof k=="function"?n.call(k):Object.prototype.toString.call(k);if(this===Promise){let p=e[r];if(p)return n.call(p)}if(this===Error){let p=e[a];if(p)return n.call(p)}}return n.call(this)};l[c]=n,Function.prototype.toString=l;let m=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:m.call(this)}});var Ee=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Ee=!1}var _t={useG:!0},te={},et={},tt=new RegExp("^"+ge+"(\\w+)(true|false)$"),nt=A("propagationStopped");function rt(e,n){let c=(n?n(e):e)+ae,r=(n?n(e):e)+ce,a=ge+c,l=ge+r;te[e]={},te[e][ae]=a,te[e][ce]=l}function Et(e,n,c,r){let a=r&&r.add||Le,l=r&&r.rm||je,m=r&&r.listeners||"eventListeners",_=r&&r.rmAll||"removeAllListeners",P=A(a),k="."+a+":",p="prependListener",I="."+p+":",O=function(R,E,$){if(R.isRemoved)return;let H=R.callback;typeof H=="object"&&H.handleEvent&&(R.callback=T=>H.handleEvent(T),R.originalDelegate=H);let X;try{R.invoke(R,E,[$])}catch(T){X=T}let M=R.options;if(M&&typeof M=="object"&&M.once){let T=R.originalDelegate?R.originalDelegate:R.callback;E[l].call(E,$.type,T,M)}return X};function Z(R,E,$){if(E=E||e.event,!E)return;let H=R||E.target||e,X=H[te[E.type][$?ce:ae]];if(X){let M=[];if(X.length===1){let T=O(X[0],H,E);T&&M.push(T)}else{let T=X.slice();for(let x=0;x{throw x})}}}let B=function(R){return Z(this,R,!1)},j=function(R){return Z(this,R,!0)};function J(R,E){if(!R)return!1;let $=!0;E&&E.useG!==void 0&&($=E.useG);let H=E&&E.vh,X=!0;E&&E.chkDup!==void 0&&(X=E.chkDup);let M=!1;E&&E.rt!==void 0&&(M=E.rt);let T=R;for(;T&&!T.hasOwnProperty(a);)T=Me(T);if(!T&&R[a]&&(T=R),!T||T[P])return!1;let x=E&&E.eventNameToString,d={},N=T[P]=T[a],w=T[A(l)]=T[l],K=T[A(m)]=T[m],oe=T[A(_)]=T[_],z;E&&E.prepend&&(z=T[A(E.prepend)]=T[E.prepend]);function U(i,h){return!Ee&&typeof i=="object"&&i?!!i.capture:!Ee||!h?i:typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?{...i,passive:!0}:i:{passive:!0}}let ne=function(i){if(!d.isExisting)return N.call(d.target,d.eventName,d.capture?j:B,d.options)},ee=function(i){if(!i.isRemoved){let h=te[i.eventName],g;h&&(g=h[i.capture?ce:ae]);let b=g&&i.target[g];if(b){for(let y=0;y{ie.zone.cancelTask(ie)},{once:!0})),d.target=null,me&&(me.taskData=null),Ve&&(Q.once=!0),!Ee&&typeof ie.options=="boolean"||(ie.options=Q),ie.target=S,ie.capture=Ce,ie.eventName=D,V&&(ie.originalDelegate=G),C?_e.unshift(ie):_e.push(ie),y)return S}};return T[a]=u(N,k,t,s,M),z&&(T[p]=u(z,I,se,s,M,!0)),T[l]=function(){let i=this||e,h=arguments[0];E&&E.transferEventName&&(h=E.transferEventName(h));let g=arguments[2],b=g?typeof g=="boolean"?!0:g.capture:!1,y=arguments[1];if(!y)return w.apply(this,arguments);if(H&&!H(w,y,i,arguments))return;let C=te[h],S;C&&(S=C[b?ce:ae]);let D=S&&i[S];if(D)for(let G=0;Gfunction(a,l){a[nt]=!0,r&&r.apply(a,l)})}function yt(e,n,c,r,a){let l=Zone.__symbol__(r);if(n[l])return;let m=n[l]=n[r];n[r]=function(_,P,k){return P&&P.prototype&&a.forEach(function(p){let I=`${c}.${r}::`+p,O=P.prototype;try{if(O.hasOwnProperty(p)){let Z=e.ObjectGetOwnPropertyDescriptor(O,p);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(P.prototype,p,Z)):O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],I))}else O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],I))}catch{}}),m.call(n,_,P,k)},e.attachOriginToPatched(n[r],m)}function st(e,n,c){if(!c||c.length===0)return n;let r=c.filter(l=>l.target===e);if(!r||r.length===0)return n;let a=r[0].ignoreProperties;return n.filter(l=>a.indexOf(l)===-1)}function Ye(e,n,c,r){if(!e)return;let a=st(e,n,c);Qe(e,a,r)}function Ne(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function mt(e,n){if(Re&&!Ke||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,r=[];if(Ge){let a=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ht()?[{target:a,ignoreProperties:["error"]}]:[];Ye(a,Ne(a),c&&c.concat(l),Me(a))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let r=Ne(e);c.patchOnProperties=Qe,c.patchMethod=ue,c.bindArguments=xe,c.patchMacroTask=ft;let a=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[a]=e[l]),e[a]&&(n[a]=n[l]=e[a]),c.patchEventPrototype=Tt,c.patchEventTarget=Et,c.isIEOrEdge=dt,c.ObjectDefineProperty=Ie,c.ObjectGetOwnPropertyDescriptor=pe,c.ObjectCreate=ct,c.ArraySlice=at,c.patchClass=ke,c.wrapWithCurrentZone=Ae,c.filterProperties=st,c.attachOriginToPatched=le,c._redefineProperty=Object.defineProperty,c.patchCallbacks=yt,c.getGlobalObjects=()=>({globalSources:et,zoneSymbolEventNames:te,eventNames:r,isBrowser:Ge,isMix:Ke,isNode:Re,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ge,ADD_EVENT_LISTENER_STR:Le,REMOVE_EVENT_LISTENER_STR:je})});function pt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(r,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var be=A("zoneTask");function Te(e,n,c,r){let a=null,l=null;n+=r,c+=r;let m={};function _(k){let p=k.data;return p.args[0]=function(){return k.invoke.apply(this,arguments)},p.handleId=a.apply(e,p.args),k}function P(k){return l.call(e,k.data.handleId)}a=ue(e,n,k=>function(p,I){if(typeof I[0]=="function"){let O={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{O.isPeriodic||(typeof O.handleId=="number"?delete m[O.handleId]:O.handleId&&(O.handleId[be]=null))}};let B=He(n,I[0],O,_,P);if(!B)return B;let j=B.data.handleId;return typeof j=="number"?m[j]=B:j&&(j[be]=B),j&&j.ref&&j.unref&&typeof j.ref=="function"&&typeof j.unref=="function"&&(B.ref=j.ref.bind(j),B.unref=j.unref.bind(j)),typeof j=="number"||j?j:B}else return k.apply(e,I)}),l=ue(e,c,k=>function(p,I){let O=I[0],Z;typeof O=="number"?Z=m[O]:(Z=O&&O[be],Z||(Z=O)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof O=="number"?delete m[O]:O&&(O[be]=null),Z.zone.cancelTask(Z)):k.apply(e,I)})}function gt(e,n){let{isBrowser:c,isMix:r}=n.getGlobalObjects();if(!c&&!r||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",a)}function kt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:r,TRUE_STR:a,FALSE_STR:l,ZONE_SYMBOL_PREFIX:m}=n.getGlobalObjects();for(let P=0;P{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",c="clear";Te(e,n,c,"Timeout"),Te(e,n,c,"Interval"),Te(e,n,c,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Te(e,"request","cancel","AnimationFrame"),Te(e,"mozRequest","mozCancel","AnimationFrame"),Te(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let c=["alert","prompt","confirm"];for(let r=0;rfunction(P,k){return n.current.run(l,e,k,_)})}});Zone.__load_patch("EventTarget",(e,n,c)=>{vt(e,c),kt(e,c);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&c.patchEventTarget(e,c,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,c)=>{ke("MutationObserver"),ke("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,c)=>{ke("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,c)=>{ke("FileReader")});Zone.__load_patch("on_property",(e,n,c)=>{mt(c,e)});Zone.__load_patch("customElements",(e,n,c)=>{gt(e,c)});Zone.__load_patch("XHR",(e,n)=>{P(e);let c=A("xhrTask"),r=A("xhrSync"),a=A("xhrListener"),l=A("xhrScheduled"),m=A("xhrURL"),_=A("xhrErrorBeforeScheduled");function P(k){let p=k.XMLHttpRequest;if(!p)return;let I=p.prototype;function O(d){return d[c]}let Z=I[De],B=I[Oe];if(!Z){let d=k.XMLHttpRequestEventTarget;if(d){let N=d.prototype;Z=N[De],B=N[Oe]}}let j="readystatechange",J="scheduled";function q(d){let N=d.data,w=N.target;w[l]=!1,w[_]=!1;let K=w[a];Z||(Z=w[De],B=w[Oe]),K&&B.call(w,j,K);let oe=w[a]=()=>{if(w.readyState===w.DONE)if(!N.aborted&&w[l]&&d.state===J){let U=w[n.__symbol__("loadfalse")];if(w.status!==0&&U&&U.length>0){let ne=d.invoke;d.invoke=function(){let ee=w[n.__symbol__("loadfalse")];for(let W=0;Wfunction(d,N){return d[r]=N[2]==!1,d[m]=N[1],$.apply(d,N)}),H="XMLHttpRequest.send",X=A("fetchTaskAborting"),M=A("fetchTaskScheduling"),T=ue(I,"send",()=>function(d,N){if(n.current[M]===!0||d[r])return T.apply(d,N);{let w={target:d,url:d[m],isPeriodic:!1,args:N,aborted:!1},K=He(H,R,w,q,E);d&&d[_]===!0&&!w.aborted&&K.state===J&&K.invoke()}}),x=ue(I,"abort",()=>function(d,N){let w=O(d);if(w&&typeof w.type=="string"){if(w.cancelFn==null||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(n.current[X]===!0)return x.apply(d,N)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&ut(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function c(r){return function(a){ot(e,r).forEach(m=>{let _=e.PromiseRejectionEvent;if(_){let P=new _(r,{promise:a.promise,reason:a.rejection});m.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),n[A("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,c)=>{pt(e,c)}); -//# sourceMappingURL=polyfills-SX7FSEZT.js.map diff --git a/polyfills-SX7FSEZT.js.map b/polyfills-SX7FSEZT.js.map deleted file mode 100644 index 12543dde..00000000 --- a/polyfills-SX7FSEZT.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["node_modules/zone.js/fesm2015/zone.js"],"sourcesContent":["'use strict';\n/**\n * @license Angular v\n * (c) 2010-2022 Google LLC. https://angular.io/\n * License: MIT\n */\n// Initialize global `Zone` constant.\n(function (global) {\n const performance = global['performance'];\n function mark(name) {\n performance && performance['mark'] && performance['mark'](name);\n }\n function performanceMeasure(name, label) {\n performance && performance['measure'] && performance['measure'](name, label);\n }\n mark('Zone');\n // Initialize before it's accessed below.\n // __Zone_symbol_prefix global can be used to override the default zone\n // symbol prefix with a custom one if needed.\n const symbolPrefix = global['__Zone_symbol_prefix'] || '__zone_symbol__';\n function __symbol__(name) {\n return symbolPrefix + name;\n }\n const checkDuplicate = global[__symbol__('forceDuplicateZoneCheck')] === true;\n if (global['Zone']) {\n // if global['Zone'] already exists (maybe zone.js was already loaded or\n // some other lib also registered a global object named Zone), we may need\n // to throw an error, but sometimes user may not want this error.\n // For example,\n // we have two web pages, page1 includes zone.js, page2 doesn't.\n // and the 1st time user load page1 and page2, everything work fine,\n // but when user load page2 again, error occurs because global['Zone'] already exists.\n // so we add a flag to let user choose whether to throw this error or not.\n // By default, if existing Zone is from zone.js, we will not throw the error.\n if (checkDuplicate || typeof global['Zone'].__symbol__ !== 'function') {\n throw new Error('Zone already loaded.');\n }\n else {\n return global['Zone'];\n }\n }\n class Zone {\n // tslint:disable-next-line:require-internal-with-underscore\n static { this.__symbol__ = __symbol__; }\n static assertZonePatched() {\n if (global['Promise'] !== patches['ZoneAwarePromise']) {\n throw new Error('Zone.js has detected that ZoneAwarePromise `(window|global).Promise` ' +\n 'has been overwritten.\\n' +\n 'Most likely cause is that a Promise polyfill has been loaded ' +\n 'after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. ' +\n 'If you must load one, do so before loading zone.js.)');\n }\n }\n static get root() {\n let zone = Zone.current;\n while (zone.parent) {\n zone = zone.parent;\n }\n return zone;\n }\n static get current() {\n return _currentZoneFrame.zone;\n }\n static get currentTask() {\n return _currentTask;\n }\n // tslint:disable-next-line:require-internal-with-underscore\n static __load_patch(name, fn, ignoreDuplicate = false) {\n if (patches.hasOwnProperty(name)) {\n // `checkDuplicate` option is defined from global variable\n // so it works for all modules.\n // `ignoreDuplicate` can work for the specified module\n if (!ignoreDuplicate && checkDuplicate) {\n throw Error('Already loaded patch: ' + name);\n }\n }\n else if (!global['__Zone_disable_' + name]) {\n const perfName = 'Zone:' + name;\n mark(perfName);\n patches[name] = fn(global, Zone, _api);\n performanceMeasure(perfName, perfName);\n }\n }\n get parent() {\n return this._parent;\n }\n get name() {\n return this._name;\n }\n constructor(parent, zoneSpec) {\n this._parent = parent;\n this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '';\n this._properties = zoneSpec && zoneSpec.properties || {};\n this._zoneDelegate =\n new _ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);\n }\n get(key) {\n const zone = this.getZoneWith(key);\n if (zone)\n return zone._properties[key];\n }\n getZoneWith(key) {\n let current = this;\n while (current) {\n if (current._properties.hasOwnProperty(key)) {\n return current;\n }\n current = current._parent;\n }\n return null;\n }\n fork(zoneSpec) {\n if (!zoneSpec)\n throw new Error('ZoneSpec required!');\n return this._zoneDelegate.fork(this, zoneSpec);\n }\n wrap(callback, source) {\n if (typeof callback !== 'function') {\n throw new Error('Expecting function got: ' + callback);\n }\n const _callback = this._zoneDelegate.intercept(this, callback, source);\n const zone = this;\n return function () {\n return zone.runGuarded(_callback, this, arguments, source);\n };\n }\n run(callback, applyThis, applyArgs, source) {\n _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n try {\n return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n }\n finally {\n _currentZoneFrame = _currentZoneFrame.parent;\n }\n }\n runGuarded(callback, applyThis = null, applyArgs, source) {\n _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n try {\n try {\n return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n }\n catch (error) {\n if (this._zoneDelegate.handleError(this, error)) {\n throw error;\n }\n }\n }\n finally {\n _currentZoneFrame = _currentZoneFrame.parent;\n }\n }\n runTask(task, applyThis, applyArgs) {\n if (task.zone != this) {\n throw new Error('A task can only be run in the zone of creation! (Creation: ' +\n (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');\n }\n // https://github.com/angular/zone.js/issues/778, sometimes eventTask\n // will run in notScheduled(canceled) state, we should not try to\n // run such kind of task but just return\n if (task.state === notScheduled && (task.type === eventTask || task.type === macroTask)) {\n return;\n }\n const reEntryGuard = task.state != running;\n reEntryGuard && task._transitionTo(running, scheduled);\n task.runCount++;\n const previousTask = _currentTask;\n _currentTask = task;\n _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n try {\n if (task.type == macroTask && task.data && !task.data.isPeriodic) {\n task.cancelFn = undefined;\n }\n try {\n return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);\n }\n catch (error) {\n if (this._zoneDelegate.handleError(this, error)) {\n throw error;\n }\n }\n }\n finally {\n // if the task's state is notScheduled or unknown, then it has already been cancelled\n // we should not reset the state to scheduled\n if (task.state !== notScheduled && task.state !== unknown) {\n if (task.type == eventTask || (task.data && task.data.isPeriodic)) {\n reEntryGuard && task._transitionTo(scheduled, running);\n }\n else {\n task.runCount = 0;\n this._updateTaskCount(task, -1);\n reEntryGuard &&\n task._transitionTo(notScheduled, running, notScheduled);\n }\n }\n _currentZoneFrame = _currentZoneFrame.parent;\n _currentTask = previousTask;\n }\n }\n scheduleTask(task) {\n if (task.zone && task.zone !== this) {\n // check if the task was rescheduled, the newZone\n // should not be the children of the original zone\n let newZone = this;\n while (newZone) {\n if (newZone === task.zone) {\n throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${task.zone.name}`);\n }\n newZone = newZone.parent;\n }\n }\n task._transitionTo(scheduling, notScheduled);\n const zoneDelegates = [];\n task._zoneDelegates = zoneDelegates;\n task._zone = this;\n try {\n task = this._zoneDelegate.scheduleTask(this, task);\n }\n catch (err) {\n // should set task's state to unknown when scheduleTask throw error\n // because the err may from reschedule, so the fromState maybe notScheduled\n task._transitionTo(unknown, scheduling, notScheduled);\n // TODO: @JiaLiPassion, should we check the result from handleError?\n this._zoneDelegate.handleError(this, err);\n throw err;\n }\n if (task._zoneDelegates === zoneDelegates) {\n // we have to check because internally the delegate can reschedule the task.\n this._updateTaskCount(task, 1);\n }\n if (task.state == scheduling) {\n task._transitionTo(scheduled, scheduling);\n }\n return task;\n }\n scheduleMicroTask(source, callback, data, customSchedule) {\n return this.scheduleTask(new ZoneTask(microTask, source, callback, data, customSchedule, undefined));\n }\n scheduleMacroTask(source, callback, data, customSchedule, customCancel) {\n return this.scheduleTask(new ZoneTask(macroTask, source, callback, data, customSchedule, customCancel));\n }\n scheduleEventTask(source, callback, data, customSchedule, customCancel) {\n return this.scheduleTask(new ZoneTask(eventTask, source, callback, data, customSchedule, customCancel));\n }\n cancelTask(task) {\n if (task.zone != this)\n throw new Error('A task can only be cancelled in the zone of creation! (Creation: ' +\n (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')');\n if (task.state !== scheduled && task.state !== running) {\n return;\n }\n task._transitionTo(canceling, scheduled, running);\n try {\n this._zoneDelegate.cancelTask(this, task);\n }\n catch (err) {\n // if error occurs when cancelTask, transit the state to unknown\n task._transitionTo(unknown, canceling);\n this._zoneDelegate.handleError(this, err);\n throw err;\n }\n this._updateTaskCount(task, -1);\n task._transitionTo(notScheduled, canceling);\n task.runCount = 0;\n return task;\n }\n _updateTaskCount(task, count) {\n const zoneDelegates = task._zoneDelegates;\n if (count == -1) {\n task._zoneDelegates = null;\n }\n for (let i = 0; i < zoneDelegates.length; i++) {\n zoneDelegates[i]._updateTaskCount(task.type, count);\n }\n }\n }\n const DELEGATE_ZS = {\n name: '',\n onHasTask: (delegate, _, target, hasTaskState) => delegate.hasTask(target, hasTaskState),\n onScheduleTask: (delegate, _, target, task) => delegate.scheduleTask(target, task),\n onInvokeTask: (delegate, _, target, task, applyThis, applyArgs) => delegate.invokeTask(target, task, applyThis, applyArgs),\n onCancelTask: (delegate, _, target, task) => delegate.cancelTask(target, task)\n };\n class _ZoneDelegate {\n constructor(zone, parentDelegate, zoneSpec) {\n this._taskCounts = { 'microTask': 0, 'macroTask': 0, 'eventTask': 0 };\n this.zone = zone;\n this._parentDelegate = parentDelegate;\n this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);\n this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);\n this._forkCurrZone = zoneSpec && (zoneSpec.onFork ? this.zone : parentDelegate._forkCurrZone);\n this._interceptZS =\n zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);\n this._interceptDlgt =\n zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);\n this._interceptCurrZone =\n zoneSpec && (zoneSpec.onIntercept ? this.zone : parentDelegate._interceptCurrZone);\n this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);\n this._invokeDlgt =\n zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);\n this._invokeCurrZone =\n zoneSpec && (zoneSpec.onInvoke ? this.zone : parentDelegate._invokeCurrZone);\n this._handleErrorZS =\n zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);\n this._handleErrorDlgt =\n zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);\n this._handleErrorCurrZone =\n zoneSpec && (zoneSpec.onHandleError ? this.zone : parentDelegate._handleErrorCurrZone);\n this._scheduleTaskZS =\n zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);\n this._scheduleTaskDlgt =\n zoneSpec && (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);\n this._scheduleTaskCurrZone =\n zoneSpec && (zoneSpec.onScheduleTask ? this.zone : parentDelegate._scheduleTaskCurrZone);\n this._invokeTaskZS =\n zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);\n this._invokeTaskDlgt =\n zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);\n this._invokeTaskCurrZone =\n zoneSpec && (zoneSpec.onInvokeTask ? this.zone : parentDelegate._invokeTaskCurrZone);\n this._cancelTaskZS =\n zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);\n this._cancelTaskDlgt =\n zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);\n this._cancelTaskCurrZone =\n zoneSpec && (zoneSpec.onCancelTask ? this.zone : parentDelegate._cancelTaskCurrZone);\n this._hasTaskZS = null;\n this._hasTaskDlgt = null;\n this._hasTaskDlgtOwner = null;\n this._hasTaskCurrZone = null;\n const zoneSpecHasTask = zoneSpec && zoneSpec.onHasTask;\n const parentHasTask = parentDelegate && parentDelegate._hasTaskZS;\n if (zoneSpecHasTask || parentHasTask) {\n // If we need to report hasTask, than this ZS needs to do ref counting on tasks. In such\n // a case all task related interceptors must go through this ZD. We can't short circuit it.\n this._hasTaskZS = zoneSpecHasTask ? zoneSpec : DELEGATE_ZS;\n this._hasTaskDlgt = parentDelegate;\n this._hasTaskDlgtOwner = this;\n this._hasTaskCurrZone = zone;\n if (!zoneSpec.onScheduleTask) {\n this._scheduleTaskZS = DELEGATE_ZS;\n this._scheduleTaskDlgt = parentDelegate;\n this._scheduleTaskCurrZone = this.zone;\n }\n if (!zoneSpec.onInvokeTask) {\n this._invokeTaskZS = DELEGATE_ZS;\n this._invokeTaskDlgt = parentDelegate;\n this._invokeTaskCurrZone = this.zone;\n }\n if (!zoneSpec.onCancelTask) {\n this._cancelTaskZS = DELEGATE_ZS;\n this._cancelTaskDlgt = parentDelegate;\n this._cancelTaskCurrZone = this.zone;\n }\n }\n }\n fork(targetZone, zoneSpec) {\n return this._forkZS ? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec) :\n new Zone(targetZone, zoneSpec);\n }\n intercept(targetZone, callback, source) {\n return this._interceptZS ?\n this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, targetZone, callback, source) :\n callback;\n }\n invoke(targetZone, callback, applyThis, applyArgs, source) {\n return this._invokeZS ? this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, targetZone, callback, applyThis, applyArgs, source) :\n callback.apply(applyThis, applyArgs);\n }\n handleError(targetZone, error) {\n return this._handleErrorZS ?\n this._handleErrorZS.onHandleError(this._handleErrorDlgt, this._handleErrorCurrZone, targetZone, error) :\n true;\n }\n scheduleTask(targetZone, task) {\n let returnTask = task;\n if (this._scheduleTaskZS) {\n if (this._hasTaskZS) {\n returnTask._zoneDelegates.push(this._hasTaskDlgtOwner);\n }\n // clang-format off\n returnTask = this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this._scheduleTaskCurrZone, targetZone, task);\n // clang-format on\n if (!returnTask)\n returnTask = task;\n }\n else {\n if (task.scheduleFn) {\n task.scheduleFn(task);\n }\n else if (task.type == microTask) {\n scheduleMicroTask(task);\n }\n else {\n throw new Error('Task is missing scheduleFn.');\n }\n }\n return returnTask;\n }\n invokeTask(targetZone, task, applyThis, applyArgs) {\n return this._invokeTaskZS ?\n this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, targetZone, task, applyThis, applyArgs) :\n task.callback.apply(applyThis, applyArgs);\n }\n cancelTask(targetZone, task) {\n let value;\n if (this._cancelTaskZS) {\n value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this._cancelTaskCurrZone, targetZone, task);\n }\n else {\n if (!task.cancelFn) {\n throw Error('Task is not cancelable');\n }\n value = task.cancelFn(task);\n }\n return value;\n }\n hasTask(targetZone, isEmpty) {\n // hasTask should not throw error so other ZoneDelegate\n // can still trigger hasTask callback\n try {\n this._hasTaskZS &&\n this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, targetZone, isEmpty);\n }\n catch (err) {\n this.handleError(targetZone, err);\n }\n }\n // tslint:disable-next-line:require-internal-with-underscore\n _updateTaskCount(type, count) {\n const counts = this._taskCounts;\n const prev = counts[type];\n const next = counts[type] = prev + count;\n if (next < 0) {\n throw new Error('More tasks executed then were scheduled.');\n }\n if (prev == 0 || next == 0) {\n const isEmpty = {\n microTask: counts['microTask'] > 0,\n macroTask: counts['macroTask'] > 0,\n eventTask: counts['eventTask'] > 0,\n change: type\n };\n this.hasTask(this.zone, isEmpty);\n }\n }\n }\n class ZoneTask {\n constructor(type, source, callback, options, scheduleFn, cancelFn) {\n // tslint:disable-next-line:require-internal-with-underscore\n this._zone = null;\n this.runCount = 0;\n // tslint:disable-next-line:require-internal-with-underscore\n this._zoneDelegates = null;\n // tslint:disable-next-line:require-internal-with-underscore\n this._state = 'notScheduled';\n this.type = type;\n this.source = source;\n this.data = options;\n this.scheduleFn = scheduleFn;\n this.cancelFn = cancelFn;\n if (!callback) {\n throw new Error('callback is not defined');\n }\n this.callback = callback;\n const self = this;\n // TODO: @JiaLiPassion options should have interface\n if (type === eventTask && options && options.useG) {\n this.invoke = ZoneTask.invokeTask;\n }\n else {\n this.invoke = function () {\n return ZoneTask.invokeTask.call(global, self, this, arguments);\n };\n }\n }\n static invokeTask(task, target, args) {\n if (!task) {\n task = this;\n }\n _numberOfNestedTaskFrames++;\n try {\n task.runCount++;\n return task.zone.runTask(task, target, args);\n }\n finally {\n if (_numberOfNestedTaskFrames == 1) {\n drainMicroTaskQueue();\n }\n _numberOfNestedTaskFrames--;\n }\n }\n get zone() {\n return this._zone;\n }\n get state() {\n return this._state;\n }\n cancelScheduleRequest() {\n this._transitionTo(notScheduled, scheduling);\n }\n // tslint:disable-next-line:require-internal-with-underscore\n _transitionTo(toState, fromState1, fromState2) {\n if (this._state === fromState1 || this._state === fromState2) {\n this._state = toState;\n if (toState == notScheduled) {\n this._zoneDelegates = null;\n }\n }\n else {\n throw new Error(`${this.type} '${this.source}': can not transition to '${toState}', expecting state '${fromState1}'${fromState2 ? ' or \\'' + fromState2 + '\\'' : ''}, was '${this._state}'.`);\n }\n }\n toString() {\n if (this.data && typeof this.data.handleId !== 'undefined') {\n return this.data.handleId.toString();\n }\n else {\n return Object.prototype.toString.call(this);\n }\n }\n // add toJSON method to prevent cyclic error when\n // call JSON.stringify(zoneTask)\n toJSON() {\n return {\n type: this.type,\n state: this.state,\n source: this.source,\n zone: this.zone.name,\n runCount: this.runCount\n };\n }\n }\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n /// MICROTASK QUEUE\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n const symbolSetTimeout = __symbol__('setTimeout');\n const symbolPromise = __symbol__('Promise');\n const symbolThen = __symbol__('then');\n let _microTaskQueue = [];\n let _isDrainingMicrotaskQueue = false;\n let nativeMicroTaskQueuePromise;\n function nativeScheduleMicroTask(func) {\n if (!nativeMicroTaskQueuePromise) {\n if (global[symbolPromise]) {\n nativeMicroTaskQueuePromise = global[symbolPromise].resolve(0);\n }\n }\n if (nativeMicroTaskQueuePromise) {\n let nativeThen = nativeMicroTaskQueuePromise[symbolThen];\n if (!nativeThen) {\n // native Promise is not patchable, we need to use `then` directly\n // issue 1078\n nativeThen = nativeMicroTaskQueuePromise['then'];\n }\n nativeThen.call(nativeMicroTaskQueuePromise, func);\n }\n else {\n global[symbolSetTimeout](func, 0);\n }\n }\n function scheduleMicroTask(task) {\n // if we are not running in any task, and there has not been anything scheduled\n // we must bootstrap the initial task creation by manually scheduling the drain\n if (_numberOfNestedTaskFrames === 0 && _microTaskQueue.length === 0) {\n // We are not running in Task, so we need to kickstart the microtask queue.\n nativeScheduleMicroTask(drainMicroTaskQueue);\n }\n task && _microTaskQueue.push(task);\n }\n function drainMicroTaskQueue() {\n if (!_isDrainingMicrotaskQueue) {\n _isDrainingMicrotaskQueue = true;\n while (_microTaskQueue.length) {\n const queue = _microTaskQueue;\n _microTaskQueue = [];\n for (let i = 0; i < queue.length; i++) {\n const task = queue[i];\n try {\n task.zone.runTask(task, null, null);\n }\n catch (error) {\n _api.onUnhandledError(error);\n }\n }\n }\n _api.microtaskDrainDone();\n _isDrainingMicrotaskQueue = false;\n }\n }\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n /// BOOTSTRAP\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n const NO_ZONE = {\n name: 'NO ZONE'\n };\n const notScheduled = 'notScheduled', scheduling = 'scheduling', scheduled = 'scheduled', running = 'running', canceling = 'canceling', unknown = 'unknown';\n const microTask = 'microTask', macroTask = 'macroTask', eventTask = 'eventTask';\n const patches = {};\n const _api = {\n symbol: __symbol__,\n currentZoneFrame: () => _currentZoneFrame,\n onUnhandledError: noop,\n microtaskDrainDone: noop,\n scheduleMicroTask: scheduleMicroTask,\n showUncaughtError: () => !Zone[__symbol__('ignoreConsoleErrorUncaughtError')],\n patchEventTarget: () => [],\n patchOnProperties: noop,\n patchMethod: () => noop,\n bindArguments: () => [],\n patchThen: () => noop,\n patchMacroTask: () => noop,\n patchEventPrototype: () => noop,\n isIEOrEdge: () => false,\n getGlobalObjects: () => undefined,\n ObjectDefineProperty: () => noop,\n ObjectGetOwnPropertyDescriptor: () => undefined,\n ObjectCreate: () => undefined,\n ArraySlice: () => [],\n patchClass: () => noop,\n wrapWithCurrentZone: () => noop,\n filterProperties: () => [],\n attachOriginToPatched: () => noop,\n _redefineProperty: () => noop,\n patchCallbacks: () => noop,\n nativeScheduleMicroTask: nativeScheduleMicroTask\n };\n let _currentZoneFrame = { parent: null, zone: new Zone(null, null) };\n let _currentTask = null;\n let _numberOfNestedTaskFrames = 0;\n function noop() { }\n performanceMeasure('Zone', 'Zone');\n return global['Zone'] = Zone;\n})(globalThis);\n\n/**\n * Suppress closure compiler errors about unknown 'Zone' variable\n * @fileoverview\n * @suppress {undefinedVars,globalThis,missingRequire}\n */\n/// \n// issue #989, to reduce bundle size, use short name\n/** Object.getOwnPropertyDescriptor */\nconst ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n/** Object.defineProperty */\nconst ObjectDefineProperty = Object.defineProperty;\n/** Object.getPrototypeOf */\nconst ObjectGetPrototypeOf = Object.getPrototypeOf;\n/** Object.create */\nconst ObjectCreate = Object.create;\n/** Array.prototype.slice */\nconst ArraySlice = Array.prototype.slice;\n/** addEventListener string const */\nconst ADD_EVENT_LISTENER_STR = 'addEventListener';\n/** removeEventListener string const */\nconst REMOVE_EVENT_LISTENER_STR = 'removeEventListener';\n/** zoneSymbol addEventListener */\nconst ZONE_SYMBOL_ADD_EVENT_LISTENER = Zone.__symbol__(ADD_EVENT_LISTENER_STR);\n/** zoneSymbol removeEventListener */\nconst ZONE_SYMBOL_REMOVE_EVENT_LISTENER = Zone.__symbol__(REMOVE_EVENT_LISTENER_STR);\n/** true string const */\nconst TRUE_STR = 'true';\n/** false string const */\nconst FALSE_STR = 'false';\n/** Zone symbol prefix string const. */\nconst ZONE_SYMBOL_PREFIX = Zone.__symbol__('');\nfunction wrapWithCurrentZone(callback, source) {\n return Zone.current.wrap(callback, source);\n}\nfunction scheduleMacroTaskWithCurrentZone(source, callback, data, customSchedule, customCancel) {\n return Zone.current.scheduleMacroTask(source, callback, data, customSchedule, customCancel);\n}\nconst zoneSymbol = Zone.__symbol__;\nconst isWindowExists = typeof window !== 'undefined';\nconst internalWindow = isWindowExists ? window : undefined;\nconst _global = isWindowExists && internalWindow || globalThis;\nconst REMOVE_ATTRIBUTE = 'removeAttribute';\nfunction bindArguments(args, source) {\n for (let i = args.length - 1; i >= 0; i--) {\n if (typeof args[i] === 'function') {\n args[i] = wrapWithCurrentZone(args[i], source + '_' + i);\n }\n }\n return args;\n}\nfunction patchPrototype(prototype, fnNames) {\n const source = prototype.constructor['name'];\n for (let i = 0; i < fnNames.length; i++) {\n const name = fnNames[i];\n const delegate = prototype[name];\n if (delegate) {\n const prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, name);\n if (!isPropertyWritable(prototypeDesc)) {\n continue;\n }\n prototype[name] = ((delegate) => {\n const patched = function () {\n return delegate.apply(this, bindArguments(arguments, source + '.' + name));\n };\n attachOriginToPatched(patched, delegate);\n return patched;\n })(delegate);\n }\n }\n}\nfunction isPropertyWritable(propertyDesc) {\n if (!propertyDesc) {\n return true;\n }\n if (propertyDesc.writable === false) {\n return false;\n }\n return !(typeof propertyDesc.get === 'function' && typeof propertyDesc.set === 'undefined');\n}\nconst isWebWorker = (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope);\n// Make sure to access `process` through `_global` so that WebPack does not accidentally browserify\n// this code.\nconst isNode = (!('nw' in _global) && typeof _global.process !== 'undefined' &&\n {}.toString.call(_global.process) === '[object process]');\nconst isBrowser = !isNode && !isWebWorker && !!(isWindowExists && internalWindow['HTMLElement']);\n// we are in electron of nw, so we are both browser and nodejs\n// Make sure to access `process` through `_global` so that WebPack does not accidentally browserify\n// this code.\nconst isMix = typeof _global.process !== 'undefined' &&\n {}.toString.call(_global.process) === '[object process]' && !isWebWorker &&\n !!(isWindowExists && internalWindow['HTMLElement']);\nconst zoneSymbolEventNames$1 = {};\nconst wrapFn = function (event) {\n // https://github.com/angular/zone.js/issues/911, in IE, sometimes\n // event will be undefined, so we need to use window.event\n event = event || _global.event;\n if (!event) {\n return;\n }\n let eventNameSymbol = zoneSymbolEventNames$1[event.type];\n if (!eventNameSymbol) {\n eventNameSymbol = zoneSymbolEventNames$1[event.type] = zoneSymbol('ON_PROPERTY' + event.type);\n }\n const target = this || event.target || _global;\n const listener = target[eventNameSymbol];\n let result;\n if (isBrowser && target === internalWindow && event.type === 'error') {\n // window.onerror have different signature\n // https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#window.onerror\n // and onerror callback will prevent default when callback return true\n const errorEvent = event;\n result = listener &&\n listener.call(this, errorEvent.message, errorEvent.filename, errorEvent.lineno, errorEvent.colno, errorEvent.error);\n if (result === true) {\n event.preventDefault();\n }\n }\n else {\n result = listener && listener.apply(this, arguments);\n if (result != undefined && !result) {\n event.preventDefault();\n }\n }\n return result;\n};\nfunction patchProperty(obj, prop, prototype) {\n let desc = ObjectGetOwnPropertyDescriptor(obj, prop);\n if (!desc && prototype) {\n // when patch window object, use prototype to check prop exist or not\n const prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, prop);\n if (prototypeDesc) {\n desc = { enumerable: true, configurable: true };\n }\n }\n // if the descriptor not exists or is not configurable\n // just return\n if (!desc || !desc.configurable) {\n return;\n }\n const onPropPatchedSymbol = zoneSymbol('on' + prop + 'patched');\n if (obj.hasOwnProperty(onPropPatchedSymbol) && obj[onPropPatchedSymbol]) {\n return;\n }\n // A property descriptor cannot have getter/setter and be writable\n // deleting the writable and value properties avoids this error:\n //\n // TypeError: property descriptors must not specify a value or be writable when a\n // getter or setter has been specified\n delete desc.writable;\n delete desc.value;\n const originalDescGet = desc.get;\n const originalDescSet = desc.set;\n // slice(2) cuz 'onclick' -> 'click', etc\n const eventName = prop.slice(2);\n let eventNameSymbol = zoneSymbolEventNames$1[eventName];\n if (!eventNameSymbol) {\n eventNameSymbol = zoneSymbolEventNames$1[eventName] = zoneSymbol('ON_PROPERTY' + eventName);\n }\n desc.set = function (newValue) {\n // in some of windows's onproperty callback, this is undefined\n // so we need to check it\n let target = this;\n if (!target && obj === _global) {\n target = _global;\n }\n if (!target) {\n return;\n }\n const previousValue = target[eventNameSymbol];\n if (typeof previousValue === 'function') {\n target.removeEventListener(eventName, wrapFn);\n }\n // issue #978, when onload handler was added before loading zone.js\n // we should remove it with originalDescSet\n originalDescSet && originalDescSet.call(target, null);\n target[eventNameSymbol] = newValue;\n if (typeof newValue === 'function') {\n target.addEventListener(eventName, wrapFn, false);\n }\n };\n // The getter would return undefined for unassigned properties but the default value of an\n // unassigned property is null\n desc.get = function () {\n // in some of windows's onproperty callback, this is undefined\n // so we need to check it\n let target = this;\n if (!target && obj === _global) {\n target = _global;\n }\n if (!target) {\n return null;\n }\n const listener = target[eventNameSymbol];\n if (listener) {\n return listener;\n }\n else if (originalDescGet) {\n // result will be null when use inline event attribute,\n // such as \n // because the onclick function is internal raw uncompiled handler\n // the onclick will be evaluated when first time event was triggered or\n // the property is accessed, https://github.com/angular/zone.js/issues/525\n // so we should use original native get to retrieve the handler\n let value = originalDescGet.call(this);\n if (value) {\n desc.set.call(this, value);\n if (typeof target[REMOVE_ATTRIBUTE] === 'function') {\n target.removeAttribute(prop);\n }\n return value;\n }\n }\n return null;\n };\n ObjectDefineProperty(obj, prop, desc);\n obj[onPropPatchedSymbol] = true;\n}\nfunction patchOnProperties(obj, properties, prototype) {\n if (properties) {\n for (let i = 0; i < properties.length; i++) {\n patchProperty(obj, 'on' + properties[i], prototype);\n }\n }\n else {\n const onProperties = [];\n for (const prop in obj) {\n if (prop.slice(0, 2) == 'on') {\n onProperties.push(prop);\n }\n }\n for (let j = 0; j < onProperties.length; j++) {\n patchProperty(obj, onProperties[j], prototype);\n }\n }\n}\nconst originalInstanceKey = zoneSymbol('originalInstance');\n// wrap some native API on `window`\nfunction patchClass(className) {\n const OriginalClass = _global[className];\n if (!OriginalClass)\n return;\n // keep original class in global\n _global[zoneSymbol(className)] = OriginalClass;\n _global[className] = function () {\n const a = bindArguments(arguments, className);\n switch (a.length) {\n case 0:\n this[originalInstanceKey] = new OriginalClass();\n break;\n case 1:\n this[originalInstanceKey] = new OriginalClass(a[0]);\n break;\n case 2:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1]);\n break;\n case 3:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);\n break;\n case 4:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);\n break;\n default:\n throw new Error('Arg list too long.');\n }\n };\n // attach original delegate to patched function\n attachOriginToPatched(_global[className], OriginalClass);\n const instance = new OriginalClass(function () { });\n let prop;\n for (prop in instance) {\n // https://bugs.webkit.org/show_bug.cgi?id=44721\n if (className === 'XMLHttpRequest' && prop === 'responseBlob')\n continue;\n (function (prop) {\n if (typeof instance[prop] === 'function') {\n _global[className].prototype[prop] = function () {\n return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);\n };\n }\n else {\n ObjectDefineProperty(_global[className].prototype, prop, {\n set: function (fn) {\n if (typeof fn === 'function') {\n this[originalInstanceKey][prop] = wrapWithCurrentZone(fn, className + '.' + prop);\n // keep callback in wrapped function so we can\n // use it in Function.prototype.toString to return\n // the native one.\n attachOriginToPatched(this[originalInstanceKey][prop], fn);\n }\n else {\n this[originalInstanceKey][prop] = fn;\n }\n },\n get: function () {\n return this[originalInstanceKey][prop];\n }\n });\n }\n }(prop));\n }\n for (prop in OriginalClass) {\n if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {\n _global[className][prop] = OriginalClass[prop];\n }\n }\n}\nfunction patchMethod(target, name, patchFn) {\n let proto = target;\n while (proto && !proto.hasOwnProperty(name)) {\n proto = ObjectGetPrototypeOf(proto);\n }\n if (!proto && target[name]) {\n // somehow we did not find it, but we can see it. This happens on IE for Window properties.\n proto = target;\n }\n const delegateName = zoneSymbol(name);\n let delegate = null;\n if (proto && (!(delegate = proto[delegateName]) || !proto.hasOwnProperty(delegateName))) {\n delegate = proto[delegateName] = proto[name];\n // check whether proto[name] is writable\n // some property is readonly in safari, such as HtmlCanvasElement.prototype.toBlob\n const desc = proto && ObjectGetOwnPropertyDescriptor(proto, name);\n if (isPropertyWritable(desc)) {\n const patchDelegate = patchFn(delegate, delegateName, name);\n proto[name] = function () {\n return patchDelegate(this, arguments);\n };\n attachOriginToPatched(proto[name], delegate);\n }\n }\n return delegate;\n}\n// TODO: @JiaLiPassion, support cancel task later if necessary\nfunction patchMacroTask(obj, funcName, metaCreator) {\n let setNative = null;\n function scheduleTask(task) {\n const data = task.data;\n data.args[data.cbIdx] = function () {\n task.invoke.apply(this, arguments);\n };\n setNative.apply(data.target, data.args);\n return task;\n }\n setNative = patchMethod(obj, funcName, (delegate) => function (self, args) {\n const meta = metaCreator(self, args);\n if (meta.cbIdx >= 0 && typeof args[meta.cbIdx] === 'function') {\n return scheduleMacroTaskWithCurrentZone(meta.name, args[meta.cbIdx], meta, scheduleTask);\n }\n else {\n // cause an error by calling it directly.\n return delegate.apply(self, args);\n }\n });\n}\nfunction attachOriginToPatched(patched, original) {\n patched[zoneSymbol('OriginalDelegate')] = original;\n}\nlet isDetectedIEOrEdge = false;\nlet ieOrEdge = false;\nfunction isIE() {\n try {\n const ua = internalWindow.navigator.userAgent;\n if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1) {\n return true;\n }\n }\n catch (error) {\n }\n return false;\n}\nfunction isIEOrEdge() {\n if (isDetectedIEOrEdge) {\n return ieOrEdge;\n }\n isDetectedIEOrEdge = true;\n try {\n const ua = internalWindow.navigator.userAgent;\n if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1 || ua.indexOf('Edge/') !== -1) {\n ieOrEdge = true;\n }\n }\n catch (error) {\n }\n return ieOrEdge;\n}\n\nZone.__load_patch('ZoneAwarePromise', (global, Zone, api) => {\n const ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n const ObjectDefineProperty = Object.defineProperty;\n function readableObjectToString(obj) {\n if (obj && obj.toString === Object.prototype.toString) {\n const className = obj.constructor && obj.constructor.name;\n return (className ? className : '') + ': ' + JSON.stringify(obj);\n }\n return obj ? obj.toString() : Object.prototype.toString.call(obj);\n }\n const __symbol__ = api.symbol;\n const _uncaughtPromiseErrors = [];\n const isDisableWrappingUncaughtPromiseRejection = global[__symbol__('DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION')] !== false;\n const symbolPromise = __symbol__('Promise');\n const symbolThen = __symbol__('then');\n const creationTrace = '__creationTrace__';\n api.onUnhandledError = (e) => {\n if (api.showUncaughtError()) {\n const rejection = e && e.rejection;\n if (rejection) {\n console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection, rejection instanceof Error ? rejection.stack : undefined);\n }\n else {\n console.error(e);\n }\n }\n };\n api.microtaskDrainDone = () => {\n while (_uncaughtPromiseErrors.length) {\n const uncaughtPromiseError = _uncaughtPromiseErrors.shift();\n try {\n uncaughtPromiseError.zone.runGuarded(() => {\n if (uncaughtPromiseError.throwOriginal) {\n throw uncaughtPromiseError.rejection;\n }\n throw uncaughtPromiseError;\n });\n }\n catch (error) {\n handleUnhandledRejection(error);\n }\n }\n };\n const UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL = __symbol__('unhandledPromiseRejectionHandler');\n function handleUnhandledRejection(e) {\n api.onUnhandledError(e);\n try {\n const handler = Zone[UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL];\n if (typeof handler === 'function') {\n handler.call(this, e);\n }\n }\n catch (err) {\n }\n }\n function isThenable(value) {\n return value && value.then;\n }\n function forwardResolution(value) {\n return value;\n }\n function forwardRejection(rejection) {\n return ZoneAwarePromise.reject(rejection);\n }\n const symbolState = __symbol__('state');\n const symbolValue = __symbol__('value');\n const symbolFinally = __symbol__('finally');\n const symbolParentPromiseValue = __symbol__('parentPromiseValue');\n const symbolParentPromiseState = __symbol__('parentPromiseState');\n const source = 'Promise.then';\n const UNRESOLVED = null;\n const RESOLVED = true;\n const REJECTED = false;\n const REJECTED_NO_CATCH = 0;\n function makeResolver(promise, state) {\n return (v) => {\n try {\n resolvePromise(promise, state, v);\n }\n catch (err) {\n resolvePromise(promise, false, err);\n }\n // Do not return value or you will break the Promise spec.\n };\n }\n const once = function () {\n let wasCalled = false;\n return function wrapper(wrappedFunction) {\n return function () {\n if (wasCalled) {\n return;\n }\n wasCalled = true;\n wrappedFunction.apply(null, arguments);\n };\n };\n };\n const TYPE_ERROR = 'Promise resolved with itself';\n const CURRENT_TASK_TRACE_SYMBOL = __symbol__('currentTaskTrace');\n // Promise Resolution\n function resolvePromise(promise, state, value) {\n const onceWrapper = once();\n if (promise === value) {\n throw new TypeError(TYPE_ERROR);\n }\n if (promise[symbolState] === UNRESOLVED) {\n // should only get value.then once based on promise spec.\n let then = null;\n try {\n if (typeof value === 'object' || typeof value === 'function') {\n then = value && value.then;\n }\n }\n catch (err) {\n onceWrapper(() => {\n resolvePromise(promise, false, err);\n })();\n return promise;\n }\n // if (value instanceof ZoneAwarePromise) {\n if (state !== REJECTED && value instanceof ZoneAwarePromise &&\n value.hasOwnProperty(symbolState) && value.hasOwnProperty(symbolValue) &&\n value[symbolState] !== UNRESOLVED) {\n clearRejectedNoCatch(value);\n resolvePromise(promise, value[symbolState], value[symbolValue]);\n }\n else if (state !== REJECTED && typeof then === 'function') {\n try {\n then.call(value, onceWrapper(makeResolver(promise, state)), onceWrapper(makeResolver(promise, false)));\n }\n catch (err) {\n onceWrapper(() => {\n resolvePromise(promise, false, err);\n })();\n }\n }\n else {\n promise[symbolState] = state;\n const queue = promise[symbolValue];\n promise[symbolValue] = value;\n if (promise[symbolFinally] === symbolFinally) {\n // the promise is generated by Promise.prototype.finally\n if (state === RESOLVED) {\n // the state is resolved, should ignore the value\n // and use parent promise value\n promise[symbolState] = promise[symbolParentPromiseState];\n promise[symbolValue] = promise[symbolParentPromiseValue];\n }\n }\n // record task information in value when error occurs, so we can\n // do some additional work such as render longStackTrace\n if (state === REJECTED && value instanceof Error) {\n // check if longStackTraceZone is here\n const trace = Zone.currentTask && Zone.currentTask.data &&\n Zone.currentTask.data[creationTrace];\n if (trace) {\n // only keep the long stack trace into error when in longStackTraceZone\n ObjectDefineProperty(value, CURRENT_TASK_TRACE_SYMBOL, { configurable: true, enumerable: false, writable: true, value: trace });\n }\n }\n for (let i = 0; i < queue.length;) {\n scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);\n }\n if (queue.length == 0 && state == REJECTED) {\n promise[symbolState] = REJECTED_NO_CATCH;\n let uncaughtPromiseError = value;\n try {\n // Here we throws a new Error to print more readable error log\n // and if the value is not an error, zone.js builds an `Error`\n // Object here to attach the stack information.\n throw new Error('Uncaught (in promise): ' + readableObjectToString(value) +\n (value && value.stack ? '\\n' + value.stack : ''));\n }\n catch (err) {\n uncaughtPromiseError = err;\n }\n if (isDisableWrappingUncaughtPromiseRejection) {\n // If disable wrapping uncaught promise reject\n // use the value instead of wrapping it.\n uncaughtPromiseError.throwOriginal = true;\n }\n uncaughtPromiseError.rejection = value;\n uncaughtPromiseError.promise = promise;\n uncaughtPromiseError.zone = Zone.current;\n uncaughtPromiseError.task = Zone.currentTask;\n _uncaughtPromiseErrors.push(uncaughtPromiseError);\n api.scheduleMicroTask(); // to make sure that it is running\n }\n }\n }\n // Resolving an already resolved promise is a noop.\n return promise;\n }\n const REJECTION_HANDLED_HANDLER = __symbol__('rejectionHandledHandler');\n function clearRejectedNoCatch(promise) {\n if (promise[symbolState] === REJECTED_NO_CATCH) {\n // if the promise is rejected no catch status\n // and queue.length > 0, means there is a error handler\n // here to handle the rejected promise, we should trigger\n // windows.rejectionhandled eventHandler or nodejs rejectionHandled\n // eventHandler\n try {\n const handler = Zone[REJECTION_HANDLED_HANDLER];\n if (handler && typeof handler === 'function') {\n handler.call(this, { rejection: promise[symbolValue], promise: promise });\n }\n }\n catch (err) {\n }\n promise[symbolState] = REJECTED;\n for (let i = 0; i < _uncaughtPromiseErrors.length; i++) {\n if (promise === _uncaughtPromiseErrors[i].promise) {\n _uncaughtPromiseErrors.splice(i, 1);\n }\n }\n }\n }\n function scheduleResolveOrReject(promise, zone, chainPromise, onFulfilled, onRejected) {\n clearRejectedNoCatch(promise);\n const promiseState = promise[symbolState];\n const delegate = promiseState ?\n (typeof onFulfilled === 'function') ? onFulfilled : forwardResolution :\n (typeof onRejected === 'function') ? onRejected :\n forwardRejection;\n zone.scheduleMicroTask(source, () => {\n try {\n const parentPromiseValue = promise[symbolValue];\n const isFinallyPromise = !!chainPromise && symbolFinally === chainPromise[symbolFinally];\n if (isFinallyPromise) {\n // if the promise is generated from finally call, keep parent promise's state and value\n chainPromise[symbolParentPromiseValue] = parentPromiseValue;\n chainPromise[symbolParentPromiseState] = promiseState;\n }\n // should not pass value to finally callback\n const value = zone.run(delegate, undefined, isFinallyPromise && delegate !== forwardRejection && delegate !== forwardResolution ?\n [] :\n [parentPromiseValue]);\n resolvePromise(chainPromise, true, value);\n }\n catch (error) {\n // if error occurs, should always return this error\n resolvePromise(chainPromise, false, error);\n }\n }, chainPromise);\n }\n const ZONE_AWARE_PROMISE_TO_STRING = 'function ZoneAwarePromise() { [native code] }';\n const noop = function () { };\n const AggregateError = global.AggregateError;\n class ZoneAwarePromise {\n static toString() {\n return ZONE_AWARE_PROMISE_TO_STRING;\n }\n static resolve(value) {\n if (value instanceof ZoneAwarePromise) {\n return value;\n }\n return resolvePromise(new this(null), RESOLVED, value);\n }\n static reject(error) {\n return resolvePromise(new this(null), REJECTED, error);\n }\n static withResolvers() {\n const result = {};\n result.promise = new ZoneAwarePromise((res, rej) => {\n result.resolve = res;\n result.reject = rej;\n });\n return result;\n }\n static any(values) {\n if (!values || typeof values[Symbol.iterator] !== 'function') {\n return Promise.reject(new AggregateError([], 'All promises were rejected'));\n }\n const promises = [];\n let count = 0;\n try {\n for (let v of values) {\n count++;\n promises.push(ZoneAwarePromise.resolve(v));\n }\n }\n catch (err) {\n return Promise.reject(new AggregateError([], 'All promises were rejected'));\n }\n if (count === 0) {\n return Promise.reject(new AggregateError([], 'All promises were rejected'));\n }\n let finished = false;\n const errors = [];\n return new ZoneAwarePromise((resolve, reject) => {\n for (let i = 0; i < promises.length; i++) {\n promises[i].then(v => {\n if (finished) {\n return;\n }\n finished = true;\n resolve(v);\n }, err => {\n errors.push(err);\n count--;\n if (count === 0) {\n finished = true;\n reject(new AggregateError(errors, 'All promises were rejected'));\n }\n });\n }\n });\n }\n ;\n static race(values) {\n let resolve;\n let reject;\n let promise = new this((res, rej) => {\n resolve = res;\n reject = rej;\n });\n function onResolve(value) {\n resolve(value);\n }\n function onReject(error) {\n reject(error);\n }\n for (let value of values) {\n if (!isThenable(value)) {\n value = this.resolve(value);\n }\n value.then(onResolve, onReject);\n }\n return promise;\n }\n static all(values) {\n return ZoneAwarePromise.allWithCallback(values);\n }\n static allSettled(values) {\n const P = this && this.prototype instanceof ZoneAwarePromise ? this : ZoneAwarePromise;\n return P.allWithCallback(values, {\n thenCallback: (value) => ({ status: 'fulfilled', value }),\n errorCallback: (err) => ({ status: 'rejected', reason: err })\n });\n }\n static allWithCallback(values, callback) {\n let resolve;\n let reject;\n let promise = new this((res, rej) => {\n resolve = res;\n reject = rej;\n });\n // Start at 2 to prevent prematurely resolving if .then is called immediately.\n let unresolvedCount = 2;\n let valueIndex = 0;\n const resolvedValues = [];\n for (let value of values) {\n if (!isThenable(value)) {\n value = this.resolve(value);\n }\n const curValueIndex = valueIndex;\n try {\n value.then((value) => {\n resolvedValues[curValueIndex] = callback ? callback.thenCallback(value) : value;\n unresolvedCount--;\n if (unresolvedCount === 0) {\n resolve(resolvedValues);\n }\n }, (err) => {\n if (!callback) {\n reject(err);\n }\n else {\n resolvedValues[curValueIndex] = callback.errorCallback(err);\n unresolvedCount--;\n if (unresolvedCount === 0) {\n resolve(resolvedValues);\n }\n }\n });\n }\n catch (thenErr) {\n reject(thenErr);\n }\n unresolvedCount++;\n valueIndex++;\n }\n // Make the unresolvedCount zero-based again.\n unresolvedCount -= 2;\n if (unresolvedCount === 0) {\n resolve(resolvedValues);\n }\n return promise;\n }\n constructor(executor) {\n const promise = this;\n if (!(promise instanceof ZoneAwarePromise)) {\n throw new Error('Must be an instanceof Promise.');\n }\n promise[symbolState] = UNRESOLVED;\n promise[symbolValue] = []; // queue;\n try {\n const onceWrapper = once();\n executor &&\n executor(onceWrapper(makeResolver(promise, RESOLVED)), onceWrapper(makeResolver(promise, REJECTED)));\n }\n catch (error) {\n resolvePromise(promise, false, error);\n }\n }\n get [Symbol.toStringTag]() {\n return 'Promise';\n }\n get [Symbol.species]() {\n return ZoneAwarePromise;\n }\n then(onFulfilled, onRejected) {\n // We must read `Symbol.species` safely because `this` may be anything. For instance, `this`\n // may be an object without a prototype (created through `Object.create(null)`); thus\n // `this.constructor` will be undefined. One of the use cases is SystemJS creating\n // prototype-less objects (modules) via `Object.create(null)`. The SystemJS creates an empty\n // object and copies promise properties into that object (within the `getOrCreateLoad`\n // function). The zone.js then checks if the resolved value has the `then` method and invokes\n // it with the `value` context. Otherwise, this will throw an error: `TypeError: Cannot read\n // properties of undefined (reading 'Symbol(Symbol.species)')`.\n let C = this.constructor?.[Symbol.species];\n if (!C || typeof C !== 'function') {\n C = this.constructor || ZoneAwarePromise;\n }\n const chainPromise = new C(noop);\n const zone = Zone.current;\n if (this[symbolState] == UNRESOLVED) {\n this[symbolValue].push(zone, chainPromise, onFulfilled, onRejected);\n }\n else {\n scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);\n }\n return chainPromise;\n }\n catch(onRejected) {\n return this.then(null, onRejected);\n }\n finally(onFinally) {\n // See comment on the call to `then` about why thee `Symbol.species` is safely accessed.\n let C = this.constructor?.[Symbol.species];\n if (!C || typeof C !== 'function') {\n C = ZoneAwarePromise;\n }\n const chainPromise = new C(noop);\n chainPromise[symbolFinally] = symbolFinally;\n const zone = Zone.current;\n if (this[symbolState] == UNRESOLVED) {\n this[symbolValue].push(zone, chainPromise, onFinally, onFinally);\n }\n else {\n scheduleResolveOrReject(this, zone, chainPromise, onFinally, onFinally);\n }\n return chainPromise;\n }\n }\n // Protect against aggressive optimizers dropping seemingly unused properties.\n // E.g. Closure Compiler in advanced mode.\n ZoneAwarePromise['resolve'] = ZoneAwarePromise.resolve;\n ZoneAwarePromise['reject'] = ZoneAwarePromise.reject;\n ZoneAwarePromise['race'] = ZoneAwarePromise.race;\n ZoneAwarePromise['all'] = ZoneAwarePromise.all;\n const NativePromise = global[symbolPromise] = global['Promise'];\n global['Promise'] = ZoneAwarePromise;\n const symbolThenPatched = __symbol__('thenPatched');\n function patchThen(Ctor) {\n const proto = Ctor.prototype;\n const prop = ObjectGetOwnPropertyDescriptor(proto, 'then');\n if (prop && (prop.writable === false || !prop.configurable)) {\n // check Ctor.prototype.then propertyDescriptor is writable or not\n // in meteor env, writable is false, we should ignore such case\n return;\n }\n const originalThen = proto.then;\n // Keep a reference to the original method.\n proto[symbolThen] = originalThen;\n Ctor.prototype.then = function (onResolve, onReject) {\n const wrapped = new ZoneAwarePromise((resolve, reject) => {\n originalThen.call(this, resolve, reject);\n });\n return wrapped.then(onResolve, onReject);\n };\n Ctor[symbolThenPatched] = true;\n }\n api.patchThen = patchThen;\n function zoneify(fn) {\n return function (self, args) {\n let resultPromise = fn.apply(self, args);\n if (resultPromise instanceof ZoneAwarePromise) {\n return resultPromise;\n }\n let ctor = resultPromise.constructor;\n if (!ctor[symbolThenPatched]) {\n patchThen(ctor);\n }\n return resultPromise;\n };\n }\n if (NativePromise) {\n patchThen(NativePromise);\n patchMethod(global, 'fetch', delegate => zoneify(delegate));\n }\n // This is not part of public API, but it is useful for tests, so we expose it.\n Promise[Zone.__symbol__('uncaughtPromiseErrors')] = _uncaughtPromiseErrors;\n return ZoneAwarePromise;\n});\n\n// override Function.prototype.toString to make zone.js patched function\n// look like native function\nZone.__load_patch('toString', (global) => {\n // patch Func.prototype.toString to let them look like native\n const originalFunctionToString = Function.prototype.toString;\n const ORIGINAL_DELEGATE_SYMBOL = zoneSymbol('OriginalDelegate');\n const PROMISE_SYMBOL = zoneSymbol('Promise');\n const ERROR_SYMBOL = zoneSymbol('Error');\n const newFunctionToString = function toString() {\n if (typeof this === 'function') {\n const originalDelegate = this[ORIGINAL_DELEGATE_SYMBOL];\n if (originalDelegate) {\n if (typeof originalDelegate === 'function') {\n return originalFunctionToString.call(originalDelegate);\n }\n else {\n return Object.prototype.toString.call(originalDelegate);\n }\n }\n if (this === Promise) {\n const nativePromise = global[PROMISE_SYMBOL];\n if (nativePromise) {\n return originalFunctionToString.call(nativePromise);\n }\n }\n if (this === Error) {\n const nativeError = global[ERROR_SYMBOL];\n if (nativeError) {\n return originalFunctionToString.call(nativeError);\n }\n }\n }\n return originalFunctionToString.call(this);\n };\n newFunctionToString[ORIGINAL_DELEGATE_SYMBOL] = originalFunctionToString;\n Function.prototype.toString = newFunctionToString;\n // patch Object.prototype.toString to let them look like native\n const originalObjectToString = Object.prototype.toString;\n const PROMISE_OBJECT_TO_STRING = '[object Promise]';\n Object.prototype.toString = function () {\n if (typeof Promise === 'function' && this instanceof Promise) {\n return PROMISE_OBJECT_TO_STRING;\n }\n return originalObjectToString.call(this);\n };\n});\n\n/**\n * @fileoverview\n * @suppress {missingRequire}\n */\nlet passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n const options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n }\n });\n // Note: We pass the `options` object as the event handler too. This is not compatible with the\n // signature of `addEventListener` or `removeEventListener` but enables us to remove the handler\n // without an actual handler.\n window.addEventListener('test', options, options);\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\n// an identifier to tell ZoneTask do not create a new invoke closure\nconst OPTIMIZED_ZONE_EVENT_TASK_DATA = {\n useG: true\n};\nconst zoneSymbolEventNames = {};\nconst globalSources = {};\nconst EVENT_NAME_SYMBOL_REGX = new RegExp('^' + ZONE_SYMBOL_PREFIX + '(\\\\w+)(true|false)$');\nconst IMMEDIATE_PROPAGATION_SYMBOL = zoneSymbol('propagationStopped');\nfunction prepareEventNames(eventName, eventNameToString) {\n const falseEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + FALSE_STR;\n const trueEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + TRUE_STR;\n const symbol = ZONE_SYMBOL_PREFIX + falseEventName;\n const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;\n zoneSymbolEventNames[eventName] = {};\n zoneSymbolEventNames[eventName][FALSE_STR] = symbol;\n zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;\n}\nfunction patchEventTarget(_global, api, apis, patchOptions) {\n const ADD_EVENT_LISTENER = (patchOptions && patchOptions.add) || ADD_EVENT_LISTENER_STR;\n const REMOVE_EVENT_LISTENER = (patchOptions && patchOptions.rm) || REMOVE_EVENT_LISTENER_STR;\n const LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.listeners) || 'eventListeners';\n const REMOVE_ALL_LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.rmAll) || 'removeAllListeners';\n const zoneSymbolAddEventListener = zoneSymbol(ADD_EVENT_LISTENER);\n const ADD_EVENT_LISTENER_SOURCE = '.' + ADD_EVENT_LISTENER + ':';\n const PREPEND_EVENT_LISTENER = 'prependListener';\n const PREPEND_EVENT_LISTENER_SOURCE = '.' + PREPEND_EVENT_LISTENER + ':';\n const invokeTask = function (task, target, event) {\n // for better performance, check isRemoved which is set\n // by removeEventListener\n if (task.isRemoved) {\n return;\n }\n const delegate = task.callback;\n if (typeof delegate === 'object' && delegate.handleEvent) {\n // create the bind version of handleEvent when invoke\n task.callback = (event) => delegate.handleEvent(event);\n task.originalDelegate = delegate;\n }\n // invoke static task.invoke\n // need to try/catch error here, otherwise, the error in one event listener\n // will break the executions of the other event listeners. Also error will\n // not remove the event listener when `once` options is true.\n let error;\n try {\n task.invoke(task, target, [event]);\n }\n catch (err) {\n error = err;\n }\n const options = task.options;\n if (options && typeof options === 'object' && options.once) {\n // if options.once is true, after invoke once remove listener here\n // only browser need to do this, nodejs eventEmitter will cal removeListener\n // inside EventEmitter.once\n const delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n target[REMOVE_EVENT_LISTENER].call(target, event.type, delegate, options);\n }\n return error;\n };\n function globalCallback(context, event, isCapture) {\n // https://github.com/angular/zone.js/issues/911, in IE, sometimes\n // event will be undefined, so we need to use window.event\n event = event || _global.event;\n if (!event) {\n return;\n }\n // event.target is needed for Samsung TV and SourceBuffer\n // || global is needed https://github.com/angular/zone.js/issues/190\n const target = context || event.target || _global;\n const tasks = target[zoneSymbolEventNames[event.type][isCapture ? TRUE_STR : FALSE_STR]];\n if (tasks) {\n const errors = [];\n // invoke all tasks which attached to current target with given event.type and capture = false\n // for performance concern, if task.length === 1, just invoke\n if (tasks.length === 1) {\n const err = invokeTask(tasks[0], target, event);\n err && errors.push(err);\n }\n else {\n // https://github.com/angular/zone.js/issues/836\n // copy the tasks array before invoke, to avoid\n // the callback will remove itself or other listener\n const copyTasks = tasks.slice();\n for (let i = 0; i < copyTasks.length; i++) {\n if (event && event[IMMEDIATE_PROPAGATION_SYMBOL] === true) {\n break;\n }\n const err = invokeTask(copyTasks[i], target, event);\n err && errors.push(err);\n }\n }\n // Since there is only one error, we don't need to schedule microTask\n // to throw the error.\n if (errors.length === 1) {\n throw errors[0];\n }\n else {\n for (let i = 0; i < errors.length; i++) {\n const err = errors[i];\n api.nativeScheduleMicroTask(() => {\n throw err;\n });\n }\n }\n }\n }\n // global shared zoneAwareCallback to handle all event callback with capture = false\n const globalZoneAwareCallback = function (event) {\n return globalCallback(this, event, false);\n };\n // global shared zoneAwareCallback to handle all event callback with capture = true\n const globalZoneAwareCaptureCallback = function (event) {\n return globalCallback(this, event, true);\n };\n function patchEventTargetMethods(obj, patchOptions) {\n if (!obj) {\n return false;\n }\n let useGlobalCallback = true;\n if (patchOptions && patchOptions.useG !== undefined) {\n useGlobalCallback = patchOptions.useG;\n }\n const validateHandler = patchOptions && patchOptions.vh;\n let checkDuplicate = true;\n if (patchOptions && patchOptions.chkDup !== undefined) {\n checkDuplicate = patchOptions.chkDup;\n }\n let returnTarget = false;\n if (patchOptions && patchOptions.rt !== undefined) {\n returnTarget = patchOptions.rt;\n }\n let proto = obj;\n while (proto && !proto.hasOwnProperty(ADD_EVENT_LISTENER)) {\n proto = ObjectGetPrototypeOf(proto);\n }\n if (!proto && obj[ADD_EVENT_LISTENER]) {\n // somehow we did not find it, but we can see it. This happens on IE for Window properties.\n proto = obj;\n }\n if (!proto) {\n return false;\n }\n if (proto[zoneSymbolAddEventListener]) {\n return false;\n }\n const eventNameToString = patchOptions && patchOptions.eventNameToString;\n // a shared global taskData to pass data for scheduleEventTask\n // so we do not need to create a new object just for pass some data\n const taskData = {};\n const nativeAddEventListener = proto[zoneSymbolAddEventListener] = proto[ADD_EVENT_LISTENER];\n const nativeRemoveEventListener = proto[zoneSymbol(REMOVE_EVENT_LISTENER)] =\n proto[REMOVE_EVENT_LISTENER];\n const nativeListeners = proto[zoneSymbol(LISTENERS_EVENT_LISTENER)] =\n proto[LISTENERS_EVENT_LISTENER];\n const nativeRemoveAllListeners = proto[zoneSymbol(REMOVE_ALL_LISTENERS_EVENT_LISTENER)] =\n proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER];\n let nativePrependEventListener;\n if (patchOptions && patchOptions.prepend) {\n nativePrependEventListener = proto[zoneSymbol(patchOptions.prepend)] =\n proto[patchOptions.prepend];\n }\n /**\n * This util function will build an option object with passive option\n * to handle all possible input from the user.\n */\n function buildEventListenerOptions(options, passive) {\n if (!passiveSupported && typeof options === 'object' && options) {\n // doesn't support passive but user want to pass an object as options.\n // this will not work on some old browser, so we just pass a boolean\n // as useCapture parameter\n return !!options.capture;\n }\n if (!passiveSupported || !passive) {\n return options;\n }\n if (typeof options === 'boolean') {\n return { capture: options, passive: true };\n }\n if (!options) {\n return { passive: true };\n }\n if (typeof options === 'object' && options.passive !== false) {\n return { ...options, passive: true };\n }\n return options;\n }\n const customScheduleGlobal = function (task) {\n // if there is already a task for the eventName + capture,\n // just return, because we use the shared globalZoneAwareCallback here.\n if (taskData.isExisting) {\n return;\n }\n return nativeAddEventListener.call(taskData.target, taskData.eventName, taskData.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, taskData.options);\n };\n const customCancelGlobal = function (task) {\n // if task is not marked as isRemoved, this call is directly\n // from Zone.prototype.cancelTask, we should remove the task\n // from tasksList of target first\n if (!task.isRemoved) {\n const symbolEventNames = zoneSymbolEventNames[task.eventName];\n let symbolEventName;\n if (symbolEventNames) {\n symbolEventName = symbolEventNames[task.capture ? TRUE_STR : FALSE_STR];\n }\n const existingTasks = symbolEventName && task.target[symbolEventName];\n if (existingTasks) {\n for (let i = 0; i < existingTasks.length; i++) {\n const existingTask = existingTasks[i];\n if (existingTask === task) {\n existingTasks.splice(i, 1);\n // set isRemoved to data for faster invokeTask check\n task.isRemoved = true;\n if (existingTasks.length === 0) {\n // all tasks for the eventName + capture have gone,\n // remove globalZoneAwareCallback and remove the task cache from target\n task.allRemoved = true;\n task.target[symbolEventName] = null;\n }\n break;\n }\n }\n }\n }\n // if all tasks for the eventName + capture have gone,\n // we will really remove the global event callback,\n // if not, return\n if (!task.allRemoved) {\n return;\n }\n return nativeRemoveEventListener.call(task.target, task.eventName, task.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, task.options);\n };\n const customScheduleNonGlobal = function (task) {\n return nativeAddEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);\n };\n const customSchedulePrepend = function (task) {\n return nativePrependEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);\n };\n const customCancelNonGlobal = function (task) {\n return nativeRemoveEventListener.call(task.target, task.eventName, task.invoke, task.options);\n };\n const customSchedule = useGlobalCallback ? customScheduleGlobal : customScheduleNonGlobal;\n const customCancel = useGlobalCallback ? customCancelGlobal : customCancelNonGlobal;\n const compareTaskCallbackVsDelegate = function (task, delegate) {\n const typeOfDelegate = typeof delegate;\n return (typeOfDelegate === 'function' && task.callback === delegate) ||\n (typeOfDelegate === 'object' && task.originalDelegate === delegate);\n };\n const compare = (patchOptions && patchOptions.diff) ? patchOptions.diff : compareTaskCallbackVsDelegate;\n const unpatchedEvents = Zone[zoneSymbol('UNPATCHED_EVENTS')];\n const passiveEvents = _global[zoneSymbol('PASSIVE_EVENTS')];\n const makeAddListener = function (nativeListener, addSource, customScheduleFn, customCancelFn, returnTarget = false, prepend = false) {\n return function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n let delegate = arguments[1];\n if (!delegate) {\n return nativeListener.apply(this, arguments);\n }\n if (isNode && eventName === 'uncaughtException') {\n // don't patch uncaughtException of nodejs to prevent endless loop\n return nativeListener.apply(this, arguments);\n }\n // don't create the bind delegate function for handleEvent\n // case here to improve addEventListener performance\n // we will create the bind delegate when invoke\n let isHandleEvent = false;\n if (typeof delegate !== 'function') {\n if (!delegate.handleEvent) {\n return nativeListener.apply(this, arguments);\n }\n isHandleEvent = true;\n }\n if (validateHandler && !validateHandler(nativeListener, delegate, target, arguments)) {\n return;\n }\n const passive = passiveSupported && !!passiveEvents && passiveEvents.indexOf(eventName) !== -1;\n const options = buildEventListenerOptions(arguments[2], passive);\n const signal = options && typeof options === 'object' && options.signal &&\n typeof options.signal === 'object' ?\n options.signal :\n undefined;\n if (signal?.aborted) {\n // the signal is an aborted one, just return without attaching the event listener.\n return;\n }\n if (unpatchedEvents) {\n // check unpatched list\n for (let i = 0; i < unpatchedEvents.length; i++) {\n if (eventName === unpatchedEvents[i]) {\n if (passive) {\n return nativeListener.call(target, eventName, delegate, options);\n }\n else {\n return nativeListener.apply(this, arguments);\n }\n }\n }\n }\n const capture = !options ? false : typeof options === 'boolean' ? true : options.capture;\n const once = options && typeof options === 'object' ? options.once : false;\n const zone = Zone.current;\n let symbolEventNames = zoneSymbolEventNames[eventName];\n if (!symbolEventNames) {\n prepareEventNames(eventName, eventNameToString);\n symbolEventNames = zoneSymbolEventNames[eventName];\n }\n const symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];\n let existingTasks = target[symbolEventName];\n let isExisting = false;\n if (existingTasks) {\n // already have task registered\n isExisting = true;\n if (checkDuplicate) {\n for (let i = 0; i < existingTasks.length; i++) {\n if (compare(existingTasks[i], delegate)) {\n // same callback, same capture, same event name, just return\n return;\n }\n }\n }\n }\n else {\n existingTasks = target[symbolEventName] = [];\n }\n let source;\n const constructorName = target.constructor['name'];\n const targetSource = globalSources[constructorName];\n if (targetSource) {\n source = targetSource[eventName];\n }\n if (!source) {\n source = constructorName + addSource +\n (eventNameToString ? eventNameToString(eventName) : eventName);\n }\n // do not create a new object as task.data to pass those things\n // just use the global shared one\n taskData.options = options;\n if (once) {\n // if addEventListener with once options, we don't pass it to\n // native addEventListener, instead we keep the once setting\n // and handle ourselves.\n taskData.options.once = false;\n }\n taskData.target = target;\n taskData.capture = capture;\n taskData.eventName = eventName;\n taskData.isExisting = isExisting;\n const data = useGlobalCallback ? OPTIMIZED_ZONE_EVENT_TASK_DATA : undefined;\n // keep taskData into data to allow onScheduleEventTask to access the task information\n if (data) {\n data.taskData = taskData;\n }\n if (signal) {\n // if addEventListener with signal options, we don't pass it to\n // native addEventListener, instead we keep the signal setting\n // and handle ourselves.\n taskData.options.signal = undefined;\n }\n const task = zone.scheduleEventTask(source, delegate, data, customScheduleFn, customCancelFn);\n if (signal) {\n // after task is scheduled, we need to store the signal back to task.options\n taskData.options.signal = signal;\n nativeListener.call(signal, 'abort', () => {\n task.zone.cancelTask(task);\n }, { once: true });\n }\n // should clear taskData.target to avoid memory leak\n // issue, https://github.com/angular/angular/issues/20442\n taskData.target = null;\n // need to clear up taskData because it is a global object\n if (data) {\n data.taskData = null;\n }\n // have to save those information to task in case\n // application may call task.zone.cancelTask() directly\n if (once) {\n options.once = true;\n }\n if (!(!passiveSupported && typeof task.options === 'boolean')) {\n // if not support passive, and we pass an option object\n // to addEventListener, we should save the options to task\n task.options = options;\n }\n task.target = target;\n task.capture = capture;\n task.eventName = eventName;\n if (isHandleEvent) {\n // save original delegate for compare to check duplicate\n task.originalDelegate = delegate;\n }\n if (!prepend) {\n existingTasks.push(task);\n }\n else {\n existingTasks.unshift(task);\n }\n if (returnTarget) {\n return target;\n }\n };\n };\n proto[ADD_EVENT_LISTENER] = makeAddListener(nativeAddEventListener, ADD_EVENT_LISTENER_SOURCE, customSchedule, customCancel, returnTarget);\n if (nativePrependEventListener) {\n proto[PREPEND_EVENT_LISTENER] = makeAddListener(nativePrependEventListener, PREPEND_EVENT_LISTENER_SOURCE, customSchedulePrepend, customCancel, returnTarget, true);\n }\n proto[REMOVE_EVENT_LISTENER] = function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n const options = arguments[2];\n const capture = !options ? false : typeof options === 'boolean' ? true : options.capture;\n const delegate = arguments[1];\n if (!delegate) {\n return nativeRemoveEventListener.apply(this, arguments);\n }\n if (validateHandler &&\n !validateHandler(nativeRemoveEventListener, delegate, target, arguments)) {\n return;\n }\n const symbolEventNames = zoneSymbolEventNames[eventName];\n let symbolEventName;\n if (symbolEventNames) {\n symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];\n }\n const existingTasks = symbolEventName && target[symbolEventName];\n if (existingTasks) {\n for (let i = 0; i < existingTasks.length; i++) {\n const existingTask = existingTasks[i];\n if (compare(existingTask, delegate)) {\n existingTasks.splice(i, 1);\n // set isRemoved to data for faster invokeTask check\n existingTask.isRemoved = true;\n if (existingTasks.length === 0) {\n // all tasks for the eventName + capture have gone,\n // remove globalZoneAwareCallback and remove the task cache from target\n existingTask.allRemoved = true;\n target[symbolEventName] = null;\n // in the target, we have an event listener which is added by on_property\n // such as target.onclick = function() {}, so we need to clear this internal\n // property too if all delegates all removed\n if (typeof eventName === 'string') {\n const onPropertySymbol = ZONE_SYMBOL_PREFIX + 'ON_PROPERTY' + eventName;\n target[onPropertySymbol] = null;\n }\n }\n existingTask.zone.cancelTask(existingTask);\n if (returnTarget) {\n return target;\n }\n return;\n }\n }\n }\n // issue 930, didn't find the event name or callback\n // from zone kept existingTasks, the callback maybe\n // added outside of zone, we need to call native removeEventListener\n // to try to remove it.\n return nativeRemoveEventListener.apply(this, arguments);\n };\n proto[LISTENERS_EVENT_LISTENER] = function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n const listeners = [];\n const tasks = findEventTasks(target, eventNameToString ? eventNameToString(eventName) : eventName);\n for (let i = 0; i < tasks.length; i++) {\n const task = tasks[i];\n let delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n listeners.push(delegate);\n }\n return listeners;\n };\n proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER] = function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (!eventName) {\n const keys = Object.keys(target);\n for (let i = 0; i < keys.length; i++) {\n const prop = keys[i];\n const match = EVENT_NAME_SYMBOL_REGX.exec(prop);\n let evtName = match && match[1];\n // in nodejs EventEmitter, removeListener event is\n // used for monitoring the removeListener call,\n // so just keep removeListener eventListener until\n // all other eventListeners are removed\n if (evtName && evtName !== 'removeListener') {\n this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, evtName);\n }\n }\n // remove removeListener listener finally\n this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, 'removeListener');\n }\n else {\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n const symbolEventNames = zoneSymbolEventNames[eventName];\n if (symbolEventNames) {\n const symbolEventName = symbolEventNames[FALSE_STR];\n const symbolCaptureEventName = symbolEventNames[TRUE_STR];\n const tasks = target[symbolEventName];\n const captureTasks = target[symbolCaptureEventName];\n if (tasks) {\n const removeTasks = tasks.slice();\n for (let i = 0; i < removeTasks.length; i++) {\n const task = removeTasks[i];\n let delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);\n }\n }\n if (captureTasks) {\n const removeTasks = captureTasks.slice();\n for (let i = 0; i < removeTasks.length; i++) {\n const task = removeTasks[i];\n let delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);\n }\n }\n }\n }\n if (returnTarget) {\n return this;\n }\n };\n // for native toString patch\n attachOriginToPatched(proto[ADD_EVENT_LISTENER], nativeAddEventListener);\n attachOriginToPatched(proto[REMOVE_EVENT_LISTENER], nativeRemoveEventListener);\n if (nativeRemoveAllListeners) {\n attachOriginToPatched(proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER], nativeRemoveAllListeners);\n }\n if (nativeListeners) {\n attachOriginToPatched(proto[LISTENERS_EVENT_LISTENER], nativeListeners);\n }\n return true;\n }\n let results = [];\n for (let i = 0; i < apis.length; i++) {\n results[i] = patchEventTargetMethods(apis[i], patchOptions);\n }\n return results;\n}\nfunction findEventTasks(target, eventName) {\n if (!eventName) {\n const foundTasks = [];\n for (let prop in target) {\n const match = EVENT_NAME_SYMBOL_REGX.exec(prop);\n let evtName = match && match[1];\n if (evtName && (!eventName || evtName === eventName)) {\n const tasks = target[prop];\n if (tasks) {\n for (let i = 0; i < tasks.length; i++) {\n foundTasks.push(tasks[i]);\n }\n }\n }\n }\n return foundTasks;\n }\n let symbolEventName = zoneSymbolEventNames[eventName];\n if (!symbolEventName) {\n prepareEventNames(eventName);\n symbolEventName = zoneSymbolEventNames[eventName];\n }\n const captureFalseTasks = target[symbolEventName[FALSE_STR]];\n const captureTrueTasks = target[symbolEventName[TRUE_STR]];\n if (!captureFalseTasks) {\n return captureTrueTasks ? captureTrueTasks.slice() : [];\n }\n else {\n return captureTrueTasks ? captureFalseTasks.concat(captureTrueTasks) :\n captureFalseTasks.slice();\n }\n}\nfunction patchEventPrototype(global, api) {\n const Event = global['Event'];\n if (Event && Event.prototype) {\n api.patchMethod(Event.prototype, 'stopImmediatePropagation', (delegate) => function (self, args) {\n self[IMMEDIATE_PROPAGATION_SYMBOL] = true;\n // we need to call the native stopImmediatePropagation\n // in case in some hybrid application, some part of\n // application will be controlled by zone, some are not\n delegate && delegate.apply(self, args);\n });\n }\n}\n\nfunction patchCallbacks(api, target, targetName, method, callbacks) {\n const symbol = Zone.__symbol__(method);\n if (target[symbol]) {\n return;\n }\n const nativeDelegate = target[symbol] = target[method];\n target[method] = function (name, opts, options) {\n if (opts && opts.prototype) {\n callbacks.forEach(function (callback) {\n const source = `${targetName}.${method}::` + callback;\n const prototype = opts.prototype;\n // Note: the `patchCallbacks` is used for patching the `document.registerElement` and\n // `customElements.define`. We explicitly wrap the patching code into try-catch since\n // callbacks may be already patched by other web components frameworks (e.g. LWC), and they\n // make those properties non-writable. This means that patching callback will throw an error\n // `cannot assign to read-only property`. See this code as an example:\n // https://github.com/salesforce/lwc/blob/master/packages/@lwc/engine-core/src/framework/base-bridge-element.ts#L180-L186\n // We don't want to stop the application rendering if we couldn't patch some\n // callback, e.g. `attributeChangedCallback`.\n try {\n if (prototype.hasOwnProperty(callback)) {\n const descriptor = api.ObjectGetOwnPropertyDescriptor(prototype, callback);\n if (descriptor && descriptor.value) {\n descriptor.value = api.wrapWithCurrentZone(descriptor.value, source);\n api._redefineProperty(opts.prototype, callback, descriptor);\n }\n else if (prototype[callback]) {\n prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);\n }\n }\n else if (prototype[callback]) {\n prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);\n }\n }\n catch {\n // Note: we leave the catch block empty since there's no way to handle the error related\n // to non-writable property.\n }\n });\n }\n return nativeDelegate.call(target, name, opts, options);\n };\n api.attachOriginToPatched(target[method], nativeDelegate);\n}\n\n/**\n * @fileoverview\n * @suppress {globalThis}\n */\nfunction filterProperties(target, onProperties, ignoreProperties) {\n if (!ignoreProperties || ignoreProperties.length === 0) {\n return onProperties;\n }\n const tip = ignoreProperties.filter(ip => ip.target === target);\n if (!tip || tip.length === 0) {\n return onProperties;\n }\n const targetIgnoreProperties = tip[0].ignoreProperties;\n return onProperties.filter(op => targetIgnoreProperties.indexOf(op) === -1);\n}\nfunction patchFilteredProperties(target, onProperties, ignoreProperties, prototype) {\n // check whether target is available, sometimes target will be undefined\n // because different browser or some 3rd party plugin.\n if (!target) {\n return;\n }\n const filteredProperties = filterProperties(target, onProperties, ignoreProperties);\n patchOnProperties(target, filteredProperties, prototype);\n}\n/**\n * Get all event name properties which the event name startsWith `on`\n * from the target object itself, inherited properties are not considered.\n */\nfunction getOnEventNames(target) {\n return Object.getOwnPropertyNames(target)\n .filter(name => name.startsWith('on') && name.length > 2)\n .map(name => name.substring(2));\n}\nfunction propertyDescriptorPatch(api, _global) {\n if (isNode && !isMix) {\n return;\n }\n if (Zone[api.symbol('patchEvents')]) {\n // events are already been patched by legacy patch.\n return;\n }\n const ignoreProperties = _global['__Zone_ignore_on_properties'];\n // for browsers that we can patch the descriptor: Chrome & Firefox\n let patchTargets = [];\n if (isBrowser) {\n const internalWindow = window;\n patchTargets = patchTargets.concat([\n 'Document', 'SVGElement', 'Element', 'HTMLElement', 'HTMLBodyElement', 'HTMLMediaElement',\n 'HTMLFrameSetElement', 'HTMLFrameElement', 'HTMLIFrameElement', 'HTMLMarqueeElement', 'Worker'\n ]);\n const ignoreErrorProperties = isIE() ? [{ target: internalWindow, ignoreProperties: ['error'] }] : [];\n // in IE/Edge, onProp not exist in window object, but in WindowPrototype\n // so we need to pass WindowPrototype to check onProp exist or not\n patchFilteredProperties(internalWindow, getOnEventNames(internalWindow), ignoreProperties ? ignoreProperties.concat(ignoreErrorProperties) : ignoreProperties, ObjectGetPrototypeOf(internalWindow));\n }\n patchTargets = patchTargets.concat([\n 'XMLHttpRequest', 'XMLHttpRequestEventTarget', 'IDBIndex', 'IDBRequest', 'IDBOpenDBRequest',\n 'IDBDatabase', 'IDBTransaction', 'IDBCursor', 'WebSocket'\n ]);\n for (let i = 0; i < patchTargets.length; i++) {\n const target = _global[patchTargets[i]];\n target && target.prototype &&\n patchFilteredProperties(target.prototype, getOnEventNames(target.prototype), ignoreProperties);\n }\n}\n\nZone.__load_patch('util', (global, Zone, api) => {\n // Collect native event names by looking at properties\n // on the global namespace, e.g. 'onclick'.\n const eventNames = getOnEventNames(global);\n api.patchOnProperties = patchOnProperties;\n api.patchMethod = patchMethod;\n api.bindArguments = bindArguments;\n api.patchMacroTask = patchMacroTask;\n // In earlier version of zone.js (<0.9.0), we use env name `__zone_symbol__BLACK_LISTED_EVENTS` to\n // define which events will not be patched by `Zone.js`.\n // In newer version (>=0.9.0), we change the env name to `__zone_symbol__UNPATCHED_EVENTS` to keep\n // the name consistent with angular repo.\n // The `__zone_symbol__BLACK_LISTED_EVENTS` is deprecated, but it is still be supported for\n // backwards compatibility.\n const SYMBOL_BLACK_LISTED_EVENTS = Zone.__symbol__('BLACK_LISTED_EVENTS');\n const SYMBOL_UNPATCHED_EVENTS = Zone.__symbol__('UNPATCHED_EVENTS');\n if (global[SYMBOL_UNPATCHED_EVENTS]) {\n global[SYMBOL_BLACK_LISTED_EVENTS] = global[SYMBOL_UNPATCHED_EVENTS];\n }\n if (global[SYMBOL_BLACK_LISTED_EVENTS]) {\n Zone[SYMBOL_BLACK_LISTED_EVENTS] = Zone[SYMBOL_UNPATCHED_EVENTS] =\n global[SYMBOL_BLACK_LISTED_EVENTS];\n }\n api.patchEventPrototype = patchEventPrototype;\n api.patchEventTarget = patchEventTarget;\n api.isIEOrEdge = isIEOrEdge;\n api.ObjectDefineProperty = ObjectDefineProperty;\n api.ObjectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor;\n api.ObjectCreate = ObjectCreate;\n api.ArraySlice = ArraySlice;\n api.patchClass = patchClass;\n api.wrapWithCurrentZone = wrapWithCurrentZone;\n api.filterProperties = filterProperties;\n api.attachOriginToPatched = attachOriginToPatched;\n api._redefineProperty = Object.defineProperty;\n api.patchCallbacks = patchCallbacks;\n api.getGlobalObjects = () => ({\n globalSources,\n zoneSymbolEventNames,\n eventNames,\n isBrowser,\n isMix,\n isNode,\n TRUE_STR,\n FALSE_STR,\n ZONE_SYMBOL_PREFIX,\n ADD_EVENT_LISTENER_STR,\n REMOVE_EVENT_LISTENER_STR\n });\n});\n\n/**\n * @fileoverview\n * @suppress {missingRequire}\n */\nfunction patchQueueMicrotask(global, api) {\n api.patchMethod(global, 'queueMicrotask', (delegate) => {\n return function (self, args) {\n Zone.current.scheduleMicroTask('queueMicrotask', args[0]);\n };\n });\n}\n\n/**\n * @fileoverview\n * @suppress {missingRequire}\n */\nconst taskSymbol = zoneSymbol('zoneTask');\nfunction patchTimer(window, setName, cancelName, nameSuffix) {\n let setNative = null;\n let clearNative = null;\n setName += nameSuffix;\n cancelName += nameSuffix;\n const tasksByHandleId = {};\n function scheduleTask(task) {\n const data = task.data;\n data.args[0] = function () {\n return task.invoke.apply(this, arguments);\n };\n data.handleId = setNative.apply(window, data.args);\n return task;\n }\n function clearTask(task) {\n return clearNative.call(window, task.data.handleId);\n }\n setNative =\n patchMethod(window, setName, (delegate) => function (self, args) {\n if (typeof args[0] === 'function') {\n const options = {\n isPeriodic: nameSuffix === 'Interval',\n delay: (nameSuffix === 'Timeout' || nameSuffix === 'Interval') ? args[1] || 0 :\n undefined,\n args: args\n };\n const callback = args[0];\n args[0] = function timer() {\n try {\n return callback.apply(this, arguments);\n }\n finally {\n // issue-934, task will be cancelled\n // even it is a periodic task such as\n // setInterval\n // https://github.com/angular/angular/issues/40387\n // Cleanup tasksByHandleId should be handled before scheduleTask\n // Since some zoneSpec may intercept and doesn't trigger\n // scheduleFn(scheduleTask) provided here.\n if (!(options.isPeriodic)) {\n if (typeof options.handleId === 'number') {\n // in non-nodejs env, we remove timerId\n // from local cache\n delete tasksByHandleId[options.handleId];\n }\n else if (options.handleId) {\n // Node returns complex objects as handleIds\n // we remove task reference from timer object\n options.handleId[taskSymbol] = null;\n }\n }\n }\n };\n const task = scheduleMacroTaskWithCurrentZone(setName, args[0], options, scheduleTask, clearTask);\n if (!task) {\n return task;\n }\n // Node.js must additionally support the ref and unref functions.\n const handle = task.data.handleId;\n if (typeof handle === 'number') {\n // for non nodejs env, we save handleId: task\n // mapping in local cache for clearTimeout\n tasksByHandleId[handle] = task;\n }\n else if (handle) {\n // for nodejs env, we save task\n // reference in timerId Object for clearTimeout\n handle[taskSymbol] = task;\n }\n // check whether handle is null, because some polyfill or browser\n // may return undefined from setTimeout/setInterval/setImmediate/requestAnimationFrame\n if (handle && handle.ref && handle.unref && typeof handle.ref === 'function' &&\n typeof handle.unref === 'function') {\n task.ref = handle.ref.bind(handle);\n task.unref = handle.unref.bind(handle);\n }\n if (typeof handle === 'number' || handle) {\n return handle;\n }\n return task;\n }\n else {\n // cause an error by calling it directly.\n return delegate.apply(window, args);\n }\n });\n clearNative =\n patchMethod(window, cancelName, (delegate) => function (self, args) {\n const id = args[0];\n let task;\n if (typeof id === 'number') {\n // non nodejs env.\n task = tasksByHandleId[id];\n }\n else {\n // nodejs env.\n task = id && id[taskSymbol];\n // other environments.\n if (!task) {\n task = id;\n }\n }\n if (task && typeof task.type === 'string') {\n if (task.state !== 'notScheduled' &&\n (task.cancelFn && task.data.isPeriodic || task.runCount === 0)) {\n if (typeof id === 'number') {\n delete tasksByHandleId[id];\n }\n else if (id) {\n id[taskSymbol] = null;\n }\n // Do not cancel already canceled functions\n task.zone.cancelTask(task);\n }\n }\n else {\n // cause an error by calling it directly.\n delegate.apply(window, args);\n }\n });\n}\n\nfunction patchCustomElements(_global, api) {\n const { isBrowser, isMix } = api.getGlobalObjects();\n if ((!isBrowser && !isMix) || !_global['customElements'] || !('customElements' in _global)) {\n return;\n }\n // https://html.spec.whatwg.org/multipage/custom-elements.html#concept-custom-element-definition-lifecycle-callbacks\n const callbacks = [\n 'connectedCallback', 'disconnectedCallback', 'adoptedCallback', 'attributeChangedCallback',\n 'formAssociatedCallback', 'formDisabledCallback', 'formResetCallback',\n 'formStateRestoreCallback'\n ];\n api.patchCallbacks(api, _global.customElements, 'customElements', 'define', callbacks);\n}\n\nfunction eventTargetPatch(_global, api) {\n if (Zone[api.symbol('patchEventTarget')]) {\n // EventTarget is already patched.\n return;\n }\n const { eventNames, zoneSymbolEventNames, TRUE_STR, FALSE_STR, ZONE_SYMBOL_PREFIX } = api.getGlobalObjects();\n // predefine all __zone_symbol__ + eventName + true/false string\n for (let i = 0; i < eventNames.length; i++) {\n const eventName = eventNames[i];\n const falseEventName = eventName + FALSE_STR;\n const trueEventName = eventName + TRUE_STR;\n const symbol = ZONE_SYMBOL_PREFIX + falseEventName;\n const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;\n zoneSymbolEventNames[eventName] = {};\n zoneSymbolEventNames[eventName][FALSE_STR] = symbol;\n zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;\n }\n const EVENT_TARGET = _global['EventTarget'];\n if (!EVENT_TARGET || !EVENT_TARGET.prototype) {\n return;\n }\n api.patchEventTarget(_global, api, [EVENT_TARGET && EVENT_TARGET.prototype]);\n return true;\n}\nfunction patchEvent(global, api) {\n api.patchEventPrototype(global, api);\n}\n\n/**\n * @fileoverview\n * @suppress {missingRequire}\n */\nZone.__load_patch('legacy', (global) => {\n const legacyPatch = global[Zone.__symbol__('legacyPatch')];\n if (legacyPatch) {\n legacyPatch();\n }\n});\nZone.__load_patch('timers', (global) => {\n const set = 'set';\n const clear = 'clear';\n patchTimer(global, set, clear, 'Timeout');\n patchTimer(global, set, clear, 'Interval');\n patchTimer(global, set, clear, 'Immediate');\n});\nZone.__load_patch('requestAnimationFrame', (global) => {\n patchTimer(global, 'request', 'cancel', 'AnimationFrame');\n patchTimer(global, 'mozRequest', 'mozCancel', 'AnimationFrame');\n patchTimer(global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');\n});\nZone.__load_patch('blocking', (global, Zone) => {\n const blockingMethods = ['alert', 'prompt', 'confirm'];\n for (let i = 0; i < blockingMethods.length; i++) {\n const name = blockingMethods[i];\n patchMethod(global, name, (delegate, symbol, name) => {\n return function (s, args) {\n return Zone.current.run(delegate, global, args, name);\n };\n });\n }\n});\nZone.__load_patch('EventTarget', (global, Zone, api) => {\n patchEvent(global, api);\n eventTargetPatch(global, api);\n // patch XMLHttpRequestEventTarget's addEventListener/removeEventListener\n const XMLHttpRequestEventTarget = global['XMLHttpRequestEventTarget'];\n if (XMLHttpRequestEventTarget && XMLHttpRequestEventTarget.prototype) {\n api.patchEventTarget(global, api, [XMLHttpRequestEventTarget.prototype]);\n }\n});\nZone.__load_patch('MutationObserver', (global, Zone, api) => {\n patchClass('MutationObserver');\n patchClass('WebKitMutationObserver');\n});\nZone.__load_patch('IntersectionObserver', (global, Zone, api) => {\n patchClass('IntersectionObserver');\n});\nZone.__load_patch('FileReader', (global, Zone, api) => {\n patchClass('FileReader');\n});\nZone.__load_patch('on_property', (global, Zone, api) => {\n propertyDescriptorPatch(api, global);\n});\nZone.__load_patch('customElements', (global, Zone, api) => {\n patchCustomElements(global, api);\n});\nZone.__load_patch('XHR', (global, Zone) => {\n // Treat XMLHttpRequest as a macrotask.\n patchXHR(global);\n const XHR_TASK = zoneSymbol('xhrTask');\n const XHR_SYNC = zoneSymbol('xhrSync');\n const XHR_LISTENER = zoneSymbol('xhrListener');\n const XHR_SCHEDULED = zoneSymbol('xhrScheduled');\n const XHR_URL = zoneSymbol('xhrURL');\n const XHR_ERROR_BEFORE_SCHEDULED = zoneSymbol('xhrErrorBeforeScheduled');\n function patchXHR(window) {\n const XMLHttpRequest = window['XMLHttpRequest'];\n if (!XMLHttpRequest) {\n // XMLHttpRequest is not available in service worker\n return;\n }\n const XMLHttpRequestPrototype = XMLHttpRequest.prototype;\n function findPendingTask(target) {\n return target[XHR_TASK];\n }\n let oriAddListener = XMLHttpRequestPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n let oriRemoveListener = XMLHttpRequestPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n if (!oriAddListener) {\n const XMLHttpRequestEventTarget = window['XMLHttpRequestEventTarget'];\n if (XMLHttpRequestEventTarget) {\n const XMLHttpRequestEventTargetPrototype = XMLHttpRequestEventTarget.prototype;\n oriAddListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n oriRemoveListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n }\n }\n const READY_STATE_CHANGE = 'readystatechange';\n const SCHEDULED = 'scheduled';\n function scheduleTask(task) {\n const data = task.data;\n const target = data.target;\n target[XHR_SCHEDULED] = false;\n target[XHR_ERROR_BEFORE_SCHEDULED] = false;\n // remove existing event listener\n const listener = target[XHR_LISTENER];\n if (!oriAddListener) {\n oriAddListener = target[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n oriRemoveListener = target[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n }\n if (listener) {\n oriRemoveListener.call(target, READY_STATE_CHANGE, listener);\n }\n const newListener = target[XHR_LISTENER] = () => {\n if (target.readyState === target.DONE) {\n // sometimes on some browsers XMLHttpRequest will fire onreadystatechange with\n // readyState=4 multiple times, so we need to check task state here\n if (!data.aborted && target[XHR_SCHEDULED] && task.state === SCHEDULED) {\n // check whether the xhr has registered onload listener\n // if that is the case, the task should invoke after all\n // onload listeners finish.\n // Also if the request failed without response (status = 0), the load event handler\n // will not be triggered, in that case, we should also invoke the placeholder callback\n // to close the XMLHttpRequest::send macroTask.\n // https://github.com/angular/angular/issues/38795\n const loadTasks = target[Zone.__symbol__('loadfalse')];\n if (target.status !== 0 && loadTasks && loadTasks.length > 0) {\n const oriInvoke = task.invoke;\n task.invoke = function () {\n // need to load the tasks again, because in other\n // load listener, they may remove themselves\n const loadTasks = target[Zone.__symbol__('loadfalse')];\n for (let i = 0; i < loadTasks.length; i++) {\n if (loadTasks[i] === task) {\n loadTasks.splice(i, 1);\n }\n }\n if (!data.aborted && task.state === SCHEDULED) {\n oriInvoke.call(task);\n }\n };\n loadTasks.push(task);\n }\n else {\n task.invoke();\n }\n }\n else if (!data.aborted && target[XHR_SCHEDULED] === false) {\n // error occurs when xhr.send()\n target[XHR_ERROR_BEFORE_SCHEDULED] = true;\n }\n }\n };\n oriAddListener.call(target, READY_STATE_CHANGE, newListener);\n const storedTask = target[XHR_TASK];\n if (!storedTask) {\n target[XHR_TASK] = task;\n }\n sendNative.apply(target, data.args);\n target[XHR_SCHEDULED] = true;\n return task;\n }\n function placeholderCallback() { }\n function clearTask(task) {\n const data = task.data;\n // Note - ideally, we would call data.target.removeEventListener here, but it's too late\n // to prevent it from firing. So instead, we store info for the event listener.\n data.aborted = true;\n return abortNative.apply(data.target, data.args);\n }\n const openNative = patchMethod(XMLHttpRequestPrototype, 'open', () => function (self, args) {\n self[XHR_SYNC] = args[2] == false;\n self[XHR_URL] = args[1];\n return openNative.apply(self, args);\n });\n const XMLHTTPREQUEST_SOURCE = 'XMLHttpRequest.send';\n const fetchTaskAborting = zoneSymbol('fetchTaskAborting');\n const fetchTaskScheduling = zoneSymbol('fetchTaskScheduling');\n const sendNative = patchMethod(XMLHttpRequestPrototype, 'send', () => function (self, args) {\n if (Zone.current[fetchTaskScheduling] === true) {\n // a fetch is scheduling, so we are using xhr to polyfill fetch\n // and because we already schedule macroTask for fetch, we should\n // not schedule a macroTask for xhr again\n return sendNative.apply(self, args);\n }\n if (self[XHR_SYNC]) {\n // if the XHR is sync there is no task to schedule, just execute the code.\n return sendNative.apply(self, args);\n }\n else {\n const options = { target: self, url: self[XHR_URL], isPeriodic: false, args: args, aborted: false };\n const task = scheduleMacroTaskWithCurrentZone(XMLHTTPREQUEST_SOURCE, placeholderCallback, options, scheduleTask, clearTask);\n if (self && self[XHR_ERROR_BEFORE_SCHEDULED] === true && !options.aborted &&\n task.state === SCHEDULED) {\n // xhr request throw error when send\n // we should invoke task instead of leaving a scheduled\n // pending macroTask\n task.invoke();\n }\n }\n });\n const abortNative = patchMethod(XMLHttpRequestPrototype, 'abort', () => function (self, args) {\n const task = findPendingTask(self);\n if (task && typeof task.type == 'string') {\n // If the XHR has already completed, do nothing.\n // If the XHR has already been aborted, do nothing.\n // Fix #569, call abort multiple times before done will cause\n // macroTask task count be negative number\n if (task.cancelFn == null || (task.data && task.data.aborted)) {\n return;\n }\n task.zone.cancelTask(task);\n }\n else if (Zone.current[fetchTaskAborting] === true) {\n // the abort is called from fetch polyfill, we need to call native abort of XHR.\n return abortNative.apply(self, args);\n }\n // Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no\n // task\n // to cancel. Do nothing.\n });\n }\n});\nZone.__load_patch('geolocation', (global) => {\n /// GEO_LOCATION\n if (global['navigator'] && global['navigator'].geolocation) {\n patchPrototype(global['navigator'].geolocation, ['getCurrentPosition', 'watchPosition']);\n }\n});\nZone.__load_patch('PromiseRejectionEvent', (global, Zone) => {\n // handle unhandled promise rejection\n function findPromiseRejectionHandler(evtName) {\n return function (e) {\n const eventTasks = findEventTasks(global, evtName);\n eventTasks.forEach(eventTask => {\n // windows has added unhandledrejection event listener\n // trigger the event listener\n const PromiseRejectionEvent = global['PromiseRejectionEvent'];\n if (PromiseRejectionEvent) {\n const evt = new PromiseRejectionEvent(evtName, { promise: e.promise, reason: e.rejection });\n eventTask.invoke(evt);\n }\n });\n };\n }\n if (global['PromiseRejectionEvent']) {\n Zone[zoneSymbol('unhandledPromiseRejectionHandler')] =\n findPromiseRejectionHandler('unhandledrejection');\n Zone[zoneSymbol('rejectionHandledHandler')] =\n findPromiseRejectionHandler('rejectionhandled');\n }\n});\nZone.__load_patch('queueMicrotask', (global, Zone, api) => {\n patchQueueMicrotask(global, api);\n});\n"],"mappings":"CAOC,SAAUA,EAAQ,CACf,IAAMC,EAAcD,EAAO,YAC3B,SAASE,EAAKC,EAAM,CAChBF,GAAeA,EAAY,MAAWA,EAAY,KAAQE,CAAI,CAClE,CACA,SAASC,EAAmBD,EAAME,EAAO,CACrCJ,GAAeA,EAAY,SAAcA,EAAY,QAAWE,EAAME,CAAK,CAC/E,CACAH,EAAK,MAAM,EAIX,IAAMI,EAAeN,EAAO,sBAA2B,kBACvD,SAASO,EAAWJ,EAAM,CACtB,OAAOG,EAAeH,CAC1B,CACA,IAAMK,EAAiBR,EAAOO,EAAW,yBAAyB,CAAC,IAAM,GACzE,GAAIP,EAAO,KAAS,CAUhB,GAAIQ,GAAkB,OAAOR,EAAO,KAAQ,YAAe,WACvD,MAAM,IAAI,MAAM,sBAAsB,EAGtC,OAAOA,EAAO,IAEtB,CACA,IAAMS,GAAN,MAAMA,EAAK,CAGP,OAAO,mBAAoB,CACvB,GAAIT,EAAO,UAAeU,GAAQ,iBAC9B,MAAM,IAAI,MAAM,+RAI0C,CAElE,CACA,WAAW,MAAO,CACd,IAAIC,EAAOF,GAAK,QAChB,KAAOE,EAAK,QACRA,EAAOA,EAAK,OAEhB,OAAOA,CACX,CACA,WAAW,SAAU,CACjB,OAAOC,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AOH,EAAY,MAAMrU,EAAMC,CAAI,CAK3C,CAAC,CACL,CACJ,CAAC,EACD,KAAK,aAAa,cAAgBzE,GAAW,CAErCA,EAAO,WAAgBA,EAAO,UAAa,aAC3C8G,GAAe9G,EAAO,UAAa,YAAa,CAAC,qBAAsB,eAAe,CAAC,CAE/F,CAAC,EACD,KAAK,aAAa,wBAAyB,CAACA,EAAQmD,IAAS,CAEzD,SAAS+V,EAA4B5E,EAAS,CAC1C,OAAO,SAAU7J,EAAG,CACGuJ,GAAehU,EAAQsU,CAAO,EACtC,QAAQtS,GAAa,CAG5B,IAAMmX,EAAwBnZ,EAAO,sBACrC,GAAImZ,EAAuB,CACvB,IAAMC,EAAM,IAAID,EAAsB7E,EAAS,CAAE,QAAS7J,EAAE,QAAS,OAAQA,EAAE,SAAU,CAAC,EAC1FzI,EAAU,OAAOoX,CAAG,CACxB,CACJ,CAAC,CACL,CACJ,CACIpZ,EAAO,wBACPmD,EAAKqD,EAAW,kCAAkC,CAAC,EAC/C0S,EAA4B,oBAAoB,EACpD/V,EAAKqD,EAAW,yBAAyB,CAAC,EACtC0S,EAA4B,kBAAkB,EAE1D,CAAC,EACD,KAAK,aAAa,iBAAkB,CAAClZ,EAAQmD,EAAMiH,IAAQ,CACvD+L,GAAoBnW,EAAQoK,CAAG,CACnC,CAAC","names":["global","performance","mark","name","performanceMeasure","label","symbolPrefix","__symbol__","checkDuplicate","_Zone","patches","zone","_currentZoneFrame","_currentTask","fn","ignoreDuplicate","perfName","_api","parent","zoneSpec","_ZoneDelegate","key","current","callback","source","_callback","applyThis","applyArgs","error","task","NO_ZONE","notScheduled","eventTask","macroTask","reEntryGuard","running","scheduled","previousTask","unknown","newZone","scheduling","zoneDelegates","err","data","customSchedule","ZoneTask","microTask","customCancel","canceling","count","i","Zone","DELEGATE_ZS","delegate","_","target","hasTaskState","parentDelegate","zoneSpecHasTask","parentHasTask","targetZone","returnTask","scheduleMicroTask","value","isEmpty","type","counts","prev","next","options","scheduleFn","cancelFn","self","args","_numberOfNestedTaskFrames","drainMicroTaskQueue","toState","fromState1","fromState2","symbolSetTimeout","symbolPromise","symbolThen","_microTaskQueue","_isDrainingMicrotaskQueue","nativeMicroTaskQueuePromise","nativeScheduleMicroTask","func","nativeThen","queue","noop","ObjectGetOwnPropertyDescriptor","ObjectDefineProperty","ObjectGetPrototypeOf","ObjectCreate","ArraySlice","ADD_EVENT_LISTENER_STR","REMOVE_EVENT_LISTENER_STR","ZONE_SYMBOL_ADD_EVENT_LISTENER","ZONE_SYMBOL_REMOVE_EVENT_LISTENER","TRUE_STR","FALSE_STR","ZONE_SYMBOL_PREFIX","wrapWithCurrentZone","scheduleMacroTaskWithCurrentZone","zoneSymbol","isWindowExists","internalWindow","_global","REMOVE_ATTRIBUTE","bindArguments","patchPrototype","prototype","fnNames","prototypeDesc","isPropertyWritable","patched","attachOriginToPatched","propertyDesc","isWebWorker","isNode","isBrowser","isMix","zoneSymbolEventNames$1","wrapFn","event","eventNameSymbol","listener","result","errorEvent","patchProperty","obj","prop","desc","onPropPatchedSymbol","originalDescGet","originalDescSet","eventName","newValue","patchOnProperties","properties","onProperties","j","originalInstanceKey","patchClass","className","OriginalClass","instance","patchMethod","patchFn","proto","delegateName","patchDelegate","patchMacroTask","funcName","metaCreator","setNative","scheduleTask","meta","original","isDetectedIEOrEdge","ieOrEdge","isIE","ua","isIEOrEdge","api","readableObjectToString","_uncaughtPromiseErrors","isDisableWrappingUncaughtPromiseRejection","creationTrace","e","rejection","uncaughtPromiseError","handleUnhandledRejection","UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL","handler","isThenable","forwardResolution","forwardRejection","ZoneAwarePromise","symbolState","symbolValue","symbolFinally","symbolParentPromiseValue","symbolParentPromiseState","UNRESOLVED","RESOLVED","REJECTED","REJECTED_NO_CATCH","makeResolver","promise","state","v","resolvePromise","once","wasCalled","wrappedFunction","TYPE_ERROR","CURRENT_TASK_TRACE_SYMBOL","onceWrapper","then","clearRejectedNoCatch","trace","scheduleResolveOrReject","REJECTION_HANDLED_HANDLER","chainPromise","onFulfilled","onRejected","promiseState","parentPromiseValue","isFinallyPromise","ZONE_AWARE_PROMISE_TO_STRING","AggregateError","res","rej","values","promises","finished","errors","resolve","reject","onResolve","onReject","unresolvedCount","valueIndex","resolvedValues","curValueIndex","thenErr","executor","_a","C","onFinally","NativePromise","symbolThenPatched","patchThen","Ctor","originalThen","zoneify","resultPromise","ctor","originalFunctionToString","ORIGINAL_DELEGATE_SYMBOL","PROMISE_SYMBOL","ERROR_SYMBOL","newFunctionToString","originalDelegate","nativePromise","nativeError","originalObjectToString","PROMISE_OBJECT_TO_STRING","passiveSupported","OPTIMIZED_ZONE_EVENT_TASK_DATA","zoneSymbolEventNames","globalSources","EVENT_NAME_SYMBOL_REGX","IMMEDIATE_PROPAGATION_SYMBOL","prepareEventNames","eventNameToString","falseEventName","trueEventName","symbol","symbolCapture","patchEventTarget","apis","patchOptions","ADD_EVENT_LISTENER","REMOVE_EVENT_LISTENER","LISTENERS_EVENT_LISTENER","REMOVE_ALL_LISTENERS_EVENT_LISTENER","zoneSymbolAddEventListener","ADD_EVENT_LISTENER_SOURCE","PREPEND_EVENT_LISTENER","PREPEND_EVENT_LISTENER_SOURCE","invokeTask","globalCallback","context","isCapture","tasks","copyTasks","globalZoneAwareCallback","globalZoneAwareCaptureCallback","patchEventTargetMethods","useGlobalCallback","validateHandler","returnTarget","taskData","nativeAddEventListener","nativeRemoveEventListener","nativeListeners","nativeRemoveAllListeners","nativePrependEventListener","buildEventListenerOptions","passive","customScheduleGlobal","customCancelGlobal","symbolEventNames","symbolEventName","existingTasks","customScheduleNonGlobal","customSchedulePrepend","customCancelNonGlobal","compareTaskCallbackVsDelegate","typeOfDelegate","compare","unpatchedEvents","passiveEvents","makeAddListener","nativeListener","addSource","customScheduleFn","customCancelFn","prepend","isHandleEvent","signal","capture","isExisting","constructorName","targetSource","existingTask","onPropertySymbol","listeners","findEventTasks","symbolCaptureEventName","captureTasks","removeTasks","keys","match","evtName","results","foundTasks","captureFalseTasks","captureTrueTasks","patchEventPrototype","Event","patchCallbacks","targetName","method","callbacks","nativeDelegate","opts","descriptor","filterProperties","ignoreProperties","tip","ip","targetIgnoreProperties","op","patchFilteredProperties","filteredProperties","getOnEventNames","propertyDescriptorPatch","patchTargets","ignoreErrorProperties","eventNames","SYMBOL_BLACK_LISTED_EVENTS","SYMBOL_UNPATCHED_EVENTS","patchQueueMicrotask","taskSymbol","patchTimer","window","setName","cancelName","nameSuffix","clearNative","tasksByHandleId","clearTask","handle","id","patchCustomElements","eventTargetPatch","EVENT_TARGET","patchEvent","legacyPatch","set","clear","blockingMethods","s","XMLHttpRequestEventTarget","patchXHR","XHR_TASK","XHR_SYNC","XHR_LISTENER","XHR_SCHEDULED","XHR_URL","XHR_ERROR_BEFORE_SCHEDULED","XMLHttpRequest","XMLHttpRequestPrototype","findPendingTask","oriAddListener","oriRemoveListener","XMLHttpRequestEventTargetPrototype","READY_STATE_CHANGE","SCHEDULED","newListener","loadTasks","oriInvoke","sendNative","placeholderCallback","abortNative","openNative","XMLHTTPREQUEST_SOURCE","fetchTaskAborting","fetchTaskScheduling","findPromiseRejectionHandler","PromiseRejectionEvent","evt"],"x_google_ignoreList":[0]} \ No newline at end of file diff --git a/polyfills-ULQNQL4M.js b/polyfills-ULQNQL4M.js new file mode 100644 index 00000000..5758bd5a --- /dev/null +++ b/polyfills-ULQNQL4M.js @@ -0,0 +1,3 @@ +var se=globalThis;function ee(e){return(se.__Zone_symbol_prefix||"__zone_symbol__")+e}function ut(){let e=se.performance;function n(A){e&&e.mark&&e.mark(A)}function a(A,r){e&&e.measure&&e.measure(A,r)}n("Zone");let Y=class Y{static assertZonePatched(){if(se.Promise!==N.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=Y.current;for(;r.parent;)r=r.parent;return r}static get current(){return m.zone}static get currentTask(){return O}static __load_patch(r,i,s=!1){if(N.hasOwnProperty(r)){let v=se[ee("forceDuplicateZoneCheck")]===!0;if(!s&&v)throw Error("Already loaded patch: "+r)}else if(!se["__Zone_disable_"+r]){let v="Zone:"+r;n(v),N[r]=i(se,Y,C),a(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(r,i){this._parent=r,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,i)}get(r){let i=this.getZoneWith(r);if(i)return i._properties[r]}getZoneWith(r){let i=this;for(;i;){if(i._properties.hasOwnProperty(r))return i;i=i._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,i){if(typeof r!="function")throw new Error("Expecting function got: "+r);let s=this._zoneDelegate.intercept(this,r,i),v=this;return function(){return v.runGuarded(s,this,arguments,i)}}run(r,i,s,v){m={parent:m,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,v)}finally{m=m.parent}}runGuarded(r,i=null,s,v){m={parent:m,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,v)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{m=m.parent}}runTask(r,i,s){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||ne).name+"; Execution: "+this.name+")");if(r.state===z&&(r.type===F||r.type===y))return;let v=r.state!=G;v&&r._transitionTo(G,d),r.runCount++;let x=O;O=r,m={parent:m,zone:this};try{r.type==y&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,i,s)}catch(M){if(this._zoneDelegate.handleError(this,M))throw M}}finally{r.state!==z&&r.state!==X&&(r.type==F||r.data&&r.data.isPeriodic?v&&r._transitionTo(d,G):(r.runCount=0,this._updateTaskCount(r,-1),v&&r._transitionTo(z,G,z))),m=m.parent,O=x}}scheduleTask(r){if(r.zone&&r.zone!==this){let s=this;for(;s;){if(s===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);s=s.parent}}r._transitionTo(k,z);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(X,k,z),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==k&&r._transitionTo(d,k),r}scheduleMicroTask(r,i,s,v){return this.scheduleTask(new _(V,r,i,s,v,void 0))}scheduleMacroTask(r,i,s,v,x){return this.scheduleTask(new _(y,r,i,s,v,x))}scheduleEventTask(r,i,s,v,x){return this.scheduleTask(new _(F,r,i,s,v,x))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||ne).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==G)){r._transitionTo(W,d,G);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(X,W),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(z,W),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let v=0;vA.hasTask(i,s),onScheduleTask:(A,r,i,s)=>A.scheduleTask(i,s),onInvokeTask:(A,r,i,s,v,x)=>A.invokeTask(i,s,v,x),onCancelTask:(A,r,i,s)=>A.cancelTask(i,s)};class u{get zone(){return this._zone}constructor(r,i,s){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=r,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=s&&s.onHasTask,x=i&&i._hasTaskZS;(v||x)&&(this._hasTaskZS=v?s:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(r,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,i):new t(r,i)}intercept(r,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,i,s):i}invoke(r,i,s,v,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,v,x):i.apply(s,v)}handleError(r,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,i):!0}scheduleTask(r,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==V)U(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,v):i.callback.apply(s,v)}cancelTask(r,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(r,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,i)}catch(s){this.handleError(r,s)}}_updateTaskCount(r,i){let s=this._taskCounts,v=s[r],x=s[r]=v+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(v==0||x==0){let M={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:r};this.hasTask(this._zone,M)}}}class _{constructor(r,i,s,v,x,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=v,this.scheduleFn=x,this.cancelFn=M,!s)throw new Error("callback is not defined");this.callback=s;let de=this;r===F&&v&&v.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(se,de,this,arguments)}}static invokeTask(r,i,s){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{K==1&&j(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(z,k)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==z&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let E=ee("setTimeout"),p=ee("Promise"),S=ee("then"),T=[],I=!1,R;function Z(A){if(R||se[p]&&(R=se[p].resolve(0)),R){let r=R[S];r||(r=R.then),r.call(R,A)}else se[E](A,0)}function U(A){K===0&&T.length===0&&Z(j),A&&T.push(A)}function j(){if(!I){for(I=!0;T.length;){let A=T;T=[];for(let r=0;rm,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:Z},m={parent:null,zone:new t(null,null)},O=null,K=0;function q(){}return a("Zone","Zone"),t}function ft(){let e=globalThis,n=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??(e.Zone=ut()),e.Zone}var ke=Object.getOwnPropertyDescriptor,Ze=Object.defineProperty,je=Object.getPrototypeOf,ht=Object.create,dt=Array.prototype.slice,Ae="addEventListener",He="removeEventListener",Ne=ee(Ae),Ie=ee(He),ie="true",ce="false",ve=ee("");function xe(e,n){return Zone.current.wrap(e,n)}function Ge(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var H=ee,Ce=typeof window<"u",ye=Ce?window:void 0,$=Ce&&ye||globalThis,_t="removeAttribute";function Ve(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=xe(e[a],n+"_"+a));return e}function Et(e,n){let a=e.constructor.name;for(let t=0;t{let p=function(){return E.apply(this,Ve(arguments,a+"."+c))};return le(p,E),p})(u)}}}function Ke(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var Qe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&{}.toString.call($.process)==="[object process]",Fe=!Se&&!Qe&&!!(Ce&&ye.HTMLElement),et=typeof $.process<"u"&&{}.toString.call($.process)==="[object process]"&&!Qe&&!!(Ce&&ye.HTMLElement),Re={},Xe=function(e){if(e=e||$.event,!e)return;let n=Re[e.type];n||(n=Re[e.type]=H("ON_PROPERTY"+e.type));let a=this||e.target||$,t=a[n],c;if(Fe&&a===ye&&e.type==="error"){let u=e;c=t&&t.call(this,u.message,u.filename,u.lineno,u.colno,u.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),c!=null&&!c&&e.preventDefault();return c};function Ye(e,n,a){let t=ke(e,n);if(!t&&a&&ke(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=H("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let u=t.get,_=t.set,E=n.slice(2),p=Re[E];p||(p=Re[E]=H("ON_PROPERTY"+E)),t.set=function(S){let T=this;if(!T&&e===$&&(T=$),!T)return;typeof T[p]=="function"&&T.removeEventListener(E,Xe),_&&_.call(T,null),T[p]=S,typeof S=="function"&&T.addEventListener(E,Xe,!1)},t.get=function(){let S=this;if(!S&&e===$&&(S=$),!S)return null;let T=S[p];if(T)return T;if(u){let I=u.call(this);if(I)return t.set.call(this,I),typeof S[_t]=="function"&&S.removeAttribute(n),I}return null},Ze(e,n,t),e[c]=!0}function tt(e,n,a){if(n)for(let t=0;tfunction(_,E){let p=a(_,E);return p.cbIdx>=0&&typeof E[p.cbIdx]=="function"?Ge(p.name,E[p.cbIdx],p,c):u.apply(_,E)})}function le(e,n){e[H("OriginalDelegate")]=n}var $e=!1,Me=!1;function yt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function gt(){if($e)return Me;$e=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var Te=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){Te=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Te=!1}var pt={useG:!0},te={},nt={},rt=new RegExp("^"+ve+"(\\w+)(true|false)$"),ot=H("propagationStopped");function st(e,n){let a=(n?n(e):e)+ce,t=(n?n(e):e)+ie,c=ve+a,u=ve+t;te[e]={},te[e][ce]=c,te[e][ie]=u}function mt(e,n,a,t){let c=t&&t.add||Ae,u=t&&t.rm||He,_=t&&t.listeners||"eventListeners",E=t&&t.rmAll||"removeAllListeners",p=H(c),S="."+c+":",T="prependListener",I="."+T+":",R=function(k,d,G){if(k.isRemoved)return;let W=k.callback;typeof W=="object"&&W.handleEvent&&(k.callback=y=>W.handleEvent(y),k.originalDelegate=W);let X;try{k.invoke(k,d,[G])}catch(y){X=y}let V=k.options;if(V&&typeof V=="object"&&V.once){let y=k.originalDelegate?k.originalDelegate:k.callback;d[u].call(d,G.type,y,V)}return X};function Z(k,d,G){if(d=d||e.event,!d)return;let W=k||d.target||e,X=W[te[d.type][G?ie:ce]];if(X){let V=[];if(X.length===1){let y=R(X[0],W,d);y&&V.push(y)}else{let y=X.slice();for(let F=0;F{throw F})}}}let U=function(k){return Z(this,k,!1)},j=function(k){return Z(this,k,!0)};function ne(k,d){if(!k)return!1;let G=!0;d&&d.useG!==void 0&&(G=d.useG);let W=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let V=!1;d&&d.rt!==void 0&&(V=d.rt);let y=k;for(;y&&!y.hasOwnProperty(c);)y=je(y);if(!y&&k[c]&&(y=k),!y||y[p])return!1;let F=d&&d.eventNameToString,N={},C=y[p]=y[c],m=y[H(u)]=y[u],O=y[H(_)]=y[_],K=y[H(E)]=y[E],q;d&&d.prepend&&(q=y[H(d.prepend)]=y[d.prepend]);function Y(o,l){return!Te&&typeof o=="object"&&o?!!o.capture:!Te||!l?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let A=function(o){if(!N.isExisting)return C.call(N.target,N.eventName,N.capture?j:U,N.options)},r=function(o){if(!o.isRemoved){let l=te[o.eventName],h;l&&(h=l[o.capture?ie:ce]);let b=h&&o.target[h];if(b){for(let P=0;P{oe.zone.cancelTask(oe)},{once:!0})),N.target=null,pe&&(pe.taskData=null),Be&&(Q.once=!0),!Te&&typeof oe.options=="boolean"||(oe.options=Q),oe.target=w,oe.capture=De,oe.eventName=D,B&&(oe.originalDelegate=L),g?_e.unshift(oe):_e.push(oe),P)return w}};return y[c]=f(C,S,x,M,V),q&&(y[T]=f(q,I,s,M,V,!0)),y[u]=function(){let o=this||e,l=arguments[0];d&&d.transferEventName&&(l=d.transferEventName(l));let h=arguments[2],b=h?typeof h=="boolean"?!0:h.capture:!1,P=arguments[1];if(!P)return m.apply(this,arguments);if(W&&!W(m,P,o,arguments))return;let g=te[l],w;g&&(w=g[b?ie:ce]);let D=w&&o[w];if(D)for(let L=0;Lfunction(c,u){c[ot]=!0,t&&t.apply(c,u)})}function vt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var we=H("zoneTask");function Ee(e,n,a,t){let c=null,u=null;n+=t,a+=t;let _={};function E(S){let T=S.data;return T.args[0]=function(){return S.invoke.apply(this,arguments)},T.handleId=c.apply(e,T.args),S}function p(S){return u.call(e,S.data.handleId)}c=ae(e,n,S=>function(T,I){if(typeof I[0]=="function"){let R={isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{R.isPeriodic||(typeof R.handleId=="number"?delete _[R.handleId]:R.handleId&&(R.handleId[we]=null))}};let U=Ge(n,I[0],R,E,p);if(!U)return U;let j=U.data.handleId;return typeof j=="number"?_[j]=U:j&&(j[we]=U),j&&j.ref&&j.unref&&typeof j.ref=="function"&&typeof j.unref=="function"&&(U.ref=j.ref.bind(j),U.unref=j.unref.bind(j)),typeof j=="number"||j?j:U}else return S.apply(e,I)}),u=ae(e,a,S=>function(T,I){let R=I[0],Z;typeof R=="number"?Z=_[R]:(Z=R&&R[we],Z||(Z=R)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof R=="number"?delete _[R]:R&&(R[we]=null),Z.zone.cancelTask(Z)):S.apply(e,I)})}function bt(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function Pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:u,ZONE_SYMBOL_PREFIX:_}=n.getGlobalObjects();for(let p=0;pu.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(u=>c.indexOf(u)===-1)}function Je(e,n,a,t){if(!e)return;let c=ct(e,n,a);tt(e,c,t)}function Le(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Rt(e,n){if(Se&&!et||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Fe){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let u=yt()?[{target:c,ignoreProperties:["error"]}]:[];Je(c,Le(c),a&&a.concat(u),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";Ee(n,a,t,"Timeout"),Ee(n,a,t,"Interval"),Ee(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{Ee(n,"request","cancel","AnimationFrame"),Ee(n,"mozRequest","mozCancel","AnimationFrame"),Ee(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(S,T){return a.current.run(_,n,T,p)})}}),e.__load_patch("EventTarget",(n,a,t)=>{wt(n,t),Pt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{me("MutationObserver"),me("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{me("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{me("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Rt(t,n)}),e.__load_patch("customElements",(n,a,t)=>{bt(n,t)}),e.__load_patch("XHR",(n,a)=>{S(n);let t=H("xhrTask"),c=H("xhrSync"),u=H("xhrListener"),_=H("xhrScheduled"),E=H("xhrURL"),p=H("xhrErrorBeforeScheduled");function S(T){let I=T.XMLHttpRequest;if(!I)return;let R=I.prototype;function Z(C){return C[t]}let U=R[Ne],j=R[Ie];if(!U){let C=T.XMLHttpRequestEventTarget;if(C){let m=C.prototype;U=m[Ne],j=m[Ie]}}let ne="readystatechange",z="scheduled";function k(C){let m=C.data,O=m.target;O[_]=!1,O[p]=!1;let K=O[u];U||(U=O[Ne],j=O[Ie]),K&&j.call(O,ne,K);let q=O[u]=()=>{if(O.readyState===O.DONE)if(!m.aborted&&O[_]&&C.state===z){let A=O[a.__symbol__("loadfalse")];if(O.status!==0&&A&&A.length>0){let r=C.invoke;C.invoke=function(){let i=O[a.__symbol__("loadfalse")];for(let s=0;sfunction(C,m){return C[c]=m[2]==!1,C[E]=m[1],W.apply(C,m)}),X="XMLHttpRequest.send",V=H("fetchTaskAborting"),y=H("fetchTaskScheduling"),F=ae(R,"send",()=>function(C,m){if(a.current[y]===!0||C[c])return F.apply(C,m);{let O={target:C,url:C[E],isPeriodic:!1,args:m,aborted:!1},K=Ge(X,d,O,k,G);C&&C[p]===!0&&!O.aborted&&K.state===z&&K.invoke()}}),N=ae(R,"abort",()=>function(C,m){let O=Z(C);if(O&&typeof O.type=="string"){if(O.cancelFn==null||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(a.current[V]===!0)return N.apply(C,m)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&Et(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(u){it(n,c).forEach(E=>{let p=n.PromiseRejectionEvent;if(p){let S=new p(c,{promise:u.promise,reason:u.rejection});E.invoke(S)}})}}n.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{vt(n,t)})}function St(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function _(f){if(f&&f.toString===Object.prototype.toString){let o=f.constructor&&f.constructor.name;return(o||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let E=t.symbol,p=[],S=n[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=E("Promise"),I=E("then"),R="__creationTrace__";t.onUnhandledError=f=>{if(t.showUncaughtError()){let o=f&&f.rejection;o?console.error("Unhandled Promise rejection:",o instanceof Error?o.message:o,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",o,o instanceof Error?o.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;p.length;){let f=p.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(o){U(o)}}};let Z=E("unhandledPromiseRejectionHandler");function U(f){t.onUnhandledError(f);try{let o=a[Z];typeof o=="function"&&o.call(this,f)}catch{}}function j(f){return f&&f.then}function ne(f){return f}function z(f){return M.reject(f)}let k=E("state"),d=E("value"),G=E("finally"),W=E("parentPromiseValue"),X=E("parentPromiseState"),V="Promise.then",y=null,F=!0,N=!1,C=0;function m(f,o){return l=>{try{Y(f,o,l)}catch(h){Y(f,!1,h)}}}let O=function(){let f=!1;return function(l){return function(){f||(f=!0,l.apply(null,arguments))}}},K="Promise resolved with itself",q=E("currentTaskTrace");function Y(f,o,l){let h=O();if(f===l)throw new TypeError(K);if(f[k]===y){let b=null;try{(typeof l=="object"||typeof l=="function")&&(b=l&&l.then)}catch(P){return h(()=>{Y(f,!1,P)})(),f}if(o!==N&&l instanceof M&&l.hasOwnProperty(k)&&l.hasOwnProperty(d)&&l[k]!==y)r(l),Y(f,l[k],l[d]);else if(o!==N&&typeof b=="function")try{b.call(l,h(m(f,o)),h(m(f,!1)))}catch(P){h(()=>{Y(f,!1,P)})()}else{f[k]=o;let P=f[d];if(f[d]=l,f[G]===G&&o===F&&(f[k]=f[X],f[d]=f[W]),o===N&&l instanceof Error){let g=a.currentTask&&a.currentTask.data&&a.currentTask.data[R];g&&u(l,q,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g{try{let w=f[d],D=!!l&&G===l[G];D&&(l[W]=w,l[X]=P);let L=o.run(g,void 0,D&&g!==z&&g!==ne?[]:[w]);Y(l,!0,L)}catch(w){Y(l,!1,w)}},l)}let s="function ZoneAwarePromise() { [native code] }",v=function(){},x=n.AggregateError;class M{static toString(){return s}static resolve(o){return o instanceof M?o:Y(new this(null),F,o)}static reject(o){return Y(new this(null),N,o)}static withResolvers(){let o={};return o.promise=new M((l,h)=>{o.resolve=l,o.reject=h}),o}static any(o){if(!o||typeof o[Symbol.iterator]!="function")return Promise.reject(new x([],"All promises were rejected"));let l=[],h=0;try{for(let g of o)h++,l.push(M.resolve(g))}catch{return Promise.reject(new x([],"All promises were rejected"))}if(h===0)return Promise.reject(new x([],"All promises were rejected"));let b=!1,P=[];return new M((g,w)=>{for(let D=0;D{b||(b=!0,g(L))},L=>{P.push(L),h--,h===0&&(b=!0,w(new x(P,"All promises were rejected")))})})}static race(o){let l,h,b=new this((w,D)=>{l=w,h=D});function P(w){l(w)}function g(w){h(w)}for(let w of o)j(w)||(w=this.resolve(w)),w.then(P,g);return b}static all(o){return M.allWithCallback(o)}static allSettled(o){return(this&&this.prototype instanceof M?this:M).allWithCallback(o,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(o,l){let h,b,P=new this((L,B)=>{h=L,b=B}),g=2,w=0,D=[];for(let L of o){j(L)||(L=this.resolve(L));let B=w;try{L.then(J=>{D[B]=l?l.thenCallback(J):J,g--,g===0&&h(D)},J=>{l?(D[B]=l.errorCallback(J),g--,g===0&&h(D)):b(J)})}catch(J){b(J)}g++,w++}return g-=2,g===0&&h(D),P}constructor(o){let l=this;if(!(l instanceof M))throw new Error("Must be an instanceof Promise.");l[k]=y,l[d]=[];try{let h=O();o&&o(h(m(l,F)),h(m(l,N)))}catch(h){Y(l,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(o,l){var g;let h=(g=this.constructor)==null?void 0:g[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||M);let b=new h(v),P=a.current;return this[k]==y?this[d].push(P,b,o,l):i(this,P,b,o,l),b}catch(o){return this.then(null,o)}finally(o){var P;let l=(P=this.constructor)==null?void 0:P[Symbol.species];(!l||typeof l!="function")&&(l=M);let h=new l(v);h[G]=G;let b=a.current;return this[k]==y?this[d].push(b,h,o,o):i(this,b,h,o,o),h}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let de=n[T]=n.Promise;n.Promise=M;let ge=E("thenPatched");function ue(f){let o=f.prototype,l=c(o,"then");if(l&&(l.writable===!1||!l.configurable))return;let h=o.then;o[I]=h,f.prototype.then=function(b,P){return new M((w,D)=>{h.call(this,w,D)}).then(b,P)},f[ge]=!0}t.patchThen=ue;function be(f){return function(o,l){let h=f.apply(o,l);if(h instanceof M)return h;let b=h.constructor;return b[ge]||ue(b),h}}return de&&(ue(de),ae(n,"fetch",f=>be(f))),Promise[a.__symbol__("uncaughtPromiseErrors")]=p,M})}function Dt(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=H("OriginalDelegate"),c=H("Promise"),u=H("Error"),_=function(){if(typeof this=="function"){let T=this[t];if(T)return typeof T=="function"?a.call(T):Object.prototype.toString.call(T);if(this===Promise){let I=n[c];if(I)return a.call(I)}if(this===Error){let I=n[u];if(I)return a.call(I)}}return a.call(this)};_[t]=a,Function.prototype.toString=_;let E=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:E.call(this)}})}function Ot(e,n,a,t,c){let u=Zone.__symbol__(t);if(n[u])return;let _=n[u]=n[t];n[t]=function(E,p,S){return p&&p.prototype&&c.forEach(function(T){let I=`${a}.${t}::`+T,R=p.prototype;try{if(R.hasOwnProperty(T)){let Z=e.ObjectGetOwnPropertyDescriptor(R,T);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(p.prototype,T,Z)):R[T]&&(R[T]=e.wrapWithCurrentZone(R[T],I))}else R[T]&&(R[T]=e.wrapWithCurrentZone(R[T],I))}catch{}}),_.call(n,E,p,S)},e.attachOriginToPatched(n[t],_)}function Nt(e){e.__load_patch("util",(n,a,t)=>{let c=Le(n);t.patchOnProperties=tt,t.patchMethod=ae,t.bindArguments=Ve,t.patchMacroTask=Tt;let u=a.__symbol__("BLACK_LISTED_EVENTS"),_=a.__symbol__("UNPATCHED_EVENTS");n[_]&&(n[u]=n[_]),n[u]&&(a[u]=a[_]=n[u]),t.patchEventPrototype=kt,t.patchEventTarget=mt,t.isIEOrEdge=gt,t.ObjectDefineProperty=Ze,t.ObjectGetOwnPropertyDescriptor=ke,t.ObjectCreate=ht,t.ArraySlice=dt,t.patchClass=me,t.wrapWithCurrentZone=xe,t.filterProperties=ct,t.attachOriginToPatched=le,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Ot,t.getGlobalObjects=()=>({globalSources:nt,zoneSymbolEventNames:te,eventNames:c,isBrowser:Fe,isMix:et,isNode:Se,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:Ae,REMOVE_EVENT_LISTENER_STR:He})})}function It(e){St(e),Dt(e),Nt(e)}var at=ft();It(at);Ct(at); +//# sourceMappingURL=polyfills-ULQNQL4M.js.map diff --git a/polyfills-ULQNQL4M.js.map b/polyfills-ULQNQL4M.js.map new file mode 100644 index 00000000..49b8251a --- /dev/null +++ b/polyfills-ULQNQL4M.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["node_modules/zone.js/fesm2015/zone.js"],"sourcesContent":["'use strict';\n/**\n * @license Angular v\n * (c) 2010-2024 Google LLC. https://angular.io/\n * License: MIT\n */\nconst global = globalThis;\n// __Zone_symbol_prefix global can be used to override the default zone\n// symbol prefix with a custom one if needed.\nfunction __symbol__(name) {\n const symbolPrefix = global['__Zone_symbol_prefix'] || '__zone_symbol__';\n return symbolPrefix + name;\n}\nfunction initZone() {\n const performance = global['performance'];\n function mark(name) {\n performance && performance['mark'] && performance['mark'](name);\n }\n function performanceMeasure(name, label) {\n performance && performance['measure'] && performance['measure'](name, label);\n }\n mark('Zone');\n class ZoneImpl {\n // tslint:disable-next-line:require-internal-with-underscore\n static { this.__symbol__ = __symbol__; }\n static assertZonePatched() {\n if (global['Promise'] !== patches['ZoneAwarePromise']) {\n throw new Error('Zone.js has detected that ZoneAwarePromise `(window|global).Promise` ' +\n 'has been overwritten.\\n' +\n 'Most likely cause is that a Promise polyfill has been loaded ' +\n 'after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. ' +\n 'If you must load one, do so before loading zone.js.)');\n }\n }\n static get root() {\n let zone = ZoneImpl.current;\n while (zone.parent) {\n zone = zone.parent;\n }\n return zone;\n }\n static get current() {\n return _currentZoneFrame.zone;\n }\n static get currentTask() {\n return _currentTask;\n }\n // tslint:disable-next-line:require-internal-with-underscore\n static __load_patch(name, fn, ignoreDuplicate = false) {\n if (patches.hasOwnProperty(name)) {\n // `checkDuplicate` option is defined from global variable\n // so it works for all modules.\n // `ignoreDuplicate` can work for the specified module\n const checkDuplicate = global[__symbol__('forceDuplicateZoneCheck')] === true;\n if (!ignoreDuplicate && checkDuplicate) {\n throw Error('Already loaded patch: ' + name);\n }\n }\n else if (!global['__Zone_disable_' + name]) {\n const perfName = 'Zone:' + name;\n mark(perfName);\n patches[name] = fn(global, ZoneImpl, _api);\n performanceMeasure(perfName, perfName);\n }\n }\n get parent() {\n return this._parent;\n }\n get name() {\n return this._name;\n }\n constructor(parent, zoneSpec) {\n this._parent = parent;\n this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '';\n this._properties = (zoneSpec && zoneSpec.properties) || {};\n this._zoneDelegate = new _ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);\n }\n get(key) {\n const zone = this.getZoneWith(key);\n if (zone)\n return zone._properties[key];\n }\n getZoneWith(key) {\n let current = this;\n while (current) {\n if (current._properties.hasOwnProperty(key)) {\n return current;\n }\n current = current._parent;\n }\n return null;\n }\n fork(zoneSpec) {\n if (!zoneSpec)\n throw new Error('ZoneSpec required!');\n return this._zoneDelegate.fork(this, zoneSpec);\n }\n wrap(callback, source) {\n if (typeof callback !== 'function') {\n throw new Error('Expecting function got: ' + callback);\n }\n const _callback = this._zoneDelegate.intercept(this, callback, source);\n const zone = this;\n return function () {\n return zone.runGuarded(_callback, this, arguments, source);\n };\n }\n run(callback, applyThis, applyArgs, source) {\n _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n try {\n return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n }\n finally {\n _currentZoneFrame = _currentZoneFrame.parent;\n }\n }\n runGuarded(callback, applyThis = null, applyArgs, source) {\n _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n try {\n try {\n return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n }\n catch (error) {\n if (this._zoneDelegate.handleError(this, error)) {\n throw error;\n }\n }\n }\n finally {\n _currentZoneFrame = _currentZoneFrame.parent;\n }\n }\n runTask(task, applyThis, applyArgs) {\n if (task.zone != this) {\n throw new Error('A task can only be run in the zone of creation! (Creation: ' +\n (task.zone || NO_ZONE).name +\n '; Execution: ' +\n this.name +\n ')');\n }\n // https://github.com/angular/zone.js/issues/778, sometimes eventTask\n // will run in notScheduled(canceled) state, we should not try to\n // run such kind of task but just return\n if (task.state === notScheduled && (task.type === eventTask || task.type === macroTask)) {\n return;\n }\n const reEntryGuard = task.state != running;\n reEntryGuard && task._transitionTo(running, scheduled);\n task.runCount++;\n const previousTask = _currentTask;\n _currentTask = task;\n _currentZoneFrame = { parent: _currentZoneFrame, zone: this };\n try {\n if (task.type == macroTask && task.data && !task.data.isPeriodic) {\n task.cancelFn = undefined;\n }\n try {\n return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);\n }\n catch (error) {\n if (this._zoneDelegate.handleError(this, error)) {\n throw error;\n }\n }\n }\n finally {\n // if the task's state is notScheduled or unknown, then it has already been cancelled\n // we should not reset the state to scheduled\n if (task.state !== notScheduled && task.state !== unknown) {\n if (task.type == eventTask || (task.data && task.data.isPeriodic)) {\n reEntryGuard && task._transitionTo(scheduled, running);\n }\n else {\n task.runCount = 0;\n this._updateTaskCount(task, -1);\n reEntryGuard &&\n task._transitionTo(notScheduled, running, notScheduled);\n }\n }\n _currentZoneFrame = _currentZoneFrame.parent;\n _currentTask = previousTask;\n }\n }\n scheduleTask(task) {\n if (task.zone && task.zone !== this) {\n // check if the task was rescheduled, the newZone\n // should not be the children of the original zone\n let newZone = this;\n while (newZone) {\n if (newZone === task.zone) {\n throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${task.zone.name}`);\n }\n newZone = newZone.parent;\n }\n }\n task._transitionTo(scheduling, notScheduled);\n const zoneDelegates = [];\n task._zoneDelegates = zoneDelegates;\n task._zone = this;\n try {\n task = this._zoneDelegate.scheduleTask(this, task);\n }\n catch (err) {\n // should set task's state to unknown when scheduleTask throw error\n // because the err may from reschedule, so the fromState maybe notScheduled\n task._transitionTo(unknown, scheduling, notScheduled);\n // TODO: @JiaLiPassion, should we check the result from handleError?\n this._zoneDelegate.handleError(this, err);\n throw err;\n }\n if (task._zoneDelegates === zoneDelegates) {\n // we have to check because internally the delegate can reschedule the task.\n this._updateTaskCount(task, 1);\n }\n if (task.state == scheduling) {\n task._transitionTo(scheduled, scheduling);\n }\n return task;\n }\n scheduleMicroTask(source, callback, data, customSchedule) {\n return this.scheduleTask(new ZoneTask(microTask, source, callback, data, customSchedule, undefined));\n }\n scheduleMacroTask(source, callback, data, customSchedule, customCancel) {\n return this.scheduleTask(new ZoneTask(macroTask, source, callback, data, customSchedule, customCancel));\n }\n scheduleEventTask(source, callback, data, customSchedule, customCancel) {\n return this.scheduleTask(new ZoneTask(eventTask, source, callback, data, customSchedule, customCancel));\n }\n cancelTask(task) {\n if (task.zone != this)\n throw new Error('A task can only be cancelled in the zone of creation! (Creation: ' +\n (task.zone || NO_ZONE).name +\n '; Execution: ' +\n this.name +\n ')');\n if (task.state !== scheduled && task.state !== running) {\n return;\n }\n task._transitionTo(canceling, scheduled, running);\n try {\n this._zoneDelegate.cancelTask(this, task);\n }\n catch (err) {\n // if error occurs when cancelTask, transit the state to unknown\n task._transitionTo(unknown, canceling);\n this._zoneDelegate.handleError(this, err);\n throw err;\n }\n this._updateTaskCount(task, -1);\n task._transitionTo(notScheduled, canceling);\n task.runCount = 0;\n return task;\n }\n _updateTaskCount(task, count) {\n const zoneDelegates = task._zoneDelegates;\n if (count == -1) {\n task._zoneDelegates = null;\n }\n for (let i = 0; i < zoneDelegates.length; i++) {\n zoneDelegates[i]._updateTaskCount(task.type, count);\n }\n }\n }\n const DELEGATE_ZS = {\n name: '',\n onHasTask: (delegate, _, target, hasTaskState) => delegate.hasTask(target, hasTaskState),\n onScheduleTask: (delegate, _, target, task) => delegate.scheduleTask(target, task),\n onInvokeTask: (delegate, _, target, task, applyThis, applyArgs) => delegate.invokeTask(target, task, applyThis, applyArgs),\n onCancelTask: (delegate, _, target, task) => delegate.cancelTask(target, task),\n };\n class _ZoneDelegate {\n get zone() {\n return this._zone;\n }\n constructor(zone, parentDelegate, zoneSpec) {\n this._taskCounts = {\n 'microTask': 0,\n 'macroTask': 0,\n 'eventTask': 0,\n };\n this._zone = zone;\n this._parentDelegate = parentDelegate;\n this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);\n this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);\n this._forkCurrZone =\n zoneSpec && (zoneSpec.onFork ? this._zone : parentDelegate._forkCurrZone);\n this._interceptZS =\n zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);\n this._interceptDlgt =\n zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);\n this._interceptCurrZone =\n zoneSpec && (zoneSpec.onIntercept ? this._zone : parentDelegate._interceptCurrZone);\n this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);\n this._invokeDlgt =\n zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);\n this._invokeCurrZone =\n zoneSpec && (zoneSpec.onInvoke ? this._zone : parentDelegate._invokeCurrZone);\n this._handleErrorZS =\n zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);\n this._handleErrorDlgt =\n zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);\n this._handleErrorCurrZone =\n zoneSpec && (zoneSpec.onHandleError ? this._zone : parentDelegate._handleErrorCurrZone);\n this._scheduleTaskZS =\n zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);\n this._scheduleTaskDlgt =\n zoneSpec && (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);\n this._scheduleTaskCurrZone =\n zoneSpec && (zoneSpec.onScheduleTask ? this._zone : parentDelegate._scheduleTaskCurrZone);\n this._invokeTaskZS =\n zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);\n this._invokeTaskDlgt =\n zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);\n this._invokeTaskCurrZone =\n zoneSpec && (zoneSpec.onInvokeTask ? this._zone : parentDelegate._invokeTaskCurrZone);\n this._cancelTaskZS =\n zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);\n this._cancelTaskDlgt =\n zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);\n this._cancelTaskCurrZone =\n zoneSpec && (zoneSpec.onCancelTask ? this._zone : parentDelegate._cancelTaskCurrZone);\n this._hasTaskZS = null;\n this._hasTaskDlgt = null;\n this._hasTaskDlgtOwner = null;\n this._hasTaskCurrZone = null;\n const zoneSpecHasTask = zoneSpec && zoneSpec.onHasTask;\n const parentHasTask = parentDelegate && parentDelegate._hasTaskZS;\n if (zoneSpecHasTask || parentHasTask) {\n // If we need to report hasTask, than this ZS needs to do ref counting on tasks. In such\n // a case all task related interceptors must go through this ZD. We can't short circuit it.\n this._hasTaskZS = zoneSpecHasTask ? zoneSpec : DELEGATE_ZS;\n this._hasTaskDlgt = parentDelegate;\n this._hasTaskDlgtOwner = this;\n this._hasTaskCurrZone = this._zone;\n if (!zoneSpec.onScheduleTask) {\n this._scheduleTaskZS = DELEGATE_ZS;\n this._scheduleTaskDlgt = parentDelegate;\n this._scheduleTaskCurrZone = this._zone;\n }\n if (!zoneSpec.onInvokeTask) {\n this._invokeTaskZS = DELEGATE_ZS;\n this._invokeTaskDlgt = parentDelegate;\n this._invokeTaskCurrZone = this._zone;\n }\n if (!zoneSpec.onCancelTask) {\n this._cancelTaskZS = DELEGATE_ZS;\n this._cancelTaskDlgt = parentDelegate;\n this._cancelTaskCurrZone = this._zone;\n }\n }\n }\n fork(targetZone, zoneSpec) {\n return this._forkZS\n ? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec)\n : new ZoneImpl(targetZone, zoneSpec);\n }\n intercept(targetZone, callback, source) {\n return this._interceptZS\n ? this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, targetZone, callback, source)\n : callback;\n }\n invoke(targetZone, callback, applyThis, applyArgs, source) {\n return this._invokeZS\n ? this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, targetZone, callback, applyThis, applyArgs, source)\n : callback.apply(applyThis, applyArgs);\n }\n handleError(targetZone, error) {\n return this._handleErrorZS\n ? this._handleErrorZS.onHandleError(this._handleErrorDlgt, this._handleErrorCurrZone, targetZone, error)\n : true;\n }\n scheduleTask(targetZone, task) {\n let returnTask = task;\n if (this._scheduleTaskZS) {\n if (this._hasTaskZS) {\n returnTask._zoneDelegates.push(this._hasTaskDlgtOwner);\n }\n // clang-format off\n returnTask = this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this._scheduleTaskCurrZone, targetZone, task);\n // clang-format on\n if (!returnTask)\n returnTask = task;\n }\n else {\n if (task.scheduleFn) {\n task.scheduleFn(task);\n }\n else if (task.type == microTask) {\n scheduleMicroTask(task);\n }\n else {\n throw new Error('Task is missing scheduleFn.');\n }\n }\n return returnTask;\n }\n invokeTask(targetZone, task, applyThis, applyArgs) {\n return this._invokeTaskZS\n ? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, targetZone, task, applyThis, applyArgs)\n : task.callback.apply(applyThis, applyArgs);\n }\n cancelTask(targetZone, task) {\n let value;\n if (this._cancelTaskZS) {\n value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this._cancelTaskCurrZone, targetZone, task);\n }\n else {\n if (!task.cancelFn) {\n throw Error('Task is not cancelable');\n }\n value = task.cancelFn(task);\n }\n return value;\n }\n hasTask(targetZone, isEmpty) {\n // hasTask should not throw error so other ZoneDelegate\n // can still trigger hasTask callback\n try {\n this._hasTaskZS &&\n this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, targetZone, isEmpty);\n }\n catch (err) {\n this.handleError(targetZone, err);\n }\n }\n // tslint:disable-next-line:require-internal-with-underscore\n _updateTaskCount(type, count) {\n const counts = this._taskCounts;\n const prev = counts[type];\n const next = (counts[type] = prev + count);\n if (next < 0) {\n throw new Error('More tasks executed then were scheduled.');\n }\n if (prev == 0 || next == 0) {\n const isEmpty = {\n microTask: counts['microTask'] > 0,\n macroTask: counts['macroTask'] > 0,\n eventTask: counts['eventTask'] > 0,\n change: type,\n };\n this.hasTask(this._zone, isEmpty);\n }\n }\n }\n class ZoneTask {\n constructor(type, source, callback, options, scheduleFn, cancelFn) {\n // tslint:disable-next-line:require-internal-with-underscore\n this._zone = null;\n this.runCount = 0;\n // tslint:disable-next-line:require-internal-with-underscore\n this._zoneDelegates = null;\n // tslint:disable-next-line:require-internal-with-underscore\n this._state = 'notScheduled';\n this.type = type;\n this.source = source;\n this.data = options;\n this.scheduleFn = scheduleFn;\n this.cancelFn = cancelFn;\n if (!callback) {\n throw new Error('callback is not defined');\n }\n this.callback = callback;\n const self = this;\n // TODO: @JiaLiPassion options should have interface\n if (type === eventTask && options && options.useG) {\n this.invoke = ZoneTask.invokeTask;\n }\n else {\n this.invoke = function () {\n return ZoneTask.invokeTask.call(global, self, this, arguments);\n };\n }\n }\n static invokeTask(task, target, args) {\n if (!task) {\n task = this;\n }\n _numberOfNestedTaskFrames++;\n try {\n task.runCount++;\n return task.zone.runTask(task, target, args);\n }\n finally {\n if (_numberOfNestedTaskFrames == 1) {\n drainMicroTaskQueue();\n }\n _numberOfNestedTaskFrames--;\n }\n }\n get zone() {\n return this._zone;\n }\n get state() {\n return this._state;\n }\n cancelScheduleRequest() {\n this._transitionTo(notScheduled, scheduling);\n }\n // tslint:disable-next-line:require-internal-with-underscore\n _transitionTo(toState, fromState1, fromState2) {\n if (this._state === fromState1 || this._state === fromState2) {\n this._state = toState;\n if (toState == notScheduled) {\n this._zoneDelegates = null;\n }\n }\n else {\n throw new Error(`${this.type} '${this.source}': can not transition to '${toState}', expecting state '${fromState1}'${fromState2 ? \" or '\" + fromState2 + \"'\" : ''}, was '${this._state}'.`);\n }\n }\n toString() {\n if (this.data && typeof this.data.handleId !== 'undefined') {\n return this.data.handleId.toString();\n }\n else {\n return Object.prototype.toString.call(this);\n }\n }\n // add toJSON method to prevent cyclic error when\n // call JSON.stringify(zoneTask)\n toJSON() {\n return {\n type: this.type,\n state: this.state,\n source: this.source,\n zone: this.zone.name,\n runCount: this.runCount,\n };\n }\n }\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n /// MICROTASK QUEUE\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n const symbolSetTimeout = __symbol__('setTimeout');\n const symbolPromise = __symbol__('Promise');\n const symbolThen = __symbol__('then');\n let _microTaskQueue = [];\n let _isDrainingMicrotaskQueue = false;\n let nativeMicroTaskQueuePromise;\n function nativeScheduleMicroTask(func) {\n if (!nativeMicroTaskQueuePromise) {\n if (global[symbolPromise]) {\n nativeMicroTaskQueuePromise = global[symbolPromise].resolve(0);\n }\n }\n if (nativeMicroTaskQueuePromise) {\n let nativeThen = nativeMicroTaskQueuePromise[symbolThen];\n if (!nativeThen) {\n // native Promise is not patchable, we need to use `then` directly\n // issue 1078\n nativeThen = nativeMicroTaskQueuePromise['then'];\n }\n nativeThen.call(nativeMicroTaskQueuePromise, func);\n }\n else {\n global[symbolSetTimeout](func, 0);\n }\n }\n function scheduleMicroTask(task) {\n // if we are not running in any task, and there has not been anything scheduled\n // we must bootstrap the initial task creation by manually scheduling the drain\n if (_numberOfNestedTaskFrames === 0 && _microTaskQueue.length === 0) {\n // We are not running in Task, so we need to kickstart the microtask queue.\n nativeScheduleMicroTask(drainMicroTaskQueue);\n }\n task && _microTaskQueue.push(task);\n }\n function drainMicroTaskQueue() {\n if (!_isDrainingMicrotaskQueue) {\n _isDrainingMicrotaskQueue = true;\n while (_microTaskQueue.length) {\n const queue = _microTaskQueue;\n _microTaskQueue = [];\n for (let i = 0; i < queue.length; i++) {\n const task = queue[i];\n try {\n task.zone.runTask(task, null, null);\n }\n catch (error) {\n _api.onUnhandledError(error);\n }\n }\n }\n _api.microtaskDrainDone();\n _isDrainingMicrotaskQueue = false;\n }\n }\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n /// BOOTSTRAP\n //////////////////////////////////////////////////////\n //////////////////////////////////////////////////////\n const NO_ZONE = { name: 'NO ZONE' };\n const notScheduled = 'notScheduled', scheduling = 'scheduling', scheduled = 'scheduled', running = 'running', canceling = 'canceling', unknown = 'unknown';\n const microTask = 'microTask', macroTask = 'macroTask', eventTask = 'eventTask';\n const patches = {};\n const _api = {\n symbol: __symbol__,\n currentZoneFrame: () => _currentZoneFrame,\n onUnhandledError: noop,\n microtaskDrainDone: noop,\n scheduleMicroTask: scheduleMicroTask,\n showUncaughtError: () => !ZoneImpl[__symbol__('ignoreConsoleErrorUncaughtError')],\n patchEventTarget: () => [],\n patchOnProperties: noop,\n patchMethod: () => noop,\n bindArguments: () => [],\n patchThen: () => noop,\n patchMacroTask: () => noop,\n patchEventPrototype: () => noop,\n isIEOrEdge: () => false,\n getGlobalObjects: () => undefined,\n ObjectDefineProperty: () => noop,\n ObjectGetOwnPropertyDescriptor: () => undefined,\n ObjectCreate: () => undefined,\n ArraySlice: () => [],\n patchClass: () => noop,\n wrapWithCurrentZone: () => noop,\n filterProperties: () => [],\n attachOriginToPatched: () => noop,\n _redefineProperty: () => noop,\n patchCallbacks: () => noop,\n nativeScheduleMicroTask: nativeScheduleMicroTask,\n };\n let _currentZoneFrame = { parent: null, zone: new ZoneImpl(null, null) };\n let _currentTask = null;\n let _numberOfNestedTaskFrames = 0;\n function noop() { }\n performanceMeasure('Zone', 'Zone');\n return ZoneImpl;\n}\n\nfunction loadZone() {\n // if global['Zone'] already exists (maybe zone.js was already loaded or\n // some other lib also registered a global object named Zone), we may need\n // to throw an error, but sometimes user may not want this error.\n // For example,\n // we have two web pages, page1 includes zone.js, page2 doesn't.\n // and the 1st time user load page1 and page2, everything work fine,\n // but when user load page2 again, error occurs because global['Zone'] already exists.\n // so we add a flag to let user choose whether to throw this error or not.\n // By default, if existing Zone is from zone.js, we will not throw the error.\n const global = globalThis;\n const checkDuplicate = global[__symbol__('forceDuplicateZoneCheck')] === true;\n if (global['Zone'] && (checkDuplicate || typeof global['Zone'].__symbol__ !== 'function')) {\n throw new Error('Zone already loaded.');\n }\n // Initialize global `Zone` constant.\n global['Zone'] ??= initZone();\n return global['Zone'];\n}\n\n/**\n * Suppress closure compiler errors about unknown 'Zone' variable\n * @fileoverview\n * @suppress {undefinedVars,globalThis,missingRequire}\n */\n// issue #989, to reduce bundle size, use short name\n/** Object.getOwnPropertyDescriptor */\nconst ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n/** Object.defineProperty */\nconst ObjectDefineProperty = Object.defineProperty;\n/** Object.getPrototypeOf */\nconst ObjectGetPrototypeOf = Object.getPrototypeOf;\n/** Object.create */\nconst ObjectCreate = Object.create;\n/** Array.prototype.slice */\nconst ArraySlice = Array.prototype.slice;\n/** addEventListener string const */\nconst ADD_EVENT_LISTENER_STR = 'addEventListener';\n/** removeEventListener string const */\nconst REMOVE_EVENT_LISTENER_STR = 'removeEventListener';\n/** zoneSymbol addEventListener */\nconst ZONE_SYMBOL_ADD_EVENT_LISTENER = __symbol__(ADD_EVENT_LISTENER_STR);\n/** zoneSymbol removeEventListener */\nconst ZONE_SYMBOL_REMOVE_EVENT_LISTENER = __symbol__(REMOVE_EVENT_LISTENER_STR);\n/** true string const */\nconst TRUE_STR = 'true';\n/** false string const */\nconst FALSE_STR = 'false';\n/** Zone symbol prefix string const. */\nconst ZONE_SYMBOL_PREFIX = __symbol__('');\nfunction wrapWithCurrentZone(callback, source) {\n return Zone.current.wrap(callback, source);\n}\nfunction scheduleMacroTaskWithCurrentZone(source, callback, data, customSchedule, customCancel) {\n return Zone.current.scheduleMacroTask(source, callback, data, customSchedule, customCancel);\n}\nconst zoneSymbol = __symbol__;\nconst isWindowExists = typeof window !== 'undefined';\nconst internalWindow = isWindowExists ? window : undefined;\nconst _global = (isWindowExists && internalWindow) || globalThis;\nconst REMOVE_ATTRIBUTE = 'removeAttribute';\nfunction bindArguments(args, source) {\n for (let i = args.length - 1; i >= 0; i--) {\n if (typeof args[i] === 'function') {\n args[i] = wrapWithCurrentZone(args[i], source + '_' + i);\n }\n }\n return args;\n}\nfunction patchPrototype(prototype, fnNames) {\n const source = prototype.constructor['name'];\n for (let i = 0; i < fnNames.length; i++) {\n const name = fnNames[i];\n const delegate = prototype[name];\n if (delegate) {\n const prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, name);\n if (!isPropertyWritable(prototypeDesc)) {\n continue;\n }\n prototype[name] = ((delegate) => {\n const patched = function () {\n return delegate.apply(this, bindArguments(arguments, source + '.' + name));\n };\n attachOriginToPatched(patched, delegate);\n return patched;\n })(delegate);\n }\n }\n}\nfunction isPropertyWritable(propertyDesc) {\n if (!propertyDesc) {\n return true;\n }\n if (propertyDesc.writable === false) {\n return false;\n }\n return !(typeof propertyDesc.get === 'function' && typeof propertyDesc.set === 'undefined');\n}\nconst isWebWorker = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope;\n// Make sure to access `process` through `_global` so that WebPack does not accidentally browserify\n// this code.\nconst isNode = !('nw' in _global) &&\n typeof _global.process !== 'undefined' &&\n {}.toString.call(_global.process) === '[object process]';\nconst isBrowser = !isNode && !isWebWorker && !!(isWindowExists && internalWindow['HTMLElement']);\n// we are in electron of nw, so we are both browser and nodejs\n// Make sure to access `process` through `_global` so that WebPack does not accidentally browserify\n// this code.\nconst isMix = typeof _global.process !== 'undefined' &&\n {}.toString.call(_global.process) === '[object process]' &&\n !isWebWorker &&\n !!(isWindowExists && internalWindow['HTMLElement']);\nconst zoneSymbolEventNames$1 = {};\nconst wrapFn = function (event) {\n // https://github.com/angular/zone.js/issues/911, in IE, sometimes\n // event will be undefined, so we need to use window.event\n event = event || _global.event;\n if (!event) {\n return;\n }\n let eventNameSymbol = zoneSymbolEventNames$1[event.type];\n if (!eventNameSymbol) {\n eventNameSymbol = zoneSymbolEventNames$1[event.type] = zoneSymbol('ON_PROPERTY' + event.type);\n }\n const target = this || event.target || _global;\n const listener = target[eventNameSymbol];\n let result;\n if (isBrowser && target === internalWindow && event.type === 'error') {\n // window.onerror have different signature\n // https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#window.onerror\n // and onerror callback will prevent default when callback return true\n const errorEvent = event;\n result =\n listener &&\n listener.call(this, errorEvent.message, errorEvent.filename, errorEvent.lineno, errorEvent.colno, errorEvent.error);\n if (result === true) {\n event.preventDefault();\n }\n }\n else {\n result = listener && listener.apply(this, arguments);\n if (result != undefined && !result) {\n event.preventDefault();\n }\n }\n return result;\n};\nfunction patchProperty(obj, prop, prototype) {\n let desc = ObjectGetOwnPropertyDescriptor(obj, prop);\n if (!desc && prototype) {\n // when patch window object, use prototype to check prop exist or not\n const prototypeDesc = ObjectGetOwnPropertyDescriptor(prototype, prop);\n if (prototypeDesc) {\n desc = { enumerable: true, configurable: true };\n }\n }\n // if the descriptor not exists or is not configurable\n // just return\n if (!desc || !desc.configurable) {\n return;\n }\n const onPropPatchedSymbol = zoneSymbol('on' + prop + 'patched');\n if (obj.hasOwnProperty(onPropPatchedSymbol) && obj[onPropPatchedSymbol]) {\n return;\n }\n // A property descriptor cannot have getter/setter and be writable\n // deleting the writable and value properties avoids this error:\n //\n // TypeError: property descriptors must not specify a value or be writable when a\n // getter or setter has been specified\n delete desc.writable;\n delete desc.value;\n const originalDescGet = desc.get;\n const originalDescSet = desc.set;\n // slice(2) cuz 'onclick' -> 'click', etc\n const eventName = prop.slice(2);\n let eventNameSymbol = zoneSymbolEventNames$1[eventName];\n if (!eventNameSymbol) {\n eventNameSymbol = zoneSymbolEventNames$1[eventName] = zoneSymbol('ON_PROPERTY' + eventName);\n }\n desc.set = function (newValue) {\n // in some of windows's onproperty callback, this is undefined\n // so we need to check it\n let target = this;\n if (!target && obj === _global) {\n target = _global;\n }\n if (!target) {\n return;\n }\n const previousValue = target[eventNameSymbol];\n if (typeof previousValue === 'function') {\n target.removeEventListener(eventName, wrapFn);\n }\n // issue #978, when onload handler was added before loading zone.js\n // we should remove it with originalDescSet\n originalDescSet && originalDescSet.call(target, null);\n target[eventNameSymbol] = newValue;\n if (typeof newValue === 'function') {\n target.addEventListener(eventName, wrapFn, false);\n }\n };\n // The getter would return undefined for unassigned properties but the default value of an\n // unassigned property is null\n desc.get = function () {\n // in some of windows's onproperty callback, this is undefined\n // so we need to check it\n let target = this;\n if (!target && obj === _global) {\n target = _global;\n }\n if (!target) {\n return null;\n }\n const listener = target[eventNameSymbol];\n if (listener) {\n return listener;\n }\n else if (originalDescGet) {\n // result will be null when use inline event attribute,\n // such as \n // because the onclick function is internal raw uncompiled handler\n // the onclick will be evaluated when first time event was triggered or\n // the property is accessed, https://github.com/angular/zone.js/issues/525\n // so we should use original native get to retrieve the handler\n let value = originalDescGet.call(this);\n if (value) {\n desc.set.call(this, value);\n if (typeof target[REMOVE_ATTRIBUTE] === 'function') {\n target.removeAttribute(prop);\n }\n return value;\n }\n }\n return null;\n };\n ObjectDefineProperty(obj, prop, desc);\n obj[onPropPatchedSymbol] = true;\n}\nfunction patchOnProperties(obj, properties, prototype) {\n if (properties) {\n for (let i = 0; i < properties.length; i++) {\n patchProperty(obj, 'on' + properties[i], prototype);\n }\n }\n else {\n const onProperties = [];\n for (const prop in obj) {\n if (prop.slice(0, 2) == 'on') {\n onProperties.push(prop);\n }\n }\n for (let j = 0; j < onProperties.length; j++) {\n patchProperty(obj, onProperties[j], prototype);\n }\n }\n}\nconst originalInstanceKey = zoneSymbol('originalInstance');\n// wrap some native API on `window`\nfunction patchClass(className) {\n const OriginalClass = _global[className];\n if (!OriginalClass)\n return;\n // keep original class in global\n _global[zoneSymbol(className)] = OriginalClass;\n _global[className] = function () {\n const a = bindArguments(arguments, className);\n switch (a.length) {\n case 0:\n this[originalInstanceKey] = new OriginalClass();\n break;\n case 1:\n this[originalInstanceKey] = new OriginalClass(a[0]);\n break;\n case 2:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1]);\n break;\n case 3:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);\n break;\n case 4:\n this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);\n break;\n default:\n throw new Error('Arg list too long.');\n }\n };\n // attach original delegate to patched function\n attachOriginToPatched(_global[className], OriginalClass);\n const instance = new OriginalClass(function () { });\n let prop;\n for (prop in instance) {\n // https://bugs.webkit.org/show_bug.cgi?id=44721\n if (className === 'XMLHttpRequest' && prop === 'responseBlob')\n continue;\n (function (prop) {\n if (typeof instance[prop] === 'function') {\n _global[className].prototype[prop] = function () {\n return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);\n };\n }\n else {\n ObjectDefineProperty(_global[className].prototype, prop, {\n set: function (fn) {\n if (typeof fn === 'function') {\n this[originalInstanceKey][prop] = wrapWithCurrentZone(fn, className + '.' + prop);\n // keep callback in wrapped function so we can\n // use it in Function.prototype.toString to return\n // the native one.\n attachOriginToPatched(this[originalInstanceKey][prop], fn);\n }\n else {\n this[originalInstanceKey][prop] = fn;\n }\n },\n get: function () {\n return this[originalInstanceKey][prop];\n },\n });\n }\n })(prop);\n }\n for (prop in OriginalClass) {\n if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {\n _global[className][prop] = OriginalClass[prop];\n }\n }\n}\nfunction patchMethod(target, name, patchFn) {\n let proto = target;\n while (proto && !proto.hasOwnProperty(name)) {\n proto = ObjectGetPrototypeOf(proto);\n }\n if (!proto && target[name]) {\n // somehow we did not find it, but we can see it. This happens on IE for Window properties.\n proto = target;\n }\n const delegateName = zoneSymbol(name);\n let delegate = null;\n if (proto && (!(delegate = proto[delegateName]) || !proto.hasOwnProperty(delegateName))) {\n delegate = proto[delegateName] = proto[name];\n // check whether proto[name] is writable\n // some property is readonly in safari, such as HtmlCanvasElement.prototype.toBlob\n const desc = proto && ObjectGetOwnPropertyDescriptor(proto, name);\n if (isPropertyWritable(desc)) {\n const patchDelegate = patchFn(delegate, delegateName, name);\n proto[name] = function () {\n return patchDelegate(this, arguments);\n };\n attachOriginToPatched(proto[name], delegate);\n }\n }\n return delegate;\n}\n// TODO: @JiaLiPassion, support cancel task later if necessary\nfunction patchMacroTask(obj, funcName, metaCreator) {\n let setNative = null;\n function scheduleTask(task) {\n const data = task.data;\n data.args[data.cbIdx] = function () {\n task.invoke.apply(this, arguments);\n };\n setNative.apply(data.target, data.args);\n return task;\n }\n setNative = patchMethod(obj, funcName, (delegate) => function (self, args) {\n const meta = metaCreator(self, args);\n if (meta.cbIdx >= 0 && typeof args[meta.cbIdx] === 'function') {\n return scheduleMacroTaskWithCurrentZone(meta.name, args[meta.cbIdx], meta, scheduleTask);\n }\n else {\n // cause an error by calling it directly.\n return delegate.apply(self, args);\n }\n });\n}\nfunction attachOriginToPatched(patched, original) {\n patched[zoneSymbol('OriginalDelegate')] = original;\n}\nlet isDetectedIEOrEdge = false;\nlet ieOrEdge = false;\nfunction isIE() {\n try {\n const ua = internalWindow.navigator.userAgent;\n if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1) {\n return true;\n }\n }\n catch (error) { }\n return false;\n}\nfunction isIEOrEdge() {\n if (isDetectedIEOrEdge) {\n return ieOrEdge;\n }\n isDetectedIEOrEdge = true;\n try {\n const ua = internalWindow.navigator.userAgent;\n if (ua.indexOf('MSIE ') !== -1 || ua.indexOf('Trident/') !== -1 || ua.indexOf('Edge/') !== -1) {\n ieOrEdge = true;\n }\n }\n catch (error) { }\n return ieOrEdge;\n}\n\n/**\n * @fileoverview\n * @suppress {missingRequire}\n */\nlet passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n const options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n },\n });\n // Note: We pass the `options` object as the event handler too. This is not compatible with the\n // signature of `addEventListener` or `removeEventListener` but enables us to remove the handler\n // without an actual handler.\n window.addEventListener('test', options, options);\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\n// an identifier to tell ZoneTask do not create a new invoke closure\nconst OPTIMIZED_ZONE_EVENT_TASK_DATA = {\n useG: true,\n};\nconst zoneSymbolEventNames = {};\nconst globalSources = {};\nconst EVENT_NAME_SYMBOL_REGX = new RegExp('^' + ZONE_SYMBOL_PREFIX + '(\\\\w+)(true|false)$');\nconst IMMEDIATE_PROPAGATION_SYMBOL = zoneSymbol('propagationStopped');\nfunction prepareEventNames(eventName, eventNameToString) {\n const falseEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + FALSE_STR;\n const trueEventName = (eventNameToString ? eventNameToString(eventName) : eventName) + TRUE_STR;\n const symbol = ZONE_SYMBOL_PREFIX + falseEventName;\n const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;\n zoneSymbolEventNames[eventName] = {};\n zoneSymbolEventNames[eventName][FALSE_STR] = symbol;\n zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;\n}\nfunction patchEventTarget(_global, api, apis, patchOptions) {\n const ADD_EVENT_LISTENER = (patchOptions && patchOptions.add) || ADD_EVENT_LISTENER_STR;\n const REMOVE_EVENT_LISTENER = (patchOptions && patchOptions.rm) || REMOVE_EVENT_LISTENER_STR;\n const LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.listeners) || 'eventListeners';\n const REMOVE_ALL_LISTENERS_EVENT_LISTENER = (patchOptions && patchOptions.rmAll) || 'removeAllListeners';\n const zoneSymbolAddEventListener = zoneSymbol(ADD_EVENT_LISTENER);\n const ADD_EVENT_LISTENER_SOURCE = '.' + ADD_EVENT_LISTENER + ':';\n const PREPEND_EVENT_LISTENER = 'prependListener';\n const PREPEND_EVENT_LISTENER_SOURCE = '.' + PREPEND_EVENT_LISTENER + ':';\n const invokeTask = function (task, target, event) {\n // for better performance, check isRemoved which is set\n // by removeEventListener\n if (task.isRemoved) {\n return;\n }\n const delegate = task.callback;\n if (typeof delegate === 'object' && delegate.handleEvent) {\n // create the bind version of handleEvent when invoke\n task.callback = (event) => delegate.handleEvent(event);\n task.originalDelegate = delegate;\n }\n // invoke static task.invoke\n // need to try/catch error here, otherwise, the error in one event listener\n // will break the executions of the other event listeners. Also error will\n // not remove the event listener when `once` options is true.\n let error;\n try {\n task.invoke(task, target, [event]);\n }\n catch (err) {\n error = err;\n }\n const options = task.options;\n if (options && typeof options === 'object' && options.once) {\n // if options.once is true, after invoke once remove listener here\n // only browser need to do this, nodejs eventEmitter will cal removeListener\n // inside EventEmitter.once\n const delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n target[REMOVE_EVENT_LISTENER].call(target, event.type, delegate, options);\n }\n return error;\n };\n function globalCallback(context, event, isCapture) {\n // https://github.com/angular/zone.js/issues/911, in IE, sometimes\n // event will be undefined, so we need to use window.event\n event = event || _global.event;\n if (!event) {\n return;\n }\n // event.target is needed for Samsung TV and SourceBuffer\n // || global is needed https://github.com/angular/zone.js/issues/190\n const target = context || event.target || _global;\n const tasks = target[zoneSymbolEventNames[event.type][isCapture ? TRUE_STR : FALSE_STR]];\n if (tasks) {\n const errors = [];\n // invoke all tasks which attached to current target with given event.type and capture = false\n // for performance concern, if task.length === 1, just invoke\n if (tasks.length === 1) {\n const err = invokeTask(tasks[0], target, event);\n err && errors.push(err);\n }\n else {\n // https://github.com/angular/zone.js/issues/836\n // copy the tasks array before invoke, to avoid\n // the callback will remove itself or other listener\n const copyTasks = tasks.slice();\n for (let i = 0; i < copyTasks.length; i++) {\n if (event && event[IMMEDIATE_PROPAGATION_SYMBOL] === true) {\n break;\n }\n const err = invokeTask(copyTasks[i], target, event);\n err && errors.push(err);\n }\n }\n // Since there is only one error, we don't need to schedule microTask\n // to throw the error.\n if (errors.length === 1) {\n throw errors[0];\n }\n else {\n for (let i = 0; i < errors.length; i++) {\n const err = errors[i];\n api.nativeScheduleMicroTask(() => {\n throw err;\n });\n }\n }\n }\n }\n // global shared zoneAwareCallback to handle all event callback with capture = false\n const globalZoneAwareCallback = function (event) {\n return globalCallback(this, event, false);\n };\n // global shared zoneAwareCallback to handle all event callback with capture = true\n const globalZoneAwareCaptureCallback = function (event) {\n return globalCallback(this, event, true);\n };\n function patchEventTargetMethods(obj, patchOptions) {\n if (!obj) {\n return false;\n }\n let useGlobalCallback = true;\n if (patchOptions && patchOptions.useG !== undefined) {\n useGlobalCallback = patchOptions.useG;\n }\n const validateHandler = patchOptions && patchOptions.vh;\n let checkDuplicate = true;\n if (patchOptions && patchOptions.chkDup !== undefined) {\n checkDuplicate = patchOptions.chkDup;\n }\n let returnTarget = false;\n if (patchOptions && patchOptions.rt !== undefined) {\n returnTarget = patchOptions.rt;\n }\n let proto = obj;\n while (proto && !proto.hasOwnProperty(ADD_EVENT_LISTENER)) {\n proto = ObjectGetPrototypeOf(proto);\n }\n if (!proto && obj[ADD_EVENT_LISTENER]) {\n // somehow we did not find it, but we can see it. This happens on IE for Window properties.\n proto = obj;\n }\n if (!proto) {\n return false;\n }\n if (proto[zoneSymbolAddEventListener]) {\n return false;\n }\n const eventNameToString = patchOptions && patchOptions.eventNameToString;\n // a shared global taskData to pass data for scheduleEventTask\n // so we do not need to create a new object just for pass some data\n const taskData = {};\n const nativeAddEventListener = (proto[zoneSymbolAddEventListener] = proto[ADD_EVENT_LISTENER]);\n const nativeRemoveEventListener = (proto[zoneSymbol(REMOVE_EVENT_LISTENER)] =\n proto[REMOVE_EVENT_LISTENER]);\n const nativeListeners = (proto[zoneSymbol(LISTENERS_EVENT_LISTENER)] =\n proto[LISTENERS_EVENT_LISTENER]);\n const nativeRemoveAllListeners = (proto[zoneSymbol(REMOVE_ALL_LISTENERS_EVENT_LISTENER)] =\n proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER]);\n let nativePrependEventListener;\n if (patchOptions && patchOptions.prepend) {\n nativePrependEventListener = proto[zoneSymbol(patchOptions.prepend)] =\n proto[patchOptions.prepend];\n }\n /**\n * This util function will build an option object with passive option\n * to handle all possible input from the user.\n */\n function buildEventListenerOptions(options, passive) {\n if (!passiveSupported && typeof options === 'object' && options) {\n // doesn't support passive but user want to pass an object as options.\n // this will not work on some old browser, so we just pass a boolean\n // as useCapture parameter\n return !!options.capture;\n }\n if (!passiveSupported || !passive) {\n return options;\n }\n if (typeof options === 'boolean') {\n return { capture: options, passive: true };\n }\n if (!options) {\n return { passive: true };\n }\n if (typeof options === 'object' && options.passive !== false) {\n return { ...options, passive: true };\n }\n return options;\n }\n const customScheduleGlobal = function (task) {\n // if there is already a task for the eventName + capture,\n // just return, because we use the shared globalZoneAwareCallback here.\n if (taskData.isExisting) {\n return;\n }\n return nativeAddEventListener.call(taskData.target, taskData.eventName, taskData.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, taskData.options);\n };\n const customCancelGlobal = function (task) {\n // if task is not marked as isRemoved, this call is directly\n // from Zone.prototype.cancelTask, we should remove the task\n // from tasksList of target first\n if (!task.isRemoved) {\n const symbolEventNames = zoneSymbolEventNames[task.eventName];\n let symbolEventName;\n if (symbolEventNames) {\n symbolEventName = symbolEventNames[task.capture ? TRUE_STR : FALSE_STR];\n }\n const existingTasks = symbolEventName && task.target[symbolEventName];\n if (existingTasks) {\n for (let i = 0; i < existingTasks.length; i++) {\n const existingTask = existingTasks[i];\n if (existingTask === task) {\n existingTasks.splice(i, 1);\n // set isRemoved to data for faster invokeTask check\n task.isRemoved = true;\n if (existingTasks.length === 0) {\n // all tasks for the eventName + capture have gone,\n // remove globalZoneAwareCallback and remove the task cache from target\n task.allRemoved = true;\n task.target[symbolEventName] = null;\n }\n break;\n }\n }\n }\n }\n // if all tasks for the eventName + capture have gone,\n // we will really remove the global event callback,\n // if not, return\n if (!task.allRemoved) {\n return;\n }\n return nativeRemoveEventListener.call(task.target, task.eventName, task.capture ? globalZoneAwareCaptureCallback : globalZoneAwareCallback, task.options);\n };\n const customScheduleNonGlobal = function (task) {\n return nativeAddEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);\n };\n const customSchedulePrepend = function (task) {\n return nativePrependEventListener.call(taskData.target, taskData.eventName, task.invoke, taskData.options);\n };\n const customCancelNonGlobal = function (task) {\n return nativeRemoveEventListener.call(task.target, task.eventName, task.invoke, task.options);\n };\n const customSchedule = useGlobalCallback ? customScheduleGlobal : customScheduleNonGlobal;\n const customCancel = useGlobalCallback ? customCancelGlobal : customCancelNonGlobal;\n const compareTaskCallbackVsDelegate = function (task, delegate) {\n const typeOfDelegate = typeof delegate;\n return ((typeOfDelegate === 'function' && task.callback === delegate) ||\n (typeOfDelegate === 'object' && task.originalDelegate === delegate));\n };\n const compare = patchOptions && patchOptions.diff ? patchOptions.diff : compareTaskCallbackVsDelegate;\n const unpatchedEvents = Zone[zoneSymbol('UNPATCHED_EVENTS')];\n const passiveEvents = _global[zoneSymbol('PASSIVE_EVENTS')];\n const makeAddListener = function (nativeListener, addSource, customScheduleFn, customCancelFn, returnTarget = false, prepend = false) {\n return function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n let delegate = arguments[1];\n if (!delegate) {\n return nativeListener.apply(this, arguments);\n }\n if (isNode && eventName === 'uncaughtException') {\n // don't patch uncaughtException of nodejs to prevent endless loop\n return nativeListener.apply(this, arguments);\n }\n // don't create the bind delegate function for handleEvent\n // case here to improve addEventListener performance\n // we will create the bind delegate when invoke\n let isHandleEvent = false;\n if (typeof delegate !== 'function') {\n if (!delegate.handleEvent) {\n return nativeListener.apply(this, arguments);\n }\n isHandleEvent = true;\n }\n if (validateHandler && !validateHandler(nativeListener, delegate, target, arguments)) {\n return;\n }\n const passive = passiveSupported && !!passiveEvents && passiveEvents.indexOf(eventName) !== -1;\n const options = buildEventListenerOptions(arguments[2], passive);\n const signal = options &&\n typeof options === 'object' &&\n options.signal &&\n typeof options.signal === 'object'\n ? options.signal\n : undefined;\n if (signal?.aborted) {\n // the signal is an aborted one, just return without attaching the event listener.\n return;\n }\n if (unpatchedEvents) {\n // check unpatched list\n for (let i = 0; i < unpatchedEvents.length; i++) {\n if (eventName === unpatchedEvents[i]) {\n if (passive) {\n return nativeListener.call(target, eventName, delegate, options);\n }\n else {\n return nativeListener.apply(this, arguments);\n }\n }\n }\n }\n const capture = !options ? false : typeof options === 'boolean' ? true : options.capture;\n const once = options && typeof options === 'object' ? options.once : false;\n const zone = Zone.current;\n let symbolEventNames = zoneSymbolEventNames[eventName];\n if (!symbolEventNames) {\n prepareEventNames(eventName, eventNameToString);\n symbolEventNames = zoneSymbolEventNames[eventName];\n }\n const symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];\n let existingTasks = target[symbolEventName];\n let isExisting = false;\n if (existingTasks) {\n // already have task registered\n isExisting = true;\n if (checkDuplicate) {\n for (let i = 0; i < existingTasks.length; i++) {\n if (compare(existingTasks[i], delegate)) {\n // same callback, same capture, same event name, just return\n return;\n }\n }\n }\n }\n else {\n existingTasks = target[symbolEventName] = [];\n }\n let source;\n const constructorName = target.constructor['name'];\n const targetSource = globalSources[constructorName];\n if (targetSource) {\n source = targetSource[eventName];\n }\n if (!source) {\n source =\n constructorName +\n addSource +\n (eventNameToString ? eventNameToString(eventName) : eventName);\n }\n // do not create a new object as task.data to pass those things\n // just use the global shared one\n taskData.options = options;\n if (once) {\n // if addEventListener with once options, we don't pass it to\n // native addEventListener, instead we keep the once setting\n // and handle ourselves.\n taskData.options.once = false;\n }\n taskData.target = target;\n taskData.capture = capture;\n taskData.eventName = eventName;\n taskData.isExisting = isExisting;\n const data = useGlobalCallback ? OPTIMIZED_ZONE_EVENT_TASK_DATA : undefined;\n // keep taskData into data to allow onScheduleEventTask to access the task information\n if (data) {\n data.taskData = taskData;\n }\n if (signal) {\n // if addEventListener with signal options, we don't pass it to\n // native addEventListener, instead we keep the signal setting\n // and handle ourselves.\n taskData.options.signal = undefined;\n }\n const task = zone.scheduleEventTask(source, delegate, data, customScheduleFn, customCancelFn);\n if (signal) {\n // after task is scheduled, we need to store the signal back to task.options\n taskData.options.signal = signal;\n nativeListener.call(signal, 'abort', () => {\n task.zone.cancelTask(task);\n }, { once: true });\n }\n // should clear taskData.target to avoid memory leak\n // issue, https://github.com/angular/angular/issues/20442\n taskData.target = null;\n // need to clear up taskData because it is a global object\n if (data) {\n data.taskData = null;\n }\n // have to save those information to task in case\n // application may call task.zone.cancelTask() directly\n if (once) {\n options.once = true;\n }\n if (!(!passiveSupported && typeof task.options === 'boolean')) {\n // if not support passive, and we pass an option object\n // to addEventListener, we should save the options to task\n task.options = options;\n }\n task.target = target;\n task.capture = capture;\n task.eventName = eventName;\n if (isHandleEvent) {\n // save original delegate for compare to check duplicate\n task.originalDelegate = delegate;\n }\n if (!prepend) {\n existingTasks.push(task);\n }\n else {\n existingTasks.unshift(task);\n }\n if (returnTarget) {\n return target;\n }\n };\n };\n proto[ADD_EVENT_LISTENER] = makeAddListener(nativeAddEventListener, ADD_EVENT_LISTENER_SOURCE, customSchedule, customCancel, returnTarget);\n if (nativePrependEventListener) {\n proto[PREPEND_EVENT_LISTENER] = makeAddListener(nativePrependEventListener, PREPEND_EVENT_LISTENER_SOURCE, customSchedulePrepend, customCancel, returnTarget, true);\n }\n proto[REMOVE_EVENT_LISTENER] = function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n const options = arguments[2];\n const capture = !options ? false : typeof options === 'boolean' ? true : options.capture;\n const delegate = arguments[1];\n if (!delegate) {\n return nativeRemoveEventListener.apply(this, arguments);\n }\n if (validateHandler &&\n !validateHandler(nativeRemoveEventListener, delegate, target, arguments)) {\n return;\n }\n const symbolEventNames = zoneSymbolEventNames[eventName];\n let symbolEventName;\n if (symbolEventNames) {\n symbolEventName = symbolEventNames[capture ? TRUE_STR : FALSE_STR];\n }\n const existingTasks = symbolEventName && target[symbolEventName];\n if (existingTasks) {\n for (let i = 0; i < existingTasks.length; i++) {\n const existingTask = existingTasks[i];\n if (compare(existingTask, delegate)) {\n existingTasks.splice(i, 1);\n // set isRemoved to data for faster invokeTask check\n existingTask.isRemoved = true;\n if (existingTasks.length === 0) {\n // all tasks for the eventName + capture have gone,\n // remove globalZoneAwareCallback and remove the task cache from target\n existingTask.allRemoved = true;\n target[symbolEventName] = null;\n // in the target, we have an event listener which is added by on_property\n // such as target.onclick = function() {}, so we need to clear this internal\n // property too if all delegates with capture=false were removed\n // https:// github.com/angular/angular/issues/31643\n // https://github.com/angular/angular/issues/54581\n if (!capture && typeof eventName === 'string') {\n const onPropertySymbol = ZONE_SYMBOL_PREFIX + 'ON_PROPERTY' + eventName;\n target[onPropertySymbol] = null;\n }\n }\n existingTask.zone.cancelTask(existingTask);\n if (returnTarget) {\n return target;\n }\n return;\n }\n }\n }\n // issue 930, didn't find the event name or callback\n // from zone kept existingTasks, the callback maybe\n // added outside of zone, we need to call native removeEventListener\n // to try to remove it.\n return nativeRemoveEventListener.apply(this, arguments);\n };\n proto[LISTENERS_EVENT_LISTENER] = function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n const listeners = [];\n const tasks = findEventTasks(target, eventNameToString ? eventNameToString(eventName) : eventName);\n for (let i = 0; i < tasks.length; i++) {\n const task = tasks[i];\n let delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n listeners.push(delegate);\n }\n return listeners;\n };\n proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER] = function () {\n const target = this || _global;\n let eventName = arguments[0];\n if (!eventName) {\n const keys = Object.keys(target);\n for (let i = 0; i < keys.length; i++) {\n const prop = keys[i];\n const match = EVENT_NAME_SYMBOL_REGX.exec(prop);\n let evtName = match && match[1];\n // in nodejs EventEmitter, removeListener event is\n // used for monitoring the removeListener call,\n // so just keep removeListener eventListener until\n // all other eventListeners are removed\n if (evtName && evtName !== 'removeListener') {\n this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, evtName);\n }\n }\n // remove removeListener listener finally\n this[REMOVE_ALL_LISTENERS_EVENT_LISTENER].call(this, 'removeListener');\n }\n else {\n if (patchOptions && patchOptions.transferEventName) {\n eventName = patchOptions.transferEventName(eventName);\n }\n const symbolEventNames = zoneSymbolEventNames[eventName];\n if (symbolEventNames) {\n const symbolEventName = symbolEventNames[FALSE_STR];\n const symbolCaptureEventName = symbolEventNames[TRUE_STR];\n const tasks = target[symbolEventName];\n const captureTasks = target[symbolCaptureEventName];\n if (tasks) {\n const removeTasks = tasks.slice();\n for (let i = 0; i < removeTasks.length; i++) {\n const task = removeTasks[i];\n let delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);\n }\n }\n if (captureTasks) {\n const removeTasks = captureTasks.slice();\n for (let i = 0; i < removeTasks.length; i++) {\n const task = removeTasks[i];\n let delegate = task.originalDelegate ? task.originalDelegate : task.callback;\n this[REMOVE_EVENT_LISTENER].call(this, eventName, delegate, task.options);\n }\n }\n }\n }\n if (returnTarget) {\n return this;\n }\n };\n // for native toString patch\n attachOriginToPatched(proto[ADD_EVENT_LISTENER], nativeAddEventListener);\n attachOriginToPatched(proto[REMOVE_EVENT_LISTENER], nativeRemoveEventListener);\n if (nativeRemoveAllListeners) {\n attachOriginToPatched(proto[REMOVE_ALL_LISTENERS_EVENT_LISTENER], nativeRemoveAllListeners);\n }\n if (nativeListeners) {\n attachOriginToPatched(proto[LISTENERS_EVENT_LISTENER], nativeListeners);\n }\n return true;\n }\n let results = [];\n for (let i = 0; i < apis.length; i++) {\n results[i] = patchEventTargetMethods(apis[i], patchOptions);\n }\n return results;\n}\nfunction findEventTasks(target, eventName) {\n if (!eventName) {\n const foundTasks = [];\n for (let prop in target) {\n const match = EVENT_NAME_SYMBOL_REGX.exec(prop);\n let evtName = match && match[1];\n if (evtName && (!eventName || evtName === eventName)) {\n const tasks = target[prop];\n if (tasks) {\n for (let i = 0; i < tasks.length; i++) {\n foundTasks.push(tasks[i]);\n }\n }\n }\n }\n return foundTasks;\n }\n let symbolEventName = zoneSymbolEventNames[eventName];\n if (!symbolEventName) {\n prepareEventNames(eventName);\n symbolEventName = zoneSymbolEventNames[eventName];\n }\n const captureFalseTasks = target[symbolEventName[FALSE_STR]];\n const captureTrueTasks = target[symbolEventName[TRUE_STR]];\n if (!captureFalseTasks) {\n return captureTrueTasks ? captureTrueTasks.slice() : [];\n }\n else {\n return captureTrueTasks\n ? captureFalseTasks.concat(captureTrueTasks)\n : captureFalseTasks.slice();\n }\n}\nfunction patchEventPrototype(global, api) {\n const Event = global['Event'];\n if (Event && Event.prototype) {\n api.patchMethod(Event.prototype, 'stopImmediatePropagation', (delegate) => function (self, args) {\n self[IMMEDIATE_PROPAGATION_SYMBOL] = true;\n // we need to call the native stopImmediatePropagation\n // in case in some hybrid application, some part of\n // application will be controlled by zone, some are not\n delegate && delegate.apply(self, args);\n });\n }\n}\n\n/**\n * @fileoverview\n * @suppress {missingRequire}\n */\nfunction patchQueueMicrotask(global, api) {\n api.patchMethod(global, 'queueMicrotask', (delegate) => {\n return function (self, args) {\n Zone.current.scheduleMicroTask('queueMicrotask', args[0]);\n };\n });\n}\n\n/**\n * @fileoverview\n * @suppress {missingRequire}\n */\nconst taskSymbol = zoneSymbol('zoneTask');\nfunction patchTimer(window, setName, cancelName, nameSuffix) {\n let setNative = null;\n let clearNative = null;\n setName += nameSuffix;\n cancelName += nameSuffix;\n const tasksByHandleId = {};\n function scheduleTask(task) {\n const data = task.data;\n data.args[0] = function () {\n return task.invoke.apply(this, arguments);\n };\n data.handleId = setNative.apply(window, data.args);\n return task;\n }\n function clearTask(task) {\n return clearNative.call(window, task.data.handleId);\n }\n setNative = patchMethod(window, setName, (delegate) => function (self, args) {\n if (typeof args[0] === 'function') {\n const options = {\n isPeriodic: nameSuffix === 'Interval',\n delay: nameSuffix === 'Timeout' || nameSuffix === 'Interval' ? args[1] || 0 : undefined,\n args: args,\n };\n const callback = args[0];\n args[0] = function timer() {\n try {\n return callback.apply(this, arguments);\n }\n finally {\n // issue-934, task will be cancelled\n // even it is a periodic task such as\n // setInterval\n // https://github.com/angular/angular/issues/40387\n // Cleanup tasksByHandleId should be handled before scheduleTask\n // Since some zoneSpec may intercept and doesn't trigger\n // scheduleFn(scheduleTask) provided here.\n if (!options.isPeriodic) {\n if (typeof options.handleId === 'number') {\n // in non-nodejs env, we remove timerId\n // from local cache\n delete tasksByHandleId[options.handleId];\n }\n else if (options.handleId) {\n // Node returns complex objects as handleIds\n // we remove task reference from timer object\n options.handleId[taskSymbol] = null;\n }\n }\n }\n };\n const task = scheduleMacroTaskWithCurrentZone(setName, args[0], options, scheduleTask, clearTask);\n if (!task) {\n return task;\n }\n // Node.js must additionally support the ref and unref functions.\n const handle = task.data.handleId;\n if (typeof handle === 'number') {\n // for non nodejs env, we save handleId: task\n // mapping in local cache for clearTimeout\n tasksByHandleId[handle] = task;\n }\n else if (handle) {\n // for nodejs env, we save task\n // reference in timerId Object for clearTimeout\n handle[taskSymbol] = task;\n }\n // check whether handle is null, because some polyfill or browser\n // may return undefined from setTimeout/setInterval/setImmediate/requestAnimationFrame\n if (handle &&\n handle.ref &&\n handle.unref &&\n typeof handle.ref === 'function' &&\n typeof handle.unref === 'function') {\n task.ref = handle.ref.bind(handle);\n task.unref = handle.unref.bind(handle);\n }\n if (typeof handle === 'number' || handle) {\n return handle;\n }\n return task;\n }\n else {\n // cause an error by calling it directly.\n return delegate.apply(window, args);\n }\n });\n clearNative = patchMethod(window, cancelName, (delegate) => function (self, args) {\n const id = args[0];\n let task;\n if (typeof id === 'number') {\n // non nodejs env.\n task = tasksByHandleId[id];\n }\n else {\n // nodejs env.\n task = id && id[taskSymbol];\n // other environments.\n if (!task) {\n task = id;\n }\n }\n if (task && typeof task.type === 'string') {\n if (task.state !== 'notScheduled' &&\n ((task.cancelFn && task.data.isPeriodic) || task.runCount === 0)) {\n if (typeof id === 'number') {\n delete tasksByHandleId[id];\n }\n else if (id) {\n id[taskSymbol] = null;\n }\n // Do not cancel already canceled functions\n task.zone.cancelTask(task);\n }\n }\n else {\n // cause an error by calling it directly.\n delegate.apply(window, args);\n }\n });\n}\n\nfunction patchCustomElements(_global, api) {\n const { isBrowser, isMix } = api.getGlobalObjects();\n if ((!isBrowser && !isMix) || !_global['customElements'] || !('customElements' in _global)) {\n return;\n }\n // https://html.spec.whatwg.org/multipage/custom-elements.html#concept-custom-element-definition-lifecycle-callbacks\n const callbacks = [\n 'connectedCallback',\n 'disconnectedCallback',\n 'adoptedCallback',\n 'attributeChangedCallback',\n 'formAssociatedCallback',\n 'formDisabledCallback',\n 'formResetCallback',\n 'formStateRestoreCallback',\n ];\n api.patchCallbacks(api, _global.customElements, 'customElements', 'define', callbacks);\n}\n\nfunction eventTargetPatch(_global, api) {\n if (Zone[api.symbol('patchEventTarget')]) {\n // EventTarget is already patched.\n return;\n }\n const { eventNames, zoneSymbolEventNames, TRUE_STR, FALSE_STR, ZONE_SYMBOL_PREFIX } = api.getGlobalObjects();\n // predefine all __zone_symbol__ + eventName + true/false string\n for (let i = 0; i < eventNames.length; i++) {\n const eventName = eventNames[i];\n const falseEventName = eventName + FALSE_STR;\n const trueEventName = eventName + TRUE_STR;\n const symbol = ZONE_SYMBOL_PREFIX + falseEventName;\n const symbolCapture = ZONE_SYMBOL_PREFIX + trueEventName;\n zoneSymbolEventNames[eventName] = {};\n zoneSymbolEventNames[eventName][FALSE_STR] = symbol;\n zoneSymbolEventNames[eventName][TRUE_STR] = symbolCapture;\n }\n const EVENT_TARGET = _global['EventTarget'];\n if (!EVENT_TARGET || !EVENT_TARGET.prototype) {\n return;\n }\n api.patchEventTarget(_global, api, [EVENT_TARGET && EVENT_TARGET.prototype]);\n return true;\n}\nfunction patchEvent(global, api) {\n api.patchEventPrototype(global, api);\n}\n\n/**\n * @fileoverview\n * @suppress {globalThis}\n */\nfunction filterProperties(target, onProperties, ignoreProperties) {\n if (!ignoreProperties || ignoreProperties.length === 0) {\n return onProperties;\n }\n const tip = ignoreProperties.filter((ip) => ip.target === target);\n if (!tip || tip.length === 0) {\n return onProperties;\n }\n const targetIgnoreProperties = tip[0].ignoreProperties;\n return onProperties.filter((op) => targetIgnoreProperties.indexOf(op) === -1);\n}\nfunction patchFilteredProperties(target, onProperties, ignoreProperties, prototype) {\n // check whether target is available, sometimes target will be undefined\n // because different browser or some 3rd party plugin.\n if (!target) {\n return;\n }\n const filteredProperties = filterProperties(target, onProperties, ignoreProperties);\n patchOnProperties(target, filteredProperties, prototype);\n}\n/**\n * Get all event name properties which the event name startsWith `on`\n * from the target object itself, inherited properties are not considered.\n */\nfunction getOnEventNames(target) {\n return Object.getOwnPropertyNames(target)\n .filter((name) => name.startsWith('on') && name.length > 2)\n .map((name) => name.substring(2));\n}\nfunction propertyDescriptorPatch(api, _global) {\n if (isNode && !isMix) {\n return;\n }\n if (Zone[api.symbol('patchEvents')]) {\n // events are already been patched by legacy patch.\n return;\n }\n const ignoreProperties = _global['__Zone_ignore_on_properties'];\n // for browsers that we can patch the descriptor: Chrome & Firefox\n let patchTargets = [];\n if (isBrowser) {\n const internalWindow = window;\n patchTargets = patchTargets.concat([\n 'Document',\n 'SVGElement',\n 'Element',\n 'HTMLElement',\n 'HTMLBodyElement',\n 'HTMLMediaElement',\n 'HTMLFrameSetElement',\n 'HTMLFrameElement',\n 'HTMLIFrameElement',\n 'HTMLMarqueeElement',\n 'Worker',\n ]);\n const ignoreErrorProperties = isIE()\n ? [{ target: internalWindow, ignoreProperties: ['error'] }]\n : [];\n // in IE/Edge, onProp not exist in window object, but in WindowPrototype\n // so we need to pass WindowPrototype to check onProp exist or not\n patchFilteredProperties(internalWindow, getOnEventNames(internalWindow), ignoreProperties ? ignoreProperties.concat(ignoreErrorProperties) : ignoreProperties, ObjectGetPrototypeOf(internalWindow));\n }\n patchTargets = patchTargets.concat([\n 'XMLHttpRequest',\n 'XMLHttpRequestEventTarget',\n 'IDBIndex',\n 'IDBRequest',\n 'IDBOpenDBRequest',\n 'IDBDatabase',\n 'IDBTransaction',\n 'IDBCursor',\n 'WebSocket',\n ]);\n for (let i = 0; i < patchTargets.length; i++) {\n const target = _global[patchTargets[i]];\n target &&\n target.prototype &&\n patchFilteredProperties(target.prototype, getOnEventNames(target.prototype), ignoreProperties);\n }\n}\n\n/**\n * @fileoverview\n * @suppress {missingRequire}\n */\nfunction patchBrowser(Zone) {\n Zone.__load_patch('legacy', (global) => {\n const legacyPatch = global[Zone.__symbol__('legacyPatch')];\n if (legacyPatch) {\n legacyPatch();\n }\n });\n Zone.__load_patch('timers', (global) => {\n const set = 'set';\n const clear = 'clear';\n patchTimer(global, set, clear, 'Timeout');\n patchTimer(global, set, clear, 'Interval');\n patchTimer(global, set, clear, 'Immediate');\n });\n Zone.__load_patch('requestAnimationFrame', (global) => {\n patchTimer(global, 'request', 'cancel', 'AnimationFrame');\n patchTimer(global, 'mozRequest', 'mozCancel', 'AnimationFrame');\n patchTimer(global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');\n });\n Zone.__load_patch('blocking', (global, Zone) => {\n const blockingMethods = ['alert', 'prompt', 'confirm'];\n for (let i = 0; i < blockingMethods.length; i++) {\n const name = blockingMethods[i];\n patchMethod(global, name, (delegate, symbol, name) => {\n return function (s, args) {\n return Zone.current.run(delegate, global, args, name);\n };\n });\n }\n });\n Zone.__load_patch('EventTarget', (global, Zone, api) => {\n patchEvent(global, api);\n eventTargetPatch(global, api);\n // patch XMLHttpRequestEventTarget's addEventListener/removeEventListener\n const XMLHttpRequestEventTarget = global['XMLHttpRequestEventTarget'];\n if (XMLHttpRequestEventTarget && XMLHttpRequestEventTarget.prototype) {\n api.patchEventTarget(global, api, [XMLHttpRequestEventTarget.prototype]);\n }\n });\n Zone.__load_patch('MutationObserver', (global, Zone, api) => {\n patchClass('MutationObserver');\n patchClass('WebKitMutationObserver');\n });\n Zone.__load_patch('IntersectionObserver', (global, Zone, api) => {\n patchClass('IntersectionObserver');\n });\n Zone.__load_patch('FileReader', (global, Zone, api) => {\n patchClass('FileReader');\n });\n Zone.__load_patch('on_property', (global, Zone, api) => {\n propertyDescriptorPatch(api, global);\n });\n Zone.__load_patch('customElements', (global, Zone, api) => {\n patchCustomElements(global, api);\n });\n Zone.__load_patch('XHR', (global, Zone) => {\n // Treat XMLHttpRequest as a macrotask.\n patchXHR(global);\n const XHR_TASK = zoneSymbol('xhrTask');\n const XHR_SYNC = zoneSymbol('xhrSync');\n const XHR_LISTENER = zoneSymbol('xhrListener');\n const XHR_SCHEDULED = zoneSymbol('xhrScheduled');\n const XHR_URL = zoneSymbol('xhrURL');\n const XHR_ERROR_BEFORE_SCHEDULED = zoneSymbol('xhrErrorBeforeScheduled');\n function patchXHR(window) {\n const XMLHttpRequest = window['XMLHttpRequest'];\n if (!XMLHttpRequest) {\n // XMLHttpRequest is not available in service worker\n return;\n }\n const XMLHttpRequestPrototype = XMLHttpRequest.prototype;\n function findPendingTask(target) {\n return target[XHR_TASK];\n }\n let oriAddListener = XMLHttpRequestPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n let oriRemoveListener = XMLHttpRequestPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n if (!oriAddListener) {\n const XMLHttpRequestEventTarget = window['XMLHttpRequestEventTarget'];\n if (XMLHttpRequestEventTarget) {\n const XMLHttpRequestEventTargetPrototype = XMLHttpRequestEventTarget.prototype;\n oriAddListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n oriRemoveListener = XMLHttpRequestEventTargetPrototype[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n }\n }\n const READY_STATE_CHANGE = 'readystatechange';\n const SCHEDULED = 'scheduled';\n function scheduleTask(task) {\n const data = task.data;\n const target = data.target;\n target[XHR_SCHEDULED] = false;\n target[XHR_ERROR_BEFORE_SCHEDULED] = false;\n // remove existing event listener\n const listener = target[XHR_LISTENER];\n if (!oriAddListener) {\n oriAddListener = target[ZONE_SYMBOL_ADD_EVENT_LISTENER];\n oriRemoveListener = target[ZONE_SYMBOL_REMOVE_EVENT_LISTENER];\n }\n if (listener) {\n oriRemoveListener.call(target, READY_STATE_CHANGE, listener);\n }\n const newListener = (target[XHR_LISTENER] = () => {\n if (target.readyState === target.DONE) {\n // sometimes on some browsers XMLHttpRequest will fire onreadystatechange with\n // readyState=4 multiple times, so we need to check task state here\n if (!data.aborted && target[XHR_SCHEDULED] && task.state === SCHEDULED) {\n // check whether the xhr has registered onload listener\n // if that is the case, the task should invoke after all\n // onload listeners finish.\n // Also if the request failed without response (status = 0), the load event handler\n // will not be triggered, in that case, we should also invoke the placeholder callback\n // to close the XMLHttpRequest::send macroTask.\n // https://github.com/angular/angular/issues/38795\n const loadTasks = target[Zone.__symbol__('loadfalse')];\n if (target.status !== 0 && loadTasks && loadTasks.length > 0) {\n const oriInvoke = task.invoke;\n task.invoke = function () {\n // need to load the tasks again, because in other\n // load listener, they may remove themselves\n const loadTasks = target[Zone.__symbol__('loadfalse')];\n for (let i = 0; i < loadTasks.length; i++) {\n if (loadTasks[i] === task) {\n loadTasks.splice(i, 1);\n }\n }\n if (!data.aborted && task.state === SCHEDULED) {\n oriInvoke.call(task);\n }\n };\n loadTasks.push(task);\n }\n else {\n task.invoke();\n }\n }\n else if (!data.aborted && target[XHR_SCHEDULED] === false) {\n // error occurs when xhr.send()\n target[XHR_ERROR_BEFORE_SCHEDULED] = true;\n }\n }\n });\n oriAddListener.call(target, READY_STATE_CHANGE, newListener);\n const storedTask = target[XHR_TASK];\n if (!storedTask) {\n target[XHR_TASK] = task;\n }\n sendNative.apply(target, data.args);\n target[XHR_SCHEDULED] = true;\n return task;\n }\n function placeholderCallback() { }\n function clearTask(task) {\n const data = task.data;\n // Note - ideally, we would call data.target.removeEventListener here, but it's too late\n // to prevent it from firing. So instead, we store info for the event listener.\n data.aborted = true;\n return abortNative.apply(data.target, data.args);\n }\n const openNative = patchMethod(XMLHttpRequestPrototype, 'open', () => function (self, args) {\n self[XHR_SYNC] = args[2] == false;\n self[XHR_URL] = args[1];\n return openNative.apply(self, args);\n });\n const XMLHTTPREQUEST_SOURCE = 'XMLHttpRequest.send';\n const fetchTaskAborting = zoneSymbol('fetchTaskAborting');\n const fetchTaskScheduling = zoneSymbol('fetchTaskScheduling');\n const sendNative = patchMethod(XMLHttpRequestPrototype, 'send', () => function (self, args) {\n if (Zone.current[fetchTaskScheduling] === true) {\n // a fetch is scheduling, so we are using xhr to polyfill fetch\n // and because we already schedule macroTask for fetch, we should\n // not schedule a macroTask for xhr again\n return sendNative.apply(self, args);\n }\n if (self[XHR_SYNC]) {\n // if the XHR is sync there is no task to schedule, just execute the code.\n return sendNative.apply(self, args);\n }\n else {\n const options = {\n target: self,\n url: self[XHR_URL],\n isPeriodic: false,\n args: args,\n aborted: false,\n };\n const task = scheduleMacroTaskWithCurrentZone(XMLHTTPREQUEST_SOURCE, placeholderCallback, options, scheduleTask, clearTask);\n if (self &&\n self[XHR_ERROR_BEFORE_SCHEDULED] === true &&\n !options.aborted &&\n task.state === SCHEDULED) {\n // xhr request throw error when send\n // we should invoke task instead of leaving a scheduled\n // pending macroTask\n task.invoke();\n }\n }\n });\n const abortNative = patchMethod(XMLHttpRequestPrototype, 'abort', () => function (self, args) {\n const task = findPendingTask(self);\n if (task && typeof task.type == 'string') {\n // If the XHR has already completed, do nothing.\n // If the XHR has already been aborted, do nothing.\n // Fix #569, call abort multiple times before done will cause\n // macroTask task count be negative number\n if (task.cancelFn == null || (task.data && task.data.aborted)) {\n return;\n }\n task.zone.cancelTask(task);\n }\n else if (Zone.current[fetchTaskAborting] === true) {\n // the abort is called from fetch polyfill, we need to call native abort of XHR.\n return abortNative.apply(self, args);\n }\n // Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no\n // task\n // to cancel. Do nothing.\n });\n }\n });\n Zone.__load_patch('geolocation', (global) => {\n /// GEO_LOCATION\n if (global['navigator'] && global['navigator'].geolocation) {\n patchPrototype(global['navigator'].geolocation, ['getCurrentPosition', 'watchPosition']);\n }\n });\n Zone.__load_patch('PromiseRejectionEvent', (global, Zone) => {\n // handle unhandled promise rejection\n function findPromiseRejectionHandler(evtName) {\n return function (e) {\n const eventTasks = findEventTasks(global, evtName);\n eventTasks.forEach((eventTask) => {\n // windows has added unhandledrejection event listener\n // trigger the event listener\n const PromiseRejectionEvent = global['PromiseRejectionEvent'];\n if (PromiseRejectionEvent) {\n const evt = new PromiseRejectionEvent(evtName, {\n promise: e.promise,\n reason: e.rejection,\n });\n eventTask.invoke(evt);\n }\n });\n };\n }\n if (global['PromiseRejectionEvent']) {\n Zone[zoneSymbol('unhandledPromiseRejectionHandler')] =\n findPromiseRejectionHandler('unhandledrejection');\n Zone[zoneSymbol('rejectionHandledHandler')] =\n findPromiseRejectionHandler('rejectionhandled');\n }\n });\n Zone.__load_patch('queueMicrotask', (global, Zone, api) => {\n patchQueueMicrotask(global, api);\n });\n}\n\nfunction patchPromise(Zone) {\n Zone.__load_patch('ZoneAwarePromise', (global, Zone, api) => {\n const ObjectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n const ObjectDefineProperty = Object.defineProperty;\n function readableObjectToString(obj) {\n if (obj && obj.toString === Object.prototype.toString) {\n const className = obj.constructor && obj.constructor.name;\n return (className ? className : '') + ': ' + JSON.stringify(obj);\n }\n return obj ? obj.toString() : Object.prototype.toString.call(obj);\n }\n const __symbol__ = api.symbol;\n const _uncaughtPromiseErrors = [];\n const isDisableWrappingUncaughtPromiseRejection = global[__symbol__('DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION')] !== false;\n const symbolPromise = __symbol__('Promise');\n const symbolThen = __symbol__('then');\n const creationTrace = '__creationTrace__';\n api.onUnhandledError = (e) => {\n if (api.showUncaughtError()) {\n const rejection = e && e.rejection;\n if (rejection) {\n console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection, rejection instanceof Error ? rejection.stack : undefined);\n }\n else {\n console.error(e);\n }\n }\n };\n api.microtaskDrainDone = () => {\n while (_uncaughtPromiseErrors.length) {\n const uncaughtPromiseError = _uncaughtPromiseErrors.shift();\n try {\n uncaughtPromiseError.zone.runGuarded(() => {\n if (uncaughtPromiseError.throwOriginal) {\n throw uncaughtPromiseError.rejection;\n }\n throw uncaughtPromiseError;\n });\n }\n catch (error) {\n handleUnhandledRejection(error);\n }\n }\n };\n const UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL = __symbol__('unhandledPromiseRejectionHandler');\n function handleUnhandledRejection(e) {\n api.onUnhandledError(e);\n try {\n const handler = Zone[UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL];\n if (typeof handler === 'function') {\n handler.call(this, e);\n }\n }\n catch (err) { }\n }\n function isThenable(value) {\n return value && value.then;\n }\n function forwardResolution(value) {\n return value;\n }\n function forwardRejection(rejection) {\n return ZoneAwarePromise.reject(rejection);\n }\n const symbolState = __symbol__('state');\n const symbolValue = __symbol__('value');\n const symbolFinally = __symbol__('finally');\n const symbolParentPromiseValue = __symbol__('parentPromiseValue');\n const symbolParentPromiseState = __symbol__('parentPromiseState');\n const source = 'Promise.then';\n const UNRESOLVED = null;\n const RESOLVED = true;\n const REJECTED = false;\n const REJECTED_NO_CATCH = 0;\n function makeResolver(promise, state) {\n return (v) => {\n try {\n resolvePromise(promise, state, v);\n }\n catch (err) {\n resolvePromise(promise, false, err);\n }\n // Do not return value or you will break the Promise spec.\n };\n }\n const once = function () {\n let wasCalled = false;\n return function wrapper(wrappedFunction) {\n return function () {\n if (wasCalled) {\n return;\n }\n wasCalled = true;\n wrappedFunction.apply(null, arguments);\n };\n };\n };\n const TYPE_ERROR = 'Promise resolved with itself';\n const CURRENT_TASK_TRACE_SYMBOL = __symbol__('currentTaskTrace');\n // Promise Resolution\n function resolvePromise(promise, state, value) {\n const onceWrapper = once();\n if (promise === value) {\n throw new TypeError(TYPE_ERROR);\n }\n if (promise[symbolState] === UNRESOLVED) {\n // should only get value.then once based on promise spec.\n let then = null;\n try {\n if (typeof value === 'object' || typeof value === 'function') {\n then = value && value.then;\n }\n }\n catch (err) {\n onceWrapper(() => {\n resolvePromise(promise, false, err);\n })();\n return promise;\n }\n // if (value instanceof ZoneAwarePromise) {\n if (state !== REJECTED &&\n value instanceof ZoneAwarePromise &&\n value.hasOwnProperty(symbolState) &&\n value.hasOwnProperty(symbolValue) &&\n value[symbolState] !== UNRESOLVED) {\n clearRejectedNoCatch(value);\n resolvePromise(promise, value[symbolState], value[symbolValue]);\n }\n else if (state !== REJECTED && typeof then === 'function') {\n try {\n then.call(value, onceWrapper(makeResolver(promise, state)), onceWrapper(makeResolver(promise, false)));\n }\n catch (err) {\n onceWrapper(() => {\n resolvePromise(promise, false, err);\n })();\n }\n }\n else {\n promise[symbolState] = state;\n const queue = promise[symbolValue];\n promise[symbolValue] = value;\n if (promise[symbolFinally] === symbolFinally) {\n // the promise is generated by Promise.prototype.finally\n if (state === RESOLVED) {\n // the state is resolved, should ignore the value\n // and use parent promise value\n promise[symbolState] = promise[symbolParentPromiseState];\n promise[symbolValue] = promise[symbolParentPromiseValue];\n }\n }\n // record task information in value when error occurs, so we can\n // do some additional work such as render longStackTrace\n if (state === REJECTED && value instanceof Error) {\n // check if longStackTraceZone is here\n const trace = Zone.currentTask &&\n Zone.currentTask.data &&\n Zone.currentTask.data[creationTrace];\n if (trace) {\n // only keep the long stack trace into error when in longStackTraceZone\n ObjectDefineProperty(value, CURRENT_TASK_TRACE_SYMBOL, {\n configurable: true,\n enumerable: false,\n writable: true,\n value: trace,\n });\n }\n }\n for (let i = 0; i < queue.length;) {\n scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);\n }\n if (queue.length == 0 && state == REJECTED) {\n promise[symbolState] = REJECTED_NO_CATCH;\n let uncaughtPromiseError = value;\n try {\n // Here we throws a new Error to print more readable error log\n // and if the value is not an error, zone.js builds an `Error`\n // Object here to attach the stack information.\n throw new Error('Uncaught (in promise): ' +\n readableObjectToString(value) +\n (value && value.stack ? '\\n' + value.stack : ''));\n }\n catch (err) {\n uncaughtPromiseError = err;\n }\n if (isDisableWrappingUncaughtPromiseRejection) {\n // If disable wrapping uncaught promise reject\n // use the value instead of wrapping it.\n uncaughtPromiseError.throwOriginal = true;\n }\n uncaughtPromiseError.rejection = value;\n uncaughtPromiseError.promise = promise;\n uncaughtPromiseError.zone = Zone.current;\n uncaughtPromiseError.task = Zone.currentTask;\n _uncaughtPromiseErrors.push(uncaughtPromiseError);\n api.scheduleMicroTask(); // to make sure that it is running\n }\n }\n }\n // Resolving an already resolved promise is a noop.\n return promise;\n }\n const REJECTION_HANDLED_HANDLER = __symbol__('rejectionHandledHandler');\n function clearRejectedNoCatch(promise) {\n if (promise[symbolState] === REJECTED_NO_CATCH) {\n // if the promise is rejected no catch status\n // and queue.length > 0, means there is a error handler\n // here to handle the rejected promise, we should trigger\n // windows.rejectionhandled eventHandler or nodejs rejectionHandled\n // eventHandler\n try {\n const handler = Zone[REJECTION_HANDLED_HANDLER];\n if (handler && typeof handler === 'function') {\n handler.call(this, { rejection: promise[symbolValue], promise: promise });\n }\n }\n catch (err) { }\n promise[symbolState] = REJECTED;\n for (let i = 0; i < _uncaughtPromiseErrors.length; i++) {\n if (promise === _uncaughtPromiseErrors[i].promise) {\n _uncaughtPromiseErrors.splice(i, 1);\n }\n }\n }\n }\n function scheduleResolveOrReject(promise, zone, chainPromise, onFulfilled, onRejected) {\n clearRejectedNoCatch(promise);\n const promiseState = promise[symbolState];\n const delegate = promiseState\n ? typeof onFulfilled === 'function'\n ? onFulfilled\n : forwardResolution\n : typeof onRejected === 'function'\n ? onRejected\n : forwardRejection;\n zone.scheduleMicroTask(source, () => {\n try {\n const parentPromiseValue = promise[symbolValue];\n const isFinallyPromise = !!chainPromise && symbolFinally === chainPromise[symbolFinally];\n if (isFinallyPromise) {\n // if the promise is generated from finally call, keep parent promise's state and value\n chainPromise[symbolParentPromiseValue] = parentPromiseValue;\n chainPromise[symbolParentPromiseState] = promiseState;\n }\n // should not pass value to finally callback\n const value = zone.run(delegate, undefined, isFinallyPromise && delegate !== forwardRejection && delegate !== forwardResolution\n ? []\n : [parentPromiseValue]);\n resolvePromise(chainPromise, true, value);\n }\n catch (error) {\n // if error occurs, should always return this error\n resolvePromise(chainPromise, false, error);\n }\n }, chainPromise);\n }\n const ZONE_AWARE_PROMISE_TO_STRING = 'function ZoneAwarePromise() { [native code] }';\n const noop = function () { };\n const AggregateError = global.AggregateError;\n class ZoneAwarePromise {\n static toString() {\n return ZONE_AWARE_PROMISE_TO_STRING;\n }\n static resolve(value) {\n if (value instanceof ZoneAwarePromise) {\n return value;\n }\n return resolvePromise(new this(null), RESOLVED, value);\n }\n static reject(error) {\n return resolvePromise(new this(null), REJECTED, error);\n }\n static withResolvers() {\n const result = {};\n result.promise = new ZoneAwarePromise((res, rej) => {\n result.resolve = res;\n result.reject = rej;\n });\n return result;\n }\n static any(values) {\n if (!values || typeof values[Symbol.iterator] !== 'function') {\n return Promise.reject(new AggregateError([], 'All promises were rejected'));\n }\n const promises = [];\n let count = 0;\n try {\n for (let v of values) {\n count++;\n promises.push(ZoneAwarePromise.resolve(v));\n }\n }\n catch (err) {\n return Promise.reject(new AggregateError([], 'All promises were rejected'));\n }\n if (count === 0) {\n return Promise.reject(new AggregateError([], 'All promises were rejected'));\n }\n let finished = false;\n const errors = [];\n return new ZoneAwarePromise((resolve, reject) => {\n for (let i = 0; i < promises.length; i++) {\n promises[i].then((v) => {\n if (finished) {\n return;\n }\n finished = true;\n resolve(v);\n }, (err) => {\n errors.push(err);\n count--;\n if (count === 0) {\n finished = true;\n reject(new AggregateError(errors, 'All promises were rejected'));\n }\n });\n }\n });\n }\n static race(values) {\n let resolve;\n let reject;\n let promise = new this((res, rej) => {\n resolve = res;\n reject = rej;\n });\n function onResolve(value) {\n resolve(value);\n }\n function onReject(error) {\n reject(error);\n }\n for (let value of values) {\n if (!isThenable(value)) {\n value = this.resolve(value);\n }\n value.then(onResolve, onReject);\n }\n return promise;\n }\n static all(values) {\n return ZoneAwarePromise.allWithCallback(values);\n }\n static allSettled(values) {\n const P = this && this.prototype instanceof ZoneAwarePromise ? this : ZoneAwarePromise;\n return P.allWithCallback(values, {\n thenCallback: (value) => ({ status: 'fulfilled', value }),\n errorCallback: (err) => ({ status: 'rejected', reason: err }),\n });\n }\n static allWithCallback(values, callback) {\n let resolve;\n let reject;\n let promise = new this((res, rej) => {\n resolve = res;\n reject = rej;\n });\n // Start at 2 to prevent prematurely resolving if .then is called immediately.\n let unresolvedCount = 2;\n let valueIndex = 0;\n const resolvedValues = [];\n for (let value of values) {\n if (!isThenable(value)) {\n value = this.resolve(value);\n }\n const curValueIndex = valueIndex;\n try {\n value.then((value) => {\n resolvedValues[curValueIndex] = callback ? callback.thenCallback(value) : value;\n unresolvedCount--;\n if (unresolvedCount === 0) {\n resolve(resolvedValues);\n }\n }, (err) => {\n if (!callback) {\n reject(err);\n }\n else {\n resolvedValues[curValueIndex] = callback.errorCallback(err);\n unresolvedCount--;\n if (unresolvedCount === 0) {\n resolve(resolvedValues);\n }\n }\n });\n }\n catch (thenErr) {\n reject(thenErr);\n }\n unresolvedCount++;\n valueIndex++;\n }\n // Make the unresolvedCount zero-based again.\n unresolvedCount -= 2;\n if (unresolvedCount === 0) {\n resolve(resolvedValues);\n }\n return promise;\n }\n constructor(executor) {\n const promise = this;\n if (!(promise instanceof ZoneAwarePromise)) {\n throw new Error('Must be an instanceof Promise.');\n }\n promise[symbolState] = UNRESOLVED;\n promise[symbolValue] = []; // queue;\n try {\n const onceWrapper = once();\n executor &&\n executor(onceWrapper(makeResolver(promise, RESOLVED)), onceWrapper(makeResolver(promise, REJECTED)));\n }\n catch (error) {\n resolvePromise(promise, false, error);\n }\n }\n get [Symbol.toStringTag]() {\n return 'Promise';\n }\n get [Symbol.species]() {\n return ZoneAwarePromise;\n }\n then(onFulfilled, onRejected) {\n // We must read `Symbol.species` safely because `this` may be anything. For instance, `this`\n // may be an object without a prototype (created through `Object.create(null)`); thus\n // `this.constructor` will be undefined. One of the use cases is SystemJS creating\n // prototype-less objects (modules) via `Object.create(null)`. The SystemJS creates an empty\n // object and copies promise properties into that object (within the `getOrCreateLoad`\n // function). The zone.js then checks if the resolved value has the `then` method and\n // invokes it with the `value` context. Otherwise, this will throw an error: `TypeError:\n // Cannot read properties of undefined (reading 'Symbol(Symbol.species)')`.\n let C = this.constructor?.[Symbol.species];\n if (!C || typeof C !== 'function') {\n C = this.constructor || ZoneAwarePromise;\n }\n const chainPromise = new C(noop);\n const zone = Zone.current;\n if (this[symbolState] == UNRESOLVED) {\n this[symbolValue].push(zone, chainPromise, onFulfilled, onRejected);\n }\n else {\n scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);\n }\n return chainPromise;\n }\n catch(onRejected) {\n return this.then(null, onRejected);\n }\n finally(onFinally) {\n // See comment on the call to `then` about why thee `Symbol.species` is safely accessed.\n let C = this.constructor?.[Symbol.species];\n if (!C || typeof C !== 'function') {\n C = ZoneAwarePromise;\n }\n const chainPromise = new C(noop);\n chainPromise[symbolFinally] = symbolFinally;\n const zone = Zone.current;\n if (this[symbolState] == UNRESOLVED) {\n this[symbolValue].push(zone, chainPromise, onFinally, onFinally);\n }\n else {\n scheduleResolveOrReject(this, zone, chainPromise, onFinally, onFinally);\n }\n return chainPromise;\n }\n }\n // Protect against aggressive optimizers dropping seemingly unused properties.\n // E.g. Closure Compiler in advanced mode.\n ZoneAwarePromise['resolve'] = ZoneAwarePromise.resolve;\n ZoneAwarePromise['reject'] = ZoneAwarePromise.reject;\n ZoneAwarePromise['race'] = ZoneAwarePromise.race;\n ZoneAwarePromise['all'] = ZoneAwarePromise.all;\n const NativePromise = (global[symbolPromise] = global['Promise']);\n global['Promise'] = ZoneAwarePromise;\n const symbolThenPatched = __symbol__('thenPatched');\n function patchThen(Ctor) {\n const proto = Ctor.prototype;\n const prop = ObjectGetOwnPropertyDescriptor(proto, 'then');\n if (prop && (prop.writable === false || !prop.configurable)) {\n // check Ctor.prototype.then propertyDescriptor is writable or not\n // in meteor env, writable is false, we should ignore such case\n return;\n }\n const originalThen = proto.then;\n // Keep a reference to the original method.\n proto[symbolThen] = originalThen;\n Ctor.prototype.then = function (onResolve, onReject) {\n const wrapped = new ZoneAwarePromise((resolve, reject) => {\n originalThen.call(this, resolve, reject);\n });\n return wrapped.then(onResolve, onReject);\n };\n Ctor[symbolThenPatched] = true;\n }\n api.patchThen = patchThen;\n function zoneify(fn) {\n return function (self, args) {\n let resultPromise = fn.apply(self, args);\n if (resultPromise instanceof ZoneAwarePromise) {\n return resultPromise;\n }\n let ctor = resultPromise.constructor;\n if (!ctor[symbolThenPatched]) {\n patchThen(ctor);\n }\n return resultPromise;\n };\n }\n if (NativePromise) {\n patchThen(NativePromise);\n patchMethod(global, 'fetch', (delegate) => zoneify(delegate));\n }\n // This is not part of public API, but it is useful for tests, so we expose it.\n Promise[Zone.__symbol__('uncaughtPromiseErrors')] = _uncaughtPromiseErrors;\n return ZoneAwarePromise;\n });\n}\n\nfunction patchToString(Zone) {\n // override Function.prototype.toString to make zone.js patched function\n // look like native function\n Zone.__load_patch('toString', (global) => {\n // patch Func.prototype.toString to let them look like native\n const originalFunctionToString = Function.prototype.toString;\n const ORIGINAL_DELEGATE_SYMBOL = zoneSymbol('OriginalDelegate');\n const PROMISE_SYMBOL = zoneSymbol('Promise');\n const ERROR_SYMBOL = zoneSymbol('Error');\n const newFunctionToString = function toString() {\n if (typeof this === 'function') {\n const originalDelegate = this[ORIGINAL_DELEGATE_SYMBOL];\n if (originalDelegate) {\n if (typeof originalDelegate === 'function') {\n return originalFunctionToString.call(originalDelegate);\n }\n else {\n return Object.prototype.toString.call(originalDelegate);\n }\n }\n if (this === Promise) {\n const nativePromise = global[PROMISE_SYMBOL];\n if (nativePromise) {\n return originalFunctionToString.call(nativePromise);\n }\n }\n if (this === Error) {\n const nativeError = global[ERROR_SYMBOL];\n if (nativeError) {\n return originalFunctionToString.call(nativeError);\n }\n }\n }\n return originalFunctionToString.call(this);\n };\n newFunctionToString[ORIGINAL_DELEGATE_SYMBOL] = originalFunctionToString;\n Function.prototype.toString = newFunctionToString;\n // patch Object.prototype.toString to let them look like native\n const originalObjectToString = Object.prototype.toString;\n const PROMISE_OBJECT_TO_STRING = '[object Promise]';\n Object.prototype.toString = function () {\n if (typeof Promise === 'function' && this instanceof Promise) {\n return PROMISE_OBJECT_TO_STRING;\n }\n return originalObjectToString.call(this);\n };\n });\n}\n\nfunction patchCallbacks(api, target, targetName, method, callbacks) {\n const symbol = Zone.__symbol__(method);\n if (target[symbol]) {\n return;\n }\n const nativeDelegate = (target[symbol] = target[method]);\n target[method] = function (name, opts, options) {\n if (opts && opts.prototype) {\n callbacks.forEach(function (callback) {\n const source = `${targetName}.${method}::` + callback;\n const prototype = opts.prototype;\n // Note: the `patchCallbacks` is used for patching the `document.registerElement` and\n // `customElements.define`. We explicitly wrap the patching code into try-catch since\n // callbacks may be already patched by other web components frameworks (e.g. LWC), and they\n // make those properties non-writable. This means that patching callback will throw an error\n // `cannot assign to read-only property`. See this code as an example:\n // https://github.com/salesforce/lwc/blob/master/packages/@lwc/engine-core/src/framework/base-bridge-element.ts#L180-L186\n // We don't want to stop the application rendering if we couldn't patch some\n // callback, e.g. `attributeChangedCallback`.\n try {\n if (prototype.hasOwnProperty(callback)) {\n const descriptor = api.ObjectGetOwnPropertyDescriptor(prototype, callback);\n if (descriptor && descriptor.value) {\n descriptor.value = api.wrapWithCurrentZone(descriptor.value, source);\n api._redefineProperty(opts.prototype, callback, descriptor);\n }\n else if (prototype[callback]) {\n prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);\n }\n }\n else if (prototype[callback]) {\n prototype[callback] = api.wrapWithCurrentZone(prototype[callback], source);\n }\n }\n catch {\n // Note: we leave the catch block empty since there's no way to handle the error related\n // to non-writable property.\n }\n });\n }\n return nativeDelegate.call(target, name, opts, options);\n };\n api.attachOriginToPatched(target[method], nativeDelegate);\n}\n\nfunction patchUtil(Zone) {\n Zone.__load_patch('util', (global, Zone, api) => {\n // Collect native event names by looking at properties\n // on the global namespace, e.g. 'onclick'.\n const eventNames = getOnEventNames(global);\n api.patchOnProperties = patchOnProperties;\n api.patchMethod = patchMethod;\n api.bindArguments = bindArguments;\n api.patchMacroTask = patchMacroTask;\n // In earlier version of zone.js (<0.9.0), we use env name `__zone_symbol__BLACK_LISTED_EVENTS`\n // to define which events will not be patched by `Zone.js`. In newer version (>=0.9.0), we\n // change the env name to `__zone_symbol__UNPATCHED_EVENTS` to keep the name consistent with\n // angular repo. The `__zone_symbol__BLACK_LISTED_EVENTS` is deprecated, but it is still be\n // supported for backwards compatibility.\n const SYMBOL_BLACK_LISTED_EVENTS = Zone.__symbol__('BLACK_LISTED_EVENTS');\n const SYMBOL_UNPATCHED_EVENTS = Zone.__symbol__('UNPATCHED_EVENTS');\n if (global[SYMBOL_UNPATCHED_EVENTS]) {\n global[SYMBOL_BLACK_LISTED_EVENTS] = global[SYMBOL_UNPATCHED_EVENTS];\n }\n if (global[SYMBOL_BLACK_LISTED_EVENTS]) {\n Zone[SYMBOL_BLACK_LISTED_EVENTS] = Zone[SYMBOL_UNPATCHED_EVENTS] =\n global[SYMBOL_BLACK_LISTED_EVENTS];\n }\n api.patchEventPrototype = patchEventPrototype;\n api.patchEventTarget = patchEventTarget;\n api.isIEOrEdge = isIEOrEdge;\n api.ObjectDefineProperty = ObjectDefineProperty;\n api.ObjectGetOwnPropertyDescriptor = ObjectGetOwnPropertyDescriptor;\n api.ObjectCreate = ObjectCreate;\n api.ArraySlice = ArraySlice;\n api.patchClass = patchClass;\n api.wrapWithCurrentZone = wrapWithCurrentZone;\n api.filterProperties = filterProperties;\n api.attachOriginToPatched = attachOriginToPatched;\n api._redefineProperty = Object.defineProperty;\n api.patchCallbacks = patchCallbacks;\n api.getGlobalObjects = () => ({\n globalSources,\n zoneSymbolEventNames,\n eventNames,\n isBrowser,\n isMix,\n isNode,\n TRUE_STR,\n FALSE_STR,\n ZONE_SYMBOL_PREFIX,\n ADD_EVENT_LISTENER_STR,\n REMOVE_EVENT_LISTENER_STR,\n });\n });\n}\n\nfunction patchCommon(Zone) {\n patchPromise(Zone);\n patchToString(Zone);\n patchUtil(Zone);\n}\n\nconst Zone$1 = loadZone();\npatchCommon(Zone$1);\npatchBrowser(Zone$1);\n"],"mappings":"AAMA,IAAMA,GAAS,WAGf,SAASC,GAAWC,EAAM,CAEtB,OADqBF,GAAO,sBAA2B,mBACjCE,CAC1B,CACA,SAASC,IAAW,CAChB,IAAMC,EAAcJ,GAAO,YAC3B,SAASK,EAAKH,EAAM,CAChBE,GAAeA,EAAY,MAAWA,EAAY,KAAQF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+BAAiCxF,GACrCwF,EAAI,aAAerF,GACnBqF,EAAI,WAAapF,GACjBoF,EAAI,WAAanC,GACjBmC,EAAI,oBAAsB5E,GAC1B4E,EAAI,iBAAmB4F,GACvB5F,EAAI,sBAAwB9D,GAC5B8D,EAAI,kBAAoB,OAAO,eAC/BA,EAAI,eAAiBgO,GACrBhO,EAAI,iBAAmB,KAAO,CAC1B,cAAAV,GACA,qBAAAD,GACA,WAAAoG,EACA,UAAAnJ,GACA,MAAAC,GACA,OAAAF,GACA,SAAApB,GACA,UAAAC,GACA,mBAAAC,GACA,uBAAAN,GACA,0BAAAC,EACJ,EACJ,CAAC,CACL,CAEA,SAAS2T,GAAYhI,EAAM,CACvBoC,GAAapC,CAAI,EACjB4G,GAAc5G,CAAI,EAClB6H,GAAU7H,CAAI,CAClB,CAEA,IAAMiI,GAASnU,GAAS,EACxBkU,GAAYC,EAAM,EAClBlI,GAAakI,EAAM","names":["global","__symbol__","name","initZone","performance","mark","performanceMeasure","label","_ZoneImpl","patches","zone","_currentZoneFrame","_currentTask","fn","ignoreDuplicate","checkDuplicate","perfName","_api","parent","zoneSpec","_ZoneDelegate","key","current","callback","source","_callback","applyThis","applyArgs","error","task","NO_ZONE","notScheduled","eventTask","macroTask","reEntryGuard","running","scheduled","previousTask","unknown","newZone","scheduling","zoneDelegates","err","data","customSchedule","ZoneTask","microTask","customCancel","canceling","count","i","ZoneImpl","DELEGATE_ZS","delegate","_","target","hasTaskState","parentDelegate","zoneSpecHasTask","parentHasTask","targetZone","returnTask","scheduleMicroTask","value","isEmpty","type","counts","prev","next","options","scheduleFn","cancelFn","self","args","_numberOfNestedTaskFrames","drainMicroTaskQueue","toState","fromState1","fromState2","symbolSetTimeout","symbolPromise","symbolThen","_microTaskQueue","_isDrainingMicrotaskQueue","nativeMicroTaskQueuePromise","nativeScheduleMicroTask","func","nativeThen","queue","noop","loadZone","ObjectGetOwnPropertyDescriptor","ObjectDefineProperty","ObjectGetPrototypeOf","ObjectCreate","ArraySlice","ADD_EVENT_LISTENER_STR","REMOVE_EVENT_LISTENER_STR","ZONE_SYMBOL_ADD_EVENT_LISTENER","ZONE_SYMBOL_REMOVE_EVENT_LISTENER","TRUE_STR","FALSE_STR","ZONE_SYMBOL_PREFIX","wrapWithCurrentZone","scheduleMacroTaskWithCurrentZone","zoneSymbol","isWindowExists","internalWindow","_global","REMOVE_ATTRIBUTE","bindArguments","patchPrototype","prototype","fnNames","prototypeDesc","isPropertyWritable","patched","attachOriginToPatched","propertyDesc","isWebWorker","isNode","isBrowser","isMix","zoneSymbolEventNames$1","wrapFn","event","eventNameSymbol","listener","result","errorEvent","patchProperty","obj","prop","desc","onPropPatchedSymbol","originalDescGet","originalDescSet","eventName","newValue","patchOnProperties","properties","onProperties","j","originalInstanceKey","patchClass","className","OriginalClass","a","instance","patchMethod","patchFn","proto","delegateName","patchDelegate","patchMacroTask","funcName","metaCreator","setNative","scheduleTask","meta","original","isDetectedIEOrEdge","ieOrEdge","isIE","ua","isIEOrEdge","passiveSupported","OPTIMIZED_ZONE_EVENT_TASK_DATA","zoneSymbolEventNames","globalSources","EVENT_NAME_SYMBOL_REGX","IMMEDIATE_PROPAGATION_SYMBOL","prepareEventNames","eventNameToString","falseEventName","trueEventName","symbol","symbolCapture","patchEventTarget","api","apis","patchOptions","ADD_EVENT_LISTENER","REMOVE_EVENT_LISTENER","LISTENERS_EVENT_LISTENER","REMOVE_ALL_LISTENERS_EVENT_LISTENER","zoneSymbolAddEventListener","ADD_EVENT_LISTENER_SOURCE","PREPEND_EVENT_LISTENER","PREPEND_EVENT_LISTENER_SOURCE","invokeTask","globalCallback","context","isCapture","tasks","errors","copyTasks","globalZoneAwareCallback","globalZoneAwareCaptureCallback","patchEventTargetMethods","useGlobalCallback","validateHandler","returnTarget","taskData","nativeAddEventListener","nativeRemoveEventListener","nativeListeners","nativeRemoveAllListeners","nativePrependEventListener","buildEventListenerOptions","passive","customScheduleGlobal","customCancelGlobal","symbolEventNames","symbolEventName","existingTasks","customScheduleNonGlobal","customSchedulePrepend","customCancelNonGlobal","compareTaskCallbackVsDelegate","typeOfDelegate","compare","unpatchedEvents","passiveEvents","makeAddListener","nativeListener","addSource","customScheduleFn","customCancelFn","prepend","isHandleEvent","signal","capture","once","isExisting","constructorName","targetSource","existingTask","onPropertySymbol","listeners","findEventTasks","symbolCaptureEventName","captureTasks","removeTasks","keys","match","evtName","results","foundTasks","captureFalseTasks","captureTrueTasks","patchEventPrototype","Event","patchQueueMicrotask","taskSymbol","patchTimer","window","setName","cancelName","nameSuffix","clearNative","tasksByHandleId","clearTask","handle","id","patchCustomElements","callbacks","eventTargetPatch","eventNames","EVENT_TARGET","patchEvent","filterProperties","ignoreProperties","tip","ip","targetIgnoreProperties","op","patchFilteredProperties","filteredProperties","getOnEventNames","propertyDescriptorPatch","patchTargets","ignoreErrorProperties","patchBrowser","Zone","legacyPatch","set","clear","blockingMethods","s","XMLHttpRequestEventTarget","patchXHR","XHR_TASK","XHR_SYNC","XHR_LISTENER","XHR_SCHEDULED","XHR_URL","XHR_ERROR_BEFORE_SCHEDULED","XMLHttpRequest","XMLHttpRequestPrototype","findPendingTask","oriAddListener","oriRemoveListener","XMLHttpRequestEventTargetPrototype","READY_STATE_CHANGE","SCHEDULED","newListener","loadTasks","oriInvoke","sendNative","placeholderCallback","abortNative","openNative","XMLHTTPREQUEST_SOURCE","fetchTaskAborting","fetchTaskScheduling","findPromiseRejectionHandler","e","PromiseRejectionEvent","evt","patchPromise","readableObjectToString","_uncaughtPromiseErrors","isDisableWrappingUncaughtPromiseRejection","creationTrace","rejection","uncaughtPromiseError","handleUnhandledRejection","UNHANDLED_PROMISE_REJECTION_HANDLER_SYMBOL","handler","isThenable","forwardResolution","forwardRejection","ZoneAwarePromise","symbolState","symbolValue","symbolFinally","symbolParentPromiseValue","symbolParentPromiseState","UNRESOLVED","RESOLVED","REJECTED","REJECTED_NO_CATCH","makeResolver","promise","state","v","resolvePromise","wasCalled","wrappedFunction","TYPE_ERROR","CURRENT_TASK_TRACE_SYMBOL","onceWrapper","then","clearRejectedNoCatch","trace","scheduleResolveOrReject","REJECTION_HANDLED_HANDLER","chainPromise","onFulfilled","onRejected","promiseState","parentPromiseValue","isFinallyPromise","ZONE_AWARE_PROMISE_TO_STRING","AggregateError","res","rej","values","promises","finished","resolve","reject","onResolve","onReject","unresolvedCount","valueIndex","resolvedValues","curValueIndex","thenErr","executor","_a","C","onFinally","NativePromise","symbolThenPatched","patchThen","Ctor","originalThen","zoneify","resultPromise","ctor","patchToString","originalFunctionToString","ORIGINAL_DELEGATE_SYMBOL","PROMISE_SYMBOL","ERROR_SYMBOL","newFunctionToString","originalDelegate","nativePromise","nativeError","originalObjectToString","PROMISE_OBJECT_TO_STRING","patchCallbacks","targetName","method","nativeDelegate","opts","descriptor","patchUtil","SYMBOL_BLACK_LISTED_EVENTS","SYMBOL_UNPATCHED_EVENTS","patchCommon","Zone$1"],"x_google_ignoreList":[0]} \ No newline at end of file